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.364/2.364, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001147/0.001147, allocations: 169.2 kB / 498.1 MB, free: 5.746 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.645/1.645, allocations: 223.2 MB / 0.7948 GB, free: 17.95 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.0009469/0.0009469, allocations: 91.38 kB / 0.9346 GB, free: 6.273 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003974/0.0003974, allocations: 13.53 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3293, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.162/1.491, allocations: 383.2 MB / 1.597 GB, free: 12.27 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000362/1.492, allocations: 110.2 kB / 1.597 GB, free: 12.21 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 0.05365/1.545, allocations: 23.83 MB / 1.621 GB, free: 8.805 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.395e-06/1.545, allocations: 0 / 1.621 GB, free: 8.805 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 6.147e-05/1.546, allocations: 16 kB / 1.621 GB, free: 8.789 MB / 0.9323 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.002141/1.548, allocations: 0.8339 MB / 1.621 GB, free: 7.941 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.929e-05/1.548, allocations: 12.03 kB / 1.621 GB, free: 7.93 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002616/1.548, allocations: 90.7 kB / 1.622 GB, free: 7.863 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000269/1.548, allocations: 66.44 kB / 1.622 GB, free: 7.801 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0144/1.563, allocations: 6.246 MB / 1.628 GB, free: 2.875 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.608e-05/1.563, allocations: 53.69 kB / 1.628 GB, free: 2.84 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002229/1.563, allocations: 62.14 kB / 1.628 GB, free: 2.797 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/1.565, allocations: 0.5506 MB / 1.628 GB, free: 2.41 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/1.565, allocations: 4 kB / 1.628 GB, free: 2.406 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.806e-05/1.565, allocations: 21.12 kB / 1.628 GB, free: 2.402 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/1.565, allocations: 12 kB / 1.628 GB, free: 2.391 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009055/1.566, allocations: 432.4 kB / 1.629 GB, free: 2.113 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002739/1.568, allocations: 1.511 MB / 1.63 GB, free: 0.9648 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008276/1.569, allocations: 414.6 kB / 1.631 GB, free: 0.6953 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 3.898e-05/1.569, allocations: 5.297 kB / 1.631 GB, free: 0.6914 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005401/1.57, allocations: 267.7 kB / 1.631 GB, free: 496 kB / 0.9323 GB Notification: Performance of pre-optimization done (n=55): time 3.196e-06/1.57, allocations: 0 / 1.631 GB, free: 496 kB / 0.9323 GB Notification: Performance of matching and sorting (n=55): time 0.001185/1.571, allocations: 0.565 MB / 1.631 GB, free: 64 kB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.332e-05/1.571, allocations: 89.34 kB / 1.632 GB, free: 15.96 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005328/1.572, allocations: 361.4 kB / 1.632 GB, free: 15.68 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 7.969e-05/1.572, allocations: 60 kB / 1.632 GB, free: 15.63 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002045/1.572, allocations: 234.7 kB / 1.632 GB, free: 15.46 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/1.572, allocations: 139.2 kB / 1.632 GB, free: 15.34 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.011e-05/1.572, allocations: 14.75 kB / 1.632 GB, free: 15.34 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001563/1.572, allocations: 352.6 kB / 1.633 GB, free: 15 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003424/1.573, allocations: 168.2 kB / 1.633 GB, free: 14.9 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004515/1.573, allocations: 289 kB / 1.633 GB, free: 14.65 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003675/1.573, allocations: 166.3 kB / 1.633 GB, free: 14.55 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/1.573, allocations: 0 / 1.633 GB, free: 14.55 MB / 0.948 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0009463/1.574, allocations: 0.5127 MB / 1.634 GB, free: 14.17 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/1.574, allocations: 4 kB / 1.634 GB, free: 14.16 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/1.574, allocations: 4 kB / 1.634 GB, free: 14.16 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/1.575, allocations: 4 kB / 1.634 GB, free: 14.16 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002947/1.575, allocations: 71.53 kB / 1.634 GB, free: 14.09 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.804e-05/1.575, allocations: 11.89 kB / 1.634 GB, free: 14.08 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003577/1.575, allocations: 58.5 kB / 1.634 GB, free: 14.03 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.738e-05/1.575, allocations: 26.92 kB / 1.634 GB, free: 14.01 MB / 0.948 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 () * Number of clocked 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.000403/1.576, allocations: 235 kB / 1.634 GB, free: 13.82 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/1.576, allocations: 47.42 kB / 1.634 GB, free: 13.78 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009472/1.577, allocations: 498 kB / 1.635 GB, free: 13.43 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.425e-06/1.577, allocations: 8 kB / 1.635 GB, free: 13.43 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/1.577, allocations: 4 kB / 1.635 GB, free: 13.42 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/1.577, allocations: 7.938 kB / 1.635 GB, free: 13.41 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/1.579, allocations: 1.216 MB / 1.636 GB, free: 12.45 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/1.579, allocations: 3.984 kB / 1.636 GB, free: 12.44 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001942/1.579, allocations: 51.48 kB / 1.636 GB, free: 12.39 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.919e-06/1.579, allocations: 8 kB / 1.636 GB, free: 12.39 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.895e-05/1.579, allocations: 17.42 kB / 1.636 GB, free: 12.38 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/1.579, allocations: 0 / 1.636 GB, free: 12.38 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/1.579, allocations: 3.938 kB / 1.636 GB, free: 12.38 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009434/1.58, allocations: 0.5497 MB / 1.636 GB, free: 11.93 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000176/1.58, allocations: 131.5 kB / 1.637 GB, free: 11.79 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.858e-05/1.58, allocations: 23.75 kB / 1.637 GB, free: 11.77 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002486/1.581, allocations: 31.11 kB / 1.637 GB, free: 11.75 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001806/1.581, allocations: 70.27 kB / 1.637 GB, free: 11.69 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.643e-05/1.581, allocations: 23.92 kB / 1.637 GB, free: 11.67 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0003028/1.581, allocations: 249.4 kB / 1.637 GB, free: 11.48 MB / 0.948 GB Notification: Performance of sort global known variables: time 4.61e-07/1.581, allocations: 0 / 1.637 GB, free: 11.48 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0005699/1.582, allocations: 130.5 kB / 1.637 GB, free: 11.38 MB / 0.948 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) * Number of clocked states: 0 () * 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.002377/1.584, allocations: 1.484 MB / 1.639 GB, free: 10.16 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0009239/1.585, allocations: 457 kB / 1.639 GB, free: 9.836 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/1.585, allocations: 4 kB / 1.639 GB, free: 9.832 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004042/1.586, allocations: 243.6 kB / 1.639 GB, free: 9.664 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004765/1.586, allocations: 77.67 kB / 1.639 GB, free: 9.605 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004968/1.591, allocations: 3.89 MB / 1.643 GB, free: 6.145 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/1.592, allocations: 0.8802 MB / 1.644 GB, free: 5.246 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.0003046/1.592, allocations: 76.38 kB / 1.644 GB, free: 5.168 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002927/1.592, allocations: 188 kB / 1.644 GB, free: 5.105 MB / 0.948 GB Notification: Performance of SimCode: time 2.104e-06/1.592, allocations: 0 / 1.644 GB, free: 5.105 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02861/1.621, allocations: 11.05 MB / 1.655 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002184/1.621, allocations: 247.2 kB / 1.655 GB, free: 9.992 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.577/4.198, allocations: 1.094 kB / 1.655 GB, free: 9.992 MB / 0.9636 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