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: "" <> buildModelFMU(Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage,fileNamePrefix="Buildings_9_Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.284/2.284, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.00112/0.00112, allocations: 184.9 kB / 498.1 MB, free: 5.746 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.544/1.544, allocations: 223.1 MB / 0.7948 GB, free: 18 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.001119/0.001119, allocations: 90.83 kB / 0.9346 GB, free: 6.297 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003847/0.0003847, allocations: 8.562 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3428, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2123/0.5551, allocations: 155.1 MB / 1.374 GB, free: 6.969 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003637/0.5556, allocations: 91.89 kB / 1.374 GB, free: 6.879 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02896/0.5846, allocations: 9.694 MB / 1.384 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.074e-06/0.5846, allocations: 0 / 1.384 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 5.643e-05/0.5847, allocations: 16 kB / 1.384 GB, free: 13.1 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.001973/0.5867, allocations: 0.762 MB / 1.385 GB, free: 12.28 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.004e-05/0.5868, allocations: 12.03 kB / 1.385 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002261/0.587, allocations: 82.52 kB / 1.385 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002035/0.5872, allocations: 59.34 kB / 1.385 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007558/0.588, allocations: 370.2 kB / 1.385 GB, free: 11.72 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.953e-05/0.5881, allocations: 48.98 kB / 1.385 GB, free: 11.67 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.915e-05/0.5882, allocations: 52 kB / 1.385 GB, free: 11.62 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.5894, allocations: 0.5176 MB / 1.386 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.5894, allocations: 0 / 1.386 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.337e-05/0.5895, allocations: 20 kB / 1.386 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.761e-05/0.5895, allocations: 12 kB / 1.386 GB, free: 11.06 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001104/0.5906, allocations: 455.7 kB / 1.386 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002738/0.5934, allocations: 1.426 MB / 1.388 GB, free: 9.137 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.5945, allocations: 498.1 kB / 1.388 GB, free: 8.645 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.7e-05/0.5945, allocations: 8.5 kB / 1.388 GB, free: 8.637 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006281/0.5952, allocations: 294.8 kB / 1.388 GB, free: 8.336 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=58): time 2.454e-06/0.5952, allocations: 0 / 1.388 GB, free: 8.336 MB / 0.8855 GB Notification: Performance of matching and sorting (n=58): time 0.001473/0.5967, allocations: 0.6273 MB / 1.389 GB, free: 7.703 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.184e-05/0.5967, allocations: 63.95 kB / 1.389 GB, free: 7.625 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000425/0.5972, allocations: 309.9 kB / 1.389 GB, free: 7.32 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.683e-05/0.5973, allocations: 49.7 kB / 1.389 GB, free: 7.266 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002055/0.5975, allocations: 217.1 kB / 1.39 GB, free: 7.047 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.5976, allocations: 146.1 kB / 1.39 GB, free: 6.902 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.228e-05/0.5977, allocations: 12 kB / 1.39 GB, free: 6.891 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001792/0.5979, allocations: 354.8 kB / 1.39 GB, free: 6.535 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004883/0.5984, allocations: 197.2 kB / 1.39 GB, free: 6.34 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005192/0.5989, allocations: 274 kB / 1.391 GB, free: 6.047 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004561/0.5994, allocations: 212.8 kB / 1.391 GB, free: 5.84 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.5994, allocations: 0 / 1.391 GB, free: 5.84 MB / 0.8855 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001189/0.6006, allocations: 0.5844 MB / 1.391 GB, free: 5.242 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.956e-05/0.6006, allocations: 33.69 kB / 1.391 GB, free: 5.203 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.6006, allocations: 4 kB / 1.391 GB, free: 5.199 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.447e-05/0.6007, allocations: 4 kB / 1.391 GB, free: 5.195 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003343/0.601, allocations: 79.83 kB / 1.391 GB, free: 5.117 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/0.601, allocations: 7.953 kB / 1.391 GB, free: 5.109 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004432/0.6015, allocations: 83.73 kB / 1.392 GB, free: 5.027 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.024e-05/0.6016, allocations: 32 kB / 1.392 GB, free: 4.996 MB / 0.8855 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.0003423/0.6019, allocations: 233.7 kB / 1.392 GB, free: 4.758 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.948e-05/0.602, allocations: 35.53 kB / 1.392 GB, free: 4.723 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001153/0.6032, allocations: 0.5303 MB / 1.392 GB, free: 4.184 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-06/0.6032, allocations: 8 kB / 1.392 GB, free: 4.176 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.6032, allocations: 0 / 1.392 GB, free: 4.176 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.6032, allocations: 7.938 kB / 1.392 GB, free: 4.168 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002196/0.6054, allocations: 1.227 MB / 1.394 GB, free: 2.887 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.6054, allocations: 7.953 kB / 1.394 GB, free: 2.879 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000246/0.6057, allocations: 59.89 kB / 1.394 GB, free: 2.82 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.6057, allocations: 3.938 kB / 1.394 GB, free: 2.816 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.055e-05/0.6058, allocations: 12 kB / 1.394 GB, free: 2.805 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.536e-06/0.6058, allocations: 4 kB / 1.394 GB, free: 2.801 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.6058, allocations: 7.938 kB / 1.394 GB, free: 2.793 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.6069, allocations: 0.5852 MB / 1.394 GB, free: 2.191 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001505/0.607, allocations: 124.5 kB / 1.394 GB, free: 2.051 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.645e-05/0.6071, allocations: 16 kB / 1.394 GB, free: 2.035 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003544/0.6075, allocations: 63.94 kB / 1.394 GB, free: 1.973 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/0.6077, allocations: 80.44 kB / 1.395 GB, free: 1.895 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.445e-05/0.6077, allocations: 23.98 kB / 1.395 GB, free: 1.871 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.000255/0.608, allocations: 210 kB / 1.395 GB, free: 1.668 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.9e-07/0.608, allocations: 0 / 1.395 GB, free: 1.668 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0005164/0.6085, allocations: 123.8 kB / 1.395 GB, free: 1.547 MB / 0.8855 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.00238/0.6109, allocations: 1.433 MB / 1.396 GB, free: 224 kB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001159/0.6121, allocations: 0.5502 MB / 1.397 GB, free: 15.65 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.6121, allocations: 4 kB / 1.397 GB, free: 15.65 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0005147/0.6126, allocations: 267.5 kB / 1.397 GB, free: 15.39 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004005/0.613, allocations: 52.86 kB / 1.397 GB, free: 15.33 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005381/0.6184, allocations: 3.579 MB / 1.401 GB, free: 11.67 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005809/0.619, allocations: 0.8481 MB / 1.401 GB, free: 10.8 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002857/0.6193, allocations: 71.42 kB / 1.401 GB, free: 10.73 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003129/0.6196, allocations: 163.4 kB / 1.402 GB, free: 10.57 MB / 0.9011 GB Notification: Performance of SimCode: time 1.483e-06/0.6197, allocations: 3.938 kB / 1.402 GB, free: 10.56 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03113/0.6508, allocations: 9.225 MB / 1.411 GB, free: 1.539 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000275/0.6511, allocations: 249.1 kB / 1.411 GB, free: 1.215 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.417/3.069, allocations: 0 / 1.411 GB, free: 1.215 MB / 0.9011 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage_res.mat --tempDir=temp_Buildings_9_Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage_fmu --startTime=0 --stopTime=1080 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage.fmu > Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage_res.mat does not exist to compare? outputFormat=mat