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: translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occ.occ",fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 2.031/2.031, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.001091/0.001091, allocations: 179.9 kB / 490.8 MB, free: 1.93 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.279/1.279, allocations: 221.3 MB / 0.7863 GB, free: 13.65 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.001028/0.001028, allocations: 93.77 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.081e-06/6.191e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2584, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7282/0.9867, allocations: 149.9 MB / 1.358 GB, free: 17.13 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.987, allocations: 86.89 kB / 1.358 GB, free: 17.12 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.00686/0.9939, allocations: 2.086 MB / 1.36 GB, free: 17.01 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.967e-06/0.9939, allocations: 5.219 kB / 1.36 GB, free: 17.01 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.0004693/0.9944, allocations: 0.5044 MB / 1.361 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.9945, allocations: 12.77 kB / 1.361 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.9946, allocations: 19.95 kB / 1.361 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.9947, allocations: 175.2 kB / 1.361 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.9947, allocations: 2.812 kB / 1.361 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.006e-05/0.9948, allocations: 3.062 kB / 1.361 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001812/0.9949, allocations: 140.4 kB / 1.361 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003099/0.9953, allocations: 245.8 kB / 1.361 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.9953, allocations: 7.984 kB / 1.361 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.9953, allocations: 2.828 kB / 1.361 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.9953, allocations: 0 / 1.361 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001723/0.9955, allocations: 186.4 kB / 1.361 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003402/0.9958, allocations: 0.5281 MB / 1.362 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/0.9962, allocations: 0.5192 MB / 1.362 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.19e-05/0.9962, allocations: 0.6562 kB / 1.362 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003634/0.9966, allocations: 387.4 kB / 1.363 GB, free: 32 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=39): time 1.173e-06/0.9966, allocations: 0 / 1.363 GB, free: 32 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39): time 0.0006657/0.9972, allocations: 0.5101 MB / 1.363 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.9973, allocations: 107.3 kB / 1.363 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.18e-05/0.9974, allocations: 89.56 kB / 1.363 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.216e-05/0.9974, allocations: 26.98 kB / 1.363 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.015e-05/0.9975, allocations: 86.48 kB / 1.364 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.022e-05/0.9975, allocations: 77.64 kB / 1.364 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-06/0.9975, allocations: 5.25 kB / 1.364 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001903/0.9977, allocations: 326.7 kB / 1.364 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.162e-05/0.9978, allocations: 79.02 kB / 1.364 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.474e-05/0.9979, allocations: 79.28 kB / 1.364 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001424/0.9981, allocations: 112.7 kB / 1.364 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.9981, allocations: 0 / 1.364 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003961/0.9985, allocations: 370.6 kB / 1.365 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.9985, allocations: 6.219 kB / 1.365 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.9985, allocations: 0 / 1.365 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.9985, allocations: 4.062 kB / 1.365 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.326e-05/0.9986, allocations: 2.125 kB / 1.365 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.9986, allocations: 1.375 kB / 1.365 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.937e-05/0.9987, allocations: 16.47 kB / 1.365 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.9987, allocations: 10.77 kB / 1.365 GB, free: 31.21 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.0002319/0.9989, allocations: 234 kB / 1.365 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.307e-05/0.999, allocations: 22.5 kB / 1.365 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.082e-05/0.999, allocations: 9.078 kB / 1.365 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.696e-06/0.999, allocations: 1.031 kB / 1.365 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.999, allocations: 0 / 1.365 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.9991, allocations: 7.938 kB / 1.365 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001956/0.9993, allocations: 237 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.9993, allocations: 0 / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.495e-06/0.9993, allocations: 2.484 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.9993, allocations: 1.344 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.781e-05/0.9993, allocations: 18.11 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.9993, allocations: 0 / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.9993, allocations: 0.6094 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008338/1, allocations: 0.6736 MB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.338e-05/1, allocations: 90.31 kB / 1.366 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001686/1, allocations: 89.39 kB / 1.366 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/1.001, allocations: 11.88 kB / 1.366 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.397e-05/1.001, allocations: 9.016 kB / 1.366 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.849e-05/1.001, allocations: 22.05 kB / 1.366 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6.277e-05/1.001, allocations: 81.84 kB / 1.366 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003508/1.001, allocations: 64.7 kB / 1.366 GB, free: 30.6 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.0005649/1.002, allocations: 248.5 kB / 1.366 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005822/1.002, allocations: 0.4914 MB / 1.367 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.002, allocations: 0 / 1.367 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.001499/1.004, allocations: 2.007 MB / 1.369 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001821/1.004, allocations: 15.19 kB / 1.369 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004447/1.004, allocations: 255.1 kB / 1.369 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003163/1.005, allocations: 0.7322 MB / 1.37 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.005, allocations: 1.594 kB / 1.37 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of Templates: time 0.005717/1.01, allocations: 2.697 MB / 1.372 GB, free: 29.33 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (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 & ./Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","../files/Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches