Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.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.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speSig.y|masFlo.y|varSpePumSta.y.1.|varSpePumSta.y.2.",fileNamePrefix="Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage") translateModel(Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speSig.y|masFlo.y|varSpePumSta.y.1.|varSpePumSta.y.2.",fileNamePrefix="Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.359/2.359, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.001224/0.001223, allocations: 177.1 kB / 498.1 MB, free: 5.719 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.635/1.635, allocations: 223.2 MB / 0.7948 GB, free: 18.86 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.001107/0.001107, allocations: 96.38 kB / 0.9346 GB, free: 7.137 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003425, allocations: 7.953 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2739, allocations: 142.3 MB / 1.223 GB, free: 89.58 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1982/0.4721, allocations: 155.1 MB / 1.374 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/0.4724, allocations: 91.94 kB / 1.374 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02547/0.4979, allocations: 9.693 MB / 1.384 GB, free: 4.453 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.983e-06/0.4979, allocations: 0 / 1.384 GB, free: 4.453 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.978e-05/0.498, allocations: 16.36 kB / 1.384 GB, free: 4.438 MB / 0.8855 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.00149/0.4995, allocations: 0.7542 MB / 1.385 GB, free: 3.625 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.4995, allocations: 12.03 kB / 1.385 GB, free: 3.613 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001877/0.4997, allocations: 55.34 kB / 1.385 GB, free: 3.559 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006441/0.5004, allocations: 374.2 kB / 1.385 GB, free: 3.156 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.331e-05/0.5005, allocations: 52.97 kB / 1.385 GB, free: 3.102 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.715e-05/0.5006, allocations: 52 kB / 1.385 GB, free: 3.051 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.5016, allocations: 0.5176 MB / 1.386 GB, free: 2.523 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.5016, allocations: 11.83 kB / 1.386 GB, free: 2.512 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.083e-05/0.5017, allocations: 16 kB / 1.386 GB, free: 2.496 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.5017, allocations: 12 kB / 1.386 GB, free: 2.484 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009605/0.5027, allocations: 459.7 kB / 1.386 GB, free: 2.035 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002342/0.505, allocations: 1.419 MB / 1.388 GB, free: 0.5586 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009619/0.506, allocations: 497.1 kB / 1.388 GB, free: 68 kB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.069e-05/0.5061, allocations: 12.58 kB / 1.388 GB, free: 56 kB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005794/0.5066, allocations: 290.8 kB / 1.388 GB, free: 15.76 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=58): time 2.455e-06/0.5067, allocations: 0 / 1.388 GB, free: 15.76 MB / 0.9011 GB Notification: Performance of matching and sorting (n=58): time 0.00132/0.508, allocations: 0.6234 MB / 1.389 GB, free: 15.13 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.014e-05/0.508, allocations: 67.97 kB / 1.389 GB, free: 15.05 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003654/0.5084, allocations: 313.7 kB / 1.389 GB, free: 14.74 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 6.823e-05/0.5085, allocations: 53.64 kB / 1.389 GB, free: 14.68 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.5087, allocations: 209.2 kB / 1.389 GB, free: 14.47 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.5088, allocations: 138.2 kB / 1.39 GB, free: 14.33 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.157e-05/0.5088, allocations: 16 kB / 1.39 GB, free: 14.32 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001389/0.509, allocations: 354.8 kB / 1.39 GB, free: 13.96 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004216/0.5094, allocations: 193.2 kB / 1.39 GB, free: 13.77 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004646/0.5099, allocations: 285.9 kB / 1.39 GB, free: 13.46 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004171/0.5103, allocations: 200.9 kB / 1.391 GB, free: 13.27 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.5103, allocations: 4 kB / 1.391 GB, free: 13.27 MB / 0.9011 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001067/0.5114, allocations: 0.5806 MB / 1.391 GB, free: 12.67 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 4.014e-05/0.5114, allocations: 33.69 kB / 1.391 GB, free: 12.63 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.5115, allocations: 4 kB / 1.391 GB, free: 12.63 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/0.5115, allocations: 4 kB / 1.391 GB, free: 12.62 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003168/0.5118, allocations: 75.83 kB / 1.391 GB, free: 12.55 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.5118, allocations: 11.94 kB / 1.391 GB, free: 12.54 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000416/0.5123, allocations: 95.59 kB / 1.391 GB, free: 12.45 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.332e-05/0.5123, allocations: 20 kB / 1.391 GB, free: 12.43 MB / 0.9011 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 () * Number of clocked 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.0002874/0.5126, allocations: 247.2 kB / 1.392 GB, free: 12.18 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.77e-05/0.5127, allocations: 35.53 kB / 1.392 GB, free: 12.14 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.5137, allocations: 0.5303 MB / 1.392 GB, free: 11.6 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.5137, allocations: 8 kB / 1.392 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.5138, allocations: 0 / 1.392 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.5138, allocations: 7.938 kB / 1.392 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/0.5157, allocations: 1.235 MB / 1.393 GB, free: 10.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.5157, allocations: 0 / 1.393 GB, free: 10.3 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002399/0.5159, allocations: 71.72 kB / 1.394 GB, free: 10.23 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.5159, allocations: 0 / 1.394 GB, free: 10.23 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.49e-05/0.516, allocations: 12 kB / 1.394 GB, free: 10.21 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.516, allocations: 4 kB / 1.394 GB, free: 10.21 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.516, allocations: 0 / 1.394 GB, free: 10.21 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009191/0.5169, allocations: 0.5852 MB / 1.394 GB, free: 9.609 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 9.057e-05/0.517, allocations: 116.6 kB / 1.394 GB, free: 9.477 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.231e-05/0.5171, allocations: 23.95 kB / 1.394 GB, free: 9.453 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003324/0.5174, allocations: 63.94 kB / 1.394 GB, free: 9.391 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/0.5176, allocations: 80.44 kB / 1.394 GB, free: 9.312 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.974e-05/0.5177, allocations: 19.98 kB / 1.394 GB, free: 9.293 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0002162/0.5179, allocations: 218 kB / 1.395 GB, free: 9.082 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.91e-07/0.5179, allocations: 0 / 1.395 GB, free: 9.082 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004422/0.5183, allocations: 115.8 kB / 1.395 GB, free: 8.969 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: 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) * Number of clocked states: 0 () * 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.0008786/0.5192, allocations: 408.9 kB / 1.395 GB, free: 8.695 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001006/0.5202, allocations: 0.5502 MB / 1.396 GB, free: 8.129 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.5203, allocations: 0 / 1.396 GB, free: 8.129 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0004707/0.5207, allocations: 271.5 kB / 1.396 GB, free: 7.863 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.5211, allocations: 54.17 kB / 1.396 GB, free: 7.805 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.5226, allocations: 0.9667 MB / 1.397 GB, free: 6.812 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004279/0.5231, allocations: 0.8598 MB / 1.398 GB, free: 5.93 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002493/0.5233, allocations: 63.42 kB / 1.398 GB, free: 5.867 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.5235, allocations: 51.36 kB / 1.398 GB, free: 5.816 MB / 0.9011 GB Notification: Performance of SimCode: time 2.1e-07/0.5235, allocations: 0 / 1.398 GB, free: 5.816 MB / 0.9011 GB Notification: Performance of Templates: time 0.01062/0.5341, allocations: 5.205 MB / 1.403 GB, free: 0.6523 MB / 0.9011 GB make -j1 -f Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.makefile (rm -f Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe ; mkfifo Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe ; head -c 1048576 < Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe >> ../files/Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.sim & ./Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage.csv","../files/Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches