Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.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.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion") [: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.7714/0.7714, allocations: 141.8 MB / 149.1 MB, free: 13.27 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.00115/0.001151, allocations: 183.9 kB / 181.9 MB, free: 9.91 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.465/1.465, allocations: 221.4 MB / 436 MB, free: 2.324 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.001001/0.001001, allocations: 102 kB / 0.507 GB, free: 9.691 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001963/0.001963, allocations: 278.4 kB / 0.5884 GB, free: 6.504 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 8.787e-06/8.807e-06, allocations: 0 / 0.6759 GB, free: 12.89 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4771/0.4771, allocations: 82.77 MB / 0.7567 GB, free: 137.6 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.434/3.911, allocations: 1.671 GB / 2.427 GB, free: 90.8 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/3.911, allocations: 76.45 kB / 2.428 GB, free: 90.72 MB / 0.6982 GB Notification: Performance of FrontEnd: time 0.07071/3.982, allocations: 36.76 MB / 2.463 GB, free: 53.55 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 9.277e-06/3.982, allocations: 0 / 2.463 GB, free: 53.55 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003842/3.983, allocations: 346.3 kB / 2.464 GB, free: 53.17 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/3.983, allocations: 13.28 kB / 2.464 GB, free: 53.16 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002971/3.983, allocations: 19.97 kB / 2.464 GB, free: 53.14 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/3.983, allocations: 167 kB / 2.464 GB, free: 52.93 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.745e-05/3.983, allocations: 37.69 kB / 2.464 GB, free: 52.89 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.18e-05/3.983, allocations: 0 / 2.464 GB, free: 52.89 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001116/3.983, allocations: 20 kB / 2.464 GB, free: 52.87 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.807e-05/3.983, allocations: 49.61 kB / 2.464 GB, free: 52.82 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/3.983, allocations: 0 / 2.464 GB, free: 52.82 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/3.983, allocations: 0 / 2.464 GB, free: 52.82 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.619e-05/3.983, allocations: 7.938 kB / 2.464 GB, free: 52.81 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006121/3.984, allocations: 334.5 kB / 2.464 GB, free: 52.43 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 4.363e-05/3.984, allocations: 18.58 kB / 2.464 GB, free: 52.4 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.085e-05/3.984, allocations: 12.84 kB / 2.464 GB, free: 52.38 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 8.506e-06/3.984, allocations: 0 / 2.464 GB, free: 52.38 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/3.984, allocations: 30.56 kB / 2.464 GB, free: 52.34 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=1): time 1.663e-06/3.984, allocations: 0 / 2.464 GB, free: 52.34 MB / 0.6982 GB Notification: Performance of matching and sorting (n=1): time 0.0002451/3.984, allocations: 45.66 kB / 2.464 GB, free: 52.29 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.806e-05/3.984, allocations: 59.34 kB / 2.465 GB, free: 52.22 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.014e-05/3.985, allocations: 93 kB / 2.465 GB, free: 52.12 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/3.985, allocations: 25.7 kB / 2.465 GB, free: 52.09 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 4.459e-05/3.985, allocations: 92.03 kB / 2.465 GB, free: 52 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 9.097e-06/3.985, allocations: 11.84 kB / 2.465 GB, free: 51.99 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-06/3.985, allocations: 0 / 2.465 GB, free: 51.99 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 8.475e-05/3.985, allocations: 314.9 kB / 2.465 GB, free: 51.67 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.58e-05/3.985, allocations: 4 kB / 2.465 GB, free: 51.67 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.962e-05/3.985, allocations: 26.56 kB / 2.465 GB, free: 51.63 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.069e-05/3.985, allocations: 4 kB / 2.465 GB, free: 51.63 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/3.985, allocations: 0 / 2.465 GB, free: 51.63 MB / 0.6982 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.22e-05/3.985, allocations: 57.59 kB / 2.465 GB, free: 51.57 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/3.985, allocations: 4 kB / 2.465 GB, free: 51.56 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.852e-06/3.985, allocations: 4 kB / 2.465 GB, free: 51.56 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/3.985, allocations: 0 / 2.465 GB, free: 51.56 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.425e-05/3.985, allocations: 4 kB / 2.465 GB, free: 51.55 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/3.985, allocations: 4 kB / 2.465 GB, free: 51.55 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.149e-05/3.985, allocations: 0 / 2.465 GB, free: 51.55 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/3.985, allocations: 4 kB / 2.465 GB, free: 51.55 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.236e-05/3.985, allocations: 112.8 kB / 2.465 GB, free: 51.43 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.134e-05/3.985, allocations: 0 / 2.465 GB, free: 51.43 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.345e-05/3.985, allocations: 13.69 kB / 2.465 GB, free: 51.42 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/3.985, allocations: 0 / 2.465 GB, free: 51.42 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/3.985, allocations: 7.938 kB / 2.465 GB, free: 51.41 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/3.985, allocations: 0 / 2.465 GB, free: 51.41 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002017/3.986, allocations: 323.2 kB / 2.466 GB, free: 51.05 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/3.986, allocations: 4 kB / 2.466 GB, free: 51.05 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.513e-05/3.986, allocations: 0 / 2.466 GB, free: 51.05 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/3.986, allocations: 0 / 2.466 GB, free: 51.05 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-06/3.986, allocations: 4.031 kB / 2.466 GB, free: 51.04 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/3.986, allocations: 0 / 2.466 GB, free: 51.04 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/3.986, allocations: 256 / 2.466 GB, free: 51.04 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 5.911e-05/3.986, allocations: 68.97 kB / 2.466 GB, free: 50.96 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 2.804e-05/3.986, allocations: 77.11 kB / 2.466 GB, free: 50.86 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.754e-05/3.986, allocations: 11.84 kB / 2.466 GB, free: 50.85 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.626e-05/3.986, allocations: 8.016 kB / 2.466 GB, free: 50.84 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.194e-05/3.986, allocations: 4 kB / 2.466 GB, free: 50.84 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/3.986, allocations: 4 kB / 2.466 GB, free: 50.84 MB / 0.6982 GB Notification: Performance of sort global known variables: time 2.693e-05/3.986, allocations: 79.28 kB / 2.466 GB, free: 50.76 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.0002806/3.986, allocations: 35.98 kB / 2.466 GB, free: 50.72 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 (1): * Single equations (assignments): 1 * 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.00083/3.987, allocations: 0.6413 MB / 2.467 GB, free: 50.09 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 8.541e-05/3.987, allocations: 15.98 kB / 2.467 GB, free: 50.07 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/3.987, allocations: 0 / 2.467 GB, free: 50.07 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 6.522e-06/3.987, allocations: 8.125 kB / 2.467 GB, free: 50.06 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001793/3.987, allocations: 4.062 kB / 2.467 GB, free: 50.06 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002084/3.988, allocations: 55.92 kB / 2.467 GB, free: 49.98 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002231/3.988, allocations: 0.688 MB / 2.467 GB, free: 49.27 MB / 0.6982 GB Notification: Performance of SimCode: time 3.91e-07/3.988, allocations: 0 / 2.467 GB, free: 49.27 MB / 0.6982 GB Notification: Performance of Templates: time 0.00713/3.995, allocations: 3.69 MB / 2.471 GB, free: 45.59 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.makefile (rm -f BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.sim & ./BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)