Translation of UML state machines to Modelica: Handling semantic issues. (April 2013)