Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterProperties",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 196.2 kB / 16.53 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002373/0.002373, allocations: 290.5 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9729/0.9729, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002733/0.002733, allocations: 98.09 kB / 0.5953 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1523, allocations: 86.98 MB / 0.6803 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterProperties): time 0.006352/0.1587, allocations: 4.718 MB / 0.6849 GB, free: 11.88 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0031/0.1618, allocations: 2.697 MB / 0.6875 GB, free: 9.176 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.462e-05/0.1619, allocations: 4 kB / 0.6875 GB, free: 9.172 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002499/0.1622, allocations: 47.67 kB / 0.6876 GB, free: 9.125 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002576/0.1625, allocations: 95.36 kB / 0.6877 GB, free: 9.031 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.1636, allocations: 0.489 MB / 0.6881 GB, free: 8.543 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002511/0.1639, allocations: 235.9 kB / 0.6884 GB, free: 8.312 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.382e-05/0.1639, allocations: 13.56 kB / 0.6884 GB, free: 8.301 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/0.1641, allocations: 119.5 kB / 0.6885 GB, free: 8.184 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00014/0.1643, allocations: 87.66 kB / 0.6886 GB, free: 8.098 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.1643, allocations: 8 kB / 0.6886 GB, free: 8.09 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007056/0.165, allocations: 363.3 kB / 0.6889 GB, free: 7.734 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.924e-05/0.1651, allocations: 39.89 kB / 0.689 GB, free: 7.695 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.462e-05/0.1652, allocations: 79.59 kB / 0.689 GB, free: 7.617 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005749/0.1658, allocations: 363.3 kB / 0.6894 GB, free: 7.262 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1658, allocations: 4 kB / 0.6894 GB, free: 7.258 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1658, allocations: 0 / 0.6894 GB, free: 7.258 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.299e-06/0.1658, allocations: 0 / 0.6894 GB, free: 7.258 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.000748/0.1666, allocations: 0.4992 MB / 0.6899 GB, free: 6.711 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.1666, allocations: 8.031 kB / 0.6899 GB, free: 6.703 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.226e-05/0.1667, allocations: 58.72 kB / 0.6899 GB, free: 6.637 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.1669, allocations: 24.75 kB / 0.69 GB, free: 6.613 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002184/0.1671, allocations: 204.2 kB / 0.6902 GB, free: 6.375 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.204e-05/0.1671, allocations: 12.7 kB / 0.6902 GB, free: 6.363 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.36e-05/0.1672, allocations: 20.38 kB / 0.6902 GB, free: 6.344 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003847/0.1675, allocations: 252.6 kB / 0.6904 GB, free: 6.078 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1676, allocations: 0 / 0.6904 GB, free: 6.078 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/0.1676, allocations: 12 kB / 0.6904 GB, free: 6.066 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.506e-05/0.1676, allocations: 4 kB / 0.6904 GB, free: 6.062 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005123/0.1681, allocations: 435.3 kB / 0.6909 GB, free: 5.637 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.1693, allocations: 0.9565 MB / 0.6918 GB, free: 4.59 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.1696, allocations: 168.3 kB / 0.692 GB, free: 4.418 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.1697, allocations: 60.88 kB / 0.692 GB, free: 4.355 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001486/0.1712, allocations: 1.817 MB / 0.6938 GB, free: 2.18 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/0.1713, allocations: 38.56 kB / 0.6938 GB, free: 2.133 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/0.1713, allocations: 0 / 0.6938 GB, free: 2.133 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0003427/0.1716, allocations: 149.4 kB / 0.694 GB, free: 1.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.1717, allocations: 55.34 kB / 0.694 GB, free: 1.914 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.1718, allocations: 174.7 kB / 0.6942 GB, free: 1.734 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.1719, allocations: 25.7 kB / 0.6942 GB, free: 1.703 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.986e-05/0.172, allocations: 143.8 kB / 0.6943 GB, free: 1.559 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.351e-05/0.172, allocations: 55.2 kB / 0.6944 GB, free: 1.504 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.029e-05/0.1721, allocations: 53.7 kB / 0.6944 GB, free: 1.445 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1722, allocations: 322.8 kB / 0.6948 GB, free: 1.121 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.092e-05/0.1723, allocations: 35.97 kB / 0.6948 GB, free: 1.086 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001605/0.1725, allocations: 143.5 kB / 0.6949 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002524/0.1727, allocations: 197.5 kB / 0.6951 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.1728, allocations: 7.938 kB / 0.6951 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003729/0.1731, allocations: 207.9 kB / 0.6953 GB, free: 452 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.1732, allocations: 12 kB / 0.6953 GB, free: 440 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.1732, allocations: 4 kB / 0.6953 GB, free: 436 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.1732, allocations: 11.88 kB / 0.6953 GB, free: 424 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.1734, allocations: 55.91 kB / 0.6954 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/0.1734, allocations: 8 kB / 0.6954 GB, free: 360 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.1735, allocations: 27.69 kB / 0.6954 GB, free: 332 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.1735, allocations: 8 kB / 0.6954 GB, free: 324 kB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001138/0.1737, allocations: 133.7 kB / 0.6956 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.338e-05/0.1737, allocations: 23.81 kB / 0.6956 GB, free: 156 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002957/0.174, allocations: 154.9 kB / 0.6957 GB, free: 0 / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.878e-05/0.1741, allocations: 7.984 kB / 0.6957 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1741, allocations: 0 / 0.6957 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1741, allocations: 0 / 0.6957 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002474/0.1743, allocations: 217.5 kB / 0.696 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1743, allocations: 0 / 0.696 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.572e-05/0.1744, allocations: 20 kB / 0.696 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1744, allocations: 3.984 kB / 0.696 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.1745, allocations: 12 kB / 0.696 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.1745, allocations: 7.938 kB / 0.696 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1745, allocations: 0 / 0.696 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002485/0.1747, allocations: 212.7 kB / 0.6962 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.935e-05/0.1748, allocations: 112.9 kB / 0.6963 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.1749, allocations: 4 kB / 0.6963 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/0.1751, allocations: 19.92 kB / 0.6963 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.253e-05/0.1751, allocations: 11.92 kB / 0.6963 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.26e-05/0.1751, allocations: 19.98 kB / 0.6964 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.111e-05/0.1752, allocations: 117.1 kB / 0.6965 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1752, allocations: 0 / 0.6965 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000377/0.1756, allocations: 79.92 kB / 0.6965 GB, free: 15.09 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008047/0.1764, allocations: 0.8254 MB / 0.6974 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002569/0.1767, allocations: 126.6 kB / 0.6975 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1767, allocations: 192 / 0.6975 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 7.229e-05/0.1768, allocations: 51.91 kB / 0.6975 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004246/0.1772, allocations: 57.7 kB / 0.6976 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.1795, allocations: 2.046 MB / 0.6996 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.1798, allocations: 0.7128 MB / 0.7003 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001651/0.18, allocations: 49.75 kB / 0.7003 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.877e-05/0.18, allocations: 47.36 kB / 0.7004 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of SimCode: time 4.11e-07/0.18, allocations: 0 / 0.7004 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0269/0.2069, allocations: 5.205 MB / 0.7055 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.499/7.706, allocations: 15.16 kB / 0.7055 GB, free: 5.855 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.WaterProperties_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Media_Examples_WaterProperties.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe 2>&1)