Improving efficiency of hybrid system simulation in Modelica
Victorino Sanz, Alfonso Urquía, Francesco Casella · 2014
Modelica supports the modeling of hybrid systems by means of differential and algebraic equations, and discrete-events. The simulation of Modelica models is carried out by solving the continuous-time equations, detecting the occurrence of events and managing the triggered events. After managing an event, the event iteration algorithm is used to find consistent restart conditions before resuming the numerical integration. The objective of the work presented in this manuscript is to describe a procedure to optimize the event iteration algorithm. The structure of the model is analyzed in order to only re-evaluate the equations involved in the management of events. The use of this procedure is described by means of an application example.