Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_6_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 loadModel(Buildings): time 4.144/4.144, allocations: 433 MB / 440.3 MB, free: 4.836 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5701/4.714, allocations: 104.3 MB / 0.5319 GB, free: 13.03 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/4.939, allocations: 98.72 MB / 0.6283 GB, free: 9.859 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.248/5.187, allocations: 124.3 MB / 0.7496 GB, free: 13.42 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000349/5.187, allocations: 83.59 kB / 0.7497 GB, free: 13.34 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.01064/5.198, allocations: 2.45 MB / 0.7521 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/5.198, allocations: 12 kB / 0.7521 GB, free: 10.83 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/5.198, allocations: 11.91 kB / 0.7521 GB, free: 10.82 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/5.198, allocations: 174.9 kB / 0.7523 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/5.198, allocations: 0 / 0.7523 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.688e-05/5.198, allocations: 11.98 kB / 0.7523 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002512/5.198, allocations: 75.98 kB / 0.7524 GB, free: 10.52 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003543/5.199, allocations: 181.5 kB / 0.7526 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/5.199, allocations: 0 / 0.7526 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/5.199, allocations: 0 / 0.7526 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/5.199, allocations: 0 / 0.7526 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000264/5.199, allocations: 189.9 kB / 0.7527 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002341/5.199, allocations: 134.6 kB / 0.7529 GB, free: 9.977 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002822/5.2, allocations: 120.7 kB / 0.753 GB, free: 9.855 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.479e-05/5.2, allocations: 0 / 0.753 GB, free: 9.855 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001104/5.201, allocations: 192.3 kB / 0.7532 GB, free: 9.652 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=39): time 6.563e-06/5.201, allocations: 0 / 0.7532 GB, free: 9.652 MB / 0.6355 GB Notification: Performance of matching and sorting (n=39): time 0.001224/5.202, allocations: 364.2 kB / 0.7535 GB, free: 9.293 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/5.202, allocations: 91.36 kB / 0.7536 GB, free: 9.191 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/5.202, allocations: 112.8 kB / 0.7537 GB, free: 9.074 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 8.867e-05/5.203, allocations: 49.69 kB / 0.7538 GB, free: 9.02 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.855e-05/5.203, allocations: 84.92 kB / 0.7538 GB, free: 8.934 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/5.203, allocations: 98.88 kB / 0.7539 GB, free: 8.836 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.444e-05/5.203, allocations: 0 / 0.7539 GB, free: 8.836 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001746/5.203, allocations: 338.8 kB / 0.7543 GB, free: 8.496 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003474/5.203, allocations: 165 kB / 0.7544 GB, free: 8.332 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004277/5.204, allocations: 226.4 kB / 0.7546 GB, free: 8.086 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000476/5.204, allocations: 214.6 kB / 0.7548 GB, free: 7.883 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/5.204, allocations: 0 / 0.7548 GB, free: 7.883 MB / 0.6355 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001118/5.205, allocations: 0.5566 MB / 0.7554 GB, free: 7.32 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/5.205, allocations: 10.97 kB / 0.7554 GB, free: 7.312 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/5.206, allocations: 0 / 0.7554 GB, free: 7.312 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.413e-05/5.206, allocations: 12.06 kB / 0.7554 GB, free: 7.301 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/5.206, allocations: 19.92 kB / 0.7554 GB, free: 7.281 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/5.206, allocations: 7.938 kB / 0.7554 GB, free: 7.273 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/5.206, allocations: 23.66 kB / 0.7554 GB, free: 7.25 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.108e-05/5.206, allocations: 12 kB / 0.7555 GB, free: 7.238 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.0002608/5.206, allocations: 166.1 kB / 0.7556 GB, free: 7.07 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.214e-05/5.206, allocations: 11.84 kB / 0.7556 GB, free: 7.059 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.183e-05/5.206, allocations: 9.219 kB / 0.7556 GB, free: 7.047 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/5.206, allocations: 0 / 0.7556 GB, free: 7.047 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/5.206, allocations: 4 kB / 0.7556 GB, free: 7.043 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/5.206, allocations: 0 / 0.7556 GB, free: 7.043 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002242/5.207, allocations: 181.9 kB / 0.7558 GB, free: 6.828 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/5.207, allocations: 0 / 0.7558 GB, free: 6.828 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.202e-06/5.207, allocations: 0 / 0.7558 GB, free: 6.828 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/5.207, allocations: 0 / 0.7558 GB, free: 6.828 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/5.207, allocations: 7.984 kB / 0.7558 GB, free: 6.82 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/5.207, allocations: 0 / 0.7558 GB, free: 6.82 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/5.207, allocations: 0 / 0.7558 GB, free: 6.82 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006746/5.207, allocations: 392.7 kB / 0.7562 GB, free: 6.418 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007529/5.208, allocations: 0.7511 MB / 0.7569 GB, free: 5.645 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.377e-05/5.208, allocations: 96.86 kB / 0.757 GB, free: 5.531 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001282/5.208, allocations: 44.14 kB / 0.7571 GB, free: 5.488 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.819e-05/5.209, allocations: 4 kB / 0.7571 GB, free: 5.484 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.753e-05/5.209, allocations: 4 kB / 0.7571 GB, free: 5.48 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.69e-05/5.209, allocations: 15.98 kB / 0.7571 GB, free: 5.465 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.927e-05/5.209, allocations: 79.28 kB / 0.7572 GB, free: 5.387 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001494/5.21, allocations: 55.89 kB / 0.7572 GB, free: 5.332 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.0006354/5.211, allocations: 232.6 kB / 0.7574 GB, free: 5.098 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0007412/5.212, allocations: 348.7 kB / 0.7578 GB, free: 4.758 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/5.212, allocations: 4.25 kB / 0.7578 GB, free: 4.754 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001922/5.212, allocations: 131.9 kB / 0.7579 GB, free: 4.625 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001997/5.212, allocations: 7.984 kB / 0.7579 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005941/5.213, allocations: 237 kB / 0.7581 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004288/5.213, allocations: 0.7353 MB / 0.7589 GB, free: 3.605 MB / 0.6355 GB Notification: Performance of SimCode: time 6.91e-07/5.213, allocations: 4 kB / 0.7589 GB, free: 3.602 MB / 0.6355 GB