In fact you are right, with the current parameter settings, the opAmp model uses this equation to compute the output voltage:
v_out = smooth(0, noEvent(if V0*v_in>vps then vps else if V0*v_in<vns then vns else V0*v_in));
so there are in fact no events in this simulation. Unfortunately, the solver statistics are not shown (see issue 1.), so I didn't notice.
Anyway, it still seems that the C runtime deals with the if-expression in a somwhat wrong way, even in the presence of both smooth()
and noEven()
operators.
I tried to improve the description of the ticket.