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.005363/0.005363, allocations: 96.88 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.001868/0.001868, allocations: 193 kB / 16.67 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.353/1.353, 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.8172/0.8172, allocations: 132.2 MB / 422.7 MB, free: 6.586 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 68.83 kB / 0.5808 GB, free: 24.24 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1529, allocations: 80.2 MB / 0.6592 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005482/0.1584, allocations: 4.023 MB / 0.6631 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002773/0.1587, allocations: 163.5 kB / 0.6633 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.584e-05/0.1587, allocations: 0 / 0.6633 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.246e-05/0.1588, allocations: 3.938 kB / 0.6633 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.925e-05/0.1589, allocations: 15.91 kB / 0.6633 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003116/0.1592, allocations: 78 kB / 0.6633 GB, free: 6.559 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.703e-05/0.1593, allocations: 39.84 kB / 0.6634 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.508e-05/0.1594, allocations: 3.938 kB / 0.6634 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.876e-05/0.1594, allocations: 16 kB / 0.6634 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.121e-05/0.1595, allocations: 11.97 kB / 0.6634 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.1595, allocations: 0 / 0.6634 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001863/0.1597, allocations: 59.81 kB / 0.6635 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.872e-05/0.1597, allocations: 0 / 0.6635 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.97e-05/0.1598, allocations: 19.91 kB / 0.6635 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001256/0.1599, allocations: 40.12 kB / 0.6635 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1599, allocations: 4 kB / 0.6635 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.232e-06/0.1599, allocations: 0 / 0.6635 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.1599, allocations: 4 kB / 0.6635 GB, free: 6.363 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.0004179/0.1603, allocations: 339.3 kB / 0.6639 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.1604, allocations: 8.031 kB / 0.6639 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.278e-05/0.1604, allocations: 30.75 kB / 0.6639 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/0.1605, allocations: 4.938 kB / 0.6639 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.1606, allocations: 164.4 kB / 0.6641 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.726e-05/0.1607, allocations: 38.25 kB / 0.6641 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.845e-06/0.1607, allocations: 8.125 kB / 0.6641 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001248/0.1608, allocations: 37.69 kB / 0.6641 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.403e-06/0.1608, allocations: 0 / 0.6641 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.1609, allocations: 0 / 0.6641 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.696e-05/0.1609, allocations: 4 kB / 0.6641 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.357e-05/0.1609, allocations: 19.92 kB / 0.6642 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004325/0.1614, allocations: 334 kB / 0.6645 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.155e-05/0.1614, allocations: 18.58 kB / 0.6645 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.569e-05/0.1614, allocations: 8.922 kB / 0.6645 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.1615, allocations: 85.09 kB / 0.6646 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.1616, allocations: 34.55 kB / 0.6646 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.103e-06/0.1616, allocations: 0 / 0.6646 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001439/0.1617, allocations: 45.59 kB / 0.6647 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/0.1618, allocations: 59.47 kB / 0.6647 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.7e-05/0.1619, allocations: 101.8 kB / 0.6648 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.1619, allocations: 29.7 kB / 0.6648 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.941e-05/0.162, allocations: 88.03 kB / 0.6649 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.158e-06/0.162, allocations: 0 / 0.6649 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.497e-05/0.162, allocations: 21.7 kB / 0.665 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1621, allocations: 314.8 kB / 0.6653 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.491e-05/0.1622, allocations: 4 kB / 0.6653 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.568e-05/0.1622, allocations: 21.7 kB / 0.6653 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.796e-05/0.1622, allocations: 29.59 kB / 0.6653 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1622, allocations: 0 / 0.6653 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.773e-05/0.1623, allocations: 45.69 kB / 0.6653 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.1624, allocations: 5.875 kB / 0.6654 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.1624, allocations: 3.938 kB / 0.6654 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.1624, allocations: 8.062 kB / 0.6654 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.814e-05/0.1624, allocations: 4 kB / 0.6654 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-06/0.1624, allocations: 0 / 0.6654 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.907e-05/0.1625, allocations: 3.953 kB / 0.6654 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.1625, allocations: 4 kB / 0.6654 GB, free: 4.195 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.681e-05/0.1626, allocations: 113.8 kB / 0.6655 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.718e-05/0.1626, allocations: 8 kB / 0.6655 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000109/0.1627, allocations: 113 kB / 0.6656 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-05/0.1628, allocations: 184.2 kB / 0.6658 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-05/0.1629, allocations: 180.2 kB / 0.6659 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.722e-05/0.163, allocations: 188.2 kB / 0.6661 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002668/0.1632, allocations: 405.2 kB / 0.6665 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-05/0.1633, allocations: 105 kB / 0.6666 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.322e-05/0.1633, allocations: 108.9 kB / 0.6667 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.243e-05/0.1634, allocations: 184.3 kB / 0.6669 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.264e-05/0.1635, allocations: 180.2 kB / 0.6671 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.834e-05/0.1636, allocations: 180.2 kB / 0.6672 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.837e-05/0.1637, allocations: 180.2 kB / 0.6674 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001598/0.1638, allocations: 307.8 kB / 0.6677 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.817e-05/0.1639, allocations: 190 kB / 0.6679 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.553e-05/0.164, allocations: 176.3 kB / 0.6681 GB, free: 1.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.1642, allocations: 108.9 kB / 0.6682 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.667e-05/0.1643, allocations: 184.2 kB / 0.6683 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.487e-05/0.1644, allocations: 108.9 kB / 0.6684 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.565e-05/0.1644, allocations: 83.28 kB / 0.6685 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1644, allocations: 0 / 0.6685 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002499/0.1647, allocations: 19.88 kB / 0.6685 GB, free: 0.7383 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.0005799/0.1653, allocations: 0.8398 MB / 0.6694 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 6.805e-05/0.1653, allocations: 8 kB / 0.6694 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.1653, allocations: 3.938 kB / 0.6694 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 2.996e-06/0.1654, allocations: 7.938 kB / 0.6694 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004521/0.1658, allocations: 455.8 kB / 0.6698 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.1669, allocations: 1.321 MB / 0.6711 GB, free: 14 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.1672, allocations: 0.6729 MB / 0.6718 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.203e-05/0.1673, allocations: 11.98 kB / 0.6718 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.205e-05/0.1673, allocations: 7.438 kB / 0.6718 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of SimCode: time 2.2e-07/0.1673, allocations: 0 / 0.6718 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1486/0.3159, allocations: 1.496 MB / 0.6732 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.967/9.283, allocations: 12.67 kB / 0.6732 GB, free: 11.89 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)