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: "" <> buildModelFMU(Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage,fileNamePrefix="Buildings_latest_Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage,fileNamePrefix="Buildings_latest_Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.411/2.411, allocations: 393.5 MB / 408.4 MB, free: 11.08 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.001158/0.001157, allocations: 180 kB / 0.4901 GB, free: 2.246 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.667/1.667, allocations: 223.1 MB / 0.7992 GB, free: 14.71 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.001205/0.001205, allocations: 91.3 kB / 0.9396 GB, free: 1.938 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003817/0.0003815, allocations: 7.906 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4091/0.4095, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2061/0.6156, allocations: 156.1 MB / 1.382 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003246/0.616, allocations: 99.88 kB / 1.382 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02555/0.6416, allocations: 9.835 MB / 1.391 GB, free: 3.336 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6417, allocations: 0 / 1.391 GB, free: 3.336 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.032e-05/0.6417, allocations: 12 kB / 1.391 GB, free: 3.324 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.001321/0.643, allocations: 0.766 MB / 1.392 GB, free: 2.5 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.6431, allocations: 11.97 kB / 1.392 GB, free: 2.488 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001123/0.6432, allocations: 90.52 kB / 1.392 GB, free: 2.391 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.6433, allocations: 55.34 kB / 1.392 GB, free: 2.336 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005486/0.6439, allocations: 374.2 kB / 1.393 GB, free: 1.93 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.079e-05/0.6439, allocations: 45 kB / 1.393 GB, free: 1.883 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.477e-05/0.644, allocations: 52 kB / 1.393 GB, free: 1.832 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009717/0.645, allocations: 0.5332 MB / 1.393 GB, free: 1.285 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.645, allocations: 0 / 1.393 GB, free: 1.285 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.549e-05/0.6451, allocations: 16 kB / 1.393 GB, free: 1.27 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.6451, allocations: 12 kB / 1.393 GB, free: 1.258 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008944/0.646, allocations: 459.7 kB / 1.394 GB, free: 0.8086 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002181/0.6482, allocations: 1.446 MB / 1.395 GB, free: 15.3 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009273/0.6491, allocations: 498.5 kB / 1.396 GB, free: 14.82 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.793e-05/0.6492, allocations: 5.219 kB / 1.396 GB, free: 14.81 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005456/0.6497, allocations: 310.8 kB / 1.396 GB, free: 14.5 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=58): time 2.204e-06/0.6498, allocations: 0 / 1.396 GB, free: 14.5 MB / 0.9011 GB Notification: Performance of matching and sorting (n=58): time 0.0013/0.6511, allocations: 0.6156 MB / 1.397 GB, free: 13.88 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.6511, allocations: 67.95 kB / 1.397 GB, free: 13.8 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003509/0.6515, allocations: 321.8 kB / 1.397 GB, free: 13.48 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 6.161e-05/0.6516, allocations: 45.7 kB / 1.397 GB, free: 13.43 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/0.6517, allocations: 217.2 kB / 1.397 GB, free: 13.21 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.6518, allocations: 142.2 kB / 1.397 GB, free: 13.07 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.211e-05/0.6519, allocations: 12 kB / 1.397 GB, free: 13.06 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001699/0.6521, allocations: 350.8 kB / 1.398 GB, free: 12.71 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004055/0.6525, allocations: 197.2 kB / 1.398 GB, free: 12.52 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004333/0.6529, allocations: 277.9 kB / 1.398 GB, free: 12.22 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.6533, allocations: 204.9 kB / 1.398 GB, free: 12.02 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.6533, allocations: 0 / 1.398 GB, free: 12.02 MB / 0.9011 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001031/0.6544, allocations: 0.5921 MB / 1.399 GB, free: 11.41 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 4.434e-05/0.6544, allocations: 37.73 kB / 1.399 GB, free: 11.37 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.6544, allocations: 7.953 kB / 1.399 GB, free: 11.36 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.6545, allocations: 4 kB / 1.399 GB, free: 11.36 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003013/0.6548, allocations: 75.83 kB / 1.399 GB, free: 11.29 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.6548, allocations: 4 kB / 1.399 GB, free: 11.28 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003671/0.6552, allocations: 83.69 kB / 1.399 GB, free: 11.2 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.367e-05/0.6552, allocations: 24 kB / 1.399 GB, free: 11.18 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.0002681/0.6555, allocations: 245.6 kB / 1.399 GB, free: 10.93 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.529e-05/0.6556, allocations: 43.47 kB / 1.399 GB, free: 10.88 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001004/0.6566, allocations: 0.5304 MB / 1.4 GB, free: 10.34 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-06/0.6566, allocations: 11.95 kB / 1.4 GB, free: 10.33 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.6566, allocations: 0 / 1.4 GB, free: 10.33 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.6566, allocations: 3.984 kB / 1.4 GB, free: 10.33 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001877/0.6585, allocations: 1.239 MB / 1.401 GB, free: 9.035 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.6585, allocations: 4 kB / 1.401 GB, free: 9.031 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002352/0.6588, allocations: 63.83 kB / 1.401 GB, free: 8.969 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.6588, allocations: 4 kB / 1.401 GB, free: 8.965 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.557e-05/0.6588, allocations: 12 kB / 1.401 GB, free: 8.953 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.6588, allocations: 3.984 kB / 1.401 GB, free: 8.949 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.6588, allocations: 0 / 1.401 GB, free: 8.949 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009143/0.6598, allocations: 0.589 MB / 1.402 GB, free: 8.344 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.6599, allocations: 124.5 kB / 1.402 GB, free: 8.203 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.085e-05/0.6599, allocations: 15.98 kB / 1.402 GB, free: 8.188 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003299/0.6603, allocations: 59.95 kB / 1.402 GB, free: 8.129 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.6605, allocations: 88.42 kB / 1.402 GB, free: 8.043 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-05/0.6605, allocations: 23.98 kB / 1.402 GB, free: 8.02 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0002153/0.6607, allocations: 222 kB / 1.402 GB, free: 7.797 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6607, allocations: 4 kB / 1.402 GB, free: 7.793 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004158/0.6612, allocations: 111.9 kB / 1.402 GB, free: 7.684 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.001997/0.6632, allocations: 1.424 MB / 1.404 GB, free: 6.371 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.00099/0.6642, allocations: 0.5619 MB / 1.404 GB, free: 5.793 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.6642, allocations: 0 / 1.404 GB, free: 5.793 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0004659/0.6646, allocations: 267.1 kB / 1.405 GB, free: 5.531 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000366/0.665, allocations: 62.8 kB / 1.405 GB, free: 5.469 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004227/0.6693, allocations: 3.605 MB / 1.408 GB, free: 1.777 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.6697, allocations: 0.8637 MB / 1.409 GB, free: 0.8828 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002556/0.67, allocations: 67.42 kB / 1.409 GB, free: 0.8125 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002754/0.6702, allocations: 171.4 kB / 1.409 GB, free: 0.6445 MB / 0.9011 GB Notification: Performance of SimCode: time 5.81e-07/0.6702, allocations: 0 / 1.409 GB, free: 0.6445 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02368/0.6939, allocations: 9.365 MB / 1.418 GB, free: 7.484 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002175/0.6942, allocations: 257.1 kB / 1.419 GB, free: 7.148 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.454/3.148, allocations: 0 / 1.419 GB, free: 7.148 MB / 0.9167 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage_res.mat --tempDir=temp_Buildings_latest_Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage_fmu --startTime=0 --stopTime=1080 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage.fmu > Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage_res.mat does not exist to compare? outputFormat=mat