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.593/2.593, allocations: 387.1 MB / 399.7 MB, free: 9.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.001844/0.001844, allocations: 180.1 kB / 492.3 MB, free: 0.6172 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.642/1.642, allocations: 221.3 MB / 0.7871 GB, free: 12.94 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.001074/0.001075, allocations: 87.89 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.155e-05/4.157e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.3307, allocations: 142.3 MB / 1.213 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.348/1.679, allocations: 383.2 MB / 1.587 GB, free: 14.47 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003621/1.679, allocations: 101.4 kB / 1.587 GB, free: 14.41 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 0.06293/1.742, allocations: 23.75 MB / 1.61 GB, free: 11.09 MB / 1.026 GB Notification: Performance of FrontEnd: time 2.855e-06/1.742, allocations: 4 kB / 1.61 GB, free: 11.08 MB / 1.026 GB Notification: Performance of Transformations before backend: time 7.407e-05/1.742, allocations: 16 kB / 1.61 GB, free: 11.07 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.00209/1.744, allocations: 0.7835 MB / 1.611 GB, free: 10.27 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 5.958e-05/1.744, allocations: 8.031 kB / 1.611 GB, free: 10.26 MB / 1.026 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002954/1.745, allocations: 93.77 kB / 1.611 GB, free: 10.19 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002547/1.745, allocations: 63.25 kB / 1.611 GB, free: 10.12 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01541/1.76, allocations: 6.196 MB / 1.617 GB, free: 5.254 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.762e-05/1.761, allocations: 50.25 kB / 1.617 GB, free: 5.227 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002239/1.761, allocations: 62.56 kB / 1.617 GB, free: 5.184 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/1.762, allocations: 0.5434 MB / 1.618 GB, free: 4.805 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/1.762, allocations: 0 / 1.618 GB, free: 4.805 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.701e-05/1.762, allocations: 19.5 kB / 1.618 GB, free: 4.801 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/1.762, allocations: 12 kB / 1.618 GB, free: 4.789 MB / 1.026 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000899/1.763, allocations: 407.7 kB / 1.618 GB, free: 4.535 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003056/1.766, allocations: 1.515 MB / 1.62 GB, free: 3.383 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007973/1.767, allocations: 399 kB / 1.62 GB, free: 3.121 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003888/1.768, allocations: 186.8 kB / 1.62 GB, free: 3.008 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/1.768, allocations: 8.438 kB / 1.62 GB, free: 3 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004676/1.768, allocations: 251.7 kB / 1.62 GB, free: 2.809 MB / 1.026 GB Notification: Performance of pre-optimization done (n=55): time 3.546e-06/1.768, allocations: 0 / 1.62 GB, free: 2.809 MB / 1.026 GB Notification: Performance of matching and sorting (n=55): time 0.0008825/1.769, allocations: 404.4 kB / 1.621 GB, free: 2.5 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.901e-05/1.769, allocations: 94.47 kB / 1.621 GB, free: 2.391 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005635/1.77, allocations: 353.7 kB / 1.621 GB, free: 2.113 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 9.263e-05/1.77, allocations: 59.06 kB / 1.621 GB, free: 2.066 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002353/1.77, allocations: 238.8 kB / 1.621 GB, free: 1.887 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/1.77, allocations: 133 kB / 1.622 GB, free: 1.777 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.268e-05/1.77, allocations: 11.25 kB / 1.622 GB, free: 1.777 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.0001996/1.77, allocations: 356 kB / 1.622 GB, free: 1.441 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003043/1.771, allocations: 156.1 kB / 1.622 GB, free: 1.348 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/1.771, allocations: 270.8 kB / 1.622 GB, free: 1.121 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003546/1.771, allocations: 159.8 kB / 1.622 GB, free: 1.012 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/1.771, allocations: 0 / 1.622 GB, free: 1.012 MB / 1.026 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0009505/1.772, allocations: 497.5 kB / 1.623 GB, free: 0.6406 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/1.772, allocations: 8.031 kB / 1.623 GB, free: 0.6328 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/1.772, allocations: 4 kB / 1.623 GB, free: 0.6289 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/1.773, allocations: 4 kB / 1.623 GB, free: 0.625 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003059/1.773, allocations: 74.52 kB / 1.623 GB, free: 0.5586 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.918e-05/1.773, allocations: 7.953 kB / 1.623 GB, free: 0.5508 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003649/1.773, allocations: 65.92 kB / 1.623 GB, free: 0.4961 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-05/1.773, allocations: 23.73 kB / 1.623 GB, free: 488 kB / 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.0002269/1.774, allocations: 174.1 kB / 1.623 GB, free: 328 kB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/1.774, allocations: 39.53 kB / 1.623 GB, free: 288 kB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008978/1.775, allocations: 483.8 kB / 1.624 GB, free: 15.94 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/1.775, allocations: 12 kB / 1.624 GB, free: 15.93 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/1.775, allocations: 0 / 1.624 GB, free: 15.93 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/1.775, allocations: 3.953 kB / 1.624 GB, free: 15.92 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/1.777, allocations: 1.197 MB / 1.625 GB, free: 14.96 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/1.777, allocations: 3.953 kB / 1.625 GB, free: 14.96 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002094/1.777, allocations: 51.59 kB / 1.625 GB, free: 14.91 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.017e-05/1.777, allocations: 4 kB / 1.625 GB, free: 14.91 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/1.777, allocations: 3.75 kB / 1.625 GB, free: 14.91 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/1.777, allocations: 4 kB / 1.625 GB, free: 14.9 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/1.777, allocations: 0 / 1.625 GB, free: 14.9 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007926/1.778, allocations: 0.5359 MB / 1.626 GB, free: 14.46 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001546/1.778, allocations: 128.1 kB / 1.626 GB, free: 14.32 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.273e-05/1.778, allocations: 13.38 kB / 1.626 GB, free: 14.31 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002431/1.778, allocations: 35.03 kB / 1.626 GB, free: 14.29 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000185/1.779, allocations: 75.39 kB / 1.626 GB, free: 14.23 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.271e-05/1.779, allocations: 15.06 kB / 1.626 GB, free: 14.21 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.0003206/1.779, allocations: 249.8 kB / 1.626 GB, free: 14.02 MB / 1.042 GB Notification: Performance of sort global known variables: time 2.31e-07/1.779, allocations: 7.938 kB / 1.626 GB, free: 14.01 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.0006292/1.78, allocations: 128.5 kB / 1.626 GB, free: 13.91 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.002352/1.782, allocations: 1.426 MB / 1.628 GB, free: 12.7 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0008108/1.783, allocations: 442.5 kB / 1.628 GB, free: 12.4 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/1.783, allocations: 0 / 1.628 GB, free: 12.4 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003676/1.783, allocations: 227.8 kB / 1.628 GB, free: 12.23 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005426/1.784, allocations: 69.92 kB / 1.628 GB, free: 12.19 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001848/1.786, allocations: 0.7774 MB / 1.629 GB, free: 11.51 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006269/1.786, allocations: 0.876 MB / 1.63 GB, free: 10.62 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 0.0002935/1.787, allocations: 76.38 kB / 1.63 GB, free: 10.54 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003017/1.787, allocations: 186.8 kB / 1.63 GB, free: 10.48 MB / 1.042 GB Notification: Performance of SimCode: time 6.21e-07/1.787, allocations: 0 / 1.63 GB, free: 10.48 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03302/1.82, allocations: 11.14 MB / 1.641 GB, free: 15.55 MB / 1.057 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002566/1.82, allocations: 226.7 kB / 1.641 GB, free: 15.32 MB / 1.057 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.453/4.273, allocations: 3.938 kB / 1.641 GB, free: 15.31 MB / 1.057 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