After t = 0.5, chattering takes place, due to the discontinuity in the right hand side of the first equation.
Chattering can be detected because lots of tightly spaced events are generated. The feedback to the user should allow to identify the equation from which the zero crossing function that generates the events originates, z = if x > 0 then -1 else 1;