Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.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.Nicol2001HeatingUK,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.Nicol2001HeatingUK") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,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.Nicol2001HeatingUK") [: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.186/1.186, allocations: 249.4 MB / 256.7 MB, free: 7.055 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.0009708/0.0009708, allocations: 185.1 kB / 316 MB, free: 3.555 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.016/1.016, allocations: 205.1 MB / 0.5667 GB, free: 15.61 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.0007695/0.0007695, allocations: 82.28 kB / 0.671 GB, free: 4.742 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.32e-06/5.34e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1354, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3993/0.5347, allocations: 133.9 MB / 1.015 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.535, allocations: 84.25 kB / 1.015 GB, free: 4.699 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.007999/0.543, allocations: 2.646 MB / 1.018 GB, free: 2.504 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.543, allocations: 0 / 1.018 GB, free: 2.504 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.0004171/0.5434, allocations: 417.3 kB / 1.018 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.5434, allocations: 8.031 kB / 1.018 GB, free: 2.047 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.376e-05/0.5435, allocations: 7.906 kB / 1.018 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001075/0.5436, allocations: 174.9 kB / 1.019 GB, free: 1.828 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.277e-05/0.5436, allocations: 3.984 kB / 1.019 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.544e-05/0.5436, allocations: 8 kB / 1.019 GB, free: 1.816 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.97e-05/0.5437, allocations: 26.55 kB / 1.019 GB, free: 1.801 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.946e-05/0.5438, allocations: 55.86 kB / 1.019 GB, free: 1.75 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.024e-06/0.5438, allocations: 7.938 kB / 1.019 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.5438, allocations: 3.906 kB / 1.019 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.5439, allocations: 0 / 1.019 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003715/0.5442, allocations: 282.1 kB / 1.019 GB, free: 1.445 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.506e-05/0.5443, allocations: 40.52 kB / 1.019 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.419e-05/0.5444, allocations: 28.53 kB / 1.019 GB, free: 1.379 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.5444, allocations: 0 / 1.019 GB, free: 1.379 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.017e-05/0.5445, allocations: 65.14 kB / 1.019 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.032e-06/0.5445, allocations: 4 kB / 1.019 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0001948/0.5447, allocations: 75.03 kB / 1.019 GB, free: 1.242 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.5447, allocations: 51.41 kB / 1.019 GB, free: 1.18 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.001e-05/0.5448, allocations: 113.5 kB / 1.019 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.5448, allocations: 33.64 kB / 1.019 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.153e-05/0.5449, allocations: 88.25 kB / 1.019 GB, free: 0.9414 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.5449, allocations: 19.81 kB / 1.019 GB, free: 0.9219 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-06/0.5449, allocations: 0 / 1.019 GB, free: 0.9219 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.366e-05/0.545, allocations: 326.2 kB / 1.02 GB, free: 0.5977 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.444e-05/0.5451, allocations: 19 kB / 1.02 GB, free: 0.5859 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.547e-05/0.5451, allocations: 35.47 kB / 1.02 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.824e-05/0.5452, allocations: 29.36 kB / 1.02 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.5452, allocations: 0 / 1.02 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000155/0.5453, allocations: 92.14 kB / 1.02 GB, free: 456 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 8.295e-06/0.5454, allocations: 4.062 kB / 1.02 GB, free: 452 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.5454, allocations: 8 kB / 1.02 GB, free: 444 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.878e-06/0.5454, allocations: 0 / 1.02 GB, free: 444 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.447e-05/0.5455, allocations: 11.44 kB / 1.02 GB, free: 436 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.5455, allocations: 7.984 kB / 1.02 GB, free: 428 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.506e-05/0.5456, allocations: 4 kB / 1.02 GB, free: 424 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.5456, allocations: 4 kB / 1.02 GB, free: 420 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.541e-05/0.5457, allocations: 112.8 kB / 1.02 GB, free: 300 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.431e-05/0.5457, allocations: 7.906 kB / 1.02 GB, free: 292 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.784e-05/0.5457, allocations: 15.8 kB / 1.02 GB, free: 276 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.5457, allocations: 0 / 1.02 GB, free: 276 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.5457, allocations: 0 / 1.02 GB, free: 276 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.5457, allocations: 0 / 1.02 GB, free: 276 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002965/0.546, allocations: 320.9 kB / 1.02 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.546, allocations: 0 / 1.02 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.638e-05/0.5461, allocations: 11.94 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.5461, allocations: 0 / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.5461, allocations: 3.984 kB / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.5461, allocations: 0 / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.5461, allocations: 4 kB / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001646/0.5463, allocations: 173.1 kB / 1.021 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.07e-05/0.5463, allocations: 81.02 kB / 1.021 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.906e-05/0.5464, allocations: 4 kB / 1.021 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.576e-05/0.5465, allocations: 15.55 kB / 1.021 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.236e-05/0.5465, allocations: 3.906 kB / 1.021 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.5465, allocations: 8 kB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.908e-05/0.5466, allocations: 90.39 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002694/0.5468, allocations: 51.62 kB / 1.021 GB, free: 15.49 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.0002826/0.5471, allocations: 173.3 kB / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001284/0.5473, allocations: 45.94 kB / 1.021 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.5473, allocations: 0 / 1.021 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.246e-05/0.5473, allocations: 34.05 kB / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001617/0.5475, allocations: 7.984 kB / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002593/0.5478, allocations: 101 kB / 1.021 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002369/0.548, allocations: 0.7037 MB / 1.022 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of SimCode: time 2.2e-07/0.548, allocations: 0 / 1.022 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of Templates: time 0.003433/0.5515, allocations: 1.633 MB / 1.023 GB, free: 12.81 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.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