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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.828/1.828, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0009664/0.0009663, allocations: 185.2 kB / 490.8 MB, free: 1.945 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.146/1.146, allocations: 221.4 MB / 0.7863 GB, free: 13.66 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.0008907/0.0008906, allocations: 87.17 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4359/0.4369, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1883/0.6251, allocations: 143 MB / 1.212 GB, free: 40.01 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5171/1.142, allocations: 152.1 MB / 1.36 GB, free: 17.2 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/1.142, allocations: 93.25 kB / 1.36 GB, free: 17.2 MB / 0.823 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.01174/1.154, allocations: 4.96 MB / 1.365 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/1.154, allocations: 9.562 kB / 1.365 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.743e-05/1.154, allocations: 31.56 kB / 1.365 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000242/1.155, allocations: 265.5 kB / 1.365 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.14e-05/1.155, allocations: 14.42 kB / 1.365 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/1.155, allocations: 17.78 kB / 1.365 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003556/1.155, allocations: 195.5 kB / 1.366 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003803/1.155, allocations: 263.2 kB / 1.366 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/1.155, allocations: 0 / 1.366 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.408e-05/1.155, allocations: 4.375 kB / 1.366 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/1.155, allocations: 10.3 kB / 1.366 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/1.157, allocations: 0.8977 MB / 1.367 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000392/1.157, allocations: 218.3 kB / 1.367 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/1.157, allocations: 98.73 kB / 1.367 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/1.157, allocations: 6.609 kB / 1.367 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001813/1.158, allocations: 135.6 kB / 1.367 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=30): time 1.513e-06/1.158, allocations: 0 / 1.367 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30): time 0.0003406/1.158, allocations: 193.5 kB / 1.367 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.154e-05/1.158, allocations: 57.86 kB / 1.367 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001258/1.158, allocations: 165 kB / 1.368 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/1.158, allocations: 33.94 kB / 1.368 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.374e-05/1.158, allocations: 142.6 kB / 1.368 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.202e-05/1.158, allocations: 70.66 kB / 1.368 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.329e-05/1.158, allocations: 0 / 1.368 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001053/1.158, allocations: 339.1 kB / 1.368 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/1.159, allocations: 74.19 kB / 1.368 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/1.159, allocations: 124.7 kB / 1.368 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001281/1.159, allocations: 81.89 kB / 1.368 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.159, allocations: 0 / 1.368 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003704/1.159, allocations: 248.1 kB / 1.369 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/1.159, allocations: 5.062 kB / 1.369 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-06/1.159, allocations: 1.531 kB / 1.369 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/1.159, allocations: 3.969 kB / 1.369 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000208/1.159, allocations: 48.25 kB / 1.369 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/1.159, allocations: 7.375 kB / 1.369 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002115/1.16, allocations: 48.84 kB / 1.369 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.332e-05/1.16, allocations: 11.59 kB / 1.369 GB, free: 30.82 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.0001425/1.16, allocations: 125.4 kB / 1.369 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/1.16, allocations: 17.56 kB / 1.369 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003988/1.16, allocations: 226.8 kB / 1.369 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/1.16, allocations: 7.5 kB / 1.369 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/1.16, allocations: 0 / 1.369 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/1.16, allocations: 10.92 kB / 1.369 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007506/1.161, allocations: 0.6283 MB / 1.37 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/1.161, allocations: 4 kB / 1.37 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/1.161, allocations: 33.47 kB / 1.37 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/1.161, allocations: 1.594 kB / 1.37 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/1.161, allocations: 1.5 kB / 1.37 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/1.161, allocations: 2.25 kB / 1.37 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/1.161, allocations: 3.938 kB / 1.37 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003521/1.162, allocations: 306.8 kB / 1.37 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000435/1.162, allocations: 0.6703 MB / 1.371 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.866e-05/1.162, allocations: 95.33 kB / 1.371 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.938e-05/1.162, allocations: 3.234 kB / 1.371 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/1.162, allocations: 34.86 kB / 1.371 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.415e-05/1.163, allocations: 36.78 kB / 1.371 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/1.163, allocations: 11.72 kB / 1.371 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7.724e-05/1.163, allocations: 118.6 kB / 1.371 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0008315/1.163, allocations: 52.91 kB / 1.371 GB, free: 29.47 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.0001505/1.164, allocations: 118.8 kB / 1.371 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003195/1.164, allocations: 214.6 kB / 1.371 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/1.164, allocations: 0 / 1.371 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001598/1.164, allocations: 115.9 kB / 1.372 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002342/1.164, allocations: 22.56 kB / 1.372 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006245/1.165, allocations: 311.2 kB / 1.372 GB, free: 29.22 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003993/1.165, allocations: 0.7941 MB / 1.373 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/1.165, allocations: 0 / 1.373 GB, free: 28.51 MB / 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)