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.419/2.419, allocations: 387.4 MB / 394.9 MB, free: 13.4 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.001427/0.001427, allocations: 176.8 kB / 487.4 MB, free: 5.066 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.6/1.6, allocations: 221.5 MB / 0.7824 GB, free: 0.9922 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009964/0.0009965, allocations: 94.08 kB / 0.9219 GB, free: 2.227 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.427e-05/2.438e-05, allocations: 1.484 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2869, allocations: 142.4 MB / 1.206 GB, free: 43.88 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.013/1.3, allocations: 154.3 MB / 1.357 GB, free: 18.34 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002998/1.3, allocations: 87.17 kB / 1.357 GB, free: 18.34 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02599/1.326, allocations: 9.536 MB / 1.366 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.673e-06/1.326, allocations: 3.938 kB / 1.366 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.157e-05/1.327, allocations: 11.5 kB / 1.366 GB, free: 33.42 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.001101/1.328, allocations: 0.7215 MB / 1.367 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/1.328, allocations: 12.03 kB / 1.367 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/1.328, allocations: 54.12 kB / 1.367 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004606/1.328, allocations: 372.5 kB / 1.367 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/1.328, allocations: 28.75 kB / 1.367 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.291e-05/1.328, allocations: 31.03 kB / 1.367 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006104/1.329, allocations: 371.8 kB / 1.368 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006536/1.33, allocations: 443 kB / 1.368 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/1.33, allocations: 3.953 kB / 1.368 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.814e-05/1.33, allocations: 0 / 1.368 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/1.33, allocations: 11.53 kB / 1.368 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/1.332, allocations: 1.336 MB / 1.369 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006238/1.332, allocations: 419.2 kB / 1.37 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002376/1.333, allocations: 188.2 kB / 1.37 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.679e-05/1.333, allocations: 7.906 kB / 1.37 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003964/1.333, allocations: 246.9 kB / 1.37 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=58): time 1.913e-06/1.333, allocations: 0 / 1.37 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=58): time 0.0006036/1.334, allocations: 367.6 kB / 1.371 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/1.334, allocations: 69.58 kB / 1.371 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003145/1.334, allocations: 290.9 kB / 1.371 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.194e-05/1.334, allocations: 39.58 kB / 1.371 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/1.334, allocations: 212.6 kB / 1.371 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.169e-05/1.334, allocations: 135 kB / 1.371 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.38e-05/1.334, allocations: 3.938 kB / 1.371 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001401/1.335, allocations: 356.9 kB / 1.372 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002308/1.335, allocations: 151.1 kB / 1.372 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002471/1.335, allocations: 232.7 kB / 1.372 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002048/1.335, allocations: 141.2 kB / 1.372 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/1.335, allocations: 4 kB / 1.372 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.0006328/1.336, allocations: 456.4 kB / 1.373 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.736e-05/1.336, allocations: 36.06 kB / 1.373 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/1.336, allocations: 3.938 kB / 1.373 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/1.336, allocations: 3.875 kB / 1.373 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003086/1.336, allocations: 80.62 kB / 1.373 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/1.336, allocations: 7.844 kB / 1.373 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000331/1.337, allocations: 61.52 kB / 1.373 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.905e-05/1.337, allocations: 22.78 kB / 1.373 GB, free: 31.03 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.0001525/1.337, allocations: 162.1 kB / 1.373 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004921/1.337, allocations: 365.8 kB / 1.373 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.935e-05/1.337, allocations: 38.56 kB / 1.373 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007159/1.338, allocations: 444.8 kB / 1.374 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/1.338, allocations: 7.719 kB / 1.374 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/1.338, allocations: 3.188 kB / 1.374 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/1.338, allocations: 6.906 kB / 1.374 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/1.34, allocations: 1.056 MB / 1.375 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/1.34, allocations: 0 / 1.375 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002276/1.34, allocations: 57.41 kB / 1.375 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/1.34, allocations: 7.797 kB / 1.375 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.852e-05/1.34, allocations: 10.5 kB / 1.375 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/1.34, allocations: 0 / 1.375 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/1.34, allocations: 0 / 1.375 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000596/1.341, allocations: 0.5064 MB / 1.375 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.613e-05/1.341, allocations: 122.3 kB / 1.376 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.641e-05/1.341, allocations: 7.516 kB / 1.376 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003276/1.341, allocations: 59.89 kB / 1.376 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/1.341, allocations: 75.94 kB / 1.376 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.395e-05/1.341, allocations: 18.03 kB / 1.376 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001862/1.341, allocations: 204.6 kB / 1.376 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.341, allocations: 0 / 1.376 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004073/1.342, allocations: 95.2 kB / 1.376 GB, free: 30.03 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.00151/1.343, allocations: 1.273 MB / 1.377 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006284/1.344, allocations: 471 kB / 1.378 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/1.344, allocations: 0 / 1.378 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002688/1.344, allocations: 224.9 kB / 1.378 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/1.345, allocations: 61.61 kB / 1.378 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/1.346, allocations: 0.6722 MB / 1.379 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/1.346, allocations: 0.8557 MB / 1.379 GB, free: 28.17 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002237/1.347, allocations: 73.19 kB / 1.379 GB, free: 28.15 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002374/1.347, allocations: 162.8 kB / 1.38 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of SimCode: time 3.81e-07/1.347, allocations: 4 kB / 1.38 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03026/1.377, allocations: 8.751 MB / 1.388 GB, free: 24.87 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/1.377, allocations: 202.9 kB / 1.388 GB, free: 24.61 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.306/3.683, allocations: 0 / 1.388 GB, free: 24.61 MB / 0.8386 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