Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiStaCon.on|chiStaCon.plr.y|chiStaCon.y.1.|chiStaCon.y.2.",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage") translateModel(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiStaCon.on|chiStaCon.plr.y|chiStaCon.y.1.|chiStaCon.y.2.",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.Plants.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 10.0.0-master/package.mo): time 1.915/1.915, allocations: 390.4 MB / 397.7 MB, free: 10.64 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001078, allocations: 181.6 kB / 490.8 MB, free: 11.18 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 221.4 MB / 0.7863 GB, free: 13.54 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001081, allocations: 94.36 kB / 0.9264 GB, free: 4.516 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 7.925e-06/7.945e-06, allocations: 0 / 1.072 GB, free: 15.52 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7876/0.7876, allocations: 143 MB / 1.212 GB, free: 155.7 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9267/1.714, allocations: 383.2 MB / 1.586 GB, free: 282.3 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/1.715, allocations: 103.4 kB / 1.586 GB, free: 282.2 MB / 1.026 GB Notification: Performance of FrontEnd: time 0.04863/1.763, allocations: 23.28 MB / 1.609 GB, free: 265.1 MB / 1.026 GB Notification: Performance of Transformations before backend: time 3.823e-05/1.763, allocations: 20 kB / 1.609 GB, free: 265 MB / 1.026 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.00112/1.764, allocations: 0.7746 MB / 1.609 GB, free: 264.2 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/1.765, allocations: 14.73 kB / 1.609 GB, free: 264.2 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/1.765, allocations: 67.16 kB / 1.609 GB, free: 264.1 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01244/1.777, allocations: 6.215 MB / 1.616 GB, free: 257.8 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.832e-05/1.777, allocations: 20 kB / 1.616 GB, free: 257.8 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.259e-05/1.777, allocations: 39.91 kB / 1.616 GB, free: 257.8 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007294/1.778, allocations: 382.5 kB / 1.616 GB, free: 257.4 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006974/1.779, allocations: 480.4 kB / 1.616 GB, free: 256.9 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/1.779, allocations: 7.938 kB / 1.616 GB, free: 256.9 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.219e-05/1.779, allocations: 7.234 kB / 1.616 GB, free: 256.9 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/1.779, allocations: 16 kB / 1.616 GB, free: 256.9 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/1.781, allocations: 1.379 MB / 1.618 GB, free: 255.5 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005239/1.781, allocations: 352.1 kB / 1.618 GB, free: 255.1 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002282/1.782, allocations: 174.2 kB / 1.618 GB, free: 254.9 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/1.782, allocations: 4.438 kB / 1.618 GB, free: 254.9 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002939/1.782, allocations: 236 kB / 1.619 GB, free: 254.7 MB / 1.026 GB Notification: Performance of pre-optimization done (n=55): time 3.056e-06/1.782, allocations: 0 / 1.619 GB, free: 254.7 MB / 1.026 GB Notification: Performance of matching and sorting (n=55): time 0.0005723/1.782, allocations: 344.1 kB / 1.619 GB, free: 254.4 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/1.783, allocations: 89.61 kB / 1.619 GB, free: 254.2 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003198/1.783, allocations: 327.1 kB / 1.619 GB, free: 253.9 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 5.324e-05/1.783, allocations: 45.69 kB / 1.619 GB, free: 253.9 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 9.851e-05/1.783, allocations: 200.9 kB / 1.62 GB, free: 253.7 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 8.515e-05/1.783, allocations: 130.3 kB / 1.62 GB, free: 253.5 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.053e-05/1.783, allocations: 6.625 kB / 1.62 GB, free: 253.5 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 8.16e-05/1.783, allocations: 350.8 kB / 1.62 GB, free: 253.2 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002224/1.783, allocations: 149.3 kB / 1.62 GB, free: 253 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002706/1.784, allocations: 256.2 kB / 1.62 GB, free: 252.8 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002142/1.784, allocations: 147 kB / 1.621 GB, free: 252.6 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/1.784, allocations: 0 / 1.621 GB, free: 252.6 MB / 1.026 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0005868/1.785, allocations: 447.3 kB / 1.621 GB, free: 252.2 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/1.785, allocations: 4 kB / 1.621 GB, free: 252.2 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/1.785, allocations: 4 kB / 1.621 GB, free: 252.2 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/1.785, allocations: 4 kB / 1.621 GB, free: 252.2 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002665/1.785, allocations: 83.7 kB / 1.621 GB, free: 252.1 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/1.785, allocations: 4 kB / 1.621 GB, free: 252.1 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002611/1.785, allocations: 40.08 kB / 1.621 GB, free: 252 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.606e-05/1.785, allocations: 27.98 kB / 1.621 GB, free: 252 MB / 1.026 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.0001247/1.785, allocations: 155 kB / 1.621 GB, free: 251.9 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.302e-05/1.785, allocations: 39.53 kB / 1.621 GB, free: 251.8 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006804/1.786, allocations: 411.9 kB / 1.622 GB, free: 251.4 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/1.786, allocations: 4 kB / 1.622 GB, free: 251.4 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/1.786, allocations: 3.906 kB / 1.622 GB, free: 251.4 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/1.786, allocations: 5.109 kB / 1.622 GB, free: 251.4 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001402/1.788, allocations: 1.053 MB / 1.623 GB, free: 250.3 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/1.788, allocations: 0 / 1.623 GB, free: 250.3 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001944/1.788, allocations: 51.81 kB / 1.623 GB, free: 250.2 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/1.788, allocations: 4 kB / 1.623 GB, free: 250.2 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/1.788, allocations: 3.984 kB / 1.623 GB, free: 250.2 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/1.788, allocations: 4 kB / 1.623 GB, free: 250.2 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/1.788, allocations: 0.75 kB / 1.623 GB, free: 250.2 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005511/1.788, allocations: 492.3 kB / 1.623 GB, free: 249.7 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 7.04e-05/1.788, allocations: 126.1 kB / 1.623 GB, free: 249.6 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.282e-05/1.789, allocations: 7.984 kB / 1.623 GB, free: 249.6 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002323/1.789, allocations: 27.98 kB / 1.623 GB, free: 249.6 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/1.789, allocations: 68.39 kB / 1.623 GB, free: 249.5 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.621e-05/1.789, allocations: 25.39 kB / 1.623 GB, free: 249.5 MB / 1.026 GB Notification: Performance of sort global known variables: time 0.0001807/1.789, allocations: 223.1 kB / 1.624 GB, free: 249.2 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.0004474/1.79, allocations: 107.9 kB / 1.624 GB, free: 249.1 MB / 1.026 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.000795/1.79, allocations: 377.6 kB / 1.624 GB, free: 248.9 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.0005881/1.791, allocations: 416.9 kB / 1.625 GB, free: 248.5 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/1.791, allocations: 0 / 1.625 GB, free: 248.5 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.0002645/1.791, allocations: 223.1 kB / 1.625 GB, free: 248.3 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004867/1.792, allocations: 64.11 kB / 1.625 GB, free: 248.2 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/1.793, allocations: 0.634 MB / 1.625 GB, free: 247.6 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004347/1.793, allocations: 0.9226 MB / 1.626 GB, free: 246.6 MB / 1.026 GB Notification: Performance of SimCode: time 3.21e-07/1.793, allocations: 0 / 1.626 GB, free: 246.6 MB / 1.026 GB Notification: Performance of Templates: time 0.01118/1.805, allocations: 6.571 MB / 1.633 GB, free: 240.2 MB / 1.026 GB make -j1 -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.makefile (rm -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe ; mkfifo Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe >> ../files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.sim & ./Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChillerStage.csv","../files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches