Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.224/2.224, allocations: 387.1 MB / 399.7 MB, free: 9.445 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.00104/0.00104, allocations: 180.9 kB / 492.3 MB, free: 0.6094 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.525/1.525, allocations: 221.3 MB / 0.7871 GB, free: 12.93 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.0009567/0.0009568, allocations: 97.72 kB / 0.9267 GB, free: 14.01 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.985e-05/2.988e-05, allocations: 0 / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2862, allocations: 142.4 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.133/1.419, allocations: 383.2 MB / 1.587 GB, free: 14.54 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000334/1.42, allocations: 110.6 kB / 1.587 GB, free: 14.48 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 0.05511/1.475, allocations: 23.74 MB / 1.61 GB, free: 11.15 MB / 1.026 GB Notification: Performance of FrontEnd: time 1.753e-06/1.475, allocations: 4 kB / 1.61 GB, free: 11.14 MB / 1.026 GB Notification: Performance of Transformations before backend: time 3.196e-05/1.475, allocations: 12 kB / 1.61 GB, free: 11.13 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.001178/1.476, allocations: 0.7857 MB / 1.611 GB, free: 10.33 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/1.476, allocations: 8.031 kB / 1.611 GB, free: 10.32 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/1.476, allocations: 59.34 kB / 1.611 GB, free: 10.27 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01263/1.489, allocations: 6.202 MB / 1.617 GB, free: 5.391 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.549e-05/1.489, allocations: 44 kB / 1.617 GB, free: 5.367 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.892e-05/1.489, allocations: 61.62 kB / 1.617 GB, free: 5.324 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/1.49, allocations: 0.543 MB / 1.617 GB, free: 4.945 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/1.49, allocations: 0 / 1.617 GB, free: 4.945 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.997e-05/1.49, allocations: 23.06 kB / 1.617 GB, free: 4.938 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/1.49, allocations: 12 kB / 1.617 GB, free: 4.926 MB / 1.026 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006333/1.491, allocations: 410.7 kB / 1.618 GB, free: 4.672 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002249/1.493, allocations: 1.511 MB / 1.619 GB, free: 3.52 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006307/1.494, allocations: 409.4 kB / 1.62 GB, free: 3.25 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002641/1.494, allocations: 186.9 kB / 1.62 GB, free: 3.137 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/1.494, allocations: 4.438 kB / 1.62 GB, free: 3.133 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003931/1.495, allocations: 248 kB / 1.62 GB, free: 2.945 MB / 1.026 GB Notification: Performance of pre-optimization done (n=55): time 2.214e-06/1.495, allocations: 0 / 1.62 GB, free: 2.945 MB / 1.026 GB Notification: Performance of matching and sorting (n=55): time 0.0006894/1.495, allocations: 416.8 kB / 1.621 GB, free: 2.625 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.413e-05/1.495, allocations: 86.53 kB / 1.621 GB, free: 2.523 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003937/1.496, allocations: 357.8 kB / 1.621 GB, free: 2.242 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 5.925e-05/1.496, allocations: 54 kB / 1.621 GB, free: 2.199 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.000152/1.496, allocations: 238.6 kB / 1.621 GB, free: 2.02 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/1.496, allocations: 133.7 kB / 1.621 GB, free: 1.91 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.536e-05/1.496, allocations: 13.88 kB / 1.621 GB, free: 1.906 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.0001473/1.496, allocations: 354.4 kB / 1.622 GB, free: 1.57 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002519/1.497, allocations: 165.9 kB / 1.622 GB, free: 1.473 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003193/1.497, allocations: 263.1 kB / 1.622 GB, free: 1.25 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002516/1.497, allocations: 157.1 kB / 1.622 GB, free: 1.145 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/1.497, allocations: 4 kB / 1.622 GB, free: 1.141 MB / 1.026 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007304/1.498, allocations: 499.5 kB / 1.623 GB, free: 0.7695 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/1.498, allocations: 8 kB / 1.623 GB, free: 0.7617 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/1.498, allocations: 0 / 1.623 GB, free: 0.7617 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/1.498, allocations: 4 kB / 1.623 GB, free: 0.7578 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/1.498, allocations: 71.58 kB / 1.623 GB, free: 0.6914 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.6e-05/1.498, allocations: 7.953 kB / 1.623 GB, free: 0.6836 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000273/1.499, allocations: 62.5 kB / 1.623 GB, free: 0.6328 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.77e-05/1.499, allocations: 19.44 kB / 1.623 GB, free: 0.6172 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.0001535/1.499, allocations: 172.5 kB / 1.623 GB, free: 476 kB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.322e-05/1.499, allocations: 47.45 kB / 1.623 GB, free: 428 kB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007402/1.5, allocations: 491.9 kB / 1.624 GB, free: 68 kB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/1.5, allocations: 4 kB / 1.624 GB, free: 64 kB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/1.5, allocations: 4 kB / 1.624 GB, free: 60 kB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/1.5, allocations: 7.938 kB / 1.624 GB, free: 52 kB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001665/1.501, allocations: 1.185 MB / 1.625 GB, free: 15.1 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/1.501, allocations: 0 / 1.625 GB, free: 15.1 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/1.501, allocations: 55.11 kB / 1.625 GB, free: 15.05 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/1.502, allocations: 4 kB / 1.625 GB, free: 15.04 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.973e-05/1.502, allocations: 14.69 kB / 1.625 GB, free: 15.04 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/1.502, allocations: 3.938 kB / 1.625 GB, free: 15.04 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.502, allocations: 7.984 kB / 1.625 GB, free: 15.03 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000663/1.502, allocations: 0.5294 MB / 1.625 GB, free: 14.59 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 9.967e-05/1.502, allocations: 124.3 kB / 1.625 GB, free: 14.45 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.288e-05/1.502, allocations: 15.14 kB / 1.625 GB, free: 14.44 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/1.503, allocations: 37.72 kB / 1.626 GB, free: 14.41 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/1.503, allocations: 70.33 kB / 1.626 GB, free: 14.36 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.483e-05/1.503, allocations: 15.5 kB / 1.626 GB, free: 14.35 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.0002622/1.503, allocations: 256.7 kB / 1.626 GB, free: 14.14 MB / 1.042 GB Notification: Performance of sort global known variables: time 1.51e-07/1.503, allocations: 0 / 1.626 GB, free: 14.14 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.0004806/1.504, allocations: 135.7 kB / 1.626 GB, free: 14.04 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.0009977/1.505, allocations: 450 kB / 1.626 GB, free: 13.73 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0007131/1.505, allocations: 440.1 kB / 1.627 GB, free: 13.43 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/1.505, allocations: 4.062 kB / 1.627 GB, free: 13.42 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003282/1.506, allocations: 233 kB / 1.627 GB, free: 13.25 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004613/1.506, allocations: 68.56 kB / 1.627 GB, free: 13.21 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/1.508, allocations: 0.6533 MB / 1.628 GB, free: 12.65 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/1.508, allocations: 0.8763 MB / 1.629 GB, free: 11.75 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 0.0002687/1.508, allocations: 80.36 kB / 1.629 GB, free: 11.68 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001573/1.508, allocations: 51.17 kB / 1.629 GB, free: 11.63 MB / 1.042 GB Notification: Performance of SimCode: time 7.21e-07/1.508, allocations: 0 / 1.629 GB, free: 11.63 MB / 1.042 GB Notification: Performance of Templates: time 0.01221/1.521, allocations: 6.484 MB / 1.635 GB, free: 5.203 MB / 1.042 GB make -j1 -f Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.makefile (rm -f Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe ; mkfifo Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe ; head -c 1048576 < Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe >> ../files/Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.sim & ./Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChillerStage.csv","../files/Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches