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: translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occ.occ",fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.892/1.892, 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.001038/0.001038, allocations: 184.6 kB / 487 MB, free: 5.41 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.212/1.212, allocations: 221.3 MB / 0.7819 GB, free: 1.387 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.0009029/0.0009029, allocations: 104.4 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.279e-06/5.29e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2105, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6229/0.8335, allocations: 149.1 MB / 1.351 GB, free: 15.92 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/0.8337, allocations: 77.5 kB / 1.351 GB, free: 15.92 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.006537/0.8403, allocations: 2.102 MB / 1.353 GB, free: 15.8 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 9.367e-06/0.8403, allocations: 1.969 kB / 1.353 GB, free: 15.8 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.0004547/0.8408, allocations: 0.4992 MB / 1.353 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.8409, allocations: 8.25 kB / 1.353 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.841, allocations: 14.7 kB / 1.353 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.8411, allocations: 175.2 kB / 1.354 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.8411, allocations: 5.906 kB / 1.354 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.637e-05/0.8412, allocations: 4.406 kB / 1.354 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002031/0.8414, allocations: 141.5 kB / 1.354 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003557/0.8417, allocations: 244.5 kB / 1.354 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.8417, allocations: 0 / 1.354 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.8418, allocations: 1.531 kB / 1.354 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.8418, allocations: 0.9375 kB / 1.354 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001965/0.842, allocations: 184.5 kB / 1.354 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004323/0.8424, allocations: 0.5305 MB / 1.355 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003823/0.8428, allocations: 0.5164 MB / 1.355 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-06/0.8428, allocations: 7.984 kB / 1.355 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004094/0.8432, allocations: 383 kB / 1.356 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=39): time 1.122e-06/0.8433, allocations: 4.688 kB / 1.356 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of matching and sorting (n=39): time 0.0007359/0.844, allocations: 0.509 MB / 1.356 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/0.8441, allocations: 104.3 kB / 1.356 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.181e-05/0.8441, allocations: 93.08 kB / 1.356 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.8441, allocations: 28.41 kB / 1.356 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.773e-05/0.8442, allocations: 84.83 kB / 1.356 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 6.888e-05/0.8442, allocations: 82.09 kB / 1.356 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-06/0.8443, allocations: 0.9688 kB / 1.356 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.715e-05/0.8443, allocations: 323.2 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.548e-05/0.8444, allocations: 81.56 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.622e-05/0.8445, allocations: 81.73 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001795/0.8447, allocations: 106.6 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.8447, allocations: 0 / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004425/0.8452, allocations: 378.2 kB / 1.357 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.8452, allocations: 5.688 kB / 1.357 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.8452, allocations: 4 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.8453, allocations: 0.6094 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.282e-05/0.8453, allocations: 1.969 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.8453, allocations: 1.375 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.951e-05/0.8454, allocations: 16.36 kB / 1.357 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.8454, allocations: 5.719 kB / 1.357 GB, free: 14.03 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.00023/0.8457, allocations: 234.3 kB / 1.358 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.346e-05/0.8457, allocations: 22.34 kB / 1.358 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.76e-05/0.8457, allocations: 7.078 kB / 1.358 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.8457, allocations: 4 kB / 1.358 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.8457, allocations: 1.219 kB / 1.358 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.8458, allocations: 0 / 1.358 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.846, allocations: 237.1 kB / 1.358 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.846, allocations: 1.438 kB / 1.358 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.846, allocations: 0 / 1.358 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.846, allocations: 4.562 kB / 1.358 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.113e-05/0.846, allocations: 19.03 kB / 1.358 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.846, allocations: 4.703 kB / 1.358 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.846, allocations: 1.031 kB / 1.358 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008714/0.8469, allocations: 0.6678 MB / 1.359 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.297e-05/0.847, allocations: 94.38 kB / 1.359 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/0.8471, allocations: 89.59 kB / 1.359 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.214e-05/0.8472, allocations: 7.375 kB / 1.359 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.194e-05/0.8473, allocations: 10.45 kB / 1.359 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.9e-05/0.8473, allocations: 28.91 kB / 1.359 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.18e-05/0.8473, allocations: 81.53 kB / 1.359 GB, free: 13.42 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003427/0.8477, allocations: 64.66 kB / 1.359 GB, free: 13.41 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.000475/0.8482, allocations: 246.3 kB / 1.359 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0005023/0.8487, allocations: 0.4927 MB / 1.36 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.8487, allocations: 0 / 1.36 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.00178/0.8505, allocations: 2.005 MB / 1.362 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001836/0.8507, allocations: 8.828 kB / 1.362 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004121/0.8511, allocations: 260.4 kB / 1.362 GB, free: 12.92 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001682/0.8513, allocations: 0.7282 MB / 1.363 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of SimCode: time 2.41e-07/0.8513, allocations: 4 kB / 1.363 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of Templates: time 0.005359/0.8567, allocations: 2.686 MB / 1.365 GB, free: 10.57 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (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 & ./Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","../files/Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches