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.685/2.685, allocations: 393.5 MB / 408.4 MB, free: 10.96 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.001485/0.001484, allocations: 168 kB / 0.4901 GB, free: 2.219 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.667/1.667, allocations: 223.1 MB / 0.7992 GB, free: 14.69 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.001032/0.001032, allocations: 102 kB / 0.9396 GB, free: 1.844 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003641/0.0003642, allocations: 15.03 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3454, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.21/1.556, allocations: 384 MB / 1.604 GB, free: 12.44 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005347/1.556, allocations: 108.4 kB / 1.604 GB, free: 12.38 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 0.05615/1.613, allocations: 23.83 MB / 1.628 GB, free: 8.977 MB / 0.948 GB Notification: Performance of FrontEnd: time 3.277e-06/1.613, allocations: 3.938 kB / 1.628 GB, free: 8.973 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.016e-05/1.613, allocations: 16 kB / 1.628 GB, free: 8.957 MB / 0.948 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.001461/1.614, allocations: 0.8357 MB / 1.629 GB, free: 8.109 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/1.614, allocations: 12.03 kB / 1.629 GB, free: 8.098 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001158/1.614, allocations: 94.25 kB / 1.629 GB, free: 8.027 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/1.614, allocations: 63.25 kB / 1.629 GB, free: 7.965 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01285/1.627, allocations: 6.248 MB / 1.635 GB, free: 3.047 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.102e-05/1.627, allocations: 52.55 kB / 1.635 GB, free: 3.012 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.778e-05/1.627, allocations: 56.95 kB / 1.635 GB, free: 2.973 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/1.629, allocations: 0.5545 MB / 1.635 GB, free: 2.582 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/1.629, allocations: 4 kB / 1.635 GB, free: 2.578 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.774e-05/1.629, allocations: 22.61 kB / 1.635 GB, free: 2.57 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/1.629, allocations: 15.98 kB / 1.635 GB, free: 2.555 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007324/1.629, allocations: 431.2 kB / 1.636 GB, free: 2.277 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002296/1.632, allocations: 1.505 MB / 1.637 GB, free: 1.133 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007446/1.632, allocations: 431 kB / 1.638 GB, free: 0.8477 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/1.633, allocations: 8.422 kB / 1.638 GB, free: 0.8398 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004394/1.633, allocations: 257.8 kB / 1.638 GB, free: 0.6406 MB / 0.948 GB Notification: Performance of pre-optimization done (n=55): time 3.176e-06/1.633, allocations: 0 / 1.638 GB, free: 0.6406 MB / 0.948 GB Notification: Performance of matching and sorting (n=55): time 0.001069/1.634, allocations: 0.5691 MB / 1.639 GB, free: 220 kB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.948e-05/1.634, allocations: 89.48 kB / 1.639 GB, free: 116 kB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004017/1.635, allocations: 364.4 kB / 1.639 GB, free: 15.83 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 6.312e-05/1.635, allocations: 47.45 kB / 1.639 GB, free: 15.79 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/1.635, allocations: 240.5 kB / 1.639 GB, free: 15.61 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/1.635, allocations: 132.4 kB / 1.639 GB, free: 15.5 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.528e-05/1.635, allocations: 17.5 kB / 1.639 GB, free: 15.49 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001483/1.635, allocations: 355.5 kB / 1.64 GB, free: 15.16 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000303/1.635, allocations: 171.5 kB / 1.64 GB, free: 15.05 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004024/1.636, allocations: 278.9 kB / 1.64 GB, free: 14.81 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002964/1.636, allocations: 174.8 kB / 1.64 GB, free: 14.71 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/1.636, allocations: 0 / 1.64 GB, free: 14.71 MB / 0.9636 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00083/1.637, allocations: 0.5107 MB / 1.641 GB, free: 14.33 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/1.637, allocations: 4 kB / 1.641 GB, free: 14.32 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/1.637, allocations: 4 kB / 1.641 GB, free: 14.32 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-05/1.637, allocations: 8.25 kB / 1.641 GB, free: 14.31 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002677/1.637, allocations: 71.33 kB / 1.641 GB, free: 14.25 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/1.637, allocations: 7.781 kB / 1.641 GB, free: 14.24 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000277/1.638, allocations: 58.75 kB / 1.641 GB, free: 14.2 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.582e-05/1.638, allocations: 23.5 kB / 1.641 GB, free: 14.18 MB / 0.9636 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.000291/1.638, allocations: 248.7 kB / 1.641 GB, free: 13.98 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.454e-05/1.638, allocations: 47.42 kB / 1.641 GB, free: 13.93 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008592/1.639, allocations: 0.4892 MB / 1.642 GB, free: 13.58 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/1.639, allocations: 12 kB / 1.642 GB, free: 13.57 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/1.639, allocations: 0 / 1.642 GB, free: 13.57 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/1.639, allocations: 7.938 kB / 1.642 GB, free: 13.56 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001788/1.641, allocations: 1.216 MB / 1.643 GB, free: 12.6 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/1.641, allocations: 3.953 kB / 1.643 GB, free: 12.59 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001938/1.641, allocations: 43.67 kB / 1.643 GB, free: 12.55 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/1.641, allocations: 4 kB / 1.643 GB, free: 12.55 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.881e-05/1.641, allocations: 15.61 kB / 1.643 GB, free: 12.54 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/1.641, allocations: 0 / 1.643 GB, free: 12.54 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/1.641, allocations: 0 / 1.643 GB, free: 12.54 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008013/1.642, allocations: 0.5527 MB / 1.644 GB, free: 12.09 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/1.642, allocations: 135.9 kB / 1.644 GB, free: 11.95 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.408e-05/1.642, allocations: 15.56 kB / 1.644 GB, free: 11.94 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/1.642, allocations: 39.78 kB / 1.644 GB, free: 11.91 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/1.642, allocations: 68.27 kB / 1.644 GB, free: 11.85 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-05/1.643, allocations: 23.92 kB / 1.644 GB, free: 11.83 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0002625/1.643, allocations: 248.1 kB / 1.644 GB, free: 11.64 MB / 0.9636 GB Notification: Performance of sort global known variables: time 1.2e-07/1.643, allocations: 0 / 1.644 GB, free: 11.64 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0004958/1.643, allocations: 131 kB / 1.644 GB, free: 11.54 MB / 0.9636 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.002202/1.646, allocations: 1.477 MB / 1.646 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0008513/1.646, allocations: 461.5 kB / 1.646 GB, free: 10 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/1.646, allocations: 3.938 kB / 1.646 GB, free: 9.996 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.000389/1.647, allocations: 241 kB / 1.646 GB, free: 9.824 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004547/1.647, allocations: 77.36 kB / 1.646 GB, free: 9.773 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004904/1.652, allocations: 3.905 MB / 1.65 GB, free: 6.293 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005153/1.653, allocations: 0.8724 MB / 1.651 GB, free: 5.395 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.0002803/1.653, allocations: 80.38 kB / 1.651 GB, free: 5.312 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003034/1.653, allocations: 187.9 kB / 1.651 GB, free: 5.25 MB / 0.9636 GB Notification: Performance of SimCode: time 5.11e-07/1.653, allocations: 0 / 1.651 GB, free: 5.25 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/1.68, allocations: 11.07 MB / 1.662 GB, free: 10.4 MB / 0.9792 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/1.68, allocations: 252.9 kB / 1.662 GB, free: 10.07 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.547/4.227, allocations: 0 / 1.662 GB, free: 10.07 MB / 0.9792 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