Modelica does not support comparison of Real values using == outside of functions (so not directly inside state machines)