Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode.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.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode,fileNamePrefix="Buildings_9_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingMode",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode,fileNamePrefix="Buildings_9_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingMode",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.262/2.262, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.00121/0.001209, allocations: 177.2 kB / 498.1 MB, free: 5.73 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.439/1.439, allocations: 223.2 MB / 0.7948 GB, free: 17.9 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.0009004/0.0009005, allocations: 98.56 kB / 0.9346 GB, free: 6.199 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003948/0.0003948, allocations: 10.5 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.2702, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2731/0.5434, allocations: 153.3 MB / 1.373 GB, free: 8.68 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003665/0.5438, allocations: 99.92 kB / 1.373 GB, free: 8.582 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.03117/0.575, allocations: 7.467 MB / 1.38 GB, free: 1.055 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.886e-06/0.575, allocations: 0 / 1.38 GB, free: 1.055 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.197e-05/0.5751, allocations: 8 kB / 1.38 GB, free: 1.047 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001455/0.5766, allocations: 0.6803 MB / 1.381 GB, free: 316 kB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.5766, allocations: 8.031 kB / 1.381 GB, free: 308 kB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000162/0.5768, allocations: 86.52 kB / 1.381 GB, free: 212 kB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.5769, allocations: 47.44 kB / 1.381 GB, free: 164 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005436/0.5775, allocations: 330.5 kB / 1.381 GB, free: 15.8 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.49e-05/0.5775, allocations: 45 kB / 1.381 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.211e-05/0.5776, allocations: 52.28 kB / 1.381 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.5787, allocations: 0.5293 MB / 1.382 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.5787, allocations: 0 / 1.382 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.344e-05/0.5787, allocations: 16 kB / 1.382 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.032e-05/0.5788, allocations: 17 kB / 1.382 GB, free: 15.13 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009724/0.5798, allocations: 451.7 kB / 1.382 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002325/0.5821, allocations: 1.399 MB / 1.384 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007899/0.5829, allocations: 425.7 kB / 1.384 GB, free: 12.8 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 5.462e-05/0.583, allocations: 8.438 kB / 1.384 GB, free: 12.8 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005125/0.5835, allocations: 261.8 kB / 1.384 GB, free: 12.53 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=52): time 2.825e-06/0.5835, allocations: 0 / 1.384 GB, free: 12.53 MB / 0.8855 GB Notification: Performance of matching and sorting (n=52): time 0.001172/0.5847, allocations: 0.5611 MB / 1.385 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/0.5848, allocations: 67.83 kB / 1.385 GB, free: 11.89 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/0.585, allocations: 247.8 kB / 1.385 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.384e-05/0.5851, allocations: 53.7 kB / 1.385 GB, free: 11.58 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.5852, allocations: 201.2 kB / 1.385 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.5854, allocations: 126.4 kB / 1.385 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.807e-05/0.5854, allocations: 12 kB / 1.385 GB, free: 11.24 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.5855, allocations: 342.8 kB / 1.386 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003976/0.5859, allocations: 189.2 kB / 1.386 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004422/0.5864, allocations: 281.9 kB / 1.386 GB, free: 10.41 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000404/0.5868, allocations: 208.9 kB / 1.386 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.5868, allocations: 0 / 1.386 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001042/0.5879, allocations: 0.5766 MB / 1.387 GB, free: 9.613 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.706e-05/0.5879, allocations: 37.69 kB / 1.387 GB, free: 9.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.5879, allocations: 0 / 1.387 GB, free: 9.57 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/0.588, allocations: 15.92 kB / 1.387 GB, free: 9.555 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002855/0.5883, allocations: 67.84 kB / 1.387 GB, free: 9.488 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.5883, allocations: 7.984 kB / 1.387 GB, free: 9.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003943/0.5887, allocations: 91.72 kB / 1.387 GB, free: 9.391 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.004e-05/0.5887, allocations: 24 kB / 1.387 GB, free: 9.367 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 65 ($PRE.cooModCon.con1.enableFire,$PRE.cooModCon.con2.enableFire,$PRE.cooModCon.con3.enableFire,$PRE.cooModCon.con4.enableFire,cooModCon.stateGraphRoot.resume,cooModCon.stateGraphRoot.suspend,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,cooModCon.con1.enableFire,cooModCon.con1.fire,$PRE.cooModCon.con1.t_start,cooModCon.con1.t_start,cooModCon.con1.condition,$PRE.cooModCon.parMecCoo.localActive,cooModCon.parMecCoo.localActive,cooModCon.parMecCoo.inPort[2].occupied,cooModCon.parMecCoo.outPort[2].available,$PRE.cooModCon.parMecCoo.newActive,cooModCon.parMecCoo.newActive,$PRE.cooModCon.parMecCoo.oldActive,cooModCon.parMecCoo.oldActive,cooModCon.parMecCoo.active,$PRE.cooModCon.freCoo.localActive,cooModCon.freCoo.localActive,$PRE.cooModCon.freCoo.newActive,cooModCon.freCoo.newActive,$PRE.cooModCon.freCoo.oldActive,cooModCon.freCoo.oldActive,cooModCon.freCoo.active,$PRE.cooModCon.fulMecCoo.localActive,cooModCon.fulMecCoo.localActive,$PRE.cooModCon.fulMecCoo.newActive,cooModCon.fulMecCoo.newActive,$PRE.cooModCon.fulMecCoo.oldActive,cooModCon.fulMecCoo.oldActive,cooModCon.fulMecCoo.active,cooModCon.con2.enableFire,cooModCon.con2.fire,$PRE.cooModCon.con2.t_start,cooModCon.con2.t_start,cooModCon.con2.condition,cooModCon.con3.enableFire,cooModCon.con3.fire,$PRE.cooModCon.con3.t_start,cooModCon.con3.t_start,cooModCon.con4.enableFire,cooModCon.con4.fire,$PRE.cooModCon.con4.t_start,cooModCon.con4.t_start,cooModCon.con4.condition,cooModCon.stateGraphRoot.activeSteps,$PRE.cooModCon.swi.y,cooModCon.swi.y,cooModCon.swi.firstActiveIndex,$PRE.TCHWLeaWSE.T_start,TCHWLeaWSE.T_start,$PRE.TCHWLeaWSE.count,TCHWLeaWSE.count,cooModCon.con3.condition,cooModCon.swi.expr[1],cooModCon.swi.expr[2],cooModCon.swi.expr[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 1 * 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.0002624/0.589, allocations: 234.3 kB / 1.387 GB, free: 9.129 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.456e-05/0.5891, allocations: 35.58 kB / 1.387 GB, free: 9.094 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009284/0.59, allocations: 495.1 kB / 1.388 GB, free: 8.602 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.59, allocations: 4 kB / 1.388 GB, free: 8.598 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.5901, allocations: 0 / 1.388 GB, free: 8.598 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.5901, allocations: 3.984 kB / 1.388 GB, free: 8.594 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/0.5919, allocations: 1.129 MB / 1.389 GB, free: 7.414 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.5919, allocations: 0 / 1.389 GB, free: 7.414 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.5921, allocations: 51.91 kB / 1.389 GB, free: 7.363 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.5921, allocations: 0 / 1.389 GB, free: 7.363 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.294e-05/0.5921, allocations: 15.98 kB / 1.389 GB, free: 7.348 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.109e-06/0.5921, allocations: 4 kB / 1.389 GB, free: 7.344 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.5921, allocations: 0 / 1.389 GB, free: 7.344 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008546/0.593, allocations: 0.5461 MB / 1.39 GB, free: 6.781 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 8.426e-05/0.5931, allocations: 104.7 kB / 1.39 GB, free: 6.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.442e-05/0.5932, allocations: 12 kB / 1.39 GB, free: 6.648 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002976/0.5935, allocations: 59.94 kB / 1.39 GB, free: 6.59 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/0.5936, allocations: 72.45 kB / 1.39 GB, free: 6.52 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-05/0.5937, allocations: 16 kB / 1.39 GB, free: 6.504 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001562/0.5938, allocations: 164.5 kB / 1.39 GB, free: 6.34 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5939, allocations: 0 / 1.39 GB, free: 6.34 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004297/0.5943, allocations: 107.9 kB / 1.39 GB, free: 6.234 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 45 (cooModCon.con3.enableFire,cooModCon.con4.enableFire,cooModCon.con1.enableFire,cooModCon.con2.enableFire,cooModCon.fulMecCoo.localActive,cooModCon.freCoo.localActive,cooModCon.parMecCoo.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,cooModCon.con1.fire,cooModCon.con1.t_start,cooModCon.con1.condition,cooModCon.parMecCoo.inPort[2].occupied,cooModCon.parMecCoo.outPort[2].available,cooModCon.parMecCoo.newActive,cooModCon.parMecCoo.oldActive,cooModCon.parMecCoo.active,cooModCon.freCoo.newActive,cooModCon.freCoo.oldActive,cooModCon.freCoo.active,cooModCon.fulMecCoo.newActive,cooModCon.fulMecCoo.oldActive,cooModCon.fulMecCoo.active,cooModCon.con2.fire,cooModCon.con2.t_start,cooModCon.con2.condition,cooModCon.con3.fire,cooModCon.con3.t_start,cooModCon.con4.fire,cooModCon.con4.t_start,cooModCon.con4.condition,cooModCon.stateGraphRoot.activeSteps,cooModCon.swi.y,cooModCon.swi.firstActiveIndex,TCHWLeaWSE.T_start,TCHWLeaWSE.count) * Number of discrete states: 5 (TCHWLeaWSE.count,cooModCon.parMecCoo.newActive,cooModCon.freCoo.newActive,cooModCon.fulMecCoo.newActive,cooModCon.swi.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 49 * 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.00129/0.5956, allocations: 1.139 MB / 1.391 GB, free: 5.07 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001002/0.5966, allocations: 0.5267 MB / 1.392 GB, free: 4.523 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.5966, allocations: 0 / 1.392 GB, free: 4.523 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004233/0.597, allocations: 243.5 kB / 1.392 GB, free: 4.289 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.5974, allocations: 52.3 kB / 1.392 GB, free: 4.238 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003997/0.6014, allocations: 3.213 MB / 1.395 GB, free: 0.9414 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004092/0.6018, allocations: 0.8321 MB / 1.396 GB, free: 88 kB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0002257/0.602, allocations: 63.36 kB / 1.396 GB, free: 24 kB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002543/0.6023, allocations: 143.5 kB / 1.396 GB, free: 15.88 MB / 0.9011 GB Notification: Performance of SimCode: time 7.22e-07/0.6023, allocations: 0 / 1.396 GB, free: 15.88 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02284/0.6251, allocations: 7.856 MB / 1.404 GB, free: 8.234 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002579/0.6254, allocations: 210.6 kB / 1.404 GB, free: 7.996 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.255/2.881, allocations: 3.938 kB / 1.404 GB, free: 7.992 MB / 0.9011 GB (rm -f Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode.pipe ; mkfifo Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode.pipe ; head -c 1048576 < Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode.pipe >> ../files/Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode_res.mat --tempDir=temp_Buildings_9_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingMode_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingMode.fmu > Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode_res.mat does not exist to compare? outputFormat=mat