Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.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.Reheat,fileNamePrefix="Buildings_latest_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.371/2.371, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.001415/0.001415, allocations: 180.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.742/1.742, allocations: 221.3 MB / 0.7915 GB, free: 5.457 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.0009013/0.0009013, allocations: 95.69 kB / 0.9317 GB, free: 5.773 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.011e-05/4.014e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3501, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.087/1.437, allocations: 152.9 MB / 1.368 GB, free: 1.207 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/1.437, allocations: 92 kB / 1.368 GB, free: 1.152 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0121/1.449, allocations: 4.789 MB / 1.373 GB, free: 13.07 MB / 0.8386 GB Notification: Performance of FrontEnd: time 4.729e-06/1.449, allocations: 0 / 1.373 GB, free: 13.07 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.938e-05/1.449, allocations: 11.94 kB / 1.373 GB, free: 13.06 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.0007409/1.45, allocations: 0.5084 MB / 1.373 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/1.45, allocations: 12.03 kB / 1.373 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.208e-05/1.45, allocations: 60.41 kB / 1.373 GB, free: 12.46 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.789e-05/1.45, allocations: 31.62 kB / 1.374 GB, free: 12.43 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003249/1.451, allocations: 261.5 kB / 1.374 GB, free: 12.17 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/1.451, allocations: 26.62 kB / 1.374 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.215e-05/1.451, allocations: 29.94 kB / 1.374 GB, free: 12.14 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004986/1.451, allocations: 297.1 kB / 1.374 GB, free: 11.93 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/1.451, allocations: 3.953 kB / 1.374 GB, free: 11.92 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.134e-05/1.451, allocations: 15.05 kB / 1.374 GB, free: 11.91 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/1.451, allocations: 8 kB / 1.374 GB, free: 11.91 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003684/1.452, allocations: 210.3 kB / 1.374 GB, free: 11.77 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001449/1.453, allocations: 0.9694 MB / 1.375 GB, free: 10.96 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004351/1.454, allocations: 236.6 kB / 1.376 GB, free: 10.79 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/1.454, allocations: 111.1 kB / 1.376 GB, free: 10.72 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/1.454, allocations: 240 / 1.376 GB, free: 10.72 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002207/1.454, allocations: 147.5 kB / 1.376 GB, free: 10.6 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=30): time 1.372e-06/1.454, allocations: 0 / 1.376 GB, free: 10.6 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30): time 0.0004168/1.455, allocations: 222 kB / 1.376 GB, free: 10.42 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/1.455, allocations: 63.02 kB / 1.376 GB, free: 10.35 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/1.455, allocations: 184.5 kB / 1.376 GB, free: 10.19 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.834e-05/1.455, allocations: 36.95 kB / 1.376 GB, free: 10.15 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/1.455, allocations: 154.6 kB / 1.376 GB, free: 10.02 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.169e-05/1.455, allocations: 78.61 kB / 1.376 GB, free: 9.953 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.648e-05/1.455, allocations: 11.81 kB / 1.376 GB, free: 9.945 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001307/1.455, allocations: 334.9 kB / 1.377 GB, free: 9.621 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/1.455, allocations: 81.23 kB / 1.377 GB, free: 9.57 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/1.455, allocations: 140.5 kB / 1.377 GB, free: 9.453 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001418/1.456, allocations: 80.53 kB / 1.377 GB, free: 9.398 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/1.456, allocations: 0 / 1.377 GB, free: 9.398 MB / 0.8386 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004119/1.456, allocations: 280.2 kB / 1.377 GB, free: 9.184 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/1.456, allocations: 8 kB / 1.377 GB, free: 9.176 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/1.456, allocations: 0 / 1.377 GB, free: 9.176 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/1.456, allocations: 16.08 kB / 1.377 GB, free: 9.16 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002053/1.456, allocations: 39.88 kB / 1.377 GB, free: 9.121 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/1.456, allocations: 4 kB / 1.377 GB, free: 9.117 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/1.457, allocations: 50.73 kB / 1.377 GB, free: 9.074 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/1.457, allocations: 11.5 kB / 1.377 GB, free: 9.066 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 0.0001196/1.457, allocations: 139.5 kB / 1.378 GB, free: 8.934 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.235e-05/1.457, allocations: 27.66 kB / 1.378 GB, free: 8.906 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004469/1.457, allocations: 260.5 kB / 1.378 GB, free: 8.719 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/1.457, allocations: 4 kB / 1.378 GB, free: 8.715 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/1.457, allocations: 3.953 kB / 1.378 GB, free: 8.711 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/1.457, allocations: 0 / 1.378 GB, free: 8.711 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009003/1.458, allocations: 0.7095 MB / 1.379 GB, free: 8.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-06/1.458, allocations: 0 / 1.379 GB, free: 8.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/1.458, allocations: 23.98 kB / 1.379 GB, free: 8.066 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/1.458, allocations: 7.953 kB / 1.379 GB, free: 8.059 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/1.458, allocations: 7.234 kB / 1.379 GB, free: 8.055 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/1.458, allocations: 7.938 kB / 1.379 GB, free: 8.047 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/1.458, allocations: 4 kB / 1.379 GB, free: 8.043 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003821/1.459, allocations: 320 kB / 1.379 GB, free: 7.77 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.2e-05/1.459, allocations: 96.81 kB / 1.379 GB, free: 7.656 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.496e-05/1.459, allocations: 15.27 kB / 1.379 GB, free: 7.645 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/1.459, allocations: 37.72 kB / 1.379 GB, free: 7.613 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/1.459, allocations: 38.81 kB / 1.379 GB, free: 7.582 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/1.459, allocations: 8 kB / 1.379 GB, free: 7.574 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001049/1.459, allocations: 136.4 kB / 1.379 GB, free: 7.457 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.459, allocations: 0 / 1.379 GB, free: 7.457 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002959/1.46, allocations: 65.36 kB / 1.379 GB, free: 7.402 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.0007408/1.46, allocations: 0.8939 MB / 1.38 GB, free: 6.539 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004004/1.461, allocations: 222.3 kB / 1.38 GB, free: 6.387 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/1.461, allocations: 0 / 1.38 GB, free: 6.387 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001786/1.461, allocations: 116 kB / 1.381 GB, free: 6.305 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/1.461, allocations: 39.06 kB / 1.381 GB, free: 6.277 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008316/1.462, allocations: 387.7 kB / 1.381 GB, free: 5.926 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/1.462, allocations: 0.7677 MB / 1.382 GB, free: 5.133 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001124/1.463, allocations: 22.08 kB / 1.382 GB, free: 5.109 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/1.463, allocations: 88.52 kB / 1.382 GB, free: 5.074 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.463, allocations: 0 / 1.382 GB, free: 5.074 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01662/1.479, allocations: 4.967 MB / 1.387 GB, free: 312 kB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/1.48, allocations: 182.6 kB / 1.387 GB, free: 80 kB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.859/3.339, allocations: 0 / 1.387 GB, free: 80 kB / 0.8386 GB (rm -f Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe ; mkfifo Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe ; head -c 1048576 < Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe >> ../files/Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat_res.mat --tempDir=temp_Buildings_latest_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat.fmu > Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat_res.mat does not exist to compare? outputFormat=mat