Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.WaterTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_IDEAS_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_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.006243/0.006243, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001302/0.001302, allocations: 194.9 kB / 16.67 MB, free: 5.977 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.467/1.467, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.812/0.812, allocations: 132.2 MB / 422.7 MB, free: 1.68 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 63.84 kB / 0.5808 GB, free: 1.109 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1497, allocations: 80.21 MB / 0.6592 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005289/0.155, allocations: 4.018 MB / 0.6631 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0001949/0.1552, allocations: 155.5 kB / 0.6633 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.253e-05/0.1553, allocations: 0 / 0.6633 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 8.123e-05/0.1554, allocations: 3.938 kB / 0.6633 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.683e-05/0.1554, allocations: 19.91 kB / 0.6633 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003088/0.1558, allocations: 78.62 kB / 0.6634 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.936e-05/0.1559, allocations: 43.78 kB / 0.6634 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.344e-05/0.1559, allocations: 0 / 0.6634 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.61e-05/0.1559, allocations: 15.98 kB / 0.6634 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.048e-05/0.156, allocations: 11.98 kB / 0.6634 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.1e-05/0.156, allocations: 0 / 0.6634 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000182/0.1562, allocations: 59.75 kB / 0.6635 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.102e-05/0.1563, allocations: 11.92 kB / 0.6635 GB, free: 9.523 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.451e-05/0.1563, allocations: 11.98 kB / 0.6635 GB, free: 9.512 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.1564, allocations: 40.12 kB / 0.6635 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1564, allocations: 4 kB / 0.6635 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.213e-06/0.1564, allocations: 0 / 0.6635 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.1565, allocations: 4 kB / 0.6635 GB, free: 9.465 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.0004037/0.1569, allocations: 339.4 kB / 0.6639 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.1569, allocations: 12.02 kB / 0.6639 GB, free: 9.074 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.368e-05/0.1569, allocations: 30.75 kB / 0.6639 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.864e-05/0.157, allocations: 4.938 kB / 0.6639 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/0.1571, allocations: 160.4 kB / 0.6641 GB, free: 8.836 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.817e-05/0.1572, allocations: 34.27 kB / 0.6641 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.605e-06/0.1572, allocations: 4.125 kB / 0.6641 GB, free: 8.793 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001314/0.1573, allocations: 45.67 kB / 0.6641 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.1573, allocations: 0 / 0.6641 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.1574, allocations: 3.938 kB / 0.6642 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.1574, allocations: 7.938 kB / 0.6642 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.631e-05/0.1574, allocations: 15.98 kB / 0.6642 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004234/0.1579, allocations: 334 kB / 0.6645 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.452e-05/0.1579, allocations: 18.58 kB / 0.6645 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.308e-05/0.1579, allocations: 8.922 kB / 0.6645 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.643e-05/0.158, allocations: 81.11 kB / 0.6646 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.1581, allocations: 34.5 kB / 0.6646 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1581, allocations: 0 / 0.6646 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001288/0.1582, allocations: 41.64 kB / 0.6647 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.1583, allocations: 59.53 kB / 0.6647 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.373e-05/0.1583, allocations: 97.84 kB / 0.6648 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.1584, allocations: 29.7 kB / 0.6648 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.608e-05/0.1584, allocations: 96.02 kB / 0.6649 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.188e-06/0.1584, allocations: 0 / 0.6649 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.204e-05/0.1585, allocations: 13.72 kB / 0.665 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1586, allocations: 318.8 kB / 0.6653 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.858e-05/0.1586, allocations: 7.984 kB / 0.6653 GB, free: 7.438 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.591e-05/0.1587, allocations: 25.59 kB / 0.6653 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.677e-05/0.1587, allocations: 21.72 kB / 0.6653 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1587, allocations: 0 / 0.6653 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.225e-05/0.1588, allocations: 49.62 kB / 0.6654 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.1588, allocations: 4 kB / 0.6654 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-06/0.1588, allocations: 0 / 0.6654 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.1588, allocations: 8.062 kB / 0.6654 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.029e-05/0.1589, allocations: 7.984 kB / 0.6654 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.227e-06/0.1589, allocations: 0 / 0.6654 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.941e-05/0.1589, allocations: 3.953 kB / 0.6654 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.1589, allocations: 4 kB / 0.6654 GB, free: 7.297 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.229e-05/0.159, allocations: 109.8 kB / 0.6655 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.651e-05/0.159, allocations: 4 kB / 0.6655 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000114/0.1592, allocations: 124.9 kB / 0.6656 GB, free: 7.043 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.633e-05/0.1592, allocations: 180.3 kB / 0.6658 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.011e-05/0.1593, allocations: 176.3 kB / 0.666 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.383e-05/0.1594, allocations: 184.2 kB / 0.6661 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000252/0.1596, allocations: 409.2 kB / 0.6665 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.253e-05/0.1597, allocations: 104.9 kB / 0.6666 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.629e-05/0.1598, allocations: 112.9 kB / 0.6667 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.595e-05/0.1598, allocations: 188.2 kB / 0.6669 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.145e-05/0.1599, allocations: 176.3 kB / 0.6671 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.786e-05/0.16, allocations: 180.3 kB / 0.6672 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.286e-05/0.1601, allocations: 180.2 kB / 0.6674 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000155/0.1602, allocations: 315.7 kB / 0.6677 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.249e-05/0.1603, allocations: 182.1 kB / 0.6679 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.564e-05/0.1604, allocations: 176.3 kB / 0.6681 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.1606, allocations: 112.9 kB / 0.6682 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.903e-05/0.1607, allocations: 180.3 kB / 0.6683 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.533e-05/0.1607, allocations: 104.9 kB / 0.6684 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.175e-05/0.1608, allocations: 91.27 kB / 0.6685 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1608, allocations: 0 / 0.6685 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002398/0.161, allocations: 19.88 kB / 0.6685 GB, free: 3.836 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.0005527/0.1616, allocations: 0.8321 MB / 0.6694 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 6.461e-05/0.1617, allocations: 11.88 kB / 0.6694 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1617, allocations: 0 / 0.6694 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 3.636e-06/0.1617, allocations: 4 kB / 0.6694 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000402/0.1621, allocations: 463.8 kB / 0.6698 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.1631, allocations: 1.317 MB / 0.6711 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.1634, allocations: 0.6768 MB / 0.6718 GB, free: 408 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.628e-05/0.1635, allocations: 4 kB / 0.6718 GB, free: 404 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.035e-05/0.1635, allocations: 11.44 kB / 0.6718 GB, free: 392 kB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1635, allocations: 0 / 0.6718 GB, free: 392 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0217/0.1852, allocations: 1.495 MB / 0.6732 GB, free: 15 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.822/8.007, allocations: 4.031 kB / 0.6732 GB, free: 15 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > IDEAS_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)