GOTCHA: MD SysML/Cameo 19SP3 vs SysPhS-1.1: Export to Modelica does not see a 'doActivity' on a State (does not write it to a Modelica algorithm), you MUST use an 'entry'!
Note also the provided samples such as Humidifier.mdzip use 'entry'. It is assumed here that the tool's approach is correct and that the examples in the spec are incorrect: