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.007644/0.007644, allocations: 106.1 kB / 15.74 MB, free: 6.02 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.001788/0.001788, allocations: 189.2 kB / 16.68 MB, free: 5.938 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.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7643/0.7643, allocations: 132.2 MB / 422.7 MB, free: 6.531 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 66.98 kB / 0.5808 GB, free: 24.24 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1397, allocations: 80.2 MB / 0.6592 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion): time 0.005192/0.1449, allocations: 3.727 MB / 0.6628 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002018/0.1452, allocations: 159.5 kB / 0.663 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.029e-05/0.1452, allocations: 0 / 0.663 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.482e-05/0.1453, allocations: 3.938 kB / 0.663 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.733e-05/0.1454, allocations: 15.92 kB / 0.663 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003472/0.1458, allocations: 83.75 kB / 0.6631 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.514e-05/0.1459, allocations: 35.84 kB / 0.6631 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.709e-05/0.1459, allocations: 4 kB / 0.6631 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.782e-05/0.146, allocations: 11.98 kB / 0.6631 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.784e-05/0.146, allocations: 15.91 kB / 0.6631 GB, free: 6.699 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.061e-05/0.146, allocations: 8 kB / 0.6631 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005319/0.1466, allocations: 187.4 kB / 0.6633 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.371e-05/0.1466, allocations: 7.984 kB / 0.6633 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.226e-05/0.1467, allocations: 11.94 kB / 0.6633 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001251/0.1468, allocations: 36.17 kB / 0.6634 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1468, allocations: 0 / 0.6634 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.192e-06/0.1468, allocations: 7.938 kB / 0.6634 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.1468, allocations: 0 / 0.6634 GB, free: 6.445 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.0003728/0.1472, allocations: 335.4 kB / 0.6637 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.1473, allocations: 12.03 kB / 0.6637 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.1473, allocations: 34.75 kB / 0.6637 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.285e-05/0.1473, allocations: 8.922 kB / 0.6637 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.1475, allocations: 160.4 kB / 0.6639 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.623e-05/0.1475, allocations: 30.27 kB / 0.6639 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.975e-06/0.1475, allocations: 4.125 kB / 0.6639 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001315/0.1477, allocations: 41.69 kB / 0.664 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.1477, allocations: 0 / 0.664 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.1477, allocations: 8 kB / 0.664 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.893e-05/0.1477, allocations: 3.984 kB / 0.664 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.363e-05/0.1478, allocations: 15.88 kB / 0.664 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004125/0.1482, allocations: 341.9 kB / 0.6643 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.117e-05/0.1483, allocations: 14.58 kB / 0.6643 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.742e-05/0.1483, allocations: 16.84 kB / 0.6644 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.29e-05/0.1484, allocations: 89.11 kB / 0.6644 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.1484, allocations: 30.56 kB / 0.6645 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.1484, allocations: 0 / 0.6645 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001348/0.1485, allocations: 45.58 kB / 0.6645 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.1486, allocations: 51.41 kB / 0.6646 GB, free: 4.996 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.379e-05/0.1487, allocations: 101.9 kB / 0.6647 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.1487, allocations: 25.7 kB / 0.6647 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.09e-05/0.1487, allocations: 88.2 kB / 0.6648 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.358e-06/0.1487, allocations: 4 kB / 0.6648 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-05/0.1488, allocations: 17.72 kB / 0.6648 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.507e-05/0.1489, allocations: 314.8 kB / 0.6651 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.522e-05/0.1489, allocations: 4 kB / 0.6651 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.473e-05/0.1489, allocations: 21.7 kB / 0.6651 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.594e-05/0.149, allocations: 25.66 kB / 0.6651 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.149, allocations: 0 / 0.6651 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.654e-05/0.1491, allocations: 49.62 kB / 0.6652 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.1491, allocations: 4 kB / 0.6652 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.1491, allocations: 0 / 0.6652 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.1491, allocations: 4 kB / 0.6652 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.218e-05/0.1491, allocations: 4 kB / 0.6652 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.1492, allocations: 0 / 0.6652 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.058e-05/0.1492, allocations: 3.953 kB / 0.6652 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.1492, allocations: 11.98 kB / 0.6652 GB, free: 4.277 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 6.665e-05/0.1493, allocations: 114.7 kB / 0.6653 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.836e-05/0.1493, allocations: 4 kB / 0.6653 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.1494, allocations: 118 kB / 0.6654 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.802e-05/0.1495, allocations: 188.2 kB / 0.6656 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.419e-05/0.1495, allocations: 180.3 kB / 0.6658 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.289e-05/0.1496, allocations: 184.2 kB / 0.666 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001969/0.1498, allocations: 409.2 kB / 0.6664 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-05/0.1498, allocations: 104.9 kB / 0.6665 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.928e-05/0.1499, allocations: 101 kB / 0.6666 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.535e-05/0.1499, allocations: 184.2 kB / 0.6667 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.706e-05/0.15, allocations: 188.2 kB / 0.6669 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.064e-05/0.1501, allocations: 176.3 kB / 0.6671 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.228e-05/0.1501, allocations: 180.2 kB / 0.6672 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001231/0.1502, allocations: 307.8 kB / 0.6675 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.273e-05/0.1503, allocations: 186 kB / 0.6677 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.102e-05/0.1504, allocations: 180.3 kB / 0.6679 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001548/0.1505, allocations: 116.9 kB / 0.668 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.741e-05/0.1506, allocations: 180.3 kB / 0.6682 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/0.1507, allocations: 104.9 kB / 0.6683 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.355e-05/0.1507, allocations: 87.28 kB / 0.6684 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.693e-06/0.1507, allocations: 0 / 0.6684 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002512/0.151, allocations: 31.8 kB / 0.6684 GB, free: 0.8008 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.0004877/0.1515, allocations: 0.8282 MB / 0.6692 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 7.656e-05/0.1516, allocations: 16 kB / 0.6692 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1516, allocations: 0 / 0.6692 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.513e-06/0.1516, allocations: 0 / 0.6692 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003772/0.1519, allocations: 465.1 kB / 0.6697 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009484/0.1529, allocations: 1.309 MB / 0.6709 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.1532, allocations: 0.6806 MB / 0.6716 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.976e-05/0.1532, allocations: 5.531 kB / 0.6716 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.263e-05/0.1532, allocations: 11.44 kB / 0.6716 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of SimCode: time 3.81e-07/0.1532, allocations: 0 / 0.6716 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01807/0.1713, allocations: 1.515 MB / 0.6731 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.119/7.291, allocations: 9.266 kB / 0.6731 GB, free: 11.98 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)