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.412/2.412, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.001239/0.001239, allocations: 176.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.573/1.573, allocations: 221.3 MB / 0.7915 GB, free: 5.398 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.0009225/0.0009224, allocations: 87.89 kB / 0.9317 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.0003184/0.0003184, allocations: 8 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3073, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.087/1.394, allocations: 156.1 MB / 1.371 GB, free: 14 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/1.395, allocations: 82.2 kB / 1.371 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.02674/1.421, allocations: 9.806 MB / 1.381 GB, free: 5.664 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.045e-06/1.421, allocations: 0 / 1.381 GB, free: 5.664 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.465e-05/1.421, allocations: 16 kB / 1.381 GB, free: 5.648 MB / 0.8386 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.001238/1.423, allocations: 0.7244 MB / 1.382 GB, free: 4.906 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/1.423, allocations: 8.031 kB / 1.382 GB, free: 4.898 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/1.423, allocations: 67.23 kB / 1.382 GB, free: 4.832 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005763/1.423, allocations: 364.2 kB / 1.382 GB, free: 4.5 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.08e-05/1.424, allocations: 46.25 kB / 1.382 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.931e-05/1.424, allocations: 57.42 kB / 1.382 GB, free: 4.434 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009207/1.425, allocations: 0.4936 MB / 1.383 GB, free: 4.094 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/1.425, allocations: 3.938 kB / 1.383 GB, free: 4.09 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.648e-05/1.425, allocations: 20.55 kB / 1.383 GB, free: 4.082 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/1.425, allocations: 12 kB / 1.383 GB, free: 4.07 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006775/1.425, allocations: 399.2 kB / 1.383 GB, free: 3.82 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002389/1.428, allocations: 1.439 MB / 1.384 GB, free: 2.715 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008433/1.429, allocations: 445.8 kB / 1.385 GB, free: 2.418 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003206/1.429, allocations: 202.5 kB / 1.385 GB, free: 2.293 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 6.882e-05/1.429, allocations: 4.438 kB / 1.385 GB, free: 2.289 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005192/1.43, allocations: 271.8 kB / 1.385 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=58): time 3.417e-06/1.43, allocations: 0 / 1.385 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of matching and sorting (n=58): time 0.0008341/1.43, allocations: 406.1 kB / 1.386 GB, free: 1.766 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.31e-05/1.43, allocations: 75.06 kB / 1.386 GB, free: 1.684 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004282/1.431, allocations: 312.9 kB / 1.386 GB, free: 1.434 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.39e-05/1.431, allocations: 54.69 kB / 1.386 GB, free: 1.391 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/1.431, allocations: 209.6 kB / 1.386 GB, free: 1.227 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/1.431, allocations: 152.1 kB / 1.386 GB, free: 1.102 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.789e-05/1.431, allocations: 13.38 kB / 1.386 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001733/1.432, allocations: 354.5 kB / 1.387 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002798/1.432, allocations: 158.2 kB / 1.387 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003728/1.432, allocations: 245.6 kB / 1.387 GB, free: 484 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003091/1.433, allocations: 189.7 kB / 1.387 GB, free: 336 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/1.433, allocations: 0 / 1.387 GB, free: 336 kB / 0.8386 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.0008734/1.433, allocations: 0.5233 MB / 1.388 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.039e-05/1.433, allocations: 29.7 kB / 1.388 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/1.433, allocations: 4 kB / 1.388 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/1.433, allocations: 7.953 kB / 1.388 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003629/1.434, allocations: 87 kB / 1.388 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/1.434, allocations: 4 kB / 1.388 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000387/1.434, allocations: 86.7 kB / 1.388 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-05/1.434, allocations: 23.48 kB / 1.388 GB, free: 15.7 MB / 0.8542 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.000173/1.435, allocations: 167.5 kB / 1.388 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.486e-05/1.435, allocations: 35.53 kB / 1.388 GB, free: 15.51 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007979/1.435, allocations: 493.7 kB / 1.389 GB, free: 15.17 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/1.435, allocations: 11.94 kB / 1.389 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/1.435, allocations: 0 / 1.389 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.647e-06/1.435, allocations: 7.922 kB / 1.389 GB, free: 15.15 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001697/1.437, allocations: 1.178 MB / 1.39 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/1.437, allocations: 0 / 1.39 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002425/1.437, allocations: 63.52 kB / 1.39 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-05/1.437, allocations: 4 kB / 1.39 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.76e-05/1.437, allocations: 19.42 kB / 1.39 GB, free: 14.13 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/1.438, allocations: 0 / 1.39 GB, free: 14.13 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/1.438, allocations: 0 / 1.39 GB, free: 14.13 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007125/1.438, allocations: 0.5342 MB / 1.391 GB, free: 13.68 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/1.438, allocations: 127.2 kB / 1.391 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.061e-05/1.438, allocations: 14.98 kB / 1.391 GB, free: 13.54 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003272/1.439, allocations: 63.31 kB / 1.391 GB, free: 13.48 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002029/1.439, allocations: 85.25 kB / 1.391 GB, free: 13.42 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.347e-05/1.439, allocations: 19.05 kB / 1.391 GB, free: 13.4 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002416/1.439, allocations: 221.7 kB / 1.391 GB, free: 13.23 MB / 0.8542 GB Notification: Performance of sort global known variables: time 2.3e-07/1.439, allocations: 0 / 1.391 GB, free: 13.23 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000466/1.44, allocations: 113.6 kB / 1.391 GB, free: 13.14 MB / 0.8542 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.0009236/1.441, allocations: 368.1 kB / 1.391 GB, free: 12.88 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0008171/1.442, allocations: 0.4891 MB / 1.392 GB, free: 12.51 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/1.442, allocations: 0 / 1.392 GB, free: 12.51 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003544/1.442, allocations: 249.6 kB / 1.392 GB, free: 12.34 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/1.442, allocations: 54.86 kB / 1.392 GB, free: 12.3 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/1.444, allocations: 0.6203 MB / 1.393 GB, free: 11.77 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004612/1.444, allocations: 0.8587 MB / 1.394 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002721/1.444, allocations: 71.42 kB / 1.394 GB, free: 10.82 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/1.444, allocations: 43.42 kB / 1.394 GB, free: 10.78 MB / 0.8542 GB Notification: Performance of SimCode: time 4.41e-07/1.444, allocations: 4 kB / 1.394 GB, free: 10.78 MB / 0.8542 GB Notification: Performance of Templates: time 0.0105/1.455, allocations: 5.303 MB / 1.399 GB, free: 5.523 MB / 0.8542 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