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.589/2.589, allocations: 393.5 MB / 408.4 MB, free: 11.05 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.001964/0.001964, allocations: 179.9 kB / 0.4902 GB, free: 2.32 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.803/1.803, allocations: 223.1 MB / 0.7992 GB, free: 15.68 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.001131/0.001131, allocations: 90.45 kB / 0.9396 GB, free: 2.883 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0006131/0.0006129, allocations: 9.578 kB / 1.09 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5268/0.5274, allocations: 143 MB / 1.229 GB, free: 85.49 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.44/1.968, allocations: 384 MB / 1.604 GB, free: 8.801 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003413/1.968, allocations: 111.2 kB / 1.604 GB, free: 8.734 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 0.06283/2.031, allocations: 23.83 MB / 1.628 GB, free: 5.348 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.484e-06/2.031, allocations: 0 / 1.628 GB, free: 5.348 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 7.183e-05/2.031, allocations: 19.98 kB / 1.628 GB, free: 5.328 MB / 0.9636 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.002139/2.033, allocations: 0.8295 MB / 1.628 GB, free: 4.488 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/2.033, allocations: 12.52 kB / 1.628 GB, free: 4.477 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003063/2.034, allocations: 67.25 kB / 1.629 GB, free: 4.41 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0144/2.048, allocations: 6.249 MB / 1.635 GB, free: 15.49 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.154e-05/2.048, allocations: 46.75 kB / 1.635 GB, free: 15.46 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001956/2.048, allocations: 62.02 kB / 1.635 GB, free: 15.42 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/2.05, allocations: 0.552 MB / 1.635 GB, free: 15.03 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.5e-05/2.05, allocations: 0 / 1.635 GB, free: 15.03 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.282e-05/2.05, allocations: 25.36 kB / 1.635 GB, free: 15.02 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.861e-05/2.05, allocations: 12 kB / 1.635 GB, free: 15.01 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009165/2.051, allocations: 429.3 kB / 1.636 GB, free: 14.73 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00294/2.054, allocations: 1.506 MB / 1.637 GB, free: 13.59 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008377/2.055, allocations: 423.6 kB / 1.638 GB, free: 13.31 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/2.055, allocations: 4.438 kB / 1.638 GB, free: 13.3 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004938/2.055, allocations: 274.6 kB / 1.638 GB, free: 13.09 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=55): time 3.056e-06/2.055, allocations: 0 / 1.638 GB, free: 13.09 MB / 0.9792 GB Notification: Performance of matching and sorting (n=55): time 0.001193/2.056, allocations: 0.5586 MB / 1.638 GB, free: 12.68 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.449e-05/2.056, allocations: 101.4 kB / 1.638 GB, free: 12.56 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005213/2.057, allocations: 355.9 kB / 1.639 GB, free: 12.29 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 8.339e-05/2.057, allocations: 52.08 kB / 1.639 GB, free: 12.25 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002185/2.057, allocations: 239.2 kB / 1.639 GB, free: 12.07 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001586/2.057, allocations: 132 kB / 1.639 GB, free: 11.96 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.648e-05/2.057, allocations: 15.44 kB / 1.639 GB, free: 11.95 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001671/2.058, allocations: 356.9 kB / 1.64 GB, free: 11.61 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003728/2.058, allocations: 174 kB / 1.64 GB, free: 11.51 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004367/2.058, allocations: 285.7 kB / 1.64 GB, free: 11.26 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003397/2.059, allocations: 161.7 kB / 1.64 GB, free: 11.17 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.73e-06/2.059, allocations: 4 kB / 1.64 GB, free: 11.16 MB / 0.9792 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0009568/2.06, allocations: 0.5123 MB / 1.641 GB, free: 10.79 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/2.06, allocations: 11.98 kB / 1.641 GB, free: 10.77 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/2.06, allocations: 0 / 1.641 GB, free: 10.77 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.382e-05/2.06, allocations: 4 kB / 1.641 GB, free: 10.77 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002841/2.06, allocations: 67.72 kB / 1.641 GB, free: 10.71 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.769e-05/2.06, allocations: 7.938 kB / 1.641 GB, free: 10.7 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003494/2.061, allocations: 70.58 kB / 1.641 GB, free: 10.64 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.624e-05/2.061, allocations: 23.73 kB / 1.641 GB, free: 10.62 MB / 0.9792 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 () * Number of clocked 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.0003536/2.061, allocations: 244.3 kB / 1.641 GB, free: 10.43 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.005e-05/2.061, allocations: 43.53 kB / 1.641 GB, free: 10.38 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009812/2.062, allocations: 0.4942 MB / 1.642 GB, free: 10.03 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/2.062, allocations: 4 kB / 1.642 GB, free: 10.03 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/2.062, allocations: 0 / 1.642 GB, free: 10.03 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/2.062, allocations: 3.984 kB / 1.642 GB, free: 10.02 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002007/2.064, allocations: 1.214 MB / 1.643 GB, free: 9.059 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/2.064, allocations: 11.94 kB / 1.643 GB, free: 9.047 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001946/2.064, allocations: 43.09 kB / 1.643 GB, free: 9.008 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.528e-06/2.064, allocations: 7.953 kB / 1.643 GB, free: 9 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.518e-05/2.064, allocations: 14.75 kB / 1.643 GB, free: 8.992 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.286e-06/2.064, allocations: 7.984 kB / 1.643 GB, free: 8.984 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/2.064, allocations: 0 / 1.643 GB, free: 8.984 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008451/2.065, allocations: 0.5533 MB / 1.643 GB, free: 8.535 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/2.065, allocations: 120.3 kB / 1.644 GB, free: 8.402 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.655e-05/2.065, allocations: 26.38 kB / 1.644 GB, free: 8.387 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000258/2.066, allocations: 34.92 kB / 1.644 GB, free: 8.359 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001817/2.066, allocations: 74.45 kB / 1.644 GB, free: 8.301 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.275e-05/2.066, allocations: 19.42 kB / 1.644 GB, free: 8.285 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.0003034/2.066, allocations: 253.5 kB / 1.644 GB, free: 8.094 MB / 0.9792 GB Notification: Performance of sort global known variables: time 1.4e-07/2.066, allocations: 0 / 1.644 GB, free: 8.094 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.0005778/2.067, allocations: 129.1 kB / 1.644 GB, free: 7.984 MB / 0.9792 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) * Number of clocked states: 0 () * 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.001231/2.068, allocations: 494.3 kB / 1.645 GB, free: 7.668 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.0009199/2.069, allocations: 459.2 kB / 1.645 GB, free: 7.344 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/2.069, allocations: 8.125 kB / 1.645 GB, free: 7.336 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.000402/2.069, allocations: 241.8 kB / 1.645 GB, free: 7.164 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005272/2.07, allocations: 80.62 kB / 1.645 GB, free: 7.109 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001866/2.072, allocations: 1.056 MB / 1.646 GB, free: 6.141 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005815/2.073, allocations: 0.8788 MB / 1.647 GB, free: 5.234 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.0002921/2.073, allocations: 60.41 kB / 1.647 GB, free: 5.176 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/2.073, allocations: 55.41 kB / 1.647 GB, free: 5.125 MB / 0.9792 GB Notification: Performance of SimCode: time 6.91e-07/2.073, allocations: 0 / 1.647 GB, free: 5.125 MB / 0.9792 GB Notification: Performance of Templates: time 0.01486/2.088, allocations: 6.442 MB / 1.654 GB, free: 14.75 MB / 0.9948 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