check wheter a reference value is reached
[sim, reached] = ld_reference_reached(sim, ev, r, y, N, eps)
r * - Reference Signal (shall be constant)
y * - Signal to compare to the reference
N - After the condition of reaching the reference is true
N time steps will be wait until setting reached to one.
eps - the half tolerance band width