Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speSig.y|masFlo.y|varSpePumSta.y.1.|varSpePumSta.y.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage") translateModel(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speSig.y|masFlo.y|varSpePumSta.y.1.|varSpePumSta.y.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.455/1.455, allocations: 249.3 MB / 261.8 MB, free: 5.906 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001197/0.001198, allocations: 180.9 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.689/1.689, allocations: 205.1 MB / 0.572 GB, free: 10.69 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008791/0.000879, allocations: 89.3 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.864e-05/4.875e-05, allocations: 4 kB / 0.788 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2426, allocations: 106.3 MB / 0.8918 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8886/1.131, allocations: 137.5 MB / 1.026 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/1.132, allocations: 100.4 kB / 1.026 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.02477/1.156, allocations: 9.55 MB / 1.036 GB, free: 5.086 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.214e-06/1.156, allocations: 0 / 1.036 GB, free: 5.086 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.995e-05/1.157, allocations: 11.98 kB / 1.036 GB, free: 5.074 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001258/1.158, allocations: 0.7224 MB / 1.036 GB, free: 4.332 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.738e-05/1.158, allocations: 8.031 kB / 1.036 GB, free: 4.324 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/1.158, allocations: 59.34 kB / 1.036 GB, free: 4.266 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005856/1.159, allocations: 372.8 kB / 1.037 GB, free: 3.93 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.858e-05/1.159, allocations: 46.98 kB / 1.037 GB, free: 3.902 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.036e-05/1.159, allocations: 52.56 kB / 1.037 GB, free: 3.867 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000876/1.16, allocations: 490 kB / 1.037 GB, free: 3.535 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/1.16, allocations: 0 / 1.037 GB, free: 3.535 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.409e-05/1.16, allocations: 26.02 kB / 1.037 GB, free: 3.523 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/1.16, allocations: 12 kB / 1.037 GB, free: 3.512 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006725/1.16, allocations: 404.6 kB / 1.038 GB, free: 3.258 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002206/1.163, allocations: 1.43 MB / 1.039 GB, free: 2.164 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007666/1.163, allocations: 441.5 kB / 1.039 GB, free: 1.867 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002938/1.164, allocations: 203.2 kB / 1.04 GB, free: 1.746 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.721e-05/1.164, allocations: 12.42 kB / 1.04 GB, free: 1.734 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004618/1.164, allocations: 269.5 kB / 1.04 GB, free: 1.527 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=58): time 2.355e-06/1.164, allocations: 0 / 1.04 GB, free: 1.527 MB / 0.6511 GB Notification: Performance of matching and sorting (n=58): time 0.0007615/1.165, allocations: 405.2 kB / 1.04 GB, free: 1.215 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/1.165, allocations: 67.86 kB / 1.04 GB, free: 1.141 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003457/1.165, allocations: 306.2 kB / 1.041 GB, free: 0.9023 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.926e-05/1.166, allocations: 59.06 kB / 1.041 GB, free: 0.8555 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001851/1.166, allocations: 214.5 kB / 1.041 GB, free: 0.6875 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/1.166, allocations: 146.2 kB / 1.041 GB, free: 0.5664 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/1.166, allocations: 11.5 kB / 1.041 GB, free: 0.5625 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001776/1.166, allocations: 355.7 kB / 1.041 GB, free: 232 kB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002866/1.166, allocations: 160.8 kB / 1.042 GB, free: 132 kB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003687/1.167, allocations: 246 kB / 1.042 GB, free: 15.94 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002934/1.167, allocations: 186.4 kB / 1.042 GB, free: 15.8 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/1.167, allocations: 0 / 1.042 GB, free: 15.8 MB / 0.6667 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.0008533/1.168, allocations: 0.5284 MB / 1.043 GB, free: 15.38 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 5.144e-05/1.168, allocations: 41.5 kB / 1.043 GB, free: 15.34 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/1.168, allocations: 4 kB / 1.043 GB, free: 15.33 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/1.168, allocations: 4 kB / 1.043 GB, free: 15.33 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000334/1.168, allocations: 75.64 kB / 1.043 GB, free: 15.26 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.794e-05/1.168, allocations: 4 kB / 1.043 GB, free: 15.25 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003947/1.169, allocations: 86.14 kB / 1.043 GB, free: 15.18 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.996e-05/1.169, allocations: 26.19 kB / 1.043 GB, free: 15.16 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.varSpePumSta.con1.enableFire,$PRE.varSpePumSta.con2.enableFire,$PRE.varSpePumSta.con3.enableFire,$PRE.varSpePumSta.con4.enableFire,varSpePumSta.stateGraphRoot.resume,varSpePumSta.stateGraphRoot.suspend,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varSpePumSta.con1.enableFire,varSpePumSta.con1.fire,$PRE.varSpePumSta.con1.t_start,varSpePumSta.con1.t_start,varSpePumSta.con1.condition,$PRE.varSpePumSta.oneOn.localActive,varSpePumSta.oneOn.localActive,varSpePumSta.oneOn.inPort[2].occupied,varSpePumSta.oneOn.outPort[2].available,$PRE.varSpePumSta.oneOn.newActive,varSpePumSta.oneOn.newActive,$PRE.varSpePumSta.oneOn.oldActive,varSpePumSta.oneOn.oldActive,varSpePumSta.oneOn.active,$PRE.varSpePumSta.off.localActive,varSpePumSta.off.localActive,$PRE.varSpePumSta.off.newActive,varSpePumSta.off.newActive,$PRE.varSpePumSta.off.oldActive,varSpePumSta.off.oldActive,varSpePumSta.off.active,$PRE.varSpePumSta.twoOn.localActive,varSpePumSta.twoOn.localActive,$PRE.varSpePumSta.twoOn.newActive,varSpePumSta.twoOn.newActive,$PRE.varSpePumSta.twoOn.oldActive,varSpePumSta.twoOn.oldActive,varSpePumSta.twoOn.active,varSpePumSta.con2.enableFire,varSpePumSta.con2.fire,$PRE.varSpePumSta.con2.t_start,varSpePumSta.con2.t_start,varSpePumSta.con2.condition,varSpePumSta.con3.enableFire,varSpePumSta.con3.fire,$PRE.varSpePumSta.con3.t_start,varSpePumSta.con3.t_start,varSpePumSta.con3.condition,varSpePumSta.con4.enableFire,varSpePumSta.con4.fire,$PRE.varSpePumSta.con4.t_start,varSpePumSta.con4.t_start,varSpePumSta.con4.condition,varSpePumSta.stateGraphRoot.activeSteps,varSpePumSta.addInt.u1,varSpePumSta.addInt.u2,varSpePumSta.addInt.y,$PRE.speSig.T_start,speSig.T_start,$PRE.speSig.count,speSig.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * 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.000178/1.169, allocations: 167.4 kB / 1.043 GB, free: 15.01 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.241e-05/1.169, allocations: 39.52 kB / 1.043 GB, free: 14.97 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008256/1.17, allocations: 486.7 kB / 1.043 GB, free: 14.62 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/1.17, allocations: 8 kB / 1.043 GB, free: 14.62 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/1.17, allocations: 0 / 1.043 GB, free: 14.62 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/1.17, allocations: 7.984 kB / 1.043 GB, free: 14.61 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001655/1.172, allocations: 1.183 MB / 1.045 GB, free: 13.66 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/1.172, allocations: 0 / 1.045 GB, free: 13.66 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002431/1.172, allocations: 62.95 kB / 1.045 GB, free: 13.6 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/1.172, allocations: 7.953 kB / 1.045 GB, free: 13.59 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.913e-05/1.172, allocations: 6.812 kB / 1.045 GB, free: 13.59 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/1.172, allocations: 4 kB / 1.045 GB, free: 13.59 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/1.172, allocations: 3.938 kB / 1.045 GB, free: 13.59 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006895/1.173, allocations: 0.5283 MB / 1.045 GB, free: 13.15 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/1.173, allocations: 128.4 kB / 1.045 GB, free: 13.01 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.898e-05/1.173, allocations: 20.83 kB / 1.045 GB, free: 13 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003277/1.173, allocations: 59.38 kB / 1.045 GB, free: 12.95 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000178/1.173, allocations: 81.25 kB / 1.045 GB, free: 12.88 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.955e-05/1.173, allocations: 23.36 kB / 1.045 GB, free: 12.86 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0002238/1.174, allocations: 217.2 kB / 1.046 GB, free: 12.69 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.91e-07/1.174, allocations: 0 / 1.046 GB, free: 12.69 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0004282/1.174, allocations: 117.2 kB / 1.046 GB, free: 12.59 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 47 (varSpePumSta.con3.enableFire,varSpePumSta.con4.enableFire,varSpePumSta.con1.enableFire,varSpePumSta.con2.enableFire,varSpePumSta.twoOn.localActive,varSpePumSta.off.localActive,varSpePumSta.oneOn.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varSpePumSta.con1.fire,varSpePumSta.con1.t_start,varSpePumSta.con1.condition,varSpePumSta.oneOn.inPort[2].occupied,varSpePumSta.oneOn.outPort[2].available,varSpePumSta.oneOn.newActive,varSpePumSta.oneOn.oldActive,varSpePumSta.oneOn.active,varSpePumSta.off.newActive,varSpePumSta.off.oldActive,varSpePumSta.off.active,varSpePumSta.twoOn.newActive,varSpePumSta.twoOn.oldActive,varSpePumSta.twoOn.active,varSpePumSta.con2.fire,varSpePumSta.con2.t_start,varSpePumSta.con2.condition,varSpePumSta.con3.fire,varSpePumSta.con3.t_start,varSpePumSta.con3.condition,varSpePumSta.con4.fire,varSpePumSta.con4.t_start,varSpePumSta.con4.condition,varSpePumSta.stateGraphRoot.activeSteps,varSpePumSta.addInt.u1,varSpePumSta.addInt.u2,varSpePumSta.addInt.y,speSig.T_start,speSig.count) * Number of discrete states: 4 (speSig.count,varSpePumSta.oneOn.newActive,varSpePumSta.off.newActive,varSpePumSta.twoOn.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 55 * 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.0009942/1.175, allocations: 373.9 kB / 1.046 GB, free: 12.32 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0007572/1.176, allocations: 0.4938 MB / 1.047 GB, free: 11.95 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/1.176, allocations: 0 / 1.047 GB, free: 11.95 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0003719/1.176, allocations: 239.1 kB / 1.047 GB, free: 11.78 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/1.177, allocations: 67.31 kB / 1.047 GB, free: 11.73 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/1.178, allocations: 0.6214 MB / 1.048 GB, free: 11.2 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000453/1.178, allocations: 0.8593 MB / 1.048 GB, free: 10.32 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0002461/1.179, allocations: 59.44 kB / 1.048 GB, free: 10.26 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/1.179, allocations: 51.34 kB / 1.048 GB, free: 10.21 MB / 0.6667 GB Notification: Performance of SimCode: time 3.71e-07/1.179, allocations: 0 / 1.048 GB, free: 10.21 MB / 0.6667 GB Notification: Performance of Templates: time 0.01131/1.19, allocations: 5.237 MB / 1.054 GB, free: 5.051 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage.makefile (rm -f Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage.sim & ./Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_VariableSpeedPumpStage.csv","../files/Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches