Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage.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.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage") translateModel(Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage") [: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.33/1.33, allocations: 289.8 MB / 297 MB, free: 6.672 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.0009369/0.0009369, allocations: 173.3 kB / 366.3 MB, free: 1.992 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9921/0.9921, allocations: 205.1 MB / 0.6256 GB, free: 7.453 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.0007385/0.0007385, allocations: 88.39 kB / 0.7395 GB, free: 39.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.563e-06/6.663e-06, allocations: 0 / 0.859 GB, free: 13.56 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4199/0.4199, allocations: 116.3 MB / 0.9726 GB, free: 76.46 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5488/0.9688, allocations: 371.6 MB / 1.335 GB, free: 216.8 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.9691, allocations: 103.9 kB / 1.336 GB, free: 216.7 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.0414/1.01, allocations: 22.83 MB / 1.358 GB, free: 193.8 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 2.635e-05/1.011, allocations: 19.94 kB / 1.358 GB, free: 193.8 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.0008793/1.011, allocations: 0.7901 MB / 1.359 GB, free: 193 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 2.947e-05/1.011, allocations: 8.875 kB / 1.359 GB, free: 193 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.999e-05/1.012, allocations: 63.25 kB / 1.359 GB, free: 192.9 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01012/1.022, allocations: 6.082 MB / 1.365 GB, free: 186.7 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.613e-05/1.022, allocations: 29.92 kB / 1.365 GB, free: 186.7 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.921e-05/1.022, allocations: 36 kB / 1.365 GB, free: 186.7 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005798/1.022, allocations: 386.5 kB / 1.365 GB, free: 186.3 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006265/1.023, allocations: 480.5 kB / 1.366 GB, free: 185.8 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/1.023, allocations: 0 / 1.366 GB, free: 185.8 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.806e-05/1.023, allocations: 0 / 1.366 GB, free: 185.8 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/1.023, allocations: 13.22 kB / 1.366 GB, free: 185.8 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0016/1.025, allocations: 1.389 MB / 1.367 GB, free: 184.4 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004723/1.025, allocations: 345 kB / 1.367 GB, free: 184 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/1.025, allocations: 181.1 kB / 1.367 GB, free: 183.9 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/1.025, allocations: 8.344 kB / 1.367 GB, free: 183.8 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002812/1.026, allocations: 230 kB / 1.368 GB, free: 183.6 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=55): time 2.154e-06/1.026, allocations: 4 kB / 1.368 GB, free: 183.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=55): time 0.0004823/1.026, allocations: 336.1 kB / 1.368 GB, free: 183.3 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/1.026, allocations: 93.59 kB / 1.368 GB, free: 183.2 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002555/1.027, allocations: 323.8 kB / 1.368 GB, free: 182.8 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.628e-05/1.027, allocations: 41.7 kB / 1.368 GB, free: 182.8 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 7.843e-05/1.027, allocations: 204.9 kB / 1.369 GB, free: 182.6 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 7.66e-05/1.027, allocations: 130.3 kB / 1.369 GB, free: 182.5 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.087e-05/1.027, allocations: 0 / 1.369 GB, free: 182.5 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 5.973e-05/1.027, allocations: 362.7 kB / 1.369 GB, free: 182.1 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/1.027, allocations: 149.3 kB / 1.369 GB, free: 182 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002402/1.027, allocations: 256.9 kB / 1.369 GB, free: 181.7 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/1.028, allocations: 143.7 kB / 1.37 GB, free: 181.5 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/1.028, allocations: 4 kB / 1.37 GB, free: 181.5 MB / 0.8542 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0005583/1.028, allocations: 443.4 kB / 1.37 GB, free: 181.1 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.004e-05/1.028, allocations: 4 kB / 1.37 GB, free: 181.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/1.028, allocations: 4 kB / 1.37 GB, free: 181.1 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/1.028, allocations: 4 kB / 1.37 GB, free: 181.1 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002495/1.028, allocations: 75.83 kB / 1.37 GB, free: 181 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.812e-06/1.028, allocations: 4 kB / 1.37 GB, free: 181 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002444/1.029, allocations: 48.75 kB / 1.37 GB, free: 180.9 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-05/1.029, allocations: 24 kB / 1.37 GB, free: 180.9 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.chiStaCon.offToOne.enableFire,$PRE.chiStaCon.oneToTwo.enableFire,$PRE.chiStaCon.twoToOne.enableFire,$PRE.chiStaCon.oneToOff.enableFire,$whenCondition5,$PRE.on.combiTimeTable.nextTimeEvent,chiStaCon.stateGraphRoot.resume,chiStaCon.stateGraphRoot.suspend,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chiStaCon.stateGraphRoot.activeSteps,chiStaCon.on,chiStaCon.y[1],$PRE.chiStaCon.off.localActive,chiStaCon.off.localActive,$PRE.chiStaCon.off.newActive,chiStaCon.off.newActive,$PRE.chiStaCon.off.oldActive,chiStaCon.off.oldActive,chiStaCon.off.active,$PRE.chiStaCon.oneOn.localActive,chiStaCon.oneOn.localActive,chiStaCon.oneOn.inPort[2].occupied,chiStaCon.oneOn.outPort[2].available,$PRE.chiStaCon.oneOn.newActive,chiStaCon.oneOn.newActive,$PRE.chiStaCon.oneOn.oldActive,chiStaCon.oneOn.oldActive,chiStaCon.oneOn.active,$PRE.chiStaCon.twoOn.localActive,chiStaCon.twoOn.localActive,$PRE.chiStaCon.twoOn.newActive,chiStaCon.twoOn.newActive,$PRE.chiStaCon.twoOn.oldActive,chiStaCon.twoOn.oldActive,chiStaCon.twoOn.active,chiStaCon.offToOne.enableFire,chiStaCon.offToOne.fire,$PRE.chiStaCon.offToOne.t_start,chiStaCon.offToOne.t_start,chiStaCon.oneToTwo.enableFire,chiStaCon.oneToTwo.fire,$PRE.chiStaCon.oneToTwo.t_start,chiStaCon.oneToTwo.t_start,chiStaCon.twoToOne.enableFire,chiStaCon.twoToOne.fire,$PRE.chiStaCon.twoToOne.t_start,chiStaCon.twoToOne.t_start,chiStaCon.oneToOff.enableFire,chiStaCon.oneToOff.fire,$PRE.chiStaCon.oneToOff.t_start,chiStaCon.oneToOff.t_start,$PRE.chiStaCon.thrOneToTwo.y,chiStaCon.thrOneToTwo.y,chiStaCon.TwoToOne.y,on.combiTimeTable.nextTimeEvent,$PRE.on.combiTimeTable.nextTimeEventScaled,on.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * 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.0001062/1.029, allocations: 154.6 kB / 1.37 GB, free: 180.8 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.946e-05/1.029, allocations: 35.53 kB / 1.37 GB, free: 180.7 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006162/1.03, allocations: 416.5 kB / 1.371 GB, free: 180.3 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/1.03, allocations: 4 kB / 1.371 GB, free: 180.3 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/1.03, allocations: 3.984 kB / 1.371 GB, free: 180.3 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/1.03, allocations: 4 kB / 1.371 GB, free: 180.3 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00126/1.031, allocations: 1.057 MB / 1.372 GB, free: 179.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/1.031, allocations: 4 kB / 1.372 GB, free: 179.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001747/1.031, allocations: 44.67 kB / 1.372 GB, free: 179.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.87e-06/1.031, allocations: 4 kB / 1.372 GB, free: 179.2 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/1.031, allocations: 3.984 kB / 1.372 GB, free: 179.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-06/1.031, allocations: 5.5 kB / 1.372 GB, free: 179.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/1.031, allocations: 0 / 1.372 GB, free: 179.2 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005117/1.032, allocations: 492.3 kB / 1.372 GB, free: 178.7 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 5.959e-05/1.032, allocations: 124.6 kB / 1.372 GB, free: 178.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.653e-05/1.032, allocations: 4 kB / 1.372 GB, free: 178.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/1.032, allocations: 33 kB / 1.372 GB, free: 178.5 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/1.032, allocations: 72.39 kB / 1.373 GB, free: 178.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.961e-05/1.032, allocations: 20 kB / 1.373 GB, free: 178.4 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.0001577/1.032, allocations: 223.1 kB / 1.373 GB, free: 178.2 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003739/1.033, allocations: 107.9 kB / 1.373 GB, free: 178.1 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 44 (chiStaCon.twoToOne.enableFire,chiStaCon.oneToOff.enableFire,chiStaCon.offToOne.enableFire,chiStaCon.oneToTwo.enableFire,chiStaCon.twoOn.localActive,chiStaCon.oneOn.localActive,chiStaCon.off.localActive,$cse2,$cse3,$cse4,$cse5,$cse6,$cse7,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chiStaCon.stateGraphRoot.activeSteps,chiStaCon.on,chiStaCon.y[1],chiStaCon.off.newActive,chiStaCon.off.oldActive,chiStaCon.off.active,chiStaCon.oneOn.inPort[2].occupied,chiStaCon.oneOn.outPort[2].available,chiStaCon.oneOn.newActive,chiStaCon.oneOn.oldActive,chiStaCon.oneOn.active,chiStaCon.twoOn.newActive,chiStaCon.twoOn.oldActive,chiStaCon.twoOn.active,chiStaCon.offToOne.fire,chiStaCon.offToOne.t_start,chiStaCon.oneToTwo.fire,chiStaCon.oneToTwo.t_start,chiStaCon.twoToOne.fire,chiStaCon.twoToOne.t_start,chiStaCon.oneToOff.fire,chiStaCon.oneToOff.t_start,chiStaCon.thrOneToTwo.y,chiStaCon.TwoToOne.y,on.combiTimeTable.nextTimeEvent,on.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (on.combiTimeTable.nextTimeEvent,chiStaCon.off.newActive,chiStaCon.oneOn.newActive,chiStaCon.twoOn.newActive,chiStaCon.thrOneToTwo.y,on.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0006287/1.033, allocations: 380.9 kB / 1.373 GB, free: 177.8 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0005257/1.034, allocations: 416.9 kB / 1.374 GB, free: 177.4 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/1.034, allocations: 0 / 1.374 GB, free: 177.4 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002397/1.034, allocations: 221.8 kB / 1.374 GB, free: 177.2 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003593/1.034, allocations: 65.59 kB / 1.374 GB, free: 177.1 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001061/1.036, allocations: 0.6346 MB / 1.375 GB, free: 176.4 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003942/1.036, allocations: 0.9234 MB / 1.375 GB, free: 175.5 MB / 0.8542 GB Notification: Performance of SimCode: time 2.61e-07/1.036, allocations: 0 / 1.375 GB, free: 175.5 MB / 0.8542 GB Notification: Performance of Templates: time 0.009493/1.045, allocations: 6.552 MB / 1.382 GB, free: 169 MB / 0.8542 GB make -j1 -f Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage.makefile (rm -f Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage.pipe ; mkfifo Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage.pipe ; head -c 1048576 < Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage.pipe >> ../files/Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage.sim & ./Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage.pipe 2>&1)