Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.VAVReheat.Controls.Examples.RoomVAV.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Examples.VAVReheat.Controls.Examples.RoomVAV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.VAVReheat.Controls.Examples.RoomVAV") translateModel(Buildings.Examples.VAVReheat.Controls.Examples.RoomVAV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.VAVReheat.Controls.Examples.RoomVAV") [: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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.34/1.34, allocations: 289.8 MB / 297.1 MB, free: 6.629 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009482/0.0009484, allocations: 181.2 kB / 366.3 MB, free: 1.941 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.009/1.009, allocations: 205.1 MB / 0.6256 GB, free: 5.781 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000823/0.000823, allocations: 83.64 kB / 0.7395 GB, free: 39.61 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.692e-06/6.722e-06, allocations: 4 kB / 0.859 GB, free: 13.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3888/0.3888, allocations: 116.3 MB / 0.9726 GB, free: 68.38 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1363/0.5251, allocations: 142.1 MB / 1.111 GB, free: 6.371 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/0.5254, allocations: 76.55 kB / 1.111 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.02004/0.5454, allocations: 8.554 MB / 1.12 GB, free: 13.75 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.781e-05/0.5455, allocations: 20.88 kB / 1.12 GB, free: 13.73 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001068/0.5466, allocations: 0.7946 MB / 1.12 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.5466, allocations: 12.03 kB / 1.121 GB, free: 12.88 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.5467, allocations: 71.16 kB / 1.121 GB, free: 12.81 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005753/0.5473, allocations: 448.7 kB / 1.121 GB, free: 12.33 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.5474, allocations: 16.22 kB / 1.121 GB, free: 12.31 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.965e-05/0.5474, allocations: 28 kB / 1.121 GB, free: 12.29 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000578/0.548, allocations: 338.5 kB / 1.121 GB, free: 11.96 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006834/0.5487, allocations: 452.5 kB / 1.122 GB, free: 11.5 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.5487, allocations: 0 / 1.122 GB, free: 11.5 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.542e-05/0.5488, allocations: 8.828 kB / 1.122 GB, free: 11.49 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.5488, allocations: 12 kB / 1.122 GB, free: 11.48 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002193/0.551, allocations: 1.654 MB / 1.123 GB, free: 9.777 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.5521, allocations: 483.2 kB / 1.124 GB, free: 9.297 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/0.5523, allocations: 157.4 kB / 1.124 GB, free: 9.141 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.303e-05/0.5523, allocations: 7.859 kB / 1.124 GB, free: 9.133 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002889/0.5526, allocations: 218.7 kB / 1.124 GB, free: 8.898 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 1.372e-06/0.5526, allocations: 4 kB / 1.124 GB, free: 8.895 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.0005138/0.5532, allocations: 314.3 kB / 1.125 GB, free: 8.582 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.903e-05/0.5533, allocations: 158.2 kB / 1.125 GB, free: 8.391 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003517/0.5536, allocations: 345.1 kB / 1.125 GB, free: 8.051 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.81e-05/0.5537, allocations: 25.7 kB / 1.125 GB, free: 8.02 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.5538, allocations: 236.5 kB / 1.125 GB, free: 7.781 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.084e-05/0.5539, allocations: 114.3 kB / 1.125 GB, free: 7.668 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.62e-05/0.5539, allocations: 0 / 1.125 GB, free: 7.668 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.554, allocations: 354.8 kB / 1.126 GB, free: 7.312 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001771/0.5542, allocations: 112 kB / 1.126 GB, free: 7.203 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002292/0.5545, allocations: 188.9 kB / 1.126 GB, free: 6.988 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001935/0.5547, allocations: 122.9 kB / 1.126 GB, free: 6.871 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.5547, allocations: 0 / 1.126 GB, free: 6.871 MB / 0.7292 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000497/0.5552, allocations: 346.2 kB / 1.126 GB, free: 6.527 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001298/0.5553, allocations: 367.9 kB / 1.127 GB, free: 6.141 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.5553, allocations: 1.594 kB / 1.127 GB, free: 6.141 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.5553, allocations: 4 kB / 1.127 GB, free: 6.137 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003735/0.5557, allocations: 87.89 kB / 1.127 GB, free: 6.051 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.5557, allocations: 8.719 kB / 1.127 GB, free: 6.043 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/0.556, allocations: 83.62 kB / 1.127 GB, free: 5.961 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.54e-05/0.5561, allocations: 12 kB / 1.127 GB, free: 5.949 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.27e-06/0.5561, allocations: 4 kB / 1.127 GB, free: 5.945 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003986/0.5565, allocations: 256 kB / 1.127 GB, free: 5.695 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-06/0.5565, allocations: 0 / 1.127 GB, free: 5.695 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.779e-06/0.5565, allocations: 4 kB / 1.127 GB, free: 5.691 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003068/0.5568, allocations: 79.98 kB / 1.127 GB, free: 5.613 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.5568, allocations: 4 kB / 1.127 GB, free: 5.609 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002557/0.5571, allocations: 55.72 kB / 1.127 GB, free: 5.555 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.5571, allocations: 8 kB / 1.127 GB, free: 5.547 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,$PRE.vavBoxCon.hysWitHol.y,vavBoxCon.hysWitHol.y,vavBoxCon.assMes.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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 0.0001034/0.5572, allocations: 116.9 kB / 1.128 GB, free: 5.426 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.736e-05/0.5573, allocations: 43.44 kB / 1.128 GB, free: 5.383 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005277/0.5578, allocations: 333.7 kB / 1.128 GB, free: 5.047 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.5579, allocations: 5.5 kB / 1.128 GB, free: 5.043 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.5579, allocations: 0 / 1.128 GB, free: 5.043 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.5579, allocations: 3.984 kB / 1.128 GB, free: 5.039 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/0.5589, allocations: 0.9746 MB / 1.129 GB, free: 4.016 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.5589, allocations: 3.938 kB / 1.129 GB, free: 4.012 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003588/0.5593, allocations: 79.98 kB / 1.129 GB, free: 3.934 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.5593, allocations: 3.938 kB / 1.129 GB, free: 3.93 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.5593, allocations: 12.06 kB / 1.129 GB, free: 3.918 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.5593, allocations: 0 / 1.129 GB, free: 3.918 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5593, allocations: 4 kB / 1.129 GB, free: 3.914 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007355/0.5601, allocations: 0.5879 MB / 1.13 GB, free: 3.301 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 8.65e-05/0.5602, allocations: 124.5 kB / 1.13 GB, free: 3.16 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.006e-05/0.5602, allocations: 7.984 kB / 1.13 GB, free: 3.152 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003032/0.5605, allocations: 48.03 kB / 1.13 GB, free: 3.105 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.951e-05/0.5606, allocations: 27.95 kB / 1.13 GB, free: 3.078 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.813e-05/0.5607, allocations: 19.97 kB / 1.13 GB, free: 3.059 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0002645/0.5609, allocations: 265.8 kB / 1.13 GB, free: 2.805 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004706/0.5614, allocations: 175 kB / 1.13 GB, free: 2.633 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (vavBoxCon.conHea.I.y,vavBoxCon.conCoo.I.y) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,vavBoxCon.hysWitHol.y,vavBoxCon.assMes.u) * Number of discrete states: 1 (vavBoxCon.hysWitHol.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.0001231/0.5615, allocations: 103.2 kB / 1.13 GB, free: 2.523 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0006611/0.5622, allocations: 451.2 kB / 1.131 GB, free: 2.082 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5622, allocations: 4 kB / 1.131 GB, free: 2.078 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002226/0.5624, allocations: 159.4 kB / 1.131 GB, free: 1.922 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004312/0.5629, allocations: 75.47 kB / 1.131 GB, free: 1.848 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/0.5641, allocations: 0.6407 MB / 1.132 GB, free: 1.18 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000535/0.5647, allocations: 0.9216 MB / 1.132 GB, free: 232 kB / 0.7292 GB Notification: Performance of SimCode: time 2.71e-07/0.5647, allocations: 0 / 1.132 GB, free: 232 kB / 0.7292 GB Notification: Performance of Templates: time 0.01054/0.5752, allocations: 6.416 MB / 1.139 GB, free: 9.902 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Examples.VAVReheat.Controls.Examples.RoomVAV.makefile (rm -f Buildings_8_Buildings.Examples.VAVReheat.Controls.Examples.RoomVAV.pipe ; mkfifo Buildings_8_Buildings.Examples.VAVReheat.Controls.Examples.RoomVAV.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.VAVReheat.Controls.Examples.RoomVAV.pipe >> ../files/Buildings_8_Buildings.Examples.VAVReheat.Controls.Examples.RoomVAV.sim & ./Buildings_8_Buildings.Examples.VAVReheat.Controls.Examples.RoomVAV -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.VAVReheat.Controls.Examples.RoomVAV.pipe 2>&1)