Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.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.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.971/1.971, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.001022/0.001022, allocations: 185.2 kB / 490.8 MB, free: 1.906 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.276/1.276, allocations: 221.3 MB / 0.7863 GB, free: 13.7 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.0008418/0.0008418, allocations: 90.69 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.5236/0.5245, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.7638, allocations: 143 MB / 1.212 GB, free: 40.01 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6185/1.382, allocations: 149.9 MB / 1.358 GB, free: 17.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003679/1.383, allocations: 84.7 kB / 1.358 GB, free: 17.18 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.008343/1.391, allocations: 2.591 MB / 1.361 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/1.391, allocations: 9.391 kB / 1.361 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001455/1.391, allocations: 21.33 kB / 1.361 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/1.391, allocations: 174.1 kB / 1.361 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/1.392, allocations: 3.031 kB / 1.361 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.786e-05/1.392, allocations: 4.344 kB / 1.361 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002474/1.392, allocations: 145.3 kB / 1.361 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004188/1.392, allocations: 250.5 kB / 1.361 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/1.392, allocations: 4 kB / 1.361 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.21e-05/1.392, allocations: 1.406 kB / 1.361 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/1.392, allocations: 0 / 1.361 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001633/1.392, allocations: 183 kB / 1.361 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003525/1.393, allocations: 0.5287 MB / 1.362 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003364/1.393, allocations: 0.519 MB / 1.362 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 8.586e-06/1.393, allocations: 1.25 kB / 1.362 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004099/1.394, allocations: 387.2 kB / 1.363 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=39): time 1.362e-06/1.394, allocations: 3.938 kB / 1.363 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39): time 0.0007136/1.394, allocations: 0.509 MB / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.525e-05/1.394, allocations: 103.5 kB / 1.363 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.212e-05/1.394, allocations: 92.2 kB / 1.364 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/1.395, allocations: 27.67 kB / 1.364 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.652e-05/1.395, allocations: 80.8 kB / 1.364 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.264e-05/1.395, allocations: 81.56 kB / 1.364 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.591e-06/1.395, allocations: 5.938 kB / 1.364 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001089/1.395, allocations: 325.2 kB / 1.364 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.411e-05/1.395, allocations: 80.97 kB / 1.364 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.66e-05/1.395, allocations: 80.69 kB / 1.364 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/1.395, allocations: 108.3 kB / 1.364 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/1.395, allocations: 0 / 1.364 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004059/1.396, allocations: 380.3 kB / 1.365 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/1.396, allocations: 5.281 kB / 1.365 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/1.396, allocations: 0 / 1.365 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/1.396, allocations: 64 / 1.365 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.529e-05/1.396, allocations: 7.766 kB / 1.365 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.024e-06/1.396, allocations: 0 / 1.365 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.49e-05/1.396, allocations: 16.47 kB / 1.365 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/1.396, allocations: 2.625 kB / 1.365 GB, free: 31.28 MB / 0.8386 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.0002252/1.396, allocations: 232.8 kB / 1.365 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.77e-05/1.396, allocations: 22.66 kB / 1.365 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.867e-05/1.396, allocations: 12.31 kB / 1.365 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/1.396, allocations: 1.266 kB / 1.365 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/1.396, allocations: 1.469 kB / 1.365 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/1.396, allocations: 4 kB / 1.365 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001885/1.396, allocations: 238.9 kB / 1.365 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/1.396, allocations: 1.641 kB / 1.365 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.51e-07/1.396, allocations: 0 / 1.365 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/1.396, allocations: 0 / 1.365 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.126e-05/1.396, allocations: 16.2 kB / 1.365 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/1.396, allocations: 3.984 kB / 1.365 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/1.396, allocations: 0 / 1.365 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007809/1.397, allocations: 0.6813 MB / 1.366 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009327/1.398, allocations: 1.03 MB / 1.367 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.159e-05/1.398, allocations: 92.94 kB / 1.367 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000161/1.398, allocations: 96.48 kB / 1.367 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.163e-05/1.398, allocations: 8.062 kB / 1.367 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.331e-05/1.398, allocations: 8.203 kB / 1.367 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-05/1.399, allocations: 26.75 kB / 1.367 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.306e-05/1.399, allocations: 77.41 kB / 1.367 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.00105/1.4, allocations: 61.78 kB / 1.367 GB, free: 30.2 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: 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.000443/1.4, allocations: 249.6 kB / 1.367 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004443/1.401, allocations: 0.4964 MB / 1.368 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/1.401, allocations: 3.938 kB / 1.368 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.001336/1.402, allocations: 2.01 MB / 1.37 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001753/1.402, allocations: 11.25 kB / 1.37 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004358/1.403, allocations: 251.9 kB / 1.37 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002993/1.403, allocations: 0.7289 MB / 1.371 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of SimCode: time 3.61e-07/1.403, allocations: 0 / 1.371 GB, free: 29.21 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy_fmu --startTime=0 --stopTime=36000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.fmu > Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1)