Help debugging differential equation

yes, but instead of setting it to a small value, set it to a real zero.

zero_condition(u, t, integrator) = u[1] < 1e-12
function zero_out!(integrator)
        integrator.u[i] = 0
end