Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_7_0_0_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",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 7.0.1/package.mo): time 2.298/2.298, allocations: 248.6 MB / 255.9 MB, free: 7.203 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.001696/0.001696, allocations: 176.3 kB / 315.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.131/2.131, allocations: 205.1 MB / 0.5658 GB, free: 384 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001474/0.001474, allocations: 91.31 kB / 0.67 GB, free: 5.586 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5401/0.5416, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.762, allocations: 106.3 MB / 0.8835 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.732/1.494, allocations: 132.2 MB / 1.013 GB, free: 8.051 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/1.494, allocations: 71.58 kB / 1.013 GB, free: 8.012 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.01074/1.505, allocations: 2.46 MB / 1.015 GB, free: 5.84 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/1.505, allocations: 16 kB / 1.015 GB, free: 5.824 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/1.505, allocations: 18.8 kB / 1.015 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001379/1.506, allocations: 174.9 kB / 1.015 GB, free: 5.594 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.338e-05/1.506, allocations: 0 / 1.015 GB, free: 5.594 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.294e-05/1.506, allocations: 4 kB / 1.015 GB, free: 5.59 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001467/1.506, allocations: 76.28 kB / 1.015 GB, free: 5.539 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003331/1.506, allocations: 187.4 kB / 1.016 GB, free: 5.402 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/1.506, allocations: 0 / 1.016 GB, free: 5.402 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.019e-05/1.506, allocations: 0 / 1.016 GB, free: 5.402 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/1.506, allocations: 3.984 kB / 1.016 GB, free: 5.398 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002363/1.506, allocations: 195.6 kB / 1.016 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002075/1.507, allocations: 139.2 kB / 1.016 GB, free: 5.09 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/1.507, allocations: 114.3 kB / 1.016 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 8.837e-06/1.507, allocations: 4 kB / 1.016 GB, free: 5.027 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003293/1.507, allocations: 194.3 kB / 1.016 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=39): time 1.944e-06/1.507, allocations: 0 / 1.016 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of matching and sorting (n=39): time 0.0005659/1.508, allocations: 353.4 kB / 1.016 GB, free: 4.582 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.849e-05/1.508, allocations: 90.62 kB / 1.017 GB, free: 4.488 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.65e-05/1.508, allocations: 119.1 kB / 1.017 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 8.785e-05/1.508, allocations: 54.05 kB / 1.017 GB, free: 4.32 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.537e-05/1.508, allocations: 83.92 kB / 1.017 GB, free: 4.238 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/1.508, allocations: 93.31 kB / 1.017 GB, free: 4.164 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.478e-05/1.508, allocations: 0 / 1.017 GB, free: 4.164 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001721/1.508, allocations: 337.6 kB / 1.017 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003247/1.509, allocations: 170.8 kB / 1.017 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004292/1.509, allocations: 223 kB / 1.018 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004479/1.51, allocations: 200.9 kB / 1.018 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/1.51, allocations: 0 / 1.018 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001058/1.511, allocations: 0.5639 MB / 1.018 GB, free: 2.93 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/1.511, allocations: 8 kB / 1.018 GB, free: 2.922 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/1.511, allocations: 0 / 1.018 GB, free: 2.922 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.671e-05/1.511, allocations: 7.938 kB / 1.018 GB, free: 2.914 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/1.511, allocations: 22.8 kB / 1.018 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/1.511, allocations: 0 / 1.018 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/1.511, allocations: 35.58 kB / 1.018 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.115e-05/1.511, allocations: 11.25 kB / 1.018 GB, free: 2.852 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 77 ($PRE.occ.hold_time,occ.hold_time,$PRE.occ.mu,occ.mu,$PRE.occ.occ,occ.occ,$PRE.occ.state[1],occ.state[1],$PRE.occ.state[2],occ.state[2],$PRE.occ.state[3],occ.state[3],$PRE.occ.state[4],occ.state[4],$PRE.occ.state[5],occ.state[5],$PRE.occ.state[6],occ.state[6],$PRE.occ.state[7],occ.state[7],$PRE.occ.state[8],occ.state[8],$PRE.occ.state[9],occ.state[9],$PRE.occ.state[10],occ.state[10],$PRE.occ.state[11],occ.state[11],$PRE.occ.state[12],occ.state[12],$PRE.occ.state[13],occ.state[13],$PRE.occ.state[14],occ.state[14],$PRE.occ.state[15],occ.state[15],$PRE.occ.state[16],occ.state[16],$PRE.occ.state[17],occ.state[17],$PRE.occ.state[18],occ.state[18],$PRE.occ.state[19],occ.state[19],$PRE.occ.state[20],occ.state[20],$PRE.occ.state[21],occ.state[21],$PRE.occ.state[22],occ.state[22],$PRE.occ.state[23],occ.state[23],$PRE.occ.state[24],occ.state[24],$PRE.occ.state[25],occ.state[25],$PRE.occ.state[26],occ.state[26],$PRE.occ.state[27],occ.state[27],$PRE.occ.state[28],occ.state[28],$PRE.occ.state[29],occ.state[29],$PRE.occ.state[30],occ.state[30],$PRE.occ.state[31],occ.state[31],$PRE.occ.state[32],occ.state[32],$PRE.occ.state[33],occ.state[33],$PRE.occ.r,occ.r,$whenCondition1,$PRE.occ.tNext,occ.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * Array equations: 1 * 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.0002512/1.512, allocations: 168.5 kB / 1.019 GB, free: 2.684 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.72e-05/1.512, allocations: 12.05 kB / 1.019 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.541e-05/1.512, allocations: 8.875 kB / 1.019 GB, free: 2.668 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/1.512, allocations: 3.984 kB / 1.019 GB, free: 2.664 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/1.512, allocations: 3.906 kB / 1.019 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/1.512, allocations: 0 / 1.019 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000193/1.512, allocations: 172.8 kB / 1.019 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/1.512, allocations: 4 kB / 1.019 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.394e-06/1.512, allocations: 0 / 1.019 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/1.512, allocations: 3.906 kB / 1.019 GB, free: 2.453 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/1.512, allocations: 11.56 kB / 1.019 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/1.512, allocations: 0 / 1.019 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/1.512, allocations: 0 / 1.019 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005636/1.513, allocations: 381.4 kB / 1.019 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007194/1.513, allocations: 0.7635 MB / 1.02 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.009e-05/1.513, allocations: 96.86 kB / 1.02 GB, free: 1.289 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/1.514, allocations: 38.66 kB / 1.02 GB, free: 1.258 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/1.514, allocations: 7.984 kB / 1.02 GB, free: 1.25 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.942e-05/1.514, allocations: 7.5 kB / 1.02 GB, free: 1.246 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.7e-05/1.514, allocations: 11.98 kB / 1.02 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.336e-05/1.514, allocations: 75.28 kB / 1.02 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001266/1.515, allocations: 59.53 kB / 1.02 GB, free: 1.105 MB / 0.6355 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: 35 (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],occ.occ,occ.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006393/1.516, allocations: 213.2 kB / 1.02 GB, free: 0.8984 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001156/1.517, allocations: 346.9 kB / 1.021 GB, free: 0.6641 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/1.517, allocations: 0 / 1.021 GB, free: 0.6641 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002921/1.517, allocations: 125.2 kB / 1.021 GB, free: 0.5977 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/1.518, allocations: 9.672 kB / 1.021 GB, free: 0.5938 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006273/1.518, allocations: 248.4 kB / 1.021 GB, free: 376 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004548/1.519, allocations: 0.7388 MB / 1.022 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of SimCode: time 1.202e-06/1.519, allocations: 0 / 1.022 GB, free: 15.61 MB / 0.6511 GB