Free (standard conforming) library to model mechanical (1D/3D), electrical (analog, digital, machines), magnetic, thermal, fluid, control systems and hierarchical state machines. Also numerical functions and functions for strings, files and streams are included.
According to the Modelica language specification, there is no guarantee that the smooth-operator does not generate any events.
When this model is simulated with Optimica Compiler Toolkit, the event generation resulting from torn equation 3 with the smooth-operator causes an infinite loop in the event iteration, and this is due to minor numerical noise. There is no reason to have event generation here since r2.i varies to such a small degree. Therefore we suggest setting the parameter "strict" on the components opAmp1 and opAmp2, equal to "true" instead of the current value "false", using the more appropriate noEvent branch instead.
In the BTL of the model Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator we have the following equation block:
According to the Modelica language specification, there is no guarantee that the smooth-operator does not generate any events. When this model is simulated with Optimica Compiler Toolkit, the event generation resulting from torn equation 3 with the smooth-operator causes an infinite loop in the event iteration, and this is due to minor numerical noise. There is no reason to have event generation here since r2.i varies to such a small degree. Therefore we suggest setting the parameter "strict" on the components opAmp1 and opAmp2, equal to "true" instead of the current value "false", using the more appropriate noEvent branch instead.