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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7377/0.7377, allocations: 141.8 MB / 149.1 MB, free: 13.98 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 186.2 kB / 182 MB, free: 10.56 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 221.3 MB / 436 MB, free: 3.184 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009606/0.0009604, allocations: 101.1 kB / 0.507 GB, free: 18.22 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001803/0.001803, allocations: 273.4 kB / 0.5885 GB, free: 4.598 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.307e-06/9.328e-06, allocations: 1.281 kB / 0.6759 GB, free: 137.6 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1972/0.1972, allocations: 82.78 MB / 0.7567 GB, free: 84.74 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.269/1.467, allocations: 414.6 MB / 1.162 GB, free: 234.2 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002288/1.467, allocations: 70.84 kB / 1.162 GB, free: 234.2 MB / 0.6982 GB Notification: Performance of FrontEnd: time 0.05218/1.519, allocations: 22.86 MB / 1.184 GB, free: 224.8 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 8.096e-06/1.519, allocations: 0 / 1.184 GB, free: 224.8 MB / 0.6982 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.0003189/1.519, allocations: 354.2 kB / 1.184 GB, free: 224.4 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/1.52, allocations: 8.031 kB / 1.184 GB, free: 224.4 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.804e-05/1.52, allocations: 4 kB / 1.184 GB, free: 224.4 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.791e-05/1.52, allocations: 166.8 kB / 1.184 GB, free: 224.2 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6e-05/1.52, allocations: 29.7 kB / 1.185 GB, free: 224.2 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.505e-06/1.52, allocations: 4 kB / 1.185 GB, free: 224.2 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.607e-05/1.52, allocations: 15.88 kB / 1.185 GB, free: 224.2 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.323e-05/1.52, allocations: 45.53 kB / 1.185 GB, free: 224.1 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/1.52, allocations: 3.938 kB / 1.185 GB, free: 224.1 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/1.52, allocations: 0 / 1.185 GB, free: 224.1 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/1.52, allocations: 0 / 1.185 GB, free: 224.1 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005622/1.521, allocations: 0.5834 MB / 1.185 GB, free: 223.5 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 2.748e-05/1.521, allocations: 14.58 kB / 1.185 GB, free: 223.4 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.617e-05/1.521, allocations: 8.922 kB / 1.185 GB, free: 223.4 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002307/1.521, allocations: 0.4946 MB / 1.186 GB, free: 222.8 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/1.521, allocations: 38.45 kB / 1.186 GB, free: 222.8 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=1): time 1.533e-06/1.521, allocations: 7.922 kB / 1.186 GB, free: 222.8 MB / 0.6982 GB Notification: Performance of matching and sorting (n=1): time 0.00025/1.521, allocations: 41.5 kB / 1.186 GB, free: 222.7 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.903e-05/1.521, allocations: 55.41 kB / 1.186 GB, free: 222.7 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.507e-05/1.521, allocations: 93 kB / 1.186 GB, free: 222.6 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 9.417e-06/1.521, allocations: 25.7 kB / 1.186 GB, free: 222.5 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 2.888e-05/1.521, allocations: 87.98 kB / 1.186 GB, free: 222.4 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 3.988e-06/1.521, allocations: 0 / 1.186 GB, free: 222.4 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-06/1.521, allocations: 4.031 kB / 1.186 GB, free: 222.4 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 5.152e-05/1.521, allocations: 322.8 kB / 1.186 GB, free: 222.1 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.808e-06/1.521, allocations: 0 / 1.186 GB, free: 222.1 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.441e-05/1.521, allocations: 13.72 kB / 1.186 GB, free: 222.1 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001857/1.522, allocations: 23.69 kB / 1.186 GB, free: 222.1 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/1.522, allocations: 0 / 1.186 GB, free: 222.1 MB / 0.6982 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002147/1.522, allocations: 69.41 kB / 1.186 GB, free: 222 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 9.848e-06/1.522, allocations: 4 kB / 1.186 GB, free: 222 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/1.522, allocations: 0 / 1.186 GB, free: 222 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/1.522, allocations: 0 / 1.186 GB, free: 222 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.321e-05/1.522, allocations: 4 kB / 1.186 GB, free: 222 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/1.522, allocations: 4 kB / 1.186 GB, free: 222 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.886e-05/1.522, allocations: 0 / 1.186 GB, free: 222 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-06/1.522, allocations: 0 / 1.186 GB, free: 222 MB / 0.6982 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.942e-05/1.522, allocations: 108.9 kB / 1.187 GB, free: 221.9 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.666e-05/1.522, allocations: 4 kB / 1.187 GB, free: 221.9 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.628e-05/1.522, allocations: 124.9 kB / 1.187 GB, free: 221.8 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.262e-05/1.522, allocations: 176.3 kB / 1.187 GB, free: 221.6 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.433e-05/1.522, allocations: 180.2 kB / 1.187 GB, free: 221.4 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.883e-05/1.522, allocations: 188 kB / 1.187 GB, free: 221.2 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/1.522, allocations: 385.6 kB / 1.188 GB, free: 220.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.765e-05/1.522, allocations: 112.9 kB / 1.188 GB, free: 220.7 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.67e-05/1.522, allocations: 105 kB / 1.188 GB, free: 220.6 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.156e-05/1.522, allocations: 176.3 kB / 1.188 GB, free: 220.4 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.264e-05/1.522, allocations: 180.2 kB / 1.188 GB, free: 220.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.65e-05/1.523, allocations: 180.2 kB / 1.188 GB, free: 220 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.913e-05/1.523, allocations: 188.2 kB / 1.188 GB, free: 219.8 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.16e-05/1.523, allocations: 311.8 kB / 1.189 GB, free: 219.5 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 3.928e-05/1.523, allocations: 181.9 kB / 1.189 GB, free: 219.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.594e-05/1.523, allocations: 181.4 kB / 1.189 GB, free: 219.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/1.523, allocations: 109 kB / 1.189 GB, free: 219 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.148e-05/1.523, allocations: 192.1 kB / 1.189 GB, free: 218.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/1.523, allocations: 104.9 kB / 1.189 GB, free: 218.7 MB / 0.6982 GB Notification: Performance of sort global known variables: time 2.618e-05/1.523, allocations: 79.28 kB / 1.19 GB, free: 218.6 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.0003739/1.523, allocations: 79.78 kB / 1.19 GB, free: 218.6 MB / 0.6982 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008135/1.524, allocations: 0.737 MB / 1.19 GB, free: 217.9 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 5.433e-05/1.524, allocations: 8 kB / 1.19 GB, free: 217.9 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/1.524, allocations: 0 / 1.19 GB, free: 217.9 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 1.383e-06/1.524, allocations: 0 / 1.19 GB, free: 217.9 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002323/1.524, allocations: 0.5294 MB / 1.191 GB, free: 217.3 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001568/1.525, allocations: 123.2 kB / 1.191 GB, free: 217.2 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/1.525, allocations: 0.6879 MB / 1.192 GB, free: 216.5 MB / 0.6982 GB Notification: Performance of SimCode: time 2.4e-07/1.525, allocations: 0 / 1.192 GB, free: 216.5 MB / 0.6982 GB Notification: Performance of Templates: time 0.0069/1.532, allocations: 3.893 MB / 1.195 GB, free: 213.9 MB / 0.6982 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)