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.739/2.739, allocations: 390.3 MB / 402.8 MB, free: 6.723 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.001261/0.001261, allocations: 172.9 kB / 496.1 MB, free: 12.89 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.524/1.524, allocations: 221.3 MB / 0.7915 GB, free: 5.465 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.001046/0.001046, allocations: 83.97 kB / 0.9317 GB, free: 5.773 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.391e-05/3.402e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2735, allocations: 143 MB / 1.219 GB, free: 13.43 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.091/1.364, allocations: 384 MB / 1.594 GB, free: 1.957 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003199/1.365, allocations: 106.2 kB / 1.594 GB, free: 1.895 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 0.05571/1.42, allocations: 23.75 MB / 1.617 GB, free: 10.53 MB / 1.073 GB Notification: Performance of FrontEnd: time 2.124e-06/1.42, allocations: 0 / 1.617 GB, free: 10.53 MB / 1.073 GB Notification: Performance of Transformations before backend: time 4.767e-05/1.42, allocations: 19.94 kB / 1.617 GB, free: 10.51 MB / 1.073 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.001292/1.422, allocations: 0.7794 MB / 1.618 GB, free: 9.672 MB / 1.073 GB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/1.422, allocations: 8.031 kB / 1.618 GB, free: 9.664 MB / 1.073 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001109/1.422, allocations: 94.45 kB / 1.618 GB, free: 9.562 MB / 1.073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/1.422, allocations: 67.25 kB / 1.618 GB, free: 9.496 MB / 1.073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0131/1.435, allocations: 6.203 MB / 1.624 GB, free: 3.191 MB / 1.073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.899e-05/1.435, allocations: 53.25 kB / 1.624 GB, free: 3.141 MB / 1.073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.198e-05/1.435, allocations: 59.95 kB / 1.624 GB, free: 3.082 MB / 1.073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/1.436, allocations: 0.542 MB / 1.625 GB, free: 2.527 MB / 1.073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/1.436, allocations: 0 / 1.625 GB, free: 2.527 MB / 1.073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.072e-05/1.436, allocations: 20 kB / 1.625 GB, free: 2.508 MB / 1.073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/1.436, allocations: 12 kB / 1.625 GB, free: 2.496 MB / 1.073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006552/1.437, allocations: 403.9 kB / 1.625 GB, free: 2.102 MB / 1.073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002233/1.439, allocations: 1.512 MB / 1.627 GB, free: 0.5352 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006333/1.44, allocations: 404.4 kB / 1.627 GB, free: 136 kB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002807/1.44, allocations: 190.7 kB / 1.627 GB, free: 15.95 MB / 1.089 GB Notification: Performance of preOpt evalFunc (simulation): time 2.882e-05/1.44, allocations: 4.438 kB / 1.627 GB, free: 15.94 MB / 1.089 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003913/1.441, allocations: 251 kB / 1.627 GB, free: 15.68 MB / 1.089 GB Notification: Performance of pre-optimization done (n=55): time 2.254e-06/1.441, allocations: 0 / 1.627 GB, free: 15.68 MB / 1.089 GB Notification: Performance of matching and sorting (n=55): time 0.0006903/1.441, allocations: 410.4 kB / 1.628 GB, free: 15.27 MB / 1.089 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.199e-05/1.442, allocations: 89.67 kB / 1.628 GB, free: 15.16 MB / 1.089 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003732/1.442, allocations: 354.3 kB / 1.628 GB, free: 14.81 MB / 1.089 GB Notification: Performance of collectPreVariables (initialization): time 5.794e-05/1.442, allocations: 53.69 kB / 1.628 GB, free: 14.75 MB / 1.089 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/1.442, allocations: 238 kB / 1.629 GB, free: 14.52 MB / 1.089 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/1.442, allocations: 138.2 kB / 1.629 GB, free: 14.38 MB / 1.089 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.727e-05/1.442, allocations: 12 kB / 1.629 GB, free: 14.37 MB / 1.089 GB Notification: Performance of setup shared object (initialization): time 0.0001186/1.442, allocations: 358.7 kB / 1.629 GB, free: 14.01 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002613/1.443, allocations: 157.5 kB / 1.629 GB, free: 13.85 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003275/1.443, allocations: 270.6 kB / 1.629 GB, free: 13.55 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002587/1.443, allocations: 159.2 kB / 1.63 GB, free: 13.4 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/1.443, allocations: 0 / 1.63 GB, free: 13.4 MB / 1.089 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007247/1.444, allocations: 498.5 kB / 1.63 GB, free: 12.91 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/1.444, allocations: 13.41 kB / 1.63 GB, free: 12.89 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/1.444, allocations: 0 / 1.63 GB, free: 12.89 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/1.444, allocations: 11.95 kB / 1.63 GB, free: 12.88 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002781/1.444, allocations: 71.83 kB / 1.63 GB, free: 12.81 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/1.444, allocations: 11.94 kB / 1.63 GB, free: 12.8 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002681/1.445, allocations: 51.73 kB / 1.63 GB, free: 12.75 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.795e-05/1.445, allocations: 23.98 kB / 1.63 GB, free: 12.73 MB / 1.089 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.0001559/1.445, allocations: 174.2 kB / 1.63 GB, free: 12.55 MB / 1.089 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.919e-05/1.445, allocations: 39.53 kB / 1.63 GB, free: 12.51 MB / 1.089 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007638/1.446, allocations: 483.8 kB / 1.631 GB, free: 12.03 MB / 1.089 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/1.446, allocations: 12 kB / 1.631 GB, free: 12.02 MB / 1.089 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/1.446, allocations: 3.953 kB / 1.631 GB, free: 12.02 MB / 1.089 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/1.446, allocations: 0 / 1.631 GB, free: 12.02 MB / 1.089 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001675/1.447, allocations: 1.204 MB / 1.632 GB, free: 10.75 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/1.447, allocations: 0 / 1.632 GB, free: 10.75 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001989/1.448, allocations: 47.91 kB / 1.632 GB, free: 10.71 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/1.448, allocations: 0 / 1.632 GB, free: 10.71 MB / 1.089 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.238e-05/1.448, allocations: 12 kB / 1.632 GB, free: 10.7 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/1.448, allocations: 4 kB / 1.632 GB, free: 10.69 MB / 1.089 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/1.448, allocations: 0 / 1.632 GB, free: 10.69 MB / 1.089 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007043/1.448, allocations: 0.5307 MB / 1.633 GB, free: 10.14 MB / 1.089 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/1.449, allocations: 136.4 kB / 1.633 GB, free: 9.992 MB / 1.089 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.657e-05/1.449, allocations: 12 kB / 1.633 GB, free: 9.98 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/1.449, allocations: 35.97 kB / 1.633 GB, free: 9.945 MB / 1.089 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/1.449, allocations: 76.45 kB / 1.633 GB, free: 9.867 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.748e-05/1.449, allocations: 16 kB / 1.633 GB, free: 9.852 MB / 1.089 GB Notification: Performance of sorting global known variables: time 0.0002698/1.449, allocations: 250.2 kB / 1.633 GB, free: 9.609 MB / 1.089 GB Notification: Performance of sort global known variables: time 3.11e-07/1.449, allocations: 4 kB / 1.633 GB, free: 9.605 MB / 1.089 GB Notification: Performance of remove unused functions: time 0.0005421/1.45, allocations: 123.9 kB / 1.633 GB, free: 9.484 MB / 1.089 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.001862/1.452, allocations: 1.421 MB / 1.635 GB, free: 8.164 MB / 1.089 GB Notification: Performance of simCode: created initialization part: time 0.0007546/1.453, allocations: 443.6 kB / 1.635 GB, free: 7.73 MB / 1.089 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/1.453, allocations: 0 / 1.635 GB, free: 7.73 MB / 1.089 GB Notification: Performance of simCode: created simulation system equations: time 0.0003095/1.453, allocations: 231.2 kB / 1.635 GB, free: 7.508 MB / 1.089 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/1.453, allocations: 78.2 kB / 1.635 GB, free: 7.434 MB / 1.089 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/1.455, allocations: 0.7757 MB / 1.636 GB, free: 6.617 MB / 1.089 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003821/1.455, allocations: 0.8803 MB / 1.637 GB, free: 5.703 MB / 1.089 GB Notification: Performance of simCode: alias equations: time 0.0002479/1.456, allocations: 76.33 kB / 1.637 GB, free: 5.629 MB / 1.089 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002848/1.456, allocations: 187.4 kB / 1.637 GB, free: 5.445 MB / 1.089 GB Notification: Performance of SimCode: time 4.61e-07/1.456, allocations: 0 / 1.637 GB, free: 5.445 MB / 1.089 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02397/1.48, allocations: 11.14 MB / 1.648 GB, free: 10.52 MB / 1.104 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002192/1.48, allocations: 222.7 kB / 1.648 GB, free: 10.29 MB / 1.104 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.348/3.828, allocations: 2.125 kB / 1.648 GB, free: 10.29 MB / 1.104 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