Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.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.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage,fileNamePrefix="Buildings_latest_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChillerStage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage,fileNamePrefix="Buildings_latest_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChillerStage",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.452/2.452, allocations: 390.5 MB / 398 MB, free: 10.98 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.001258/0.001258, allocations: 180.8 kB / 491.2 MB, free: 1.566 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.04/2.04, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.0009441/0.000944, allocations: 97.62 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.999e-05/1.996e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2895, allocations: 143 MB / 1.212 GB, free: 39.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.154/1.444, allocations: 383.3 MB / 1.587 GB, free: 14.49 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/1.444, allocations: 102.8 kB / 1.587 GB, free: 14.43 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 0.05607/1.5, allocations: 23.55 MB / 1.61 GB, free: 11.56 MB / 1.026 GB Notification: Performance of FrontEnd: time 1.884e-06/1.5, allocations: 0 / 1.61 GB, free: 11.56 MB / 1.026 GB Notification: Performance of Transformations before backend: time 6.172e-05/1.5, allocations: 19.94 kB / 1.61 GB, free: 11.54 MB / 1.026 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.001843/1.502, allocations: 0.7747 MB / 1.611 GB, free: 10.75 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 6.198e-05/1.502, allocations: 12.03 kB / 1.611 GB, free: 10.73 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003199/1.503, allocations: 71.27 kB / 1.611 GB, free: 10.66 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0157/1.518, allocations: 6.178 MB / 1.617 GB, free: 5.863 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.252e-05/1.518, allocations: 27.92 kB / 1.617 GB, free: 5.84 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/1.519, allocations: 39.89 kB / 1.617 GB, free: 5.801 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009783/1.52, allocations: 382.2 kB / 1.617 GB, free: 5.574 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009437/1.521, allocations: 471.7 kB / 1.618 GB, free: 5.23 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/1.521, allocations: 0 / 1.618 GB, free: 5.23 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.386e-05/1.521, allocations: 3.125 kB / 1.618 GB, free: 5.23 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/1.521, allocations: 16 kB / 1.618 GB, free: 5.215 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002615/1.523, allocations: 1.405 MB / 1.619 GB, free: 4.145 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006212/1.524, allocations: 372.7 kB / 1.619 GB, free: 3.91 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002587/1.524, allocations: 183.7 kB / 1.62 GB, free: 3.797 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/1.524, allocations: 4.438 kB / 1.62 GB, free: 3.793 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003952/1.525, allocations: 232 kB / 1.62 GB, free: 3.613 MB / 1.026 GB Notification: Performance of pre-optimization done (n=55): time 2.605e-06/1.525, allocations: 0 / 1.62 GB, free: 3.613 MB / 1.026 GB Notification: Performance of matching and sorting (n=55): time 0.0007704/1.526, allocations: 370.6 kB / 1.62 GB, free: 3.328 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.791e-05/1.526, allocations: 85.67 kB / 1.62 GB, free: 3.227 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004715/1.526, allocations: 332.6 kB / 1.62 GB, free: 2.973 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 8.342e-05/1.526, allocations: 44.19 kB / 1.621 GB, free: 2.93 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.000223/1.526, allocations: 244.2 kB / 1.621 GB, free: 2.738 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/1.527, allocations: 128.1 kB / 1.621 GB, free: 2.633 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.515e-05/1.527, allocations: 0 / 1.621 GB, free: 2.633 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.000174/1.527, allocations: 354.4 kB / 1.621 GB, free: 2.297 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002772/1.527, allocations: 151.5 kB / 1.621 GB, free: 2.211 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003304/1.527, allocations: 255.3 kB / 1.622 GB, free: 1.996 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002752/1.528, allocations: 140.1 kB / 1.622 GB, free: 1.906 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.316e-06/1.528, allocations: 4 kB / 1.622 GB, free: 1.902 MB / 1.026 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007673/1.528, allocations: 442.3 kB / 1.622 GB, free: 1.559 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/1.529, allocations: 7.938 kB / 1.622 GB, free: 1.551 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/1.529, allocations: 4 kB / 1.622 GB, free: 1.547 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/1.529, allocations: 4.25 kB / 1.622 GB, free: 1.543 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003134/1.529, allocations: 74.22 kB / 1.622 GB, free: 1.477 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.59e-05/1.529, allocations: 7.984 kB / 1.622 GB, free: 1.469 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003315/1.529, allocations: 39.78 kB / 1.622 GB, free: 1.43 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.607e-05/1.529, allocations: 23.73 kB / 1.622 GB, free: 1.41 MB / 1.026 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.chiStaCon.offToOne.enableFire,$PRE.chiStaCon.oneToTwo.enableFire,$PRE.chiStaCon.twoToOne.enableFire,$PRE.chiStaCon.oneToOff.enableFire,$whenCondition5,$PRE.on.combiTimeTable.nextTimeEvent,chiStaCon.stateGraphRoot.resume,chiStaCon.stateGraphRoot.suspend,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chiStaCon.stateGraphRoot.activeSteps,chiStaCon.on,chiStaCon.y[1],$PRE.chiStaCon.off.localActive,chiStaCon.off.localActive,$PRE.chiStaCon.off.newActive,chiStaCon.off.newActive,$PRE.chiStaCon.off.oldActive,chiStaCon.off.oldActive,chiStaCon.off.active,$PRE.chiStaCon.oneOn.localActive,chiStaCon.oneOn.localActive,chiStaCon.oneOn.inPort[2].occupied,chiStaCon.oneOn.outPort[2].available,$PRE.chiStaCon.oneOn.newActive,chiStaCon.oneOn.newActive,$PRE.chiStaCon.oneOn.oldActive,chiStaCon.oneOn.oldActive,chiStaCon.oneOn.active,$PRE.chiStaCon.twoOn.localActive,chiStaCon.twoOn.localActive,$PRE.chiStaCon.twoOn.newActive,chiStaCon.twoOn.newActive,$PRE.chiStaCon.twoOn.oldActive,chiStaCon.twoOn.oldActive,chiStaCon.twoOn.active,chiStaCon.offToOne.enableFire,chiStaCon.offToOne.fire,$PRE.chiStaCon.offToOne.t_start,chiStaCon.offToOne.t_start,chiStaCon.oneToTwo.enableFire,chiStaCon.oneToTwo.fire,$PRE.chiStaCon.oneToTwo.t_start,chiStaCon.oneToTwo.t_start,chiStaCon.twoToOne.enableFire,chiStaCon.twoToOne.fire,$PRE.chiStaCon.twoToOne.t_start,chiStaCon.twoToOne.t_start,chiStaCon.oneToOff.enableFire,chiStaCon.oneToOff.fire,$PRE.chiStaCon.oneToOff.t_start,chiStaCon.oneToOff.t_start,$PRE.chiStaCon.thrOneToTwo.y,chiStaCon.thrOneToTwo.y,chiStaCon.TwoToOne.y,on.combiTimeTable.nextTimeEvent,$PRE.on.combiTimeTable.nextTimeEventScaled,on.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * 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.0001948/1.53, allocations: 155.7 kB / 1.622 GB, free: 1.258 MB / 1.026 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005934/1.53, allocations: 373.7 kB / 1.623 GB, free: 0.9688 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.545e-05/1.53, allocations: 39.53 kB / 1.623 GB, free: 0.9297 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000815/1.531, allocations: 429.8 kB / 1.623 GB, free: 0.6211 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/1.531, allocations: 11.95 kB / 1.623 GB, free: 0.6094 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/1.531, allocations: 3.984 kB / 1.623 GB, free: 0.6055 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/1.531, allocations: 4 kB / 1.623 GB, free: 0.6016 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001888/1.533, allocations: 1.075 MB / 1.624 GB, free: 15.73 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/1.533, allocations: 7.953 kB / 1.624 GB, free: 15.73 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002485/1.533, allocations: 47.34 kB / 1.624 GB, free: 15.68 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/1.533, allocations: 4 kB / 1.624 GB, free: 15.68 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.105e-05/1.533, allocations: 7.984 kB / 1.624 GB, free: 15.67 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.247e-06/1.533, allocations: 0 / 1.624 GB, free: 15.67 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.533, allocations: 0 / 1.624 GB, free: 15.67 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000747/1.534, allocations: 0.496 MB / 1.625 GB, free: 15.25 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/1.534, allocations: 128.5 kB / 1.625 GB, free: 15.11 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.551e-05/1.534, allocations: 11.38 kB / 1.625 GB, free: 15.11 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/1.535, allocations: 31.91 kB / 1.625 GB, free: 15.07 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000174/1.535, allocations: 74.14 kB / 1.625 GB, free: 15.02 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.029e-05/1.535, allocations: 15.81 kB / 1.625 GB, free: 15 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.0002393/1.535, allocations: 226.1 kB / 1.625 GB, free: 14.83 MB / 1.042 GB Notification: Performance of sort global known variables: time 1.8e-07/1.535, allocations: 0 / 1.625 GB, free: 14.83 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.0005523/1.536, allocations: 111.7 kB / 1.625 GB, free: 14.73 MB / 1.042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 44 (chiStaCon.twoToOne.enableFire,chiStaCon.oneToOff.enableFire,chiStaCon.offToOne.enableFire,chiStaCon.oneToTwo.enableFire,chiStaCon.twoOn.localActive,chiStaCon.oneOn.localActive,chiStaCon.off.localActive,$cse2,$cse3,$cse4,$cse5,$cse6,$cse7,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chiStaCon.stateGraphRoot.activeSteps,chiStaCon.on,chiStaCon.y[1],chiStaCon.off.newActive,chiStaCon.off.oldActive,chiStaCon.off.active,chiStaCon.oneOn.inPort[2].occupied,chiStaCon.oneOn.outPort[2].available,chiStaCon.oneOn.newActive,chiStaCon.oneOn.oldActive,chiStaCon.oneOn.active,chiStaCon.twoOn.newActive,chiStaCon.twoOn.oldActive,chiStaCon.twoOn.active,chiStaCon.offToOne.fire,chiStaCon.offToOne.t_start,chiStaCon.oneToTwo.fire,chiStaCon.oneToTwo.t_start,chiStaCon.twoToOne.fire,chiStaCon.twoToOne.t_start,chiStaCon.oneToOff.fire,chiStaCon.oneToOff.t_start,chiStaCon.thrOneToTwo.y,chiStaCon.TwoToOne.y,on.combiTimeTable.nextTimeEvent,on.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (on.combiTimeTable.nextTimeEvent,chiStaCon.off.newActive,chiStaCon.oneOn.newActive,chiStaCon.twoOn.newActive,chiStaCon.thrOneToTwo.y,on.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 53 * 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.001924/1.538, allocations: 1.356 MB / 1.627 GB, free: 13.53 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0006896/1.538, allocations: 407.2 kB / 1.627 GB, free: 13.25 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/1.538, allocations: 0 / 1.627 GB, free: 13.25 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002987/1.539, allocations: 218.3 kB / 1.627 GB, free: 13.1 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000457/1.539, allocations: 65.02 kB / 1.627 GB, free: 13.05 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001664/1.541, allocations: 0.7291 MB / 1.628 GB, free: 12.39 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004864/1.541, allocations: 0.8682 MB / 1.629 GB, free: 11.5 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 0.0002837/1.542, allocations: 80.31 kB / 1.629 GB, free: 11.43 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002896/1.542, allocations: 187.5 kB / 1.629 GB, free: 11.37 MB / 1.042 GB Notification: Performance of SimCode: time 5.92e-07/1.542, allocations: 0 / 1.629 GB, free: 11.37 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03988/1.582, allocations: 10.18 MB / 1.639 GB, free: 1.254 MB / 1.042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003681/1.582, allocations: 199.6 kB / 1.639 GB, free: 0.9922 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.292/3.874, allocations: 5.766 kB / 1.639 GB, free: 0.9883 MB / 1.042 GB (rm -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe ; mkfifo Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe >> ../files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage_res.mat --tempDir=temp_Buildings_latest_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChillerStage_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChillerStage.fmu > Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage_res.mat does not exist to compare? outputFormat=mat