Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Media.Examples.WaterProperties,fileNamePrefix="IDEAS_dev_IDEAS_Media_Examples_WaterProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.WaterProperties,fileNamePrefix="IDEAS_dev_IDEAS_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.001656/0.001656, allocations: 108 kB / 15.61 MB, free: 152 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.00202/0.00202, allocations: 195.1 kB / 16.53 MB, free: 6.699 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.369/1.369, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9233/0.9233, allocations: 135.1 MB / 425.5 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 64.27 kB / 0.5054 GB, free: 5.234 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1493, allocations: 80.93 MB / 0.5845 GB, free: 4.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterProperties): time 0.006025/0.1554, allocations: 4.719 MB / 0.5891 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002707/0.1581, allocations: 2.691 MB / 0.5917 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.1583, allocations: 0 / 0.5917 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002653/0.1585, allocations: 51.67 kB / 0.5917 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002848/0.1589, allocations: 95.41 kB / 0.5918 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001211/0.1601, allocations: 0.4891 MB / 0.5923 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002719/0.1604, allocations: 239.9 kB / 0.5925 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.482e-05/0.1604, allocations: 9.562 kB / 0.5926 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002038/0.1607, allocations: 119.5 kB / 0.5927 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001444/0.1608, allocations: 87.66 kB / 0.5928 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.643e-05/0.1608, allocations: 8 kB / 0.5928 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007/0.1616, allocations: 371.2 kB / 0.5931 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.859e-05/0.1616, allocations: 35.89 kB / 0.5931 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.489e-05/0.1617, allocations: 79.64 kB / 0.5932 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006298/0.1624, allocations: 371.3 kB / 0.5936 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1624, allocations: 0 / 0.5936 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.412e-06/0.1624, allocations: 0 / 0.5936 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.1624, allocations: 0 / 0.5936 GB, free: 11.08 MB / 0.4981 GB 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.0007805/0.1632, allocations: 0.4953 MB / 0.5941 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.1632, allocations: 12.03 kB / 0.5941 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.502e-05/0.1633, allocations: 50.73 kB / 0.5941 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001762/0.1635, allocations: 24.73 kB / 0.5941 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.1637, allocations: 220 kB / 0.5944 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.1637, allocations: 12.7 kB / 0.5944 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.1638, allocations: 24.36 kB / 0.5944 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003868/0.1642, allocations: 244 kB / 0.5946 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.1642, allocations: 0 / 0.5946 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.672e-05/0.1642, allocations: 12 kB / 0.5946 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.373e-05/0.1643, allocations: 4 kB / 0.5946 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004525/0.1647, allocations: 431.5 kB / 0.5951 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.1658, allocations: 0.9488 MB / 0.596 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002676/0.1661, allocations: 161 kB / 0.5961 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.8e-05/0.1662, allocations: 60.88 kB / 0.5962 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001205/0.1674, allocations: 1.817 MB / 0.598 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.1674, allocations: 42.56 kB / 0.598 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.1674, allocations: 0 / 0.598 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.000329/0.1678, allocations: 149.3 kB / 0.5981 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.1678, allocations: 55.41 kB / 0.5982 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001378/0.168, allocations: 165.9 kB / 0.5984 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.168, allocations: 29.7 kB / 0.5984 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.242e-05/0.1681, allocations: 139.7 kB / 0.5985 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.461e-05/0.1681, allocations: 55.28 kB / 0.5986 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-05/0.1682, allocations: 61.61 kB / 0.5986 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.411e-05/0.1683, allocations: 326.8 kB / 0.5989 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.845e-05/0.1684, allocations: 31.98 kB / 0.599 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.1685, allocations: 142.9 kB / 0.5991 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002305/0.1687, allocations: 200.2 kB / 0.5993 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1687, allocations: 0 / 0.5993 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003375/0.1691, allocations: 213.6 kB / 0.5995 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.1691, allocations: 4 kB / 0.5995 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.1691, allocations: 4 kB / 0.5995 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.1692, allocations: 11.94 kB / 0.5995 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.1693, allocations: 67.72 kB / 0.5996 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.1693, allocations: 4 kB / 0.5996 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.1695, allocations: 27.69 kB / 0.5996 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.1695, allocations: 12 kB / 0.5996 GB, free: 4.148 MB / 0.4981 GB 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 9.732e-05/0.1696, allocations: 130.4 kB / 0.5998 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.303e-05/0.1696, allocations: 23.83 kB / 0.5998 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002885/0.1699, allocations: 154.9 kB / 0.5999 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.17, allocations: 3.938 kB / 0.5999 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.17, allocations: 0 / 0.5999 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.17, allocations: 0 / 0.5999 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002265/0.1702, allocations: 225.5 kB / 0.6001 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1702, allocations: 0 / 0.6001 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.538e-05/0.1703, allocations: 19.98 kB / 0.6002 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.1703, allocations: 4 kB / 0.6002 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.1703, allocations: 8 kB / 0.6002 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.1703, allocations: 3.938 kB / 0.6002 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1704, allocations: 0 / 0.6002 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002342/0.1706, allocations: 225 kB / 0.6004 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.693e-05/0.1707, allocations: 112.9 kB / 0.6005 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.42e-05/0.1707, allocations: 0 / 0.6005 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002017/0.1709, allocations: 19.92 kB / 0.6005 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.367e-05/0.171, allocations: 15.98 kB / 0.6005 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/0.171, allocations: 8 kB / 0.6005 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.239e-05/0.1711, allocations: 120.9 kB / 0.6007 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.01e-07/0.1711, allocations: 0 / 0.6007 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003893/0.1715, allocations: 87.92 kB / 0.6007 GB, free: 2.91 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.0007307/0.1722, allocations: 0.8233 MB / 0.6015 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002425/0.1725, allocations: 124.6 kB / 0.6017 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1725, allocations: 0 / 0.6017 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 6.669e-05/0.1725, allocations: 47.92 kB / 0.6017 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004354/0.173, allocations: 69.77 kB / 0.6018 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2273/0.4003, allocations: 2.02 MB / 0.6037 GB, free: 51.99 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001285/0.4005, allocations: 0.7138 MB / 0.6044 GB, free: 51.29 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002156/0.4007, allocations: 38.52 kB / 0.6045 GB, free: 51.29 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.807e-05/0.4008, allocations: 43.08 kB / 0.6045 GB, free: 51.29 MB / 0.4981 GB Notification: Performance of SimCode: time 5.41e-07/0.4008, allocations: 0 / 0.6045 GB, free: 51.29 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01887/0.4197, allocations: 5.183 MB / 0.6096 GB, free: 50.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.493/7.913, allocations: 14.89 kB / 0.6096 GB, free: 50.8 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Media.Examples.WaterProperties.pipe ; mkfifo IDEAS_dev_IDEAS.Media.Examples.WaterProperties.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Media.Examples.WaterProperties.pipe >> ../files/IDEAS_dev_IDEAS.Media.Examples.WaterProperties.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_Media_Examples_WaterProperties.fmu > IDEAS_dev_IDEAS.Media.Examples.WaterProperties.pipe 2>&1)