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.597/2.597, allocations: 390.5 MB / 398 MB, free: 10.92 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.001426/0.001426, allocations: 172.8 kB / 491.2 MB, free: 1.547 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.557/1.557, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.0009876/0.0009875, allocations: 83.95 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.384e-05/2.387e-05, allocations: 7.984 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2933, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.07/1.364, allocations: 155.4 MB / 1.364 GB, free: 17.31 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002288/1.364, allocations: 86.89 kB / 1.364 GB, free: 17.31 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02251/1.386, allocations: 9.659 MB / 1.374 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.032e-06/1.386, allocations: 0 / 1.374 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.227e-05/1.386, allocations: 15.56 kB / 1.374 GB, free: 32.38 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.00101/1.387, allocations: 0.7348 MB / 1.374 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/1.388, allocations: 7.844 kB / 1.374 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/1.388, allocations: 60.7 kB / 1.374 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004349/1.388, allocations: 373.1 kB / 1.375 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/1.388, allocations: 28.39 kB / 1.375 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.209e-05/1.388, allocations: 30.72 kB / 1.375 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005965/1.389, allocations: 377.3 kB / 1.375 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006451/1.389, allocations: 449.2 kB / 1.376 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/1.389, allocations: 0 / 1.376 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/1.389, allocations: 0 / 1.376 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.547e-06/1.39, allocations: 11.53 kB / 1.376 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/1.391, allocations: 1.351 MB / 1.377 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005903/1.392, allocations: 415.1 kB / 1.377 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/1.392, allocations: 183.5 kB / 1.378 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.335e-05/1.392, allocations: 11.95 kB / 1.378 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003596/1.393, allocations: 246.2 kB / 1.378 GB, free: 31 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=58): time 2.084e-06/1.393, allocations: 0 / 1.378 GB, free: 31 MB / 0.8386 GB Notification: Performance of matching and sorting (n=58): time 0.0005823/1.393, allocations: 374.6 kB / 1.378 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/1.393, allocations: 59.66 kB / 1.378 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000279/1.394, allocations: 302.1 kB / 1.379 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.925e-05/1.394, allocations: 43.67 kB / 1.379 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/1.394, allocations: 213 kB / 1.379 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.065e-05/1.394, allocations: 134.4 kB / 1.379 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.564e-05/1.394, allocations: 7.875 kB / 1.379 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001158/1.394, allocations: 349.2 kB / 1.379 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/1.394, allocations: 152.5 kB / 1.379 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/1.394, allocations: 228.2 kB / 1.38 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002062/1.395, allocations: 144.4 kB / 1.38 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/1.395, allocations: 0 / 1.38 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.0005967/1.395, allocations: 453.3 kB / 1.38 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/1.395, allocations: 41.55 kB / 1.38 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/1.395, allocations: 3.984 kB / 1.38 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/1.395, allocations: 5.922 kB / 1.38 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/1.396, allocations: 76.11 kB / 1.38 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/1.396, allocations: 11.02 kB / 1.38 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003303/1.396, allocations: 68.77 kB / 1.38 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.858e-05/1.396, allocations: 26.06 kB / 1.38 GB, free: 29.98 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.000174/1.396, allocations: 150.7 kB / 1.381 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004655/1.397, allocations: 371.5 kB / 1.381 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.833e-05/1.397, allocations: 38.81 kB / 1.381 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007161/1.398, allocations: 443.7 kB / 1.381 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/1.398, allocations: 7.688 kB / 1.381 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/1.398, allocations: 0 / 1.381 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/1.398, allocations: 8.766 kB / 1.381 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/1.399, allocations: 1.07 MB / 1.382 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/1.399, allocations: 2.344 kB / 1.382 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002348/1.399, allocations: 60.62 kB / 1.382 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/1.399, allocations: 7.875 kB / 1.382 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/1.399, allocations: 0 / 1.382 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/1.399, allocations: 6.766 kB / 1.382 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/1.399, allocations: 3.938 kB / 1.382 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006012/1.4, allocations: 0.4985 MB / 1.383 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.699e-05/1.4, allocations: 116 kB / 1.383 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.777e-05/1.4, allocations: 9.781 kB / 1.383 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003439/1.4, allocations: 52.77 kB / 1.383 GB, free: 29.08 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/1.401, allocations: 89.94 kB / 1.383 GB, free: 29.08 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.454e-05/1.401, allocations: 19.19 kB / 1.383 GB, free: 29.08 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001707/1.401, allocations: 204.8 kB / 1.383 GB, free: 28.99 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/1.401, allocations: 0 / 1.383 GB, free: 28.99 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000418/1.401, allocations: 94.91 kB / 1.384 GB, free: 28.99 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.001489/1.403, allocations: 1.279 MB / 1.385 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006186/1.403, allocations: 482.8 kB / 1.385 GB, free: 28.09 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/1.403, allocations: 0 / 1.385 GB, free: 28.09 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000274/1.404, allocations: 229 kB / 1.385 GB, free: 28.08 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003683/1.404, allocations: 43.88 kB / 1.386 GB, free: 28.07 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/1.405, allocations: 0.6766 MB / 1.386 GB, free: 27.84 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/1.406, allocations: 0.8644 MB / 1.387 GB, free: 27.1 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002307/1.406, allocations: 65.67 kB / 1.387 GB, free: 27.07 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002324/1.406, allocations: 171.2 kB / 1.387 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of SimCode: time 3.9e-07/1.406, allocations: 0 / 1.387 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02762/1.434, allocations: 8.824 MB / 1.396 GB, free: 22.83 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/1.434, allocations: 221.3 kB / 1.396 GB, free: 22.54 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.306/3.74, allocations: 0 / 1.396 GB, free: 22.54 MB / 0.8386 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