Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.91/1.91, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.0009978/0.0009978, allocations: 193.2 kB / 487 MB, free: 5.352 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.242/1.242, allocations: 221.3 MB / 0.7819 GB, free: 1.344 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009409/0.000941, allocations: 101.2 kB / 0.9213 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5183/0.5193, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.7423, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6311/1.373, allocations: 149.1 MB / 1.351 GB, free: 15.94 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/1.374, allocations: 78.5 kB / 1.351 GB, free: 15.94 MB / 0.8073 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.006761/1.381, allocations: 2.601 MB / 1.354 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/1.381, allocations: 9.438 kB / 1.354 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.443e-05/1.381, allocations: 13.45 kB / 1.354 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.122e-05/1.381, allocations: 175.2 kB / 1.354 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/1.381, allocations: 1.938 kB / 1.354 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.969e-05/1.381, allocations: 7.344 kB / 1.354 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001757/1.381, allocations: 144.5 kB / 1.354 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003076/1.381, allocations: 237 kB / 1.354 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/1.381, allocations: 2.031 kB / 1.354 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/1.381, allocations: 5.031 kB / 1.354 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/1.381, allocations: 0 / 1.354 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001624/1.382, allocations: 179.9 kB / 1.354 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003374/1.382, allocations: 0.5362 MB / 1.355 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000309/1.382, allocations: 0.5179 MB / 1.355 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/1.382, allocations: 0 / 1.355 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003343/1.383, allocations: 381 kB / 1.356 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=39): time 9.21e-07/1.383, allocations: 9.156 kB / 1.356 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of matching and sorting (n=39): time 0.0006123/1.383, allocations: 0.5014 MB / 1.356 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/1.383, allocations: 111.6 kB / 1.356 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.757e-05/1.383, allocations: 97.3 kB / 1.356 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 9.939e-06/1.383, allocations: 26.83 kB / 1.356 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.125e-05/1.383, allocations: 82.75 kB / 1.356 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.375e-05/1.383, allocations: 79.75 kB / 1.357 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.88e-06/1.383, allocations: 0.875 kB / 1.357 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.749e-05/1.383, allocations: 328.3 kB / 1.357 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.258e-05/1.384, allocations: 81.38 kB / 1.357 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.538e-05/1.384, allocations: 83.23 kB / 1.357 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001285/1.384, allocations: 105.1 kB / 1.357 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/1.384, allocations: 0 / 1.357 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003965/1.384, allocations: 373.8 kB / 1.357 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/1.384, allocations: 4.562 kB / 1.357 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/1.384, allocations: 1.406 kB / 1.357 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/1.384, allocations: 1.031 kB / 1.357 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.101e-05/1.384, allocations: 0.9375 kB / 1.357 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/1.384, allocations: 5.297 kB / 1.357 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.057e-05/1.384, allocations: 17.05 kB / 1.358 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-06/1.384, allocations: 1.812 kB / 1.358 GB, free: 14.05 MB / 0.8073 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.0001905/1.385, allocations: 241.5 kB / 1.358 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.35e-05/1.385, allocations: 23 kB / 1.358 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.345e-05/1.385, allocations: 6.922 kB / 1.358 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/1.385, allocations: 0 / 1.358 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/1.385, allocations: 0.875 kB / 1.358 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/1.385, allocations: 0.8906 kB / 1.358 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001673/1.385, allocations: 246.9 kB / 1.358 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/1.385, allocations: 0.7812 kB / 1.358 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/1.385, allocations: 0 / 1.358 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/1.385, allocations: 0.9062 kB / 1.358 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.819e-05/1.385, allocations: 21.7 kB / 1.358 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/1.385, allocations: 0 / 1.358 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/1.385, allocations: 5.25 kB / 1.358 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007609/1.386, allocations: 0.6637 MB / 1.359 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000866/1.387, allocations: 1.047 MB / 1.36 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.419e-05/1.387, allocations: 94.25 kB / 1.36 GB, free: 13.06 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001692/1.387, allocations: 89.08 kB / 1.36 GB, free: 13.06 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.737e-05/1.387, allocations: 8.25 kB / 1.36 GB, free: 13.06 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.239e-05/1.387, allocations: 9.875 kB / 1.36 GB, free: 13.06 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.558e-05/1.387, allocations: 22.34 kB / 1.36 GB, free: 13.06 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.775e-05/1.387, allocations: 82.03 kB / 1.36 GB, free: 12.98 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0009546/1.388, allocations: 68.39 kB / 1.36 GB, free: 12.97 MB / 0.8073 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.0005603/1.389, allocations: 240.8 kB / 1.36 GB, free: 12.86 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0006773/1.389, allocations: 0.4898 MB / 1.361 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/1.389, allocations: 0 / 1.361 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.001691/1.391, allocations: 2.009 MB / 1.363 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002044/1.391, allocations: 24.67 kB / 1.363 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004602/1.392, allocations: 257 kB / 1.363 GB, free: 11.97 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003226/1.392, allocations: 0.7319 MB / 1.364 GB, free: 27.22 MB / 0.823 GB Notification: Performance of SimCode: time 2.91e-07/1.392, allocations: 0 / 1.364 GB, free: 27.22 MB / 0.823 GB (rm -f Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy_fmu --startTime=0 --stopTime=36000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.fmu > Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1)