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.007339/0.007339, allocations: 99.28 kB / 15.73 MB, free: 5.949 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.001808/0.001808, allocations: 197.1 kB / 16.68 MB, free: 5.875 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.297/1.297, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7944/0.7944, allocations: 132.2 MB / 422.7 MB, free: 6.555 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 61.02 kB / 0.5808 GB, free: 24.09 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1486, allocations: 80.21 MB / 0.6592 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.006175/0.1549, allocations: 4.028 MB / 0.6631 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002068/0.1551, allocations: 155.5 kB / 0.6632 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.021e-05/0.1552, allocations: 0 / 0.6632 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001155/0.1553, allocations: 11.94 kB / 0.6633 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.449e-05/0.1554, allocations: 11.91 kB / 0.6633 GB, free: 6.543 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003736/0.1558, allocations: 82.88 kB / 0.6633 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.64e-05/0.1559, allocations: 35.78 kB / 0.6634 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.25e-05/0.1559, allocations: 8 kB / 0.6634 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.289e-05/0.156, allocations: 11.98 kB / 0.6634 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.691e-05/0.1561, allocations: 15.98 kB / 0.6634 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.1561, allocations: 0 / 0.6634 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002107/0.1563, allocations: 55.81 kB / 0.6635 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.01e-05/0.1564, allocations: 15.86 kB / 0.6635 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.565e-05/0.1564, allocations: 11.98 kB / 0.6635 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001416/0.1566, allocations: 38.72 kB / 0.6635 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1566, allocations: 0 / 0.6635 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.232e-06/0.1566, allocations: 0 / 0.6635 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.1566, allocations: 0 / 0.6635 GB, free: 6.277 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.0004326/0.157, allocations: 335.6 kB / 0.6638 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.1571, allocations: 12.03 kB / 0.6639 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.312e-05/0.1571, allocations: 42.72 kB / 0.6639 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.918e-05/0.1572, allocations: 4.844 kB / 0.6639 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.1573, allocations: 165.2 kB / 0.6641 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.985e-05/0.1574, allocations: 30.25 kB / 0.6641 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.1574, allocations: 4.125 kB / 0.6641 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001425/0.1575, allocations: 41.69 kB / 0.6641 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.1576, allocations: 0 / 0.6641 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.1576, allocations: 11.98 kB / 0.6641 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.01e-05/0.1576, allocations: 3.938 kB / 0.6642 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.521e-05/0.1577, allocations: 12 kB / 0.6642 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004469/0.1581, allocations: 334 kB / 0.6645 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.289e-05/0.1582, allocations: 18.58 kB / 0.6645 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.754e-05/0.1582, allocations: 8.844 kB / 0.6645 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.197e-05/0.1583, allocations: 97.11 kB / 0.6646 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.1583, allocations: 34.5 kB / 0.6646 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1583, allocations: 0 / 0.6646 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001529/0.1585, allocations: 33.69 kB / 0.6647 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.553e-05/0.1585, allocations: 51.41 kB / 0.6647 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.019e-05/0.1586, allocations: 101.9 kB / 0.6648 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.1586, allocations: 25.7 kB / 0.6648 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.299e-05/0.1587, allocations: 88.16 kB / 0.6649 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.153e-06/0.1587, allocations: 11.91 kB / 0.6649 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-05/0.1588, allocations: 17.72 kB / 0.6649 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1589, allocations: 314.8 kB / 0.6652 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.802e-05/0.1589, allocations: 0 / 0.6652 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.627e-05/0.1589, allocations: 25.64 kB / 0.6653 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.469e-05/0.159, allocations: 25.66 kB / 0.6653 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.159, allocations: 0 / 0.6653 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.86e-05/0.1591, allocations: 49.62 kB / 0.6653 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.1591, allocations: 8 kB / 0.6654 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1591, allocations: 0 / 0.6654 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.1591, allocations: 0 / 0.6654 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.949e-05/0.1592, allocations: 4 kB / 0.6654 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.1592, allocations: 4 kB / 0.6654 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.823e-05/0.1592, allocations: 0 / 0.6654 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.1592, allocations: 3.984 kB / 0.6654 GB, free: 4.113 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.9e-05/0.1593, allocations: 121.8 kB / 0.6655 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.825e-05/0.1593, allocations: 0 / 0.6655 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.1595, allocations: 116.9 kB / 0.6656 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.32e-05/0.1595, allocations: 184.2 kB / 0.6658 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.679e-05/0.1596, allocations: 176.3 kB / 0.6659 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.158e-05/0.1597, allocations: 192.2 kB / 0.6661 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002372/0.1599, allocations: 413.1 kB / 0.6665 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-05/0.16, allocations: 108.9 kB / 0.6666 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.281e-05/0.16, allocations: 101 kB / 0.6667 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.288e-05/0.1601, allocations: 176.3 kB / 0.6669 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.529e-05/0.1601, allocations: 188.2 kB / 0.6671 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-05/0.1602, allocations: 180.3 kB / 0.6672 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.684e-05/0.1603, allocations: 180.2 kB / 0.6674 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.1604, allocations: 312 kB / 0.6677 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.495e-05/0.1605, allocations: 182 kB / 0.6679 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.771e-05/0.1606, allocations: 184.3 kB / 0.6681 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.1607, allocations: 116.9 kB / 0.6682 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.722e-05/0.1608, allocations: 180.3 kB / 0.6683 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.214e-05/0.1608, allocations: 104.9 kB / 0.6684 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.415e-05/0.1609, allocations: 79.28 kB / 0.6685 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1609, allocations: 0 / 0.6685 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002594/0.1611, allocations: 31.86 kB / 0.6685 GB, free: 0.6367 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.0005838/0.1617, allocations: 0.8205 MB / 0.6693 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 8.043e-05/0.1618, allocations: 23.94 kB / 0.6694 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.1618, allocations: 0 / 0.6694 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.493e-06/0.1618, allocations: 0 / 0.6694 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003914/0.1622, allocations: 459.7 kB / 0.6698 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.1633, allocations: 1.321 MB / 0.6711 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.1636, allocations: 0.6729 MB / 0.6717 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.978e-05/0.1636, allocations: 8 kB / 0.6718 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.561e-05/0.1637, allocations: 7.438 kB / 0.6718 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of SimCode: time 3.5e-07/0.1637, allocations: 0 / 0.6718 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02424/0.1879, allocations: 1.495 MB / 0.6732 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.618/7.806, allocations: 14.5 kB / 0.6732 GB, free: 11.79 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > IDEAS_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)