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") [: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 9.1.1-maint.9.1.x/package.mo): time 1.996/1.996, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001167/0.001167, allocations: 188.6 kB / 487 MB, free: 5.379 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.288/1.288, allocations: 221.3 MB / 0.7819 GB, free: 1.457 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009863/0.0009863, allocations: 91.31 kB / 0.9213 GB, free: 2.699 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.462e-06/6.572e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2125, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8356/1.048, allocations: 382.4 MB / 1.579 GB, free: 8.371 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/1.049, allocations: 101.4 kB / 1.579 GB, free: 8.312 MB / 1.01 GB Notification: Performance of FrontEnd: time 0.05358/1.102, allocations: 23.27 MB / 1.602 GB, free: 5.695 MB / 1.026 GB Notification: Performance of Transformations before backend: time 3.268e-05/1.102, allocations: 19.94 kB / 1.602 GB, free: 5.676 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.001207/1.103, allocations: 0.7787 MB / 1.602 GB, free: 4.879 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/1.103, allocations: 15.97 kB / 1.602 GB, free: 4.863 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/1.104, allocations: 67.25 kB / 1.602 GB, free: 4.797 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01303/1.117, allocations: 6.212 MB / 1.608 GB, free: 15.96 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.207e-05/1.117, allocations: 35.14 kB / 1.608 GB, free: 15.93 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.69e-05/1.117, allocations: 32 kB / 1.608 GB, free: 15.9 MB / 1.042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007216/1.118, allocations: 383.7 kB / 1.609 GB, free: 15.67 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007525/1.118, allocations: 480.3 kB / 1.609 GB, free: 15.32 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/1.118, allocations: 0 / 1.609 GB, free: 15.32 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.058e-05/1.118, allocations: 0 / 1.609 GB, free: 15.32 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/1.118, allocations: 12 kB / 1.609 GB, free: 15.31 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002089/1.12, allocations: 1.392 MB / 1.611 GB, free: 14.25 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005536/1.121, allocations: 358.1 kB / 1.611 GB, free: 14.01 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002447/1.121, allocations: 172.1 kB / 1.611 GB, free: 13.9 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/1.121, allocations: 5.297 kB / 1.611 GB, free: 13.9 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003297/1.122, allocations: 236.3 kB / 1.611 GB, free: 13.71 MB / 1.042 GB Notification: Performance of pre-optimization done (n=55): time 2.665e-06/1.122, allocations: 4 kB / 1.611 GB, free: 13.71 MB / 1.042 GB Notification: Performance of matching and sorting (n=55): time 0.0005941/1.122, allocations: 337.8 kB / 1.612 GB, free: 13.45 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/1.122, allocations: 97.47 kB / 1.612 GB, free: 13.34 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003328/1.123, allocations: 332.4 kB / 1.612 GB, free: 13.08 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 5.556e-05/1.123, allocations: 40.52 kB / 1.612 GB, free: 13.04 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/1.123, allocations: 198.1 kB / 1.612 GB, free: 12.86 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 9.382e-05/1.123, allocations: 125.8 kB / 1.613 GB, free: 12.75 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.059e-05/1.123, allocations: 0 / 1.613 GB, free: 12.75 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.000117/1.123, allocations: 367.3 kB / 1.613 GB, free: 12.41 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002281/1.123, allocations: 147.4 kB / 1.613 GB, free: 12.32 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002878/1.124, allocations: 253.4 kB / 1.613 GB, free: 12.11 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002209/1.124, allocations: 143.8 kB / 1.613 GB, free: 12.02 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/1.124, allocations: 4 kB / 1.613 GB, free: 12.02 MB / 1.042 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0006268/1.125, allocations: 444.2 kB / 1.614 GB, free: 11.68 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/1.125, allocations: 4 kB / 1.614 GB, free: 11.68 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/1.125, allocations: 4 kB / 1.614 GB, free: 11.67 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/1.125, allocations: 4 kB / 1.614 GB, free: 11.67 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002737/1.125, allocations: 71.45 kB / 1.614 GB, free: 11.6 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/1.125, allocations: 7.938 kB / 1.614 GB, free: 11.59 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002704/1.125, allocations: 43.91 kB / 1.614 GB, free: 11.55 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.506e-05/1.125, allocations: 23.5 kB / 1.614 GB, free: 11.53 MB / 1.042 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.0001442/1.125, allocations: 163.8 kB / 1.614 GB, free: 11.37 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.812e-05/1.125, allocations: 39.47 kB / 1.614 GB, free: 11.33 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007106/1.126, allocations: 407.2 kB / 1.615 GB, free: 11.04 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/1.126, allocations: 7.906 kB / 1.615 GB, free: 11.03 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/1.126, allocations: 7.984 kB / 1.615 GB, free: 11.02 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/1.126, allocations: 0 / 1.615 GB, free: 11.02 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001566/1.128, allocations: 1.056 MB / 1.616 GB, free: 10.17 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/1.128, allocations: 4 kB / 1.616 GB, free: 10.17 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/1.128, allocations: 43.05 kB / 1.616 GB, free: 10.13 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/1.128, allocations: 4 kB / 1.616 GB, free: 10.12 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/1.128, allocations: 7.734 kB / 1.616 GB, free: 10.12 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/1.128, allocations: 4 kB / 1.616 GB, free: 10.12 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/1.128, allocations: 3.984 kB / 1.616 GB, free: 10.11 MB / 1.042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006022/1.129, allocations: 484.1 kB / 1.616 GB, free: 9.711 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 8.321e-05/1.129, allocations: 124.4 kB / 1.616 GB, free: 9.574 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.143e-05/1.129, allocations: 7.188 kB / 1.616 GB, free: 9.57 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/1.129, allocations: 27.97 kB / 1.616 GB, free: 9.543 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/1.129, allocations: 74.42 kB / 1.616 GB, free: 9.484 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.102e-05/1.129, allocations: 27.17 kB / 1.616 GB, free: 9.461 MB / 1.042 GB Notification: Performance of sort global known variables: time 0.0001926/1.129, allocations: 221.7 kB / 1.617 GB, free: 9.293 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.0004368/1.13, allocations: 102.9 kB / 1.617 GB, free: 9.195 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.0007489/1.131, allocations: 377.4 kB / 1.617 GB, free: 8.918 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0005969/1.131, allocations: 417.8 kB / 1.617 GB, free: 8.637 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 2.155e-06/1.131, allocations: 0 / 1.617 GB, free: 8.637 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002753/1.132, allocations: 217.9 kB / 1.618 GB, free: 8.484 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004139/1.132, allocations: 72.5 kB / 1.618 GB, free: 8.43 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/1.133, allocations: 0.6432 MB / 1.618 GB, free: 7.871 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005235/1.134, allocations: 0.9222 MB / 1.619 GB, free: 6.934 MB / 1.042 GB Notification: Performance of SimCode: time 2.51e-07/1.134, allocations: 4 kB / 1.619 GB, free: 6.93 MB / 1.042 GB Notification: Performance of Templates: time 0.01146/1.145, allocations: 6.556 MB / 1.626 GB, free: 440 kB / 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