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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.544/1.544, allocations: 249.5 MB / 257 MB, free: 6.906 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.001153/0.001153, allocations: 184.8 kB / 316.3 MB, free: 3.238 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.959/1.959, allocations: 205.3 MB / 0.5671 GB, free: 15.8 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.0009512/0.0009512, allocations: 104.8 kB / 0.6714 GB, free: 4.918 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.632e-05/1.633e-05, allocations: 0 / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2071, allocations: 106.3 MB / 0.8852 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7407/0.9479, allocations: 133.9 MB / 1.016 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/0.9482, allocations: 81.44 kB / 1.016 GB, free: 3.832 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 - DAE generated: time 0.00902/0.9573, allocations: 2.967 MB / 1.019 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.292e-06/0.9573, allocations: 0 / 1.019 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.753e-06/0.9573, allocations: 4 kB / 1.019 GB, free: 1.316 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.0005404/0.9579, allocations: 408 kB / 1.019 GB, free: 0.8711 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.9579, allocations: 11.97 kB / 1.019 GB, free: 0.8594 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.673e-05/0.958, allocations: 7.906 kB / 1.019 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.9581, allocations: 170.9 kB / 1.02 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/0.9582, allocations: 3.625 kB / 1.02 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.788e-05/0.9582, allocations: 4 kB / 1.02 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.007e-05/0.9583, allocations: 27.73 kB / 1.02 GB, free: 0.6211 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.9584, allocations: 61.34 kB / 1.02 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.9584, allocations: 0 / 1.02 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.9585, allocations: 0 / 1.02 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.9585, allocations: 0.875 kB / 1.02 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005864/0.9591, allocations: 300 kB / 1.02 GB, free: 256 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.145e-05/0.9591, allocations: 37.77 kB / 1.02 GB, free: 220 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.808e-05/0.9592, allocations: 24.67 kB / 1.02 GB, free: 200 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.9592, allocations: 0 / 1.02 GB, free: 200 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001285/0.9594, allocations: 67.02 kB / 1.02 GB, free: 128 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.9594, allocations: 0 / 1.02 GB, free: 128 kB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002911/0.9597, allocations: 104.5 kB / 1.02 GB, free: 36 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.431e-05/0.9598, allocations: 55.41 kB / 1.02 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.409e-05/0.9598, allocations: 112.7 kB / 1.02 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.9599, allocations: 25.7 kB / 1.02 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.102e-05/0.9599, allocations: 92.19 kB / 1.02 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.028e-05/0.96, allocations: 15.56 kB / 1.02 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.532e-06/0.96, allocations: 0 / 1.02 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.9601, allocations: 326.7 kB / 1.021 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.543e-05/0.9602, allocations: 15.88 kB / 1.021 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.958e-05/0.9602, allocations: 38.33 kB / 1.021 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.444e-05/0.9603, allocations: 24.61 kB / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.9603, allocations: 0 / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001557/0.9605, allocations: 89.2 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.9605, allocations: 8 kB / 1.021 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.9605, allocations: 0 / 1.021 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.9605, allocations: 4.062 kB / 1.021 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.9606, allocations: 27.67 kB / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.9606, allocations: 0 / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.281e-05/0.9607, allocations: 7.906 kB / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.9607, allocations: 4 kB / 1.021 GB, free: 15.21 MB / 0.6511 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 8.004e-05/0.9608, allocations: 112.9 kB / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.446e-05/0.9608, allocations: 4 kB / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.094e-05/0.9609, allocations: 16.55 kB / 1.021 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.9609, allocations: 0 / 1.021 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.9609, allocations: 0 / 1.021 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.9609, allocations: 0 / 1.021 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003495/0.9612, allocations: 345.1 kB / 1.021 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.9613, allocations: 0 / 1.021 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.427e-05/0.9613, allocations: 7.984 kB / 1.021 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.9613, allocations: 0 / 1.021 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.9613, allocations: 0 / 1.021 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.9613, allocations: 4 kB / 1.021 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.9614, allocations: 80 / 1.021 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002095/0.9616, allocations: 202.4 kB / 1.022 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.63e-05/0.9616, allocations: 81.02 kB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.215e-05/0.9616, allocations: 0 / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.386e-05/0.9617, allocations: 7.938 kB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.08e-05/0.9618, allocations: 7.984 kB / 1.022 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.9618, allocations: 8 kB / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.558e-05/0.9619, allocations: 96.56 kB / 1.022 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.503e-06/0.9619, allocations: 0 / 1.022 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000292/0.9622, allocations: 43.88 kB / 1.022 GB, free: 14.26 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.0003577/0.9625, allocations: 170.9 kB / 1.022 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000142/0.9627, allocations: 55.11 kB / 1.022 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.9627, allocations: 3.5 kB / 1.022 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.248e-05/0.9627, allocations: 23.81 kB / 1.022 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001778/0.9629, allocations: 7.938 kB / 1.022 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002792/0.9632, allocations: 99.03 kB / 1.022 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.9635, allocations: 0.6886 MB / 1.023 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.747e-05/0.9636, allocations: 8.188 kB / 1.023 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.721e-05/0.9636, allocations: 11.44 kB / 1.023 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of SimCode: time 2.31e-07/0.9636, allocations: 0 / 1.023 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of Templates: time 0.004007/0.9676, allocations: 1.501 MB / 1.024 GB, free: 11.71 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