Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.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.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion") [: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.8322/0.8322, allocations: 141.8 MB / 149.1 MB, free: 4.559 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 177.1 kB / 181.9 MB, free: 228 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 221.3 MB / 436 MB, free: 9.465 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.001135/0.001136, allocations: 94.86 kB / 0.507 GB, free: 24.19 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001927/0.001927, allocations: 277.5 kB / 0.5884 GB, free: 12.36 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.063e-05/1.079e-05, allocations: 0 / 0.6759 GB, free: 2.738 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5496/0.5496, allocations: 82.76 MB / 0.7567 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8027/1.352, allocations: 347.7 MB / 1.096 GB, free: 2.52 MB / 0.62 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002208/1.353, allocations: 76.77 kB / 1.096 GB, free: 2.484 MB / 0.62 GB Notification: Performance of FrontEnd: time 0.03047/1.383, allocations: 12.96 MB / 1.109 GB, free: 8.5 MB / 0.6357 GB Notification: Performance of Transformations before backend: time 1.276e-05/1.383, allocations: 0 / 1.109 GB, free: 8.5 MB / 0.6357 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.0004627/1.384, allocations: 328.2 kB / 1.109 GB, free: 8.137 MB / 0.6357 GB Notification: Performance of prepare preOptimizeDAE: time 5.849e-05/1.384, allocations: 12.03 kB / 1.109 GB, free: 8.125 MB / 0.6357 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.345e-05/1.384, allocations: 0 / 1.109 GB, free: 8.125 MB / 0.6357 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001872/1.384, allocations: 174.3 kB / 1.109 GB, free: 7.918 MB / 0.6357 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.212e-05/1.384, allocations: 29.7 kB / 1.11 GB, free: 7.883 MB / 0.6357 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/1.384, allocations: 0 / 1.11 GB, free: 7.883 MB / 0.6357 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001012/1.384, allocations: 11.98 kB / 1.11 GB, free: 7.871 MB / 0.6357 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001074/1.384, allocations: 41.56 kB / 1.11 GB, free: 7.828 MB / 0.6357 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/1.384, allocations: 3.938 kB / 1.11 GB, free: 7.824 MB / 0.6357 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/1.384, allocations: 0 / 1.11 GB, free: 7.824 MB / 0.6357 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.505e-05/1.384, allocations: 3.938 kB / 1.11 GB, free: 7.82 MB / 0.6357 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005598/1.385, allocations: 317.3 kB / 1.11 GB, free: 7.461 MB / 0.6357 GB Notification: Performance of preOpt comSubExp (simulation): time 4.377e-05/1.385, allocations: 14.58 kB / 1.11 GB, free: 7.438 MB / 0.6357 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.356e-05/1.385, allocations: 8.922 kB / 1.11 GB, free: 7.426 MB / 0.6357 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001159/1.385, allocations: 85.14 kB / 1.11 GB, free: 7.324 MB / 0.6357 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/1.385, allocations: 30.56 kB / 1.11 GB, free: 7.285 MB / 0.6357 GB Notification: Performance of pre-optimization done (n=1): time 2.214e-06/1.385, allocations: 0 / 1.11 GB, free: 7.285 MB / 0.6357 GB Notification: Performance of matching and sorting (n=1): time 0.0002405/1.385, allocations: 48.98 kB / 1.11 GB, free: 7.23 MB / 0.6357 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/1.386, allocations: 55.39 kB / 1.11 GB, free: 7.164 MB / 0.6357 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/1.386, allocations: 90.22 kB / 1.11 GB, free: 7.07 MB / 0.6357 GB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/1.386, allocations: 25.7 kB / 1.11 GB, free: 7.039 MB / 0.6357 GB Notification: Performance of collectInitialEqns (initialization): time 5.846e-05/1.386, allocations: 91.55 kB / 1.11 GB, free: 6.949 MB / 0.6357 GB Notification: Performance of collectInitialBindings (initialization): time 4.458e-06/1.386, allocations: 0 / 1.11 GB, free: 6.949 MB / 0.6357 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-06/1.386, allocations: 0 / 1.11 GB, free: 6.949 MB / 0.6357 GB Notification: Performance of setup shared object (initialization): time 0.0001505/1.386, allocations: 314.8 kB / 1.111 GB, free: 6.633 MB / 0.6357 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.275e-05/1.386, allocations: 4 kB / 1.111 GB, free: 6.629 MB / 0.6357 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.976e-05/1.386, allocations: 21.31 kB / 1.111 GB, free: 6.605 MB / 0.6357 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.994e-05/1.386, allocations: 7.984 kB / 1.111 GB, free: 6.598 MB / 0.6357 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/1.386, allocations: 0 / 1.111 GB, free: 6.598 MB / 0.6357 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001222/1.386, allocations: 52.97 kB / 1.111 GB, free: 6.543 MB / 0.6357 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/1.386, allocations: 8 kB / 1.111 GB, free: 6.535 MB / 0.6357 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/1.386, allocations: 0 / 1.111 GB, free: 6.535 MB / 0.6357 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/1.386, allocations: 3.938 kB / 1.111 GB, free: 6.531 MB / 0.6357 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.414e-05/1.386, allocations: 8.062 kB / 1.111 GB, free: 6.523 MB / 0.6357 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/1.386, allocations: 0 / 1.111 GB, free: 6.523 MB / 0.6357 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.222e-05/1.386, allocations: 4 kB / 1.111 GB, free: 6.52 MB / 0.6357 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/1.386, allocations: 0 / 1.111 GB, free: 6.52 MB / 0.6357 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 9.202e-05/1.387, allocations: 104.9 kB / 1.111 GB, free: 6.41 MB / 0.6357 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.325e-05/1.387, allocations: 4 kB / 1.111 GB, free: 6.406 MB / 0.6357 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001762/1.387, allocations: 123.7 kB / 1.111 GB, free: 6.277 MB / 0.6357 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-05/1.387, allocations: 183.5 kB / 1.111 GB, free: 6.094 MB / 0.6357 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.018e-05/1.387, allocations: 176.3 kB / 1.111 GB, free: 5.914 MB / 0.6357 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-05/1.387, allocations: 192.1 kB / 1.111 GB, free: 5.719 MB / 0.6357 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003538/1.387, allocations: 377.8 kB / 1.112 GB, free: 5.305 MB / 0.6357 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-05/1.387, allocations: 112.5 kB / 1.112 GB, free: 5.191 MB / 0.6357 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.624e-05/1.388, allocations: 112.9 kB / 1.112 GB, free: 5.074 MB / 0.6357 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.19e-05/1.388, allocations: 176.3 kB / 1.112 GB, free: 4.895 MB / 0.6357 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.082e-05/1.388, allocations: 176.3 kB / 1.112 GB, free: 4.715 MB / 0.6357 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.027e-05/1.388, allocations: 180.2 kB / 1.113 GB, free: 4.531 MB / 0.6357 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.156e-05/1.388, allocations: 180.3 kB / 1.113 GB, free: 4.348 MB / 0.6357 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001872/1.388, allocations: 319.2 kB / 1.113 GB, free: 4.016 MB / 0.6357 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/1.388, allocations: 182.2 kB / 1.113 GB, free: 3.812 MB / 0.6357 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/1.388, allocations: 181.5 kB / 1.113 GB, free: 3.629 MB / 0.6357 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/1.388, allocations: 108.9 kB / 1.113 GB, free: 3.516 MB / 0.6357 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.153e-05/1.389, allocations: 188.2 kB / 1.114 GB, free: 3.324 MB / 0.6357 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.101e-05/1.389, allocations: 108.4 kB / 1.114 GB, free: 3.215 MB / 0.6357 GB Notification: Performance of sort global known variables: time 4.493e-05/1.389, allocations: 79.28 kB / 1.114 GB, free: 3.137 MB / 0.6357 GB Notification: Performance of remove unused functions: time 0.0002612/1.389, allocations: 15.94 kB / 1.114 GB, free: 3.121 MB / 0.6357 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.000276/1.389, allocations: 210.3 kB / 1.114 GB, free: 2.906 MB / 0.6357 GB Notification: Performance of simCode: created initialization part: time 6.86e-05/1.389, allocations: 11.92 kB / 1.114 GB, free: 2.895 MB / 0.6357 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/1.389, allocations: 4 kB / 1.114 GB, free: 2.891 MB / 0.6357 GB Notification: Performance of simCode: created simulation system equations: time 1.342e-06/1.389, allocations: 0 / 1.114 GB, free: 2.891 MB / 0.6357 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/1.39, allocations: 0.5219 MB / 1.115 GB, free: 2.367 MB / 0.6357 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000266/1.39, allocations: 123.6 kB / 1.115 GB, free: 2.223 MB / 0.6357 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004169/1.39, allocations: 0.6841 MB / 1.115 GB, free: 1.512 MB / 0.6357 GB Notification: Performance of SimCode: time 2.3e-07/1.39, allocations: 0 / 1.115 GB, free: 1.512 MB / 0.6357 GB Notification: Performance of Templates: time 0.003318/1.394, allocations: 0.7381 MB / 1.116 GB, free: 0.8008 MB / 0.6357 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)