Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.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.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage,fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.3/2.3, allocations: 387.4 MB / 394.9 MB, free: 13.29 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.001317/0.001317, allocations: 180.9 kB / 487.4 MB, free: 4.941 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.507/1.507, allocations: 221.5 MB / 0.7824 GB, free: 0.9414 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.00112/0.00112, allocations: 103.8 kB / 0.9219 GB, free: 2.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.861e-05/1.864e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2961, allocations: 142.4 MB / 1.206 GB, free: 43.84 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.215/1.511, allocations: 382.5 MB / 1.58 GB, free: 7.199 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/1.511, allocations: 102.6 kB / 1.58 GB, free: 7.137 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 0.0608/1.572, allocations: 23.55 MB / 1.603 GB, free: 4.258 MB / 1.01 GB Notification: Performance of FrontEnd: time 1.673e-06/1.572, allocations: 0 / 1.603 GB, free: 4.258 MB / 1.01 GB Notification: Performance of Transformations before backend: time 7.903e-05/1.572, allocations: 16 kB / 1.603 GB, free: 4.242 MB / 1.01 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.002119/1.574, allocations: 0.7883 MB / 1.603 GB, free: 3.438 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 5.954e-05/1.574, allocations: 12.56 kB / 1.603 GB, free: 3.426 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003649/1.575, allocations: 63.25 kB / 1.604 GB, free: 3.363 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01535/1.59, allocations: 6.172 MB / 1.61 GB, free: 14.56 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.626e-05/1.59, allocations: 23.81 kB / 1.61 GB, free: 14.54 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002487/1.59, allocations: 32 kB / 1.61 GB, free: 14.51 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001126/1.592, allocations: 381.8 kB / 1.61 GB, free: 14.29 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/1.593, allocations: 482.5 kB / 1.61 GB, free: 13.93 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/1.593, allocations: 0 / 1.61 GB, free: 13.93 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.518e-05/1.593, allocations: 4 kB / 1.61 GB, free: 13.93 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/1.593, allocations: 12 kB / 1.61 GB, free: 13.92 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002996/1.596, allocations: 1.402 MB / 1.612 GB, free: 12.85 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007005/1.597, allocations: 377.9 kB / 1.612 GB, free: 12.61 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000281/1.597, allocations: 171.4 kB / 1.612 GB, free: 12.5 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 3.761e-05/1.597, allocations: 12.42 kB / 1.612 GB, free: 12.49 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000424/1.597, allocations: 229.6 kB / 1.613 GB, free: 12.32 MB / 1.026 GB Notification: Performance of pre-optimization done (n=55): time 2.995e-06/1.597, allocations: 0 / 1.613 GB, free: 12.32 MB / 1.026 GB Notification: Performance of matching and sorting (n=55): time 0.0009308/1.598, allocations: 368.4 kB / 1.613 GB, free: 12.03 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.971e-05/1.598, allocations: 93.34 kB / 1.613 GB, free: 11.93 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006077/1.599, allocations: 333.2 kB / 1.613 GB, free: 11.67 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 8.221e-05/1.599, allocations: 49.06 kB / 1.613 GB, free: 11.62 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002333/1.599, allocations: 238.8 kB / 1.614 GB, free: 11.43 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/1.6, allocations: 127.6 kB / 1.614 GB, free: 11.33 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.594e-05/1.6, allocations: 0 / 1.614 GB, free: 11.33 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.0001822/1.6, allocations: 358 kB / 1.614 GB, free: 10.99 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002916/1.6, allocations: 142.3 kB / 1.614 GB, free: 10.91 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003453/1.6, allocations: 257 kB / 1.614 GB, free: 10.7 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002845/1.601, allocations: 146.3 kB / 1.615 GB, free: 10.6 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/1.601, allocations: 0 / 1.615 GB, free: 10.6 MB / 1.026 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.000807/1.602, allocations: 442 kB / 1.615 GB, free: 10.26 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/1.602, allocations: 8 kB / 1.615 GB, free: 10.25 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/1.602, allocations: 0 / 1.615 GB, free: 10.25 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.721e-05/1.602, allocations: 4 kB / 1.615 GB, free: 10.25 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003427/1.602, allocations: 83.77 kB / 1.615 GB, free: 10.17 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/1.602, allocations: 4 kB / 1.615 GB, free: 10.17 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003308/1.602, allocations: 39.27 kB / 1.615 GB, free: 10.13 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.43e-05/1.602, allocations: 27.25 kB / 1.615 GB, free: 10.11 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.0001998/1.603, allocations: 156.7 kB / 1.615 GB, free: 9.953 MB / 1.026 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006452/1.603, allocations: 371.6 kB / 1.616 GB, free: 9.664 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.166e-05/1.603, allocations: 43.52 kB / 1.616 GB, free: 9.621 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008452/1.604, allocations: 430.6 kB / 1.616 GB, free: 9.312 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/1.604, allocations: 8 kB / 1.616 GB, free: 9.305 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/1.604, allocations: 3.953 kB / 1.616 GB, free: 9.301 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.896e-06/1.604, allocations: 7.984 kB / 1.616 GB, free: 9.293 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001954/1.606, allocations: 1.064 MB / 1.617 GB, free: 8.438 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.75e-06/1.606, allocations: 4 kB / 1.617 GB, free: 8.434 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002095/1.606, allocations: 55.73 kB / 1.617 GB, free: 8.383 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/1.606, allocations: 0 / 1.617 GB, free: 8.383 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.26e-05/1.607, allocations: 7.984 kB / 1.617 GB, free: 8.375 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/1.607, allocations: 0 / 1.617 GB, free: 8.375 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.607, allocations: 3.938 kB / 1.617 GB, free: 8.371 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007657/1.607, allocations: 0.5003 MB / 1.618 GB, free: 7.949 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001269/1.607, allocations: 120.5 kB / 1.618 GB, free: 7.816 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.738e-05/1.608, allocations: 11.52 kB / 1.618 GB, free: 7.809 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002452/1.608, allocations: 27.97 kB / 1.618 GB, free: 7.781 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/1.608, allocations: 75.02 kB / 1.618 GB, free: 7.719 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.513e-05/1.608, allocations: 19.92 kB / 1.618 GB, free: 7.703 MB / 1.026 GB Notification: Performance of sorting global known variables: time 0.0002648/1.608, allocations: 219.9 kB / 1.618 GB, free: 7.539 MB / 1.026 GB Notification: Performance of sort global known variables: time 2.51e-07/1.608, allocations: 0 / 1.618 GB, free: 7.539 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.0005678/1.609, allocations: 113.9 kB / 1.618 GB, free: 7.434 MB / 1.026 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.002166/1.611, allocations: 1.348 MB / 1.62 GB, free: 6.238 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.0007383/1.612, allocations: 411 kB / 1.62 GB, free: 5.965 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/1.612, allocations: 4 kB / 1.62 GB, free: 5.961 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.0003282/1.612, allocations: 210.4 kB / 1.62 GB, free: 5.816 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004843/1.613, allocations: 74.2 kB / 1.62 GB, free: 5.762 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001894/1.615, allocations: 0.7314 MB / 1.621 GB, free: 5.102 MB / 1.026 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006025/1.615, allocations: 0.8797 MB / 1.622 GB, free: 4.199 MB / 1.026 GB Notification: Performance of simCode: alias equations: time 0.0002978/1.615, allocations: 72.34 kB / 1.622 GB, free: 4.129 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003/1.616, allocations: 181.5 kB / 1.622 GB, free: 4.07 MB / 1.026 GB Notification: Performance of SimCode: time 6.71e-07/1.616, allocations: 0 / 1.622 GB, free: 4.07 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03511/1.651, allocations: 10.18 MB / 1.632 GB, free: 9.945 MB / 1.042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000215/1.651, allocations: 193.8 kB / 1.632 GB, free: 9.754 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.3/3.951, allocations: 0 / 1.632 GB, free: 9.754 MB / 1.042 GB (rm -f Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe ; mkfifo Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe ; head -c 1048576 < Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe >> ../files/Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage_res.mat --tempDir=temp_Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChillerStage_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChillerStage.fmu > Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage_res.mat does not exist to compare? outputFormat=mat