Simulation of differential-algebraic equation systems with optimization criteria embedded in Modelica. (2nd September 2020)