Use of cardinality in the definition of a parameter not accepted by OpenModelica

Because of cardinality function, simple models such as ThermoSysPro.Examples.SimpleExamples.TestCentrifugalPump do not work with OpenModelica.

Indeed composants such as ThermoSysPro.WaterSteam.Machines.CentrifugalPump use cardinality in the definition of a parameter:

parameter Boolean dyn_mech_equation=((cardinality(M) <> 0) and dynamic_mech_equation);

But according to OpenModelica : "cardinality may only be used in the condition of an if-statement/equation or an assert.". A ticket on the subject can be found here : https://trac.openmodelica.org/OpenModelica/ticket/4429 (Tests have been done with Modelica 3.2.3 and 4.0, OpenModelica 1.19)

Linked to #68