Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.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.Applications.DataCenters.ChillerCooled.Controls.Validation.ChillerStage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|QTot.y|chiStaCon.criPoiLoa|TCHWSup.y|cooMod.y|chiStaCon.y.1.|chiStaCon.y.2.",fileNamePrefix="Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.ChillerStage") translateModel(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.ChillerStage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|QTot.y|chiStaCon.criPoiLoa|TCHWSup.y|cooMod.y|chiStaCon.y.1.|chiStaCon.y.2.",fileNamePrefix="Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.ChillerStage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.288/2.288, allocations: 393.5 MB / 408.4 MB, free: 11.08 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.001106/0.001106, allocations: 183.9 kB / 0.4902 GB, free: 2.324 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.512/1.512, allocations: 223.1 MB / 0.7992 GB, free: 15.64 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.001006/0.001006, allocations: 94.03 kB / 0.9396 GB, free: 2.902 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003678/0.0003677, allocations: 7.781 kB / 1.09 GB, free: 212.5 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3066, allocations: 143 MB / 1.229 GB, free: 85.53 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2121/0.5187, allocations: 160.5 MB / 1.386 GB, free: 4.859 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.5191, allocations: 95.94 kB / 1.386 GB, free: 4.766 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.03793/0.557, allocations: 14.24 MB / 1.4 GB, free: 6.461 MB / 0.9011 GB Notification: Performance of FrontEnd: time 4.358e-06/0.557, allocations: 0 / 1.4 GB, free: 6.461 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.729e-05/0.5571, allocations: 15.94 kB / 1.4 GB, free: 6.445 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001574/0.5587, allocations: 0.9055 MB / 1.401 GB, free: 5.469 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.5587, allocations: 8.562 kB / 1.401 GB, free: 5.461 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.5589, allocations: 71.16 kB / 1.401 GB, free: 5.391 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007711/0.5597, allocations: 469.8 kB / 1.401 GB, free: 4.891 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.711e-05/0.5598, allocations: 52.98 kB / 1.401 GB, free: 4.84 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.58e-05/0.5598, allocations: 55.98 kB / 1.401 GB, free: 4.785 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.5609, allocations: 0.5622 MB / 1.402 GB, free: 4.203 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.561, allocations: 4 kB / 1.402 GB, free: 4.199 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.587e-05/0.561, allocations: 20 kB / 1.402 GB, free: 4.18 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.923e-05/0.5611, allocations: 12 kB / 1.402 GB, free: 4.168 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009197/0.562, allocations: 467.7 kB / 1.402 GB, free: 3.711 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002489/0.5645, allocations: 1.551 MB / 1.404 GB, free: 2.105 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009749/0.5655, allocations: 0.5012 MB / 1.404 GB, free: 1.59 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 4.481e-05/0.5655, allocations: 12.55 kB / 1.404 GB, free: 1.578 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006118/0.5661, allocations: 322.9 kB / 1.405 GB, free: 1.25 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=63): time 2.635e-06/0.5662, allocations: 0 / 1.405 GB, free: 1.25 MB / 0.9011 GB Notification: Performance of matching and sorting (n=63): time 0.001423/0.5676, allocations: 0.6857 MB / 1.405 GB, free: 0.5586 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.901e-05/0.5677, allocations: 116.3 kB / 1.406 GB, free: 432 kB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.6724/1.24, allocations: 452.3 kB / 1.406 GB, free: 165.9 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0002252/1.24, allocations: 52.2 kB / 1.406 GB, free: 165.9 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003041/1.241, allocations: 255.1 kB / 1.406 GB, free: 165.8 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002005/1.241, allocations: 157.1 kB / 1.406 GB, free: 165.7 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.422e-05/1.241, allocations: 14.19 kB / 1.406 GB, free: 165.7 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001267/1.241, allocations: 368.8 kB / 1.407 GB, free: 165.4 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005718/1.242, allocations: 205.8 kB / 1.407 GB, free: 165.4 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006191/1.242, allocations: 332.5 kB / 1.407 GB, free: 165.3 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005338/1.243, allocations: 226.4 kB / 1.408 GB, free: 165.3 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/1.243, allocations: 1.312 kB / 1.408 GB, free: 165.3 MB / 0.9011 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001438/1.244, allocations: 0.6236 MB / 1.408 GB, free: 165.2 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 4.658e-05/1.244, allocations: 39.53 kB / 1.408 GB, free: 165.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/1.244, allocations: 1.094 kB / 1.408 GB, free: 165.1 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/1.244, allocations: 9.406 kB / 1.408 GB, free: 165.1 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003863/1.245, allocations: 84.66 kB / 1.408 GB, free: 165.1 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.816e-05/1.245, allocations: 12.84 kB / 1.408 GB, free: 165.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004563/1.245, allocations: 83.83 kB / 1.408 GB, free: 165.1 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.143e-05/1.245, allocations: 24.08 kB / 1.408 GB, free: 165.1 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 68 ($PRE.chiStaCon.con1.enableFire,$PRE.chiStaCon.con2.enableFire,$PRE.chiStaCon.con3.enableFire,$PRE.chiStaCon.con4.enableFire,$whenCondition5,$PRE.cooMod.combiTimeTable.nextTimeEvent,chiStaCon.stateGraphRoot.resume,chiStaCon.stateGraphRoot.suspend,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chiStaCon.cooMod,chiStaCon.con1.enableFire,chiStaCon.con1.fire,$PRE.chiStaCon.con1.t_start,chiStaCon.con1.t_start,chiStaCon.con1.condition,$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.off.localActive,chiStaCon.off.localActive,$PRE.chiStaCon.off.newActive,chiStaCon.off.newActive,$PRE.chiStaCon.off.oldActive,chiStaCon.off.oldActive,chiStaCon.off.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.con2.enableFire,chiStaCon.con2.fire,$PRE.chiStaCon.con2.t_start,chiStaCon.con2.t_start,chiStaCon.con2.condition,chiStaCon.con3.enableFire,chiStaCon.con3.fire,$PRE.chiStaCon.con3.t_start,chiStaCon.con3.t_start,chiStaCon.con3.condition,chiStaCon.con4.enableFire,chiStaCon.con4.fire,$PRE.chiStaCon.con4.t_start,chiStaCon.con4.t_start,chiStaCon.con4.condition,chiStaCon.stateGraphRoot.activeSteps,chiStaCon.addInt.u1,chiStaCon.addInt.u2,chiStaCon.addInt.y,cooMod.combiTimeTable.nextTimeEvent,$PRE.cooMod.combiTimeTable.nextTimeEventScaled,cooMod.combiTimeTable.nextTimeEventScaled,$PRE.TCHWSup.T_start,TCHWSup.T_start,$PRE.TCHWSup.count,TCHWSup.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 1 * 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.0004056/1.246, allocations: 270.8 kB / 1.409 GB, free: 165 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.799e-05/1.246, allocations: 51.56 kB / 1.409 GB, free: 165 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001288/1.247, allocations: 0.5832 MB / 1.409 GB, free: 164.9 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/1.247, allocations: 7.062 kB / 1.409 GB, free: 164.9 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/1.247, allocations: 1.641 kB / 1.409 GB, free: 164.9 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/1.247, allocations: 7.266 kB / 1.409 GB, free: 164.9 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002428/1.25, allocations: 1.371 MB / 1.411 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/1.25, allocations: 0 / 1.411 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/1.25, allocations: 63.27 kB / 1.411 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/1.25, allocations: 6.531 kB / 1.411 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.433e-05/1.25, allocations: 23.72 kB / 1.411 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/1.25, allocations: 1.938 kB / 1.411 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.25, allocations: 5.125 kB / 1.411 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/1.251, allocations: 0.6377 MB / 1.411 GB, free: 164.4 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/1.251, allocations: 146.9 kB / 1.411 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.378e-05/1.251, allocations: 18.41 kB / 1.412 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003853/1.252, allocations: 65.66 kB / 1.412 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002373/1.252, allocations: 93.02 kB / 1.412 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-05/1.252, allocations: 23.59 kB / 1.412 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.000448/1.252, allocations: 330.6 kB / 1.412 GB, free: 164.2 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.6e-07/1.252, allocations: 0 / 1.412 GB, free: 164.2 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0007485/1.253, allocations: 149.4 kB / 1.412 GB, free: 164.2 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 51 (chiStaCon.con3.enableFire,chiStaCon.con4.enableFire,chiStaCon.con1.enableFire,chiStaCon.con2.enableFire,chiStaCon.twoOn.localActive,chiStaCon.off.localActive,chiStaCon.oneOn.localActive,$cse2,$cse3,$cse4,$cse5,$cse6,$cse7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chiStaCon.cooMod,chiStaCon.con1.fire,chiStaCon.con1.t_start,chiStaCon.con1.condition,chiStaCon.oneOn.inPort[2].occupied,chiStaCon.oneOn.outPort[2].available,chiStaCon.oneOn.newActive,chiStaCon.oneOn.oldActive,chiStaCon.oneOn.active,chiStaCon.off.newActive,chiStaCon.off.oldActive,chiStaCon.off.active,chiStaCon.twoOn.newActive,chiStaCon.twoOn.oldActive,chiStaCon.twoOn.active,chiStaCon.con2.fire,chiStaCon.con2.t_start,chiStaCon.con2.condition,chiStaCon.con3.fire,chiStaCon.con3.t_start,chiStaCon.con3.condition,chiStaCon.con4.fire,chiStaCon.con4.t_start,chiStaCon.con4.condition,chiStaCon.stateGraphRoot.activeSteps,chiStaCon.addInt.u1,chiStaCon.addInt.u2,chiStaCon.addInt.y,cooMod.combiTimeTable.nextTimeEvent,cooMod.combiTimeTable.nextTimeEventScaled,TCHWSup.T_start,TCHWSup.count) * Number of discrete states: 6 (TCHWSup.count,cooMod.combiTimeTable.nextTimeEvent,chiStaCon.oneOn.newActive,chiStaCon.off.newActive,chiStaCon.twoOn.newActive,cooMod.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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.001722/1.255, allocations: 0.7301 MB / 1.413 GB, free: 164.1 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001255/1.256, allocations: 0.6007 MB / 1.413 GB, free: 164 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/1.256, allocations: 0 / 1.413 GB, free: 164 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0005687/1.257, allocations: 294.7 kB / 1.414 GB, free: 164 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/1.257, allocations: 78.75 kB / 1.414 GB, free: 164 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001861/1.259, allocations: 1.157 MB / 1.415 GB, free: 163.4 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004619/1.26, allocations: 0.9087 MB / 1.416 GB, free: 162.7 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0003398/1.26, allocations: 92.36 kB / 1.416 GB, free: 162.7 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001841/1.26, allocations: 55.77 kB / 1.416 GB, free: 162.7 MB / 0.9011 GB Notification: Performance of SimCode: time 4.91e-07/1.26, allocations: 1.312 kB / 1.416 GB, free: 162.7 MB / 0.9011 GB Notification: Performance of Templates: time 0.01756/1.278, allocations: 7.269 MB / 1.423 GB, free: 162.2 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.ChillerStage.makefile (rm -f Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.ChillerStage.pipe ; mkfifo Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.ChillerStage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.ChillerStage.pipe >> ../files/Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.ChillerStage.sim & ./Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.ChillerStage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.ChillerStage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.ChillerStage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_ChillerStage.csv","../files/Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.ChillerStage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches