Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode.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.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode,fileNamePrefix="Buildings_latest_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingMode",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.34/2.34, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001009/0.001009, allocations: 179.6 kB / 0.4901 GB, free: 2.254 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.433/1.433, allocations: 223.1 MB / 0.7992 GB, free: 14.76 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.0009762/0.0009764, allocations: 104.2 kB / 0.9396 GB, free: 1.938 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003601, allocations: 15.53 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2526, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.183/0.4357, allocations: 154.1 MB / 1.38 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003172/0.436, allocations: 99.92 kB / 1.38 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02044/0.4565, allocations: 7.465 MB / 1.387 GB, free: 7.836 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.234e-06/0.4566, allocations: 0 / 1.387 GB, free: 7.836 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.469e-05/0.4566, allocations: 8 kB / 1.387 GB, free: 7.828 MB / 0.8855 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.001586/0.4582, allocations: 0.6765 MB / 1.388 GB, free: 7.094 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.4583, allocations: 8.031 kB / 1.388 GB, free: 7.086 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001822/0.4584, allocations: 86.52 kB / 1.388 GB, free: 6.992 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.4586, allocations: 51.38 kB / 1.388 GB, free: 6.941 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006314/0.4592, allocations: 335.3 kB / 1.388 GB, free: 6.574 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.269e-05/0.4593, allocations: 48.97 kB / 1.388 GB, free: 6.527 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.534e-05/0.4594, allocations: 52.34 kB / 1.388 GB, free: 6.477 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.4605, allocations: 0.5293 MB / 1.389 GB, free: 5.93 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.4605, allocations: 3.984 kB / 1.389 GB, free: 5.926 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.692e-05/0.4606, allocations: 16 kB / 1.389 GB, free: 5.91 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.492e-05/0.4606, allocations: 17 kB / 1.389 GB, free: 5.895 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000952/0.4616, allocations: 447.8 kB / 1.389 GB, free: 5.457 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002393/0.464, allocations: 1.407 MB / 1.391 GB, free: 3.996 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008069/0.4648, allocations: 426.1 kB / 1.391 GB, free: 3.566 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 5.226e-05/0.4649, allocations: 8.531 kB / 1.391 GB, free: 3.559 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005173/0.4654, allocations: 265.3 kB / 1.391 GB, free: 3.285 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=52): time 2.575e-06/0.4654, allocations: 0 / 1.391 GB, free: 3.285 MB / 0.8855 GB Notification: Performance of matching and sorting (n=52): time 0.001171/0.4666, allocations: 0.5573 MB / 1.392 GB, free: 2.719 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.4667, allocations: 67.81 kB / 1.392 GB, free: 2.641 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002775/0.4669, allocations: 243.8 kB / 1.392 GB, free: 2.398 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.133e-05/0.467, allocations: 61.69 kB / 1.392 GB, free: 2.332 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/0.4672, allocations: 197.2 kB / 1.392 GB, free: 2.133 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.4673, allocations: 126.3 kB / 1.393 GB, free: 2.008 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.907e-05/0.4674, allocations: 12 kB / 1.393 GB, free: 1.996 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.4675, allocations: 346.8 kB / 1.393 GB, free: 1.648 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004153/0.4679, allocations: 185.2 kB / 1.393 GB, free: 1.469 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000437/0.4684, allocations: 278 kB / 1.393 GB, free: 1.172 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004061/0.4688, allocations: 208.9 kB / 1.394 GB, free: 0.9648 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4688, allocations: 0 / 1.394 GB, free: 0.9648 MB / 0.8855 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.00103/0.4698, allocations: 0.5765 MB / 1.394 GB, free: 384 kB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.987e-05/0.4699, allocations: 33.7 kB / 1.394 GB, free: 344 kB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.4699, allocations: 0 / 1.394 GB, free: 344 kB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.4699, allocations: 8 kB / 1.394 GB, free: 336 kB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/0.4702, allocations: 75.83 kB / 1.394 GB, free: 260 kB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.4703, allocations: 7.984 kB / 1.394 GB, free: 252 kB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004325/0.4707, allocations: 79.97 kB / 1.394 GB, free: 172 kB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.446e-05/0.4708, allocations: 31.98 kB / 1.394 GB, free: 140 kB / 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.0003196/0.4711, allocations: 233.6 kB / 1.395 GB, free: 15.9 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.616e-05/0.4712, allocations: 35.58 kB / 1.395 GB, free: 15.86 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009537/0.4721, allocations: 495 kB / 1.395 GB, free: 15.37 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.4721, allocations: 11.94 kB / 1.395 GB, free: 15.36 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.4721, allocations: 0 / 1.395 GB, free: 15.36 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.4722, allocations: 0 / 1.395 GB, free: 15.36 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001806/0.474, allocations: 1.125 MB / 1.396 GB, free: 14.18 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.474, allocations: 3.938 kB / 1.396 GB, free: 14.17 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.4742, allocations: 51.91 kB / 1.396 GB, free: 14.12 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.4742, allocations: 0 / 1.396 GB, free: 14.12 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.285e-05/0.4743, allocations: 12 kB / 1.396 GB, free: 14.11 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/0.4743, allocations: 4 kB / 1.396 GB, free: 14.11 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4743, allocations: 0 / 1.396 GB, free: 14.11 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008577/0.4751, allocations: 0.5423 MB / 1.397 GB, free: 13.55 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 8.556e-05/0.4752, allocations: 116.6 kB / 1.397 GB, free: 13.41 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.376e-05/0.4753, allocations: 15.94 kB / 1.397 GB, free: 13.4 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002981/0.4756, allocations: 55.95 kB / 1.397 GB, free: 13.34 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.4758, allocations: 72.45 kB / 1.397 GB, free: 13.27 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.816e-05/0.4758, allocations: 19.98 kB / 1.397 GB, free: 13.25 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001473/0.476, allocations: 168.4 kB / 1.397 GB, free: 13.09 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.5e-07/0.476, allocations: 0 / 1.397 GB, free: 13.09 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004379/0.4764, allocations: 103.9 kB / 1.397 GB, free: 12.99 MB / 0.9011 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.001202/0.4776, allocations: 1.123 MB / 1.398 GB, free: 11.85 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0009901/0.4786, allocations: 0.5345 MB / 1.399 GB, free: 11.3 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4787, allocations: 0 / 1.399 GB, free: 11.3 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0004524/0.4791, allocations: 251.5 kB / 1.399 GB, free: 11.05 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.4795, allocations: 40.41 kB / 1.399 GB, free: 11.02 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003948/0.4834, allocations: 3.228 MB / 1.402 GB, free: 7.699 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.4838, allocations: 0.8244 MB / 1.403 GB, free: 6.848 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002199/0.4841, allocations: 59.38 kB / 1.403 GB, free: 6.789 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002339/0.4843, allocations: 143.4 kB / 1.403 GB, free: 6.648 MB / 0.9011 GB Notification: Performance of SimCode: time 8.62e-07/0.4843, allocations: 0 / 1.403 GB, free: 6.648 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01984/0.5042, allocations: 7.866 MB / 1.411 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/0.5044, allocations: 214.6 kB / 1.411 GB, free: 14.78 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.085/2.589, allocations: 2.531 kB / 1.411 GB, free: 14.78 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode.pipe ; mkfifo Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode.pipe ; head -c 1048576 < Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode.pipe >> ../files/Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode_res.mat --tempDir=temp_Buildings_latest_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingMode_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingMode.fmu > Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingMode_res.mat does not exist to compare? outputFormat=mat