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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.364/2.364, allocations: 390.5 MB / 398 MB, free: 10.97 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001748/0.001747, allocations: 171.8 kB / 491.2 MB, free: 1.598 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.628/1.628, allocations: 221.5 MB / 0.7868 GB, free: 13.27 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000961/0.0009609, allocations: 95.89 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.015e-05/2.02e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2757, allocations: 143 MB / 1.212 GB, free: 39.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.144/1.42, allocations: 383.3 MB / 1.587 GB, free: 14.79 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004472/1.421, allocations: 103.6 kB / 1.587 GB, free: 14.73 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 0.05901/1.48, allocations: 23.55 MB / 1.61 GB, free: 11.84 MB / 1.026 GB Notification: Performance of FrontEnd: time 1.493e-06/1.48, allocations: 0 / 1.61 GB, free: 11.84 MB / 1.026 GB Notification: Performance of Transformations before backend: time 5.413e-05/1.48, allocations: 19.94 kB / 1.61 GB, free: 11.82 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.001882/1.482, allocations: 0.7731 MB / 1.611 GB, free: 11.04 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/1.482, allocations: 8.031 kB / 1.611 GB, free: 11.03 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003022/1.482, allocations: 67.19 kB / 1.611 GB, free: 10.96 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01433/1.497, allocations: 6.17 MB / 1.617 GB, free: 6.168 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.884e-05/1.497, allocations: 27.17 kB / 1.617 GB, free: 6.145 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002049/1.497, allocations: 43.89 kB / 1.617 GB, free: 6.102 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001016/1.498, allocations: 381.8 kB / 1.617 GB, free: 5.875 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009175/1.499, allocations: 479.1 kB / 1.617 GB, free: 5.527 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/1.499, allocations: 0 / 1.617 GB, free: 5.527 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.731e-05/1.499, allocations: 7.984 kB / 1.617 GB, free: 5.52 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/1.499, allocations: 12 kB / 1.618 GB, free: 5.508 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002546/1.501, allocations: 1.402 MB / 1.619 GB, free: 4.441 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006453/1.502, allocations: 371 kB / 1.619 GB, free: 4.207 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002558/1.502, allocations: 182.3 kB / 1.619 GB, free: 4.098 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 3.4e-05/1.502, allocations: 8.438 kB / 1.619 GB, free: 4.09 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003959/1.503, allocations: 231.3 kB / 1.62 GB, free: 3.91 MB / 1.026 GB Notification: Performance of pre-optimization done (n=55): time 2.735e-06/1.503, allocations: 0 / 1.62 GB, free: 3.91 MB / 1.026 GB Notification: Performance of matching and sorting (n=55): time 0.0007203/1.504, allocations: 370.5 kB / 1.62 GB, free: 3.625 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/1.504, allocations: 89.66 kB / 1.62 GB, free: 3.52 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004283/1.504, allocations: 328.7 kB / 1.62 GB, free: 3.27 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 6.578e-05/1.504, allocations: 44.89 kB / 1.62 GB, free: 3.227 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001911/1.504, allocations: 240.6 kB / 1.621 GB, free: 3.039 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/1.505, allocations: 130.4 kB / 1.621 GB, free: 2.93 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.339e-05/1.505, allocations: 0 / 1.621 GB, free: 2.93 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.000146/1.505, allocations: 357.9 kB / 1.621 GB, free: 2.59 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00024/1.505, allocations: 146.2 kB / 1.621 GB, free: 2.508 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003204/1.505, allocations: 262 kB / 1.622 GB, free: 2.289 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/1.506, allocations: 136.3 kB / 1.622 GB, free: 2.199 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/1.506, allocations: 3.984 kB / 1.622 GB, free: 2.195 MB / 1.026 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007437/1.506, allocations: 444.1 kB / 1.622 GB, free: 1.855 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/1.506, allocations: 13.5 kB / 1.622 GB, free: 1.844 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/1.506, allocations: 3.984 kB / 1.622 GB, free: 1.84 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.875e-05/1.506, allocations: 8 kB / 1.622 GB, free: 1.832 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002905/1.507, allocations: 72.02 kB / 1.622 GB, free: 1.766 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/1.507, allocations: 4 kB / 1.622 GB, free: 1.762 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002974/1.507, allocations: 47.77 kB / 1.622 GB, free: 1.715 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-05/1.507, allocations: 19.38 kB / 1.622 GB, free: 1.699 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.0001859/1.507, allocations: 160.9 kB / 1.622 GB, free: 1.543 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.706e-05/1.507, allocations: 39.53 kB / 1.622 GB, free: 1.504 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007932/1.508, allocations: 437.9 kB / 1.623 GB, free: 1.188 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.585e-06/1.508, allocations: 4 kB / 1.623 GB, free: 1.184 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/1.508, allocations: 0 / 1.623 GB, free: 1.184 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/1.508, allocations: 3.984 kB / 1.623 GB, free: 1.18 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001706/1.51, allocations: 1.078 MB / 1.624 GB, free: 324 kB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/1.51, allocations: 0 / 1.624 GB, free: 324 kB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001991/1.51, allocations: 43.86 kB / 1.624 GB, free: 284 kB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.528e-06/1.51, allocations: 4 kB / 1.624 GB, free: 280 kB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.08e-05/1.51, allocations: 11.94 kB / 1.624 GB, free: 268 kB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.05e-05/1.51, allocations: 8 kB / 1.624 GB, free: 260 kB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/1.51, allocations: 3.938 kB / 1.624 GB, free: 256 kB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007164/1.511, allocations: 0.4913 MB / 1.624 GB, free: 15.83 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/1.511, allocations: 131.4 kB / 1.625 GB, free: 15.69 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.781e-05/1.511, allocations: 3.984 kB / 1.625 GB, free: 15.69 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000226/1.511, allocations: 35.2 kB / 1.625 GB, free: 15.66 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/1.512, allocations: 67.39 kB / 1.625 GB, free: 15.61 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.16e-05/1.512, allocations: 27.48 kB / 1.625 GB, free: 15.58 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.0002331/1.512, allocations: 223.8 kB / 1.625 GB, free: 15.41 MB / 1.042 GB Notification: Performance of sort global known variables: time 1.4e-07/1.512, allocations: 0 / 1.625 GB, free: 15.41 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.0005016/1.512, allocations: 103.9 kB / 1.625 GB, free: 15.32 MB / 1.042 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.001001/1.513, allocations: 422.2 kB / 1.625 GB, free: 14.98 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0006848/1.514, allocations: 406.6 kB / 1.626 GB, free: 14.7 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/1.514, allocations: 0 / 1.626 GB, free: 14.7 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003056/1.514, allocations: 218.6 kB / 1.626 GB, free: 14.55 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004606/1.515, allocations: 68.33 kB / 1.626 GB, free: 14.5 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001424/1.516, allocations: 0.6261 MB / 1.627 GB, free: 13.96 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004785/1.517, allocations: 0.8753 MB / 1.628 GB, free: 13.06 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 0.0002836/1.517, allocations: 76.33 kB / 1.628 GB, free: 12.99 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/1.517, allocations: 50.61 kB / 1.628 GB, free: 12.95 MB / 1.042 GB Notification: Performance of SimCode: time 4.91e-07/1.517, allocations: 0 / 1.628 GB, free: 12.95 MB / 1.042 GB Notification: Performance of Templates: time 0.0144/1.532, allocations: 5.971 MB / 1.633 GB, free: 7.039 MB / 1.042 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