Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") [: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 7.0.3-maint.7.0.x/package.mo): time 1.196/1.196, allocations: 249.4 MB / 256.7 MB, free: 7.074 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001041/0.001041, allocations: 185.2 kB / 316 MB, free: 3.512 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.029/1.029, allocations: 205.1 MB / 0.5667 GB, free: 15.57 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007891/0.0007891, allocations: 94.2 kB / 0.671 GB, free: 4.695 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.029e-06/5.049e-06, allocations: 0 / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1397, allocations: 106.3 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4123/0.552, allocations: 133.9 MB / 1.015 GB, free: 4.641 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001976/0.5523, allocations: 79.98 kB / 1.015 GB, free: 4.598 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd: time 0.008127/0.5604, allocations: 2.646 MB / 1.018 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.5604, allocations: 0 / 1.018 GB, free: 2.398 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004413/0.5609, allocations: 417.7 kB / 1.018 GB, free: 1.945 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.5609, allocations: 8.031 kB / 1.018 GB, free: 1.938 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.696e-05/0.561, allocations: 7.906 kB / 1.018 GB, free: 1.93 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.5611, allocations: 178.2 kB / 1.019 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.5611, allocations: 0 / 1.019 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.862e-05/0.5611, allocations: 4 kB / 1.019 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.308e-05/0.5612, allocations: 19.44 kB / 1.019 GB, free: 1.703 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000101/0.5613, allocations: 71.53 kB / 1.019 GB, free: 1.637 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.5613, allocations: 1.031 kB / 1.019 GB, free: 1.637 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.5614, allocations: 3.906 kB / 1.019 GB, free: 1.633 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.5614, allocations: 0 / 1.019 GB, free: 1.633 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003717/0.5617, allocations: 282.4 kB / 1.019 GB, free: 1.34 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.397e-05/0.5618, allocations: 37.33 kB / 1.019 GB, free: 1.301 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.086e-05/0.5619, allocations: 23.8 kB / 1.019 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.5619, allocations: 0 / 1.019 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.82e-05/0.562, allocations: 70.83 kB / 1.019 GB, free: 1.211 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.562, allocations: 0 / 1.019 GB, free: 1.211 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002034/0.5622, allocations: 80.14 kB / 1.019 GB, free: 1.141 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.757e-05/0.5622, allocations: 63.39 kB / 1.019 GB, free: 1.066 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.911e-05/0.5623, allocations: 116.8 kB / 1.019 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.5623, allocations: 25.7 kB / 1.019 GB, free: 0.9219 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.567e-05/0.5624, allocations: 84.2 kB / 1.019 GB, free: 0.8359 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.819e-05/0.5624, allocations: 19.5 kB / 1.019 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-06/0.5624, allocations: 0 / 1.019 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.004e-05/0.5625, allocations: 325.8 kB / 1.02 GB, free: 0.4961 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.458e-05/0.5626, allocations: 14.56 kB / 1.02 GB, free: 500 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.549e-05/0.5626, allocations: 44.73 kB / 1.02 GB, free: 452 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.923e-05/0.5627, allocations: 26.31 kB / 1.02 GB, free: 432 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.5627, allocations: 0 / 1.02 GB, free: 432 kB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001487/0.5628, allocations: 90.52 kB / 1.02 GB, free: 348 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/0.5628, allocations: 8 kB / 1.02 GB, free: 340 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.5629, allocations: 0 / 1.02 GB, free: 340 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.5629, allocations: 0 / 1.02 GB, free: 340 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.676e-05/0.563, allocations: 27.11 kB / 1.02 GB, free: 316 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-06/0.563, allocations: 0 / 1.02 GB, free: 316 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.46e-05/0.5631, allocations: 4 kB / 1.02 GB, free: 312 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.5631, allocations: 7.984 kB / 1.02 GB, free: 304 kB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (hea.occ,$PRE.hea.on,hea.on,$PRE.hea.p,hea.p,$PRE.hea.curSeed,hea.curSeed,$whenCondition1,hea.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * 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 6.799e-05/0.5632, allocations: 110.6 kB / 1.02 GB, free: 188 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.368e-05/0.5632, allocations: 3.906 kB / 1.02 GB, free: 184 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.727e-05/0.5632, allocations: 16.19 kB / 1.02 GB, free: 168 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.5632, allocations: 0 / 1.02 GB, free: 168 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.5632, allocations: 0 / 1.02 GB, free: 168 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.5632, allocations: 0 / 1.02 GB, free: 168 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002953/0.5635, allocations: 325.8 kB / 1.02 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.5635, allocations: 4 kB / 1.02 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.544e-05/0.5636, allocations: 7.984 kB / 1.02 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.5636, allocations: 0 / 1.02 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.5636, allocations: 8 kB / 1.02 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.5636, allocations: 0 / 1.02 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.5636, allocations: 0 / 1.02 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001586/0.5638, allocations: 173.3 kB / 1.021 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.139e-05/0.5638, allocations: 85.02 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.396e-05/0.5639, allocations: 3.984 kB / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.285e-05/0.564, allocations: 4 kB / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.1e-05/0.564, allocations: 15.89 kB / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.564, allocations: 0 / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.512e-05/0.5641, allocations: 89.56 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002683/0.5643, allocations: 55.48 kB / 1.021 GB, free: 15.38 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (hea.sampleTrigger,$whenCondition1,hea.occ,hea.on,hea.p,hea.curSeed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002742/0.5646, allocations: 157.1 kB / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001236/0.5647, allocations: 65.41 kB / 1.021 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.5648, allocations: 3.625 kB / 1.021 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.742e-05/0.5648, allocations: 22.94 kB / 1.021 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001574/0.565, allocations: 5.438 kB / 1.021 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002588/0.5652, allocations: 105.2 kB / 1.021 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.5655, allocations: 0.7037 MB / 1.022 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/0.5655, allocations: 4 kB / 1.022 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of Templates: time 0.003416/0.5689, allocations: 1.637 MB / 1.023 GB, free: 12.71 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,hea.TOut,hea.occ,hea.on Variables in the result:TOut.amplitude,TOut.freqHz,TOut.offset,TOut.phase,TOut.startTime,hea.A,hea.B,hea.TOut,hea.occ,hea.on,hea.samplePeriod,hea.seed,hea.t0,occ.startTime,occ.startValue,time