Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occ.occ",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occ.occ",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") [: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 7.0.3-maint.7.0.x/package.mo): time 1.195/1.195, allocations: 249.4 MB / 256.7 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000895/0.0008949, allocations: 185.2 kB / 316 MB, free: 3.488 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.03/1.03, allocations: 205.2 MB / 0.5667 GB, free: 15.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008336/0.0008336, allocations: 94.12 kB / 0.671 GB, free: 4.746 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.36e-06/5.39e-06, allocations: 4 kB / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1414, allocations: 106.3 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4071/0.5485, allocations: 132.6 MB / 1.014 GB, free: 6.004 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001976/0.5488, allocations: 85.59 kB / 1.014 GB, free: 5.957 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.005649/0.5544, allocations: 2.083 MB / 1.016 GB, free: 4.219 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.5544, allocations: 0 / 1.016 GB, free: 4.219 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0003608/0.5548, allocations: 0.4991 MB / 1.017 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.5548, allocations: 8.031 kB / 1.017 GB, free: 3.684 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.154e-05/0.5549, allocations: 15.81 kB / 1.017 GB, free: 3.668 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.555, allocations: 182.4 kB / 1.017 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.5551, allocations: 4 kB / 1.017 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/0.5551, allocations: 0 / 1.017 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001337/0.5552, allocations: 151.6 kB / 1.017 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.5555, allocations: 238.6 kB / 1.017 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.5555, allocations: 0 / 1.017 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.5555, allocations: 7.984 kB / 1.017 GB, free: 3.164 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.5555, allocations: 3.984 kB / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001515/0.5557, allocations: 175.6 kB / 1.017 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002661/0.5559, allocations: 0.5332 MB / 1.018 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002469/0.5562, allocations: 0.5275 MB / 1.018 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 8.486e-06/0.5562, allocations: 0 / 1.018 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003106/0.5565, allocations: 384.5 kB / 1.019 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=39): time 9.22e-07/0.5565, allocations: 0 / 1.019 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of matching and sorting (n=39): time 0.000503/0.557, allocations: 0.5136 MB / 1.019 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/0.5571, allocations: 108 kB / 1.019 GB, free: 1.758 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.786e-05/0.5572, allocations: 92.97 kB / 1.019 GB, free: 1.664 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.5572, allocations: 29.7 kB / 1.02 GB, free: 1.629 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.56e-05/0.5572, allocations: 80.8 kB / 1.02 GB, free: 1.547 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 6.129e-05/0.5573, allocations: 77.45 kB / 1.02 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-06/0.5573, allocations: 0 / 1.02 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.892e-05/0.5574, allocations: 329.5 kB / 1.02 GB, free: 1.156 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.307e-05/0.5575, allocations: 79.53 kB / 1.02 GB, free: 1.105 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.858e-05/0.5575, allocations: 79.05 kB / 1.02 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.5577, allocations: 111.5 kB / 1.02 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.5577, allocations: 0 / 1.02 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002949/0.558, allocations: 375.1 kB / 1.021 GB, free: 0.6719 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.558, allocations: 4 kB / 1.021 GB, free: 0.668 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.558, allocations: 7.938 kB / 1.021 GB, free: 0.6602 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.558, allocations: 0 / 1.021 GB, free: 0.6602 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.92e-05/0.5581, allocations: 7.984 kB / 1.021 GB, free: 0.6523 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.085e-06/0.5581, allocations: 0 / 1.021 GB, free: 0.6523 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.919e-05/0.5581, allocations: 11.84 kB / 1.021 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.5581, allocations: 4 kB / 1.021 GB, free: 0.6367 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 40 ($whenCondition1,occ.occ,occ.mu,$PRE.occ.tNext,occ.tNext,occ.hold_time,occ.r,occ.state[1],occ.state[2],occ.state[3],occ.state[4],occ.state[5],occ.state[6],occ.state[7],occ.state[8],occ.state[9],occ.state[10],occ.state[11],occ.state[12],occ.state[13],occ.state[14],occ.state[15],occ.state[16],occ.state[17],occ.state[18],occ.state[19],occ.state[20],occ.state[21],occ.state[22],occ.state[23],occ.state[24],occ.state[25],occ.state[26],occ.state[27],occ.state[28],occ.state[29],occ.state[30],occ.state[31],occ.state[32],occ.state[33]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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.0001749/0.5583, allocations: 241.7 kB / 1.021 GB, free: 416 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.481e-05/0.5584, allocations: 19.81 kB / 1.021 GB, free: 396 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.12e-05/0.5584, allocations: 5.312 kB / 1.021 GB, free: 392 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.5584, allocations: 4 kB / 1.021 GB, free: 388 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.5584, allocations: 0 / 1.021 GB, free: 388 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.5584, allocations: 0 / 1.021 GB, free: 388 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001597/0.5586, allocations: 239.2 kB / 1.021 GB, free: 136 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.5586, allocations: 0 / 1.021 GB, free: 136 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.5586, allocations: 0 / 1.021 GB, free: 136 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.5586, allocations: 0 / 1.021 GB, free: 136 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.881e-05/0.5586, allocations: 19.67 kB / 1.021 GB, free: 120 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.5586, allocations: 7.938 kB / 1.021 GB, free: 112 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.5586, allocations: 0 / 1.021 GB, free: 112 kB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006068/0.5592, allocations: 0.6647 MB / 1.022 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.97e-05/0.5593, allocations: 92.86 kB / 1.022 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.5594, allocations: 92.98 kB / 1.022 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.197e-05/0.5595, allocations: 8 kB / 1.022 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.822e-05/0.5595, allocations: 11.42 kB / 1.022 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.514e-05/0.5596, allocations: 20.02 kB / 1.022 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.324e-05/0.5596, allocations: 86.03 kB / 1.022 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002477/0.5599, allocations: 60 kB / 1.022 GB, free: 15.22 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 39 ($whenCondition1,occ.occ,occ.mu,occ.tNext,occ.hold_time,occ.r,occ.state[1],occ.state[2],occ.state[3],occ.state[4],occ.state[5],occ.state[6],occ.state[7],occ.state[8],occ.state[9],occ.state[10],occ.state[11],occ.state[12],occ.state[13],occ.state[14],occ.state[15],occ.state[16],occ.state[17],occ.state[18],occ.state[19],occ.state[20],occ.state[21],occ.state[22],occ.state[23],occ.state[24],occ.state[25],occ.state[26],occ.state[27],occ.state[28],occ.state[29],occ.state[30],occ.state[31],occ.state[32],occ.state[33]) * Number of discrete states: 39 (occ.tNext,occ.hold_time,occ.mu,occ.occ,occ.state[33],occ.state[32],occ.state[31],occ.state[30],occ.state[29],occ.state[28],occ.state[27],occ.state[26],occ.state[25],occ.state[24],occ.state[23],occ.state[22],occ.state[21],occ.state[20],occ.state[19],occ.state[18],occ.state[17],occ.state[16],occ.state[15],occ.state[14],occ.state[13],occ.state[12],occ.state[11],occ.state[10],occ.state[9],occ.state[8],occ.state[7],occ.state[6],occ.state[5],occ.state[4],occ.state[3],occ.state[2],occ.state[1],occ.r,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0003947/0.5603, allocations: 247.2 kB / 1.022 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003867/0.5607, allocations: 0.4918 MB / 1.023 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.5607, allocations: 0 / 1.023 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.5618, allocations: 2.013 MB / 1.025 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.562, allocations: 15.91 kB / 1.025 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003539/0.5623, allocations: 256.1 kB / 1.025 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002328/0.5626, allocations: 0.7313 MB / 1.026 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of SimCode: time 2.2e-07/0.5626, allocations: 0 / 1.026 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of Templates: time 0.004591/0.5672, allocations: 2.702 MB / 1.028 GB, free: 10.11 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches