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.217/2.217, allocations: 390.3 MB / 402.8 MB, free: 6.66 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.001301/0.001301, allocations: 188.8 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.57/1.57, allocations: 221.3 MB / 0.7915 GB, free: 5.395 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.0009035/0.0009035, allocations: 83.97 kB / 0.9317 GB, free: 5.703 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.987e-05/2.99e-05, allocations: 0 / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3042, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.006/1.31, allocations: 156.1 MB / 1.371 GB, free: 13.96 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002267/1.311, allocations: 90.55 kB / 1.371 GB, free: 13.91 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.02456/1.335, allocations: 9.799 MB / 1.381 GB, free: 5.633 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.164e-06/1.335, allocations: 0 / 1.381 GB, free: 5.633 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.867e-05/1.335, allocations: 12 kB / 1.381 GB, free: 5.621 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.00115/1.336, allocations: 0.7309 MB / 1.382 GB, free: 4.871 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/1.336, allocations: 8.031 kB / 1.382 GB, free: 4.863 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001132/1.337, allocations: 87.2 kB / 1.382 GB, free: 4.797 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/1.337, allocations: 59.25 kB / 1.382 GB, free: 4.738 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005595/1.337, allocations: 379.4 kB / 1.382 GB, free: 4.391 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.649e-05/1.337, allocations: 45.56 kB / 1.382 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.703e-05/1.337, allocations: 49.75 kB / 1.382 GB, free: 4.332 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008196/1.338, allocations: 0.5049 MB / 1.383 GB, free: 3.98 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/1.338, allocations: 3.938 kB / 1.383 GB, free: 3.977 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.59e-05/1.338, allocations: 18.56 kB / 1.383 GB, free: 3.973 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/1.338, allocations: 12 kB / 1.383 GB, free: 3.961 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006636/1.339, allocations: 394 kB / 1.383 GB, free: 3.715 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002081/1.341, allocations: 1.436 MB / 1.385 GB, free: 2.613 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007539/1.342, allocations: 462.1 kB / 1.385 GB, free: 2.301 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002821/1.342, allocations: 202.8 kB / 1.385 GB, free: 2.176 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.845e-05/1.342, allocations: 8.438 kB / 1.385 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004359/1.343, allocations: 264.2 kB / 1.385 GB, free: 1.961 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=58): time 2.064e-06/1.343, allocations: 0 / 1.385 GB, free: 1.961 MB / 0.8386 GB Notification: Performance of matching and sorting (n=58): time 0.0006886/1.343, allocations: 402.8 kB / 1.386 GB, free: 1.656 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/1.343, allocations: 59.97 kB / 1.386 GB, free: 1.586 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/1.344, allocations: 318.4 kB / 1.386 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.855e-05/1.344, allocations: 51.95 kB / 1.386 GB, free: 1.289 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/1.344, allocations: 221.6 kB / 1.386 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/1.344, allocations: 151.9 kB / 1.387 GB, free: 0.9922 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.616e-05/1.344, allocations: 13.44 kB / 1.387 GB, free: 0.9883 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001425/1.344, allocations: 347.4 kB / 1.387 GB, free: 0.6562 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002708/1.345, allocations: 164.7 kB / 1.387 GB, free: 0.5547 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003339/1.345, allocations: 248.9 kB / 1.387 GB, free: 372 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003302/1.345, allocations: 188 kB / 1.388 GB, free: 224 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/1.345, allocations: 0 / 1.388 GB, free: 224 kB / 0.8386 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.0008326/1.346, allocations: 0.5212 MB / 1.388 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.973e-05/1.346, allocations: 33.02 kB / 1.388 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/1.346, allocations: 7.781 kB / 1.388 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.387e-05/1.346, allocations: 4 kB / 1.388 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003257/1.347, allocations: 75.7 kB / 1.388 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.008e-05/1.347, allocations: 7.938 kB / 1.388 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003795/1.347, allocations: 82.41 kB / 1.388 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-05/1.347, allocations: 26.38 kB / 1.388 GB, free: 15.59 MB / 0.8542 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.0001951/1.347, allocations: 178.3 kB / 1.388 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.637e-05/1.347, allocations: 35.53 kB / 1.388 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000808/1.348, allocations: 489.2 kB / 1.389 GB, free: 15.06 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/1.348, allocations: 11.98 kB / 1.389 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/1.348, allocations: 0 / 1.389 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/1.348, allocations: 7.938 kB / 1.389 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001702/1.35, allocations: 1.181 MB / 1.39 GB, free: 14.09 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/1.35, allocations: 0 / 1.39 GB, free: 14.09 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002494/1.35, allocations: 63.52 kB / 1.39 GB, free: 14.03 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.967e-06/1.35, allocations: 4 kB / 1.39 GB, free: 14.03 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.523e-05/1.35, allocations: 11.75 kB / 1.39 GB, free: 14.02 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/1.35, allocations: 0 / 1.39 GB, free: 14.02 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/1.35, allocations: 0 / 1.39 GB, free: 14.02 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006992/1.351, allocations: 0.5353 MB / 1.391 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/1.351, allocations: 132.3 kB / 1.391 GB, free: 13.43 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.719e-05/1.351, allocations: 15.56 kB / 1.391 GB, free: 13.43 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003374/1.351, allocations: 58.88 kB / 1.391 GB, free: 13.38 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001916/1.352, allocations: 89.05 kB / 1.391 GB, free: 13.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-05/1.352, allocations: 19.75 kB / 1.391 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002227/1.352, allocations: 223.7 kB / 1.391 GB, free: 13.11 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.6e-07/1.352, allocations: 0 / 1.391 GB, free: 13.11 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004209/1.352, allocations: 110.4 kB / 1.391 GB, free: 13.02 MB / 0.8542 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.001761/1.354, allocations: 1.328 MB / 1.393 GB, free: 11.89 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0007782/1.355, allocations: 0.5003 MB / 1.393 GB, free: 11.51 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/1.355, allocations: 4 kB / 1.393 GB, free: 11.51 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003435/1.355, allocations: 239.5 kB / 1.393 GB, free: 11.34 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/1.356, allocations: 49.2 kB / 1.393 GB, free: 11.31 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/1.357, allocations: 0.732 MB / 1.394 GB, free: 10.68 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/1.358, allocations: 0.8575 MB / 1.395 GB, free: 9.801 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002617/1.358, allocations: 75.41 kB / 1.395 GB, free: 9.727 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002745/1.358, allocations: 164.9 kB / 1.395 GB, free: 9.672 MB / 0.8542 GB Notification: Performance of SimCode: time 3.91e-07/1.358, allocations: 0 / 1.395 GB, free: 9.672 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02607/1.384, allocations: 9.453 MB / 1.404 GB, free: 428 kB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002299/1.385, allocations: 221.3 kB / 1.405 GB, free: 200 kB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.419/3.804, allocations: 0 / 1.405 GB, free: 200 kB / 0.8542 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