In general you can se such issues when using event generating functions with infinite number of transition points, like integer and mod, in combination with a model without dynamics (the Trapezoid block uses integer). As Neil mentioned, as soon as you add some dynamics to your model the step size control of the solver will kick in to help find all transition points.