Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.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.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_latest_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_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.449/2.449, allocations: 393.5 MB / 408.4 MB, free: 11.09 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.001112/0.001112, allocations: 187.6 kB / 0.4902 GB, free: 2.285 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.814/1.814, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.00116/0.00116, allocations: 100.2 kB / 0.9396 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004011/0.0004012, allocations: 10.53 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.3829, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2208/0.6038, allocations: 156.1 MB / 1.382 GB, free: 13.47 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003097/0.6041, allocations: 91.95 kB / 1.382 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.0274/0.6315, allocations: 9.831 MB / 1.391 GB, free: 3.484 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.106e-06/0.6316, allocations: 0 / 1.391 GB, free: 3.484 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 6.313e-05/0.6317, allocations: 16 kB / 1.391 GB, free: 3.469 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001971/0.6337, allocations: 0.762 MB / 1.392 GB, free: 2.648 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.737e-05/0.6337, allocations: 16.52 kB / 1.392 GB, free: 2.633 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002764/0.634, allocations: 55.34 kB / 1.392 GB, free: 2.578 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007828/0.6348, allocations: 374.2 kB / 1.393 GB, free: 2.172 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.982e-05/0.6349, allocations: 48.98 kB / 1.393 GB, free: 2.121 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.635, allocations: 56 kB / 1.393 GB, free: 2.066 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.6362, allocations: 0.5215 MB / 1.393 GB, free: 1.531 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.6362, allocations: 0 / 1.393 GB, free: 1.531 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.544e-05/0.6363, allocations: 23.98 kB / 1.393 GB, free: 1.508 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.6363, allocations: 12 kB / 1.393 GB, free: 1.496 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.6373, allocations: 459.7 kB / 1.394 GB, free: 1.047 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002697/0.64, allocations: 1.442 MB / 1.395 GB, free: 15.55 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.6412, allocations: 498.6 kB / 1.396 GB, free: 15.05 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 5.206e-05/0.6413, allocations: 12.73 kB / 1.396 GB, free: 15.04 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006246/0.6419, allocations: 290.9 kB / 1.396 GB, free: 14.75 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=58): time 3.526e-06/0.6419, allocations: 4 kB / 1.396 GB, free: 14.75 MB / 0.9011 GB Notification: Performance of matching and sorting (n=58): time 0.001426/0.6433, allocations: 0.6234 MB / 1.396 GB, free: 14.12 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.945e-05/0.6434, allocations: 71.95 kB / 1.396 GB, free: 14.04 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004509/0.6439, allocations: 317.8 kB / 1.397 GB, free: 13.72 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 8.13e-05/0.644, allocations: 49.7 kB / 1.397 GB, free: 13.67 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002027/0.6442, allocations: 217.2 kB / 1.397 GB, free: 13.45 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.6443, allocations: 134.2 kB / 1.397 GB, free: 13.32 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.353e-05/0.6444, allocations: 12 kB / 1.397 GB, free: 13.3 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001952/0.6446, allocations: 358.8 kB / 1.398 GB, free: 12.95 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004559/0.6451, allocations: 193.2 kB / 1.398 GB, free: 12.76 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000479/0.6455, allocations: 281.9 kB / 1.398 GB, free: 12.46 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004443/0.646, allocations: 212.8 kB / 1.398 GB, free: 12.25 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.646, allocations: 0 / 1.398 GB, free: 12.25 MB / 0.9011 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001121/0.6471, allocations: 0.5805 MB / 1.399 GB, free: 11.65 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 5.553e-05/0.6472, allocations: 41.69 kB / 1.399 GB, free: 11.61 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.6472, allocations: 3.938 kB / 1.399 GB, free: 11.6 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.6473, allocations: 11.95 kB / 1.399 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003233/0.6476, allocations: 71.83 kB / 1.399 GB, free: 11.52 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.797e-05/0.6476, allocations: 11.94 kB / 1.399 GB, free: 11.51 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004269/0.648, allocations: 79.72 kB / 1.399 GB, free: 11.43 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.423e-05/0.6481, allocations: 24 kB / 1.399 GB, free: 11.41 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.0003336/0.6485, allocations: 242.4 kB / 1.399 GB, free: 11.16 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.841e-05/0.6485, allocations: 39.53 kB / 1.399 GB, free: 11.12 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.6496, allocations: 0.5343 MB / 1.4 GB, free: 10.58 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.6497, allocations: 11.98 kB / 1.4 GB, free: 10.57 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.6497, allocations: 3.953 kB / 1.4 GB, free: 10.56 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.6497, allocations: 0 / 1.4 GB, free: 10.56 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002078/0.6518, allocations: 1.239 MB / 1.401 GB, free: 9.27 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.6518, allocations: 0 / 1.401 GB, free: 9.27 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.652, allocations: 59.89 kB / 1.401 GB, free: 9.211 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-06/0.652, allocations: 4 kB / 1.401 GB, free: 9.207 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.52e-05/0.6521, allocations: 12 kB / 1.401 GB, free: 9.195 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.6521, allocations: 0 / 1.401 GB, free: 9.195 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.6521, allocations: 3.938 kB / 1.401 GB, free: 9.191 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009972/0.6531, allocations: 0.5852 MB / 1.402 GB, free: 8.59 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.6533, allocations: 136.5 kB / 1.402 GB, free: 8.438 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.394e-05/0.6533, allocations: 16 kB / 1.402 GB, free: 8.422 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003468/0.6537, allocations: 59.94 kB / 1.402 GB, free: 8.363 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001939/0.6539, allocations: 92.42 kB / 1.402 GB, free: 8.273 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.284e-05/0.6539, allocations: 16 kB / 1.402 GB, free: 8.258 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0002484/0.6542, allocations: 221.9 kB / 1.402 GB, free: 8.035 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6542, allocations: 0 / 1.402 GB, free: 8.035 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0005001/0.6547, allocations: 119.9 kB / 1.402 GB, free: 7.918 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.0009994/0.6557, allocations: 405.4 kB / 1.403 GB, free: 7.648 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001101/0.6568, allocations: 0.5502 MB / 1.403 GB, free: 7.086 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.6568, allocations: 4 kB / 1.403 GB, free: 7.082 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0005108/0.6574, allocations: 275.5 kB / 1.403 GB, free: 6.812 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003876/0.6578, allocations: 48.86 kB / 1.404 GB, free: 6.762 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.6595, allocations: 0.9707 MB / 1.404 GB, free: 5.766 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004481/0.66, allocations: 0.8598 MB / 1.405 GB, free: 4.879 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002706/0.6603, allocations: 75.41 kB / 1.405 GB, free: 4.805 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/0.6604, allocations: 47.42 kB / 1.405 GB, free: 4.758 MB / 0.9011 GB Notification: Performance of SimCode: time 7.31e-07/0.6604, allocations: 0 / 1.405 GB, free: 4.758 MB / 0.9011 GB Notification: Performance of Templates: time 0.01207/0.6725, allocations: 5.274 MB / 1.411 GB, free: 15.53 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.makefile (rm -f Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe ; mkfifo Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe >> ../files/Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.sim & ./Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage.csv","../files/Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches