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.004735/0.004735, allocations: 94.86 kB / 15.73 MB, free: 6.039 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.001119/0.001119, allocations: 192.1 kB / 16.68 MB, free: 5.969 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7578/0.7578, allocations: 132.2 MB / 422.7 MB, free: 1.715 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 62.2 kB / 0.5809 GB, free: 1.117 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1618, allocations: 80.2 MB / 0.6592 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005831/0.1676, allocations: 4.015 MB / 0.6631 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0001891/0.1678, allocations: 155.5 kB / 0.6632 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.577e-05/0.1679, allocations: 0 / 0.6632 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.341e-05/0.168, allocations: 4 kB / 0.6632 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.478e-05/0.1681, allocations: 15.91 kB / 0.6633 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003455/0.1684, allocations: 86.81 kB / 0.6633 GB, free: 9.727 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.956e-05/0.1685, allocations: 35.84 kB / 0.6634 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.81e-05/0.1686, allocations: 7.938 kB / 0.6634 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.767e-05/0.1686, allocations: 15.92 kB / 0.6634 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.276e-05/0.1687, allocations: 11.98 kB / 0.6634 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.038e-05/0.1687, allocations: 0 / 0.6634 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.1689, allocations: 59.81 kB / 0.6635 GB, free: 9.598 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.401e-05/0.1689, allocations: 7.984 kB / 0.6635 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.983e-05/0.169, allocations: 15.92 kB / 0.6635 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001398/0.1691, allocations: 44.12 kB / 0.6635 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1691, allocations: 0 / 0.6635 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.202e-06/0.1691, allocations: 0 / 0.6635 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.1691, allocations: 0 / 0.6635 GB, free: 9.531 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.0004678/0.1696, allocations: 339.4 kB / 0.6639 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.1697, allocations: 12.03 kB / 0.6639 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.288e-05/0.1697, allocations: 34.75 kB / 0.6639 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.951e-05/0.1698, allocations: 0.9375 kB / 0.6639 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001488/0.1699, allocations: 168.4 kB / 0.6641 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.797e-05/0.17, allocations: 26.27 kB / 0.6641 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.013e-05/0.17, allocations: 4.125 kB / 0.6641 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/0.1702, allocations: 57.59 kB / 0.6641 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.1702, allocations: 0 / 0.6641 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.1703, allocations: 0 / 0.6641 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.303e-05/0.1703, allocations: 0 / 0.6641 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.995e-05/0.1703, allocations: 19.98 kB / 0.6642 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005088/0.1709, allocations: 330 kB / 0.6645 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.122e-05/0.1709, allocations: 26.52 kB / 0.6645 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.71e-05/0.1709, allocations: 4.859 kB / 0.6645 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.699e-05/0.171, allocations: 85.17 kB / 0.6646 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.1711, allocations: 34.56 kB / 0.6646 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.482e-06/0.1711, allocations: 0 / 0.6646 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001834/0.1713, allocations: 37.64 kB / 0.6647 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.1713, allocations: 55.41 kB / 0.6647 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.915e-05/0.1714, allocations: 101.8 kB / 0.6648 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.1715, allocations: 29.64 kB / 0.6648 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.426e-05/0.1715, allocations: 96.03 kB / 0.6649 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.069e-06/0.1715, allocations: 0 / 0.6649 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.002e-05/0.1716, allocations: 17.84 kB / 0.665 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1717, allocations: 314.8 kB / 0.6653 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.961e-05/0.1717, allocations: 11.98 kB / 0.6653 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.763e-05/0.1718, allocations: 13.72 kB / 0.6653 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.386e-05/0.1718, allocations: 21.66 kB / 0.6653 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.1718, allocations: 4 kB / 0.6653 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.192e-05/0.1719, allocations: 57.56 kB / 0.6654 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.172, allocations: 8 kB / 0.6654 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.172, allocations: 0 / 0.6654 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.172, allocations: 0 / 0.6654 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.006e-05/0.172, allocations: 7.984 kB / 0.6654 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.172, allocations: 4 kB / 0.6654 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.307e-05/0.1721, allocations: 3.953 kB / 0.6654 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.1721, allocations: 0 / 0.6654 GB, free: 7.359 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 8.507e-05/0.1722, allocations: 117.8 kB / 0.6655 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.1722, allocations: 0 / 0.6655 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001303/0.1724, allocations: 124.9 kB / 0.6656 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.453e-05/0.1724, allocations: 176.3 kB / 0.6658 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.073e-05/0.1725, allocations: 180.2 kB / 0.6659 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.892e-05/0.1726, allocations: 184.3 kB / 0.6661 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002634/0.1729, allocations: 413.1 kB / 0.6665 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.973e-05/0.1729, allocations: 105 kB / 0.6666 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.399e-05/0.173, allocations: 105 kB / 0.6667 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.718e-05/0.1731, allocations: 180.2 kB / 0.6669 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.497e-05/0.1731, allocations: 176.3 kB / 0.6671 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.614e-05/0.1732, allocations: 188.2 kB / 0.6672 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.325e-05/0.1733, allocations: 180.3 kB / 0.6674 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000166/0.1735, allocations: 307.7 kB / 0.6677 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.008e-05/0.1736, allocations: 182.1 kB / 0.6679 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.1737, allocations: 184.2 kB / 0.6681 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.1738, allocations: 109 kB / 0.6682 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.245e-05/0.1739, allocations: 184.2 kB / 0.6683 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.808e-05/0.174, allocations: 101 kB / 0.6684 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.349e-05/0.174, allocations: 87.27 kB / 0.6685 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.174, allocations: 0 / 0.6685 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00028/0.1743, allocations: 19.88 kB / 0.6685 GB, free: 3.906 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.0005141/0.1748, allocations: 0.8359 MB / 0.6693 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 6.901e-05/0.1749, allocations: 8 kB / 0.6694 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1749, allocations: 3.938 kB / 0.6694 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 3.687e-06/0.1749, allocations: 8.109 kB / 0.6694 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004008/0.1753, allocations: 467.8 kB / 0.6698 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.1765, allocations: 1.313 MB / 0.6711 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002954/0.1768, allocations: 0.6807 MB / 0.6718 GB, free: 468 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.421e-05/0.1769, allocations: 10.83 kB / 0.6718 GB, free: 460 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.751e-05/0.1769, allocations: 11.44 kB / 0.6718 GB, free: 448 kB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1769, allocations: 0 / 0.6718 GB, free: 448 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01653/0.1935, allocations: 1.488 MB / 0.6732 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.287/7.481, allocations: 4.281 kB / 0.6732 GB, free: 15.07 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)