Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.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.WaterTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_dev_IDEAS_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_dev_IDEAS_Media_Examples_WaterTemperatureEnthalpyInversion",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.008117/0.008117, allocations: 102.1 kB / 15.73 MB, free: 5.516 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.002069/0.00207, allocations: 202.2 kB / 16.68 MB, free: 5.445 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.478/1.478, allocations: 222.9 MB / 240.4 MB, free: 14.95 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8569/0.8569, allocations: 135.6 MB / 426.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 64.22 kB / 0.5857 GB, free: 21.47 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1553, allocations: 81.04 MB / 0.6649 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.00595/0.1613, allocations: 4.006 MB / 0.6688 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002107/0.1615, allocations: 159.5 kB / 0.6689 GB, free: 1.422 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.441e-05/0.1616, allocations: 0 / 0.6689 GB, free: 1.422 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 8.951e-05/0.1617, allocations: 0 / 0.6689 GB, free: 1.422 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.442e-05/0.1618, allocations: 11.92 kB / 0.6689 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003447/0.1621, allocations: 87.69 kB / 0.669 GB, free: 1.324 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.358e-05/0.1622, allocations: 35.84 kB / 0.669 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.665e-05/0.1623, allocations: 0 / 0.669 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.41e-05/0.1623, allocations: 23.91 kB / 0.6691 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.604e-05/0.1624, allocations: 4 kB / 0.6691 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.413e-05/0.1624, allocations: 4 kB / 0.6691 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001791/0.1626, allocations: 55.81 kB / 0.6691 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.469e-05/0.1627, allocations: 19.91 kB / 0.6691 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.512e-05/0.1627, allocations: 8 kB / 0.6692 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001318/0.1628, allocations: 44.11 kB / 0.6692 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.1628, allocations: 4 kB / 0.6692 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.623e-06/0.1628, allocations: 0 / 0.6692 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.1628, allocations: 0 / 0.6692 GB, free: 1.129 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.0003975/0.1632, allocations: 335.4 kB / 0.6695 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.1633, allocations: 9.109 kB / 0.6695 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.994e-05/0.1633, allocations: 38.75 kB / 0.6696 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.841e-05/0.1634, allocations: 4.891 kB / 0.6696 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.1635, allocations: 168.3 kB / 0.6697 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.565e-05/0.1636, allocations: 30.27 kB / 0.6698 GB, free: 468 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.854e-06/0.1636, allocations: 4.125 kB / 0.6698 GB, free: 464 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000125/0.1637, allocations: 45.67 kB / 0.6698 GB, free: 412 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.1637, allocations: 0 / 0.6698 GB, free: 412 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.1638, allocations: 4 kB / 0.6698 GB, free: 408 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.1638, allocations: 0 / 0.6698 GB, free: 408 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.242e-05/0.1638, allocations: 11.98 kB / 0.6698 GB, free: 396 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004411/0.1643, allocations: 338 kB / 0.6701 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 3.832e-05/0.1643, allocations: 18.52 kB / 0.6702 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.734e-05/0.1644, allocations: 12.92 kB / 0.6702 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 9.314e-05/0.1645, allocations: 85.05 kB / 0.6703 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.1645, allocations: 30.56 kB / 0.6703 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.1645, allocations: 4 kB / 0.6703 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001588/0.1647, allocations: 37.69 kB / 0.6703 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.969e-05/0.1647, allocations: 55.34 kB / 0.6704 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.134e-05/0.1648, allocations: 109.8 kB / 0.6705 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.1648, allocations: 25.7 kB / 0.6705 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 6.245e-05/0.1649, allocations: 88.03 kB / 0.6706 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 7.895e-06/0.1649, allocations: 7.953 kB / 0.6706 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.093e-05/0.1649, allocations: 13.72 kB / 0.6706 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1651, allocations: 318.9 kB / 0.6709 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.042e-05/0.1651, allocations: 7.984 kB / 0.6709 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.512e-05/0.1651, allocations: 21.66 kB / 0.6709 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.438e-05/0.1652, allocations: 21.72 kB / 0.671 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1652, allocations: 0 / 0.671 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.632e-05/0.1653, allocations: 45.69 kB / 0.671 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.1653, allocations: 8 kB / 0.671 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.1653, allocations: 0 / 0.671 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.1653, allocations: 4 kB / 0.671 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.126e-05/0.1654, allocations: 7.984 kB / 0.671 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.1654, allocations: 0 / 0.671 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.006e-05/0.1654, allocations: 4 kB / 0.671 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.1654, allocations: 4 kB / 0.671 GB, free: 14.96 MB / 0.5137 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.928e-05/0.1655, allocations: 113.7 kB / 0.6711 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.918e-05/0.1655, allocations: 7.953 kB / 0.6712 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.1657, allocations: 121 kB / 0.6713 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.199e-05/0.1658, allocations: 184.2 kB / 0.6714 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.46e-05/0.1658, allocations: 176.3 kB / 0.6716 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.789e-05/0.1659, allocations: 180.3 kB / 0.6718 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002994/0.1662, allocations: 417.1 kB / 0.6722 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-05/0.1663, allocations: 101 kB / 0.6723 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.333e-05/0.1663, allocations: 104.9 kB / 0.6724 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.033e-05/0.1664, allocations: 184.2 kB / 0.6726 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.542e-05/0.1665, allocations: 176.3 kB / 0.6727 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.787e-05/0.1666, allocations: 184.2 kB / 0.6729 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.408e-05/0.1667, allocations: 184.3 kB / 0.6731 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001615/0.1669, allocations: 311.7 kB / 0.6734 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 8.786e-05/0.167, allocations: 182 kB / 0.6735 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.586e-05/0.1671, allocations: 184.2 kB / 0.6737 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001674/0.1672, allocations: 113 kB / 0.6738 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.504e-05/0.1673, allocations: 180.2 kB / 0.674 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.532e-05/0.1674, allocations: 101 kB / 0.6741 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 5.431e-05/0.1675, allocations: 91.27 kB / 0.6742 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.41e-07/0.1675, allocations: 0 / 0.6742 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002446/0.1677, allocations: 19.88 kB / 0.6742 GB, free: 11.5 MB / 0.5137 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.0005894/0.1683, allocations: 0.836 MB / 0.675 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 6.316e-05/0.1684, allocations: 11.94 kB / 0.675 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1684, allocations: 0 / 0.675 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.472e-06/0.1684, allocations: 0 / 0.675 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004209/0.1688, allocations: 471.7 kB / 0.6755 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.1699, allocations: 1.313 MB / 0.6768 GB, free: 8.762 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.1703, allocations: 0.6768 MB / 0.6774 GB, free: 8.059 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.143e-05/0.1703, allocations: 11.86 kB / 0.6774 GB, free: 8.047 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.366e-05/0.1704, allocations: 7.438 kB / 0.6774 GB, free: 8.039 MB / 0.5137 GB Notification: Performance of SimCode: time 2.5e-07/0.1704, allocations: 4 kB / 0.6774 GB, free: 8.035 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02102/0.1914, allocations: 1.504 MB / 0.6789 GB, free: 6.621 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.95/8.141, allocations: 11.34 kB / 0.6789 GB, free: 6.613 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion_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_WaterTemperatureEnthalpyInversion.fmu > IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)