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.508/2.508, allocations: 387.1 MB / 399.7 MB, free: 9.566 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.001469/0.001469, allocations: 180.9 kB / 492.3 MB, free: 0.625 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.758/1.758, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.001021/0.00102, allocations: 93.84 kB / 0.9267 GB, free: 13.94 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.789e-05/3.793e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3025, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.04/1.342, allocations: 155 MB / 1.364 GB, free: 19.05 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/1.342, allocations: 89.06 kB / 1.364 GB, free: 19.05 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02364/1.366, allocations: 9.663 MB / 1.373 GB, free: 34.1 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.182e-06/1.366, allocations: 3.812 kB / 1.373 GB, free: 34.1 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.549e-05/1.366, allocations: 11.84 kB / 1.373 GB, free: 34.1 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.00114/1.367, allocations: 0.7213 MB / 1.374 GB, free: 33.58 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/1.367, allocations: 7.688 kB / 1.374 GB, free: 33.58 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/1.367, allocations: 58.39 kB / 1.374 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004991/1.368, allocations: 383.1 kB / 1.374 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.303e-05/1.368, allocations: 44.7 kB / 1.374 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.433e-05/1.368, allocations: 51.91 kB / 1.375 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008064/1.369, allocations: 491.6 kB / 1.375 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/1.369, allocations: 0 / 1.375 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.893e-05/1.369, allocations: 23.08 kB / 1.375 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/1.369, allocations: 17.83 kB / 1.375 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006102/1.37, allocations: 391.8 kB / 1.375 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002078/1.372, allocations: 1.418 MB / 1.377 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007253/1.372, allocations: 451.4 kB / 1.377 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002628/1.373, allocations: 202.8 kB / 1.377 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.882e-05/1.373, allocations: 13.61 kB / 1.377 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004257/1.373, allocations: 261.8 kB / 1.378 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=58): time 2.113e-06/1.373, allocations: 0 / 1.378 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of matching and sorting (n=58): time 0.000648/1.374, allocations: 404.4 kB / 1.378 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/1.374, allocations: 66.86 kB / 1.378 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002976/1.374, allocations: 304.7 kB / 1.378 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.569e-05/1.374, allocations: 60.95 kB / 1.378 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/1.374, allocations: 216.3 kB / 1.379 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.122e-05/1.375, allocations: 141.2 kB / 1.379 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.515e-05/1.375, allocations: 14.47 kB / 1.379 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001198/1.375, allocations: 350.8 kB / 1.379 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002482/1.375, allocations: 161.6 kB / 1.379 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000281/1.375, allocations: 248.5 kB / 1.38 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002549/1.375, allocations: 185.6 kB / 1.38 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/1.376, allocations: 0 / 1.38 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.0006826/1.376, allocations: 0.5263 MB / 1.38 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.242e-05/1.376, allocations: 33.39 kB / 1.38 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/1.376, allocations: 0 / 1.38 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/1.376, allocations: 11.62 kB / 1.38 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000312/1.377, allocations: 75.89 kB / 1.38 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/1.377, allocations: 4.094 kB / 1.38 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003352/1.377, allocations: 83.42 kB / 1.38 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.963e-05/1.377, allocations: 26.03 kB / 1.38 GB, free: 31.59 MB / 0.8386 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.0001506/1.377, allocations: 176.2 kB / 1.381 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.062e-05/1.377, allocations: 38.59 kB / 1.381 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007273/1.378, allocations: 493.2 kB / 1.381 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/1.378, allocations: 7.562 kB / 1.381 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/1.378, allocations: 4 kB / 1.381 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/1.378, allocations: 6.828 kB / 1.381 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001461/1.379, allocations: 1.166 MB / 1.382 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/1.379, allocations: 4 kB / 1.382 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002285/1.38, allocations: 53.86 kB / 1.382 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.907e-06/1.38, allocations: 7.828 kB / 1.382 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.392e-05/1.38, allocations: 20.77 kB / 1.382 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/1.38, allocations: 0 / 1.382 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/1.38, allocations: 0 / 1.382 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006268/1.38, allocations: 0.5359 MB / 1.383 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.093e-05/1.381, allocations: 122.4 kB / 1.383 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.893e-05/1.381, allocations: 22.77 kB / 1.383 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003178/1.381, allocations: 59.81 kB / 1.383 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/1.381, allocations: 79.77 kB / 1.383 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.125e-05/1.381, allocations: 25.64 kB / 1.383 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002178/1.381, allocations: 215.2 kB / 1.383 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.381, allocations: 0 / 1.383 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004085/1.382, allocations: 101.8 kB / 1.384 GB, free: 30.62 MB / 0.8386 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.0008916/1.383, allocations: 381.5 kB / 1.384 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0007489/1.383, allocations: 0.4974 MB / 1.384 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/1.383, allocations: 4.438 kB / 1.384 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003081/1.384, allocations: 242.8 kB / 1.385 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000368/1.384, allocations: 45.7 kB / 1.385 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/1.385, allocations: 0.6151 MB / 1.385 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004253/1.386, allocations: 0.8547 MB / 1.386 GB, free: 29.28 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002374/1.386, allocations: 69.55 kB / 1.386 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/1.386, allocations: 45.98 kB / 1.386 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of SimCode: time 5.51e-07/1.386, allocations: 0 / 1.386 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of Templates: time 0.009212/1.395, allocations: 5.211 MB / 1.391 GB, free: 26.69 MB / 0.8386 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