Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.PropyleneGlycolWaterTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_IDEAS_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_IDEAS_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion",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.007111/0.007111, allocations: 97.23 kB / 15.73 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 191.6 kB / 16.67 MB, free: 6.391 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7554/0.7554, allocations: 132.2 MB / 422.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 65.86 kB / 0.5809 GB, free: 1.125 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1552, allocations: 80.2 MB / 0.6592 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion): time 0.005535/0.1608, allocations: 3.723 MB / 0.6628 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002356/0.1611, allocations: 167.4 kB / 0.663 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.626e-05/0.1611, allocations: 0 / 0.663 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.1612, allocations: 0 / 0.663 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.881e-05/0.1614, allocations: 15.91 kB / 0.663 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003599/0.1617, allocations: 87.69 kB / 0.6631 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.043e-05/0.1618, allocations: 27.92 kB / 0.6631 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.188e-05/0.1619, allocations: 0 / 0.6631 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.245e-05/0.1619, allocations: 23.92 kB / 0.6631 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.651e-05/0.162, allocations: 11.92 kB / 0.6631 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.162, allocations: 4 kB / 0.6631 GB, free: 9.977 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000594/0.1626, allocations: 188.8 kB / 0.6633 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.532e-05/0.1627, allocations: 3.984 kB / 0.6633 GB, free: 9.789 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.119e-05/0.1627, allocations: 19.92 kB / 0.6633 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001337/0.1629, allocations: 32.19 kB / 0.6634 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1629, allocations: 0 / 0.6634 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.272e-06/0.1629, allocations: 0 / 0.6634 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.089e-06/0.1629, allocations: 0 / 0.6634 GB, free: 9.738 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000412/0.1633, allocations: 347.4 kB / 0.6637 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.1634, allocations: 8.031 kB / 0.6637 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.53e-05/0.1634, allocations: 34.75 kB / 0.6637 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.635e-05/0.1634, allocations: 8.875 kB / 0.6637 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.1636, allocations: 160.4 kB / 0.6639 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.097e-05/0.1636, allocations: 26.27 kB / 0.6639 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.42e-05/0.1637, allocations: 12.06 kB / 0.6639 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001439/0.1638, allocations: 53.64 kB / 0.664 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1638, allocations: 0 / 0.664 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.172e-05/0.1639, allocations: 11.94 kB / 0.664 GB, free: 8.984 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.1639, allocations: 4 kB / 0.664 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.529e-05/0.1639, allocations: 11.98 kB / 0.664 GB, free: 8.969 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00043/0.1644, allocations: 338 kB / 0.6643 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.342e-05/0.1644, allocations: 18.52 kB / 0.6644 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.523e-05/0.1645, allocations: 12.92 kB / 0.6644 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.708e-05/0.1645, allocations: 81.11 kB / 0.6644 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.1646, allocations: 38.55 kB / 0.6645 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1646, allocations: 0 / 0.6645 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001457/0.1647, allocations: 37.66 kB / 0.6645 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.1648, allocations: 51.41 kB / 0.6646 GB, free: 8.277 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.574e-05/0.1649, allocations: 105.9 kB / 0.6647 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.1649, allocations: 33.7 kB / 0.6647 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.289e-05/0.1649, allocations: 84.09 kB / 0.6648 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.168e-06/0.1649, allocations: 0 / 0.6648 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.902e-05/0.165, allocations: 17.72 kB / 0.6648 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1651, allocations: 318.8 kB / 0.6651 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.697e-05/0.1651, allocations: 4 kB / 0.6651 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.345e-05/0.1652, allocations: 17.72 kB / 0.6651 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.222e-05/0.1652, allocations: 17.72 kB / 0.6651 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1652, allocations: 7.984 kB / 0.6651 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.334e-05/0.1653, allocations: 45.64 kB / 0.6652 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.1653, allocations: 4 kB / 0.6652 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.1653, allocations: 0 / 0.6652 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.1653, allocations: 4 kB / 0.6652 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.638e-05/0.1654, allocations: 7.984 kB / 0.6652 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.1654, allocations: 64 / 0.6652 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.004e-05/0.1654, allocations: 7.953 kB / 0.6652 GB, free: 7.562 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.1654, allocations: 4 kB / 0.6652 GB, free: 7.559 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * Array equations: 0 * 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 7.714e-05/0.1655, allocations: 114.4 kB / 0.6653 GB, free: 7.438 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.895e-05/0.1656, allocations: 7.938 kB / 0.6653 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001161/0.1657, allocations: 117 kB / 0.6654 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.154e-05/0.1657, allocations: 180.3 kB / 0.6656 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.393e-05/0.1658, allocations: 188.2 kB / 0.6658 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-05/0.1659, allocations: 176.3 kB / 0.666 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002381/0.1661, allocations: 413.1 kB / 0.6664 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.914e-05/0.1662, allocations: 108.9 kB / 0.6665 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.831e-05/0.1662, allocations: 105 kB / 0.6666 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.589e-05/0.1663, allocations: 188.2 kB / 0.6667 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.266e-05/0.1663, allocations: 176.3 kB / 0.6669 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.304e-05/0.1664, allocations: 180.2 kB / 0.6671 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.565e-05/0.1665, allocations: 176.3 kB / 0.6672 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001386/0.1666, allocations: 315.7 kB / 0.6675 GB, free: 4.996 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.442e-05/0.1667, allocations: 182.1 kB / 0.6677 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.086e-05/0.1668, allocations: 180.2 kB / 0.6679 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.1669, allocations: 117 kB / 0.668 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.93e-05/0.167, allocations: 184.5 kB / 0.6682 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-05/0.1671, allocations: 101 kB / 0.6683 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.528e-05/0.1671, allocations: 91.27 kB / 0.6684 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1671, allocations: 0 / 0.6684 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002747/0.1674, allocations: 23.88 kB / 0.6684 GB, free: 4.082 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 (0): * Single equations (assignments): 0 * Array equations: 0 * 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.0005784/0.168, allocations: 0.8281 MB / 0.6692 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 9.111e-05/0.1681, allocations: 15.98 kB / 0.6692 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.1681, allocations: 0 / 0.6692 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.453e-06/0.1681, allocations: 0 / 0.6692 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004015/0.1685, allocations: 455.7 kB / 0.6696 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.1697, allocations: 1.321 MB / 0.6709 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.1699, allocations: 0.6768 MB / 0.6716 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.537e-05/0.17, allocations: 4 kB / 0.6716 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.658e-05/0.17, allocations: 7.438 kB / 0.6716 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of SimCode: time 3.71e-07/0.17, allocations: 4 kB / 0.6716 GB, free: 0.6367 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01703/0.1871, allocations: 1.522 MB / 0.6731 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.258/7.445, allocations: 0.6562 kB / 0.6731 GB, free: 15.27 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion.fmu > IDEAS_IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe 2>&1)