Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: translateModel(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001525/0.001525, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.374/1.374, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001981/0.001982, allocations: 286.5 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9364/0.9364, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 92.75 kB / 0.5952 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1488, allocations: 86.99 MB / 0.6802 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.4096/0.5584, allocations: 135.4 MB / 0.8124 GB, free: 2.543 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001433/0.5586, allocations: 49.47 kB / 0.8125 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.467e-05/0.5586, allocations: 0 / 0.8125 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.778e-05/0.5587, allocations: 3.938 kB / 0.8125 GB, free: 2.535 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.899e-05/0.5588, allocations: 19.84 kB / 0.8125 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000737/0.5596, allocations: 237.6 kB / 0.8127 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.284e-05/0.5596, allocations: 36.98 kB / 0.8127 GB, free: 2.477 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.544e-05/0.5597, allocations: 4 kB / 0.8127 GB, free: 2.473 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.777e-05/0.5597, allocations: 14.81 kB / 0.8128 GB, free: 2.473 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.783e-05/0.5598, allocations: 10.64 kB / 0.8128 GB, free: 2.473 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.103e-05/0.5598, allocations: 1.094 kB / 0.8128 GB, free: 2.473 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000465/0.5603, allocations: 249.5 kB / 0.813 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.043e-05/0.5603, allocations: 9 kB / 0.813 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.551e-05/0.5604, allocations: 13.95 kB / 0.813 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003555/0.5607, allocations: 187.4 kB / 0.8132 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.5607, allocations: 2.359 kB / 0.8132 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.273e-06/0.5607, allocations: 0 / 0.8132 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.5607, allocations: 0 / 0.8132 GB, free: 2.434 MB / 0.5606 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.0004863/0.5612, allocations: 358.6 kB / 0.8135 GB, free: 18.07 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.5613, allocations: 11.52 kB / 0.8136 GB, free: 18.07 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.56e-05/0.5613, allocations: 2.812 kB / 0.8136 GB, free: 18.07 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.5614, allocations: 163.8 kB / 0.8137 GB, free: 17.87 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.401e-05/0.5615, allocations: 30.02 kB / 0.8137 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.5615, allocations: 9.219 kB / 0.8138 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.5616, allocations: 43.22 kB / 0.8138 GB, free: 17.8 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.084e-06/0.5616, allocations: 4 kB / 0.8138 GB, free: 17.8 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.5617, allocations: 0 / 0.8138 GB, free: 17.8 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.636e-05/0.5617, allocations: 3.75 kB / 0.8138 GB, free: 17.8 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.118e-05/0.5617, allocations: 18.56 kB / 0.8138 GB, free: 17.79 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007046/0.5624, allocations: 0.5996 MB / 0.8144 GB, free: 17.15 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 2.637e-05/0.5625, allocations: 16.45 kB / 0.8144 GB, free: 17.12 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.237e-05/0.5625, allocations: 10.7 kB / 0.8144 GB, free: 17.11 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001898/0.5627, allocations: 339.4 kB / 0.8148 GB, free: 16.74 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.5627, allocations: 30.56 kB / 0.8148 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.573e-06/0.5627, allocations: 0 / 0.8148 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001331/0.5629, allocations: 38.3 kB / 0.8148 GB, free: 16.66 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.5629, allocations: 51.41 kB / 0.8149 GB, free: 16.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.487e-05/0.563, allocations: 106.9 kB / 0.815 GB, free: 16.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.563, allocations: 29.83 kB / 0.815 GB, free: 16.47 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.839e-05/0.5631, allocations: 91.23 kB / 0.8151 GB, free: 16.38 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.25e-06/0.5631, allocations: 3.438 kB / 0.8151 GB, free: 16.38 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.704e-05/0.5631, allocations: 17 kB / 0.8151 GB, free: 16.36 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.989e-05/0.5632, allocations: 323.3 kB / 0.8154 GB, free: 16.04 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.443e-05/0.5632, allocations: 3.219 kB / 0.8154 GB, free: 16.04 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.913e-05/0.5632, allocations: 15.19 kB / 0.8154 GB, free: 16.03 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.785e-05/0.5633, allocations: 25.22 kB / 0.8155 GB, free: 16 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.5633, allocations: 1.656 kB / 0.8155 GB, free: 16 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.615e-05/0.5634, allocations: 54.7 kB / 0.8155 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.5634, allocations: 7.469 kB / 0.8155 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-06/0.5634, allocations: 0 / 0.8155 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.5634, allocations: 0 / 0.8155 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.994e-05/0.5635, allocations: 6.812 kB / 0.8155 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.5635, allocations: 0 / 0.8155 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.726e-05/0.5635, allocations: 5.844 kB / 0.8155 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.914e-06/0.5635, allocations: 2.688 kB / 0.8155 GB, free: 15.96 MB / 0.5762 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 6.604e-05/0.5636, allocations: 115.4 kB / 0.8156 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.651e-05/0.5636, allocations: 1.969 kB / 0.8156 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/0.5637, allocations: 122.7 kB / 0.8158 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.017e-05/0.5638, allocations: 179.5 kB / 0.8159 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.504e-05/0.5638, allocations: 183.5 kB / 0.8161 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.508e-05/0.5639, allocations: 180.3 kB / 0.8163 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.5641, allocations: 415.1 kB / 0.8167 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.093e-05/0.5641, allocations: 104.9 kB / 0.8168 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.774e-05/0.5642, allocations: 101 kB / 0.8169 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.018e-05/0.5642, allocations: 184.4 kB / 0.817 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.884e-05/0.5643, allocations: 190.6 kB / 0.8172 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.595e-05/0.5644, allocations: 178.8 kB / 0.8174 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.661e-05/0.5644, allocations: 180.2 kB / 0.8176 GB, free: 13.78 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.5645, allocations: 315.3 kB / 0.8179 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.893e-05/0.5646, allocations: 179.8 kB / 0.818 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.115e-05/0.5647, allocations: 182 kB / 0.8182 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00014/0.5648, allocations: 111 kB / 0.8183 GB, free: 12.97 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.706e-05/0.5649, allocations: 183.8 kB / 0.8185 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.789e-05/0.5649, allocations: 104.9 kB / 0.8186 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.303e-05/0.565, allocations: 84.44 kB / 0.8187 GB, free: 12.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.1e-07/0.565, allocations: 0 / 0.8187 GB, free: 12.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002965/0.5653, allocations: 65.81 kB / 0.8187 GB, free: 12.58 MB / 0.5762 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.0003026/0.5656, allocations: 258.8 kB / 0.819 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 6.585e-05/0.5657, allocations: 8.531 kB / 0.819 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.5657, allocations: 3.812 kB / 0.819 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.583e-06/0.5657, allocations: 0 / 0.819 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.5661, allocations: 456.2 kB / 0.8194 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002416/0.5663, allocations: 191.1 kB / 0.8196 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/0.5666, allocations: 0.6766 MB / 0.8203 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 4.039e-05/0.5666, allocations: 5.344 kB / 0.8203 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.64e-05/0.5666, allocations: 12.78 kB / 0.8203 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of SimCode: time 2.9e-07/0.5666, allocations: 0 / 0.8203 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of Templates: time 0.003333/0.57, allocations: 1.294 MB / 0.8216 GB, free: 10.88 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.makefile (rm -f BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.sim & ./BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1)