Flattening of Modelica State Machines : a practical symbolic representation