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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009121/0.000912, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009449/0.0009449, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.506/2.506, allocations: 390.3 MB / 0.6653 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003279/0.000328, allocations: 15.94 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8343/0.8346, allocations: 142.3 MB / 0.9536 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat): time 0.002074/0.8368, allocations: 1.704 MB / 0.9553 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001039/0.8378, allocations: 0.6859 MB / 0.9559 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.838, allocations: 4.969 kB / 0.9559 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.8381, allocations: 27.02 kB / 0.956 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.8382, allocations: 37.52 kB / 0.956 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003466/0.8385, allocations: 99.84 kB / 0.9561 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002986/0.8389, allocations: 230.7 kB / 0.9563 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003204/0.8392, allocations: 188.9 kB / 0.9565 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.8393, allocations: 92.5 kB / 0.9566 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.8395, allocations: 117.6 kB / 0.9567 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.362e-05/0.8395, allocations: 16.34 kB / 0.9567 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.882e-05/0.8396, allocations: 15.81 kB / 0.9567 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.119e-05/0.8397, allocations: 51.12 kB / 0.9568 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.883e-05/0.8398, allocations: 75.67 kB / 0.9568 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002506/0.84, allocations: 299.2 kB / 0.9571 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.84, allocations: 1.469 kB / 0.9571 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.934e-06/0.84, allocations: 0 / 0.9571 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.84, allocations: 0 / 0.9571 GB, free: 5.285 MB / 0.7169 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.0006905/0.8407, allocations: 0.5208 MB / 0.9576 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.8408, allocations: 9.812 kB / 0.9577 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.143e-05/0.8409, allocations: 67.83 kB / 0.9577 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.795e-05/0.8409, allocations: 32.34 kB / 0.9577 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002373/0.8412, allocations: 262.2 kB / 0.958 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.127e-05/0.8412, allocations: 25.44 kB / 0.958 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.137e-05/0.8413, allocations: 28.53 kB / 0.9581 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.8418, allocations: 316.1 kB / 0.9584 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.8418, allocations: 0 / 0.9584 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.984e-05/0.8418, allocations: 11.19 kB / 0.9584 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.8419, allocations: 11.27 kB / 0.9584 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004474/0.8423, allocations: 242.1 kB / 0.9586 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.8436, allocations: 0.9474 MB / 0.9595 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004906/0.8441, allocations: 259.7 kB / 0.9598 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.417e-05/0.8441, allocations: 3.703 kB / 0.9598 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000303/0.8444, allocations: 163.5 kB / 0.9599 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.8444, allocations: 0 / 0.9599 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of matching and sorting (n=30): time 0.0006864/0.8451, allocations: 336.8 kB / 0.9603 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.8452, allocations: 64.86 kB / 0.9603 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.8453, allocations: 203.4 kB / 0.9605 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.226e-05/0.8454, allocations: 39.2 kB / 0.9606 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.895e-05/0.8455, allocations: 156.9 kB / 0.9607 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.217e-05/0.8455, allocations: 81.89 kB / 0.9608 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.55e-05/0.8455, allocations: 5.375 kB / 0.9608 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.469e-05/0.8456, allocations: 336.3 kB / 0.9611 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.8458, allocations: 100.2 kB / 0.9612 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002147/0.846, allocations: 147 kB / 0.9613 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001906/0.8462, allocations: 94.58 kB / 0.9614 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.8462, allocations: 0 / 0.9614 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005248/0.8468, allocations: 316.6 kB / 0.9617 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.8468, allocations: 5.344 kB / 0.9617 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.8468, allocations: 1.781 kB / 0.9617 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.8468, allocations: 6.781 kB / 0.9617 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/0.847, allocations: 48.66 kB / 0.9618 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.8471, allocations: 6.594 kB / 0.9618 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/0.8473, allocations: 58.77 kB / 0.9619 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.605e-05/0.8473, allocations: 17.23 kB / 0.9619 GB, free: 1.629 MB / 0.7169 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.condition,heaCon.offToOn.enableFire,heaCon.offToOn.fire,$PRE.heaCon.offToOn.t_start,heaCon.offToOn.t_start,heaCon.onToOff.condition,heaCon.onToOff.enableFire,heaCon.onToOff.fire,$PRE.heaCon.onToOff.t_start,heaCon.onToOff.t_start,heaCon.stateGraphRoot.activeSteps,heaCon.stateGraphRoot.resume,heaCon.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked 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 0.0001485/0.8475, allocations: 166 kB / 0.962 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.363e-05/0.8475, allocations: 25.7 kB / 0.9621 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005215/0.8481, allocations: 290.5 kB / 0.9623 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.8481, allocations: 3.25 kB / 0.9623 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.8481, allocations: 0 / 0.9623 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.8481, allocations: 0 / 0.9623 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009573/0.849, allocations: 0.7394 MB / 0.9631 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.093e-06/0.8491, allocations: 0 / 0.9631 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001421/0.8492, allocations: 30.17 kB / 0.9631 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.8492, allocations: 1.188 kB / 0.9631 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.8492, allocations: 13.92 kB / 0.9631 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.8493, allocations: 4.906 kB / 0.9631 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.8493, allocations: 9.062 kB / 0.9631 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004618/0.8497, allocations: 349 kB / 0.9634 GB, free: 468 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.082e-05/0.8498, allocations: 103.6 kB / 0.9635 GB, free: 352 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.8498, allocations: 6.438 kB / 0.9636 GB, free: 348 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002105/0.85, allocations: 37.42 kB / 0.9636 GB, free: 332 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.8502, allocations: 40.25 kB / 0.9636 GB, free: 308 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.453e-05/0.8502, allocations: 13.89 kB / 0.9636 GB, free: 300 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.982e-05/0.8503, allocations: 132.9 kB / 0.9638 GB, free: 196 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8503, allocations: 1.5 kB / 0.9638 GB, free: 196 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003589/0.8507, allocations: 65.03 kB / 0.9638 GB, free: 176 kB / 0.7169 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.onToOff.enableFire,heaCon.offToOn.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.condition,heaCon.offToOn.fire,heaCon.offToOn.t_start,heaCon.onToOff.condition,heaCon.onToOff.fire,heaCon.onToOff.t_start,heaCon.stateGraphRoot.activeSteps) * Number of discrete states: 2 (heaCon.off.newActive,heaCon.on.newActive) * Number of clocked states: 0 () * 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.0008617/0.8515, allocations: 0.9129 MB / 0.9647 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005092/0.852, allocations: 254.3 kB / 0.965 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.8521, allocations: 4.25 kB / 0.965 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.8523, allocations: 134 kB / 0.9651 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.8526, allocations: 33.44 kB / 0.9651 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002683/0.8553, allocations: 2.169 MB / 0.9672 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003464/0.8557, allocations: 0.7702 MB / 0.968 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001269/0.8558, allocations: 34.5 kB / 0.968 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001508/0.8559, allocations: 86.33 kB / 0.9681 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of SimCode: time 6.21e-07/0.856, allocations: 0 / 0.9681 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01899/0.875, allocations: 4.928 MB / 0.9729 GB, free: 10.37 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003578/0.8754, allocations: 211.3 kB / 0.9731 GB, free: 10.13 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.722/2.597, allocations: 0 / 0.9731 GB, free: 10.13 MB / 0.7325 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