Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.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.Reheat,fileNamePrefix="Buildings_9_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat,fileNamePrefix="Buildings_9_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat",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.453/2.453, allocations: 387.1 MB / 399.7 MB, free: 9.461 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.001413/0.001413, allocations: 172.9 kB / 492.3 MB, free: 0.625 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.855/1.855, allocations: 221.3 MB / 0.7871 GB, free: 12.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.001339/0.001339, allocations: 91.89 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.278e-05/4.338e-05, allocations: 0 / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3942/0.3942, allocations: 142.4 MB / 1.212 GB, free: 38.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.235/1.63, allocations: 152.1 MB / 1.361 GB, free: 19.09 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002224/1.63, allocations: 91.91 kB / 1.361 GB, free: 19.09 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01233/1.642, allocations: 4.792 MB / 1.366 GB, free: 34.44 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.905e-06/1.642, allocations: 0 / 1.366 GB, free: 34.44 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.05e-05/1.642, allocations: 8.625 kB / 1.366 GB, free: 34.44 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.0006708/1.643, allocations: 0.5117 MB / 1.366 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/1.643, allocations: 11.56 kB / 1.366 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.96e-05/1.643, allocations: 63.56 kB / 1.366 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.637e-05/1.643, allocations: 31 kB / 1.366 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/1.644, allocations: 258.3 kB / 1.367 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/1.644, allocations: 28.45 kB / 1.367 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.359e-05/1.644, allocations: 29.84 kB / 1.367 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004857/1.644, allocations: 297.7 kB / 1.367 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/1.644, allocations: 0 / 1.367 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/1.644, allocations: 17.39 kB / 1.367 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/1.644, allocations: 3.906 kB / 1.367 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003475/1.645, allocations: 213.7 kB / 1.367 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001359/1.646, allocations: 0.9574 MB / 1.368 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000404/1.646, allocations: 239.5 kB / 1.368 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000149/1.647, allocations: 110.5 kB / 1.368 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/1.647, allocations: 8.078 kB / 1.368 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002216/1.647, allocations: 152.4 kB / 1.369 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=30): time 1.804e-06/1.647, allocations: 0 / 1.369 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30): time 0.0003959/1.647, allocations: 217.1 kB / 1.369 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/1.647, allocations: 65.02 kB / 1.369 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/1.647, allocations: 182.7 kB / 1.369 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.324e-05/1.647, allocations: 40.27 kB / 1.369 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.862e-05/1.648, allocations: 154.8 kB / 1.369 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.296e-05/1.648, allocations: 78.33 kB / 1.369 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.377e-05/1.648, allocations: 3.562 kB / 1.369 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.939e-05/1.648, allocations: 334.7 kB / 1.37 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/1.648, allocations: 83.45 kB / 1.37 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/1.648, allocations: 135.2 kB / 1.37 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/1.648, allocations: 88.59 kB / 1.37 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/1.648, allocations: 3.938 kB / 1.37 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003772/1.649, allocations: 274.2 kB / 1.37 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/1.649, allocations: 11.14 kB / 1.37 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/1.649, allocations: 4.156 kB / 1.37 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/1.649, allocations: 3.812 kB / 1.37 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/1.649, allocations: 40.86 kB / 1.37 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/1.649, allocations: 7.797 kB / 1.37 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001985/1.649, allocations: 47.88 kB / 1.37 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.076e-05/1.649, allocations: 15.53 kB / 1.37 GB, free: 32.31 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.heaCon.offToOn.enableFire,$PRE.heaCon.onToOff.enableFire,$whenCondition2,$whenCondition1,$PRE.heaCon.off.localActive,heaCon.off.localActive,$PRE.heaCon.off.newActive,heaCon.off.newActive,$PRE.heaCon.off.oldActive,heaCon.off.oldActive,heaCon.off.active,$PRE.heaCon.on.localActive,heaCon.on.localActive,$PRE.heaCon.on.newActive,heaCon.on.newActive,$PRE.heaCon.on.oldActive,heaCon.on.oldActive,heaCon.on.active,heaCon.offToOn.enableFire,heaCon.offToOn.fire,$PRE.heaCon.offToOn.t_start,heaCon.offToOn.t_start,heaCon.offToOn.condition,heaCon.onToOff.enableFire,heaCon.onToOff.fire,$PRE.heaCon.onToOff.t_start,heaCon.onToOff.t_start,heaCon.onToOff.condition,heaCon.stateGraphRoot.activeSteps,heaCon.stateGraphRoot.resume,heaCon.stateGraphRoot.suspend) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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 9.694e-05/1.649, allocations: 136.4 kB / 1.37 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.856e-05/1.649, allocations: 23.25 kB / 1.37 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004089/1.65, allocations: 260.7 kB / 1.371 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/1.65, allocations: 3.844 kB / 1.371 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/1.65, allocations: 0 / 1.371 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/1.65, allocations: 3.953 kB / 1.371 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007934/1.65, allocations: 0.7108 MB / 1.371 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/1.65, allocations: 0 / 1.371 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/1.651, allocations: 38.16 kB / 1.371 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/1.651, allocations: 0 / 1.371 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/1.651, allocations: 11.73 kB / 1.371 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/1.651, allocations: 4 kB / 1.371 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.651, allocations: 2.625 kB / 1.371 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000351/1.651, allocations: 322.8 kB / 1.372 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.576e-05/1.651, allocations: 96.58 kB / 1.372 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.502e-05/1.651, allocations: 9.125 kB / 1.372 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/1.651, allocations: 43.27 kB / 1.372 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.791e-05/1.651, allocations: 36.73 kB / 1.372 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/1.651, allocations: 10.62 kB / 1.372 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.639e-05/1.652, allocations: 127.4 kB / 1.372 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.652, allocations: 0 / 1.372 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002902/1.652, allocations: 64.88 kB / 1.372 GB, free: 31.45 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 21 (heaCon.offToOn.enableFire,heaCon.onToOff.enableFire,heaCon.on.localActive,heaCon.off.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,heaCon.off.newActive,heaCon.off.oldActive,heaCon.off.active,heaCon.on.newActive,heaCon.on.oldActive,heaCon.on.active,heaCon.offToOn.fire,heaCon.offToOn.t_start,heaCon.offToOn.condition,heaCon.onToOff.fire,heaCon.onToOff.t_start,heaCon.onToOff.condition,heaCon.stateGraphRoot.activeSteps) * Number of discrete states: 2 (heaCon.off.newActive,heaCon.on.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0006767/1.653, allocations: 0.8933 MB / 1.373 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003419/1.653, allocations: 228.6 kB / 1.373 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/1.653, allocations: 0 / 1.373 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001584/1.653, allocations: 112.4 kB / 1.373 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003574/1.653, allocations: 38.88 kB / 1.373 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009476/1.654, allocations: 385.3 kB / 1.374 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/1.655, allocations: 0.7682 MB / 1.375 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001204/1.655, allocations: 29.28 kB / 1.375 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/1.655, allocations: 87.55 kB / 1.375 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of SimCode: time 1.643e-06/1.655, allocations: 4 kB / 1.375 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.018/1.673, allocations: 4.965 MB / 1.379 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002019/1.673, allocations: 186.6 kB / 1.38 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.909/3.582, allocations: 0 / 1.38 GB, free: 29.21 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe ; mkfifo Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe ; head -c 1048576 < Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe >> ../files/Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat_res.mat --tempDir=temp_Buildings_9_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat.fmu > Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat_res.mat does not exist to compare? outputFormat=mat