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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.52/1.52, allocations: 249.5 MB / 257 MB, free: 7 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.001348/0.001348, allocations: 184.8 kB / 316.3 MB, free: 3.301 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.852/1.852, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.0008749/0.0008748, allocations: 92.64 kB / 0.6714 GB, free: 5.004 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.625e-05/1.628e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2086/0.2087, allocations: 106.3 MB / 0.8852 GB, free: 12.3 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7646/0.9733, allocations: 133.9 MB / 1.016 GB, free: 3.957 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.9736, allocations: 78.89 kB / 1.016 GB, free: 3.914 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.008661/0.9823, allocations: 2.973 MB / 1.019 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.262e-06/0.9823, allocations: 0 / 1.019 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.9823, allocations: 0 / 1.019 GB, free: 1.402 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.000509/0.9828, allocations: 404 kB / 1.019 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.9829, allocations: 15.97 kB / 1.019 GB, free: 0.9453 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.986e-05/0.9829, allocations: 15.78 kB / 1.019 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.9831, allocations: 174.9 kB / 1.02 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.9831, allocations: 0 / 1.02 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.075e-05/0.9831, allocations: 4 kB / 1.02 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.185e-05/0.9832, allocations: 19.38 kB / 1.02 GB, free: 0.707 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001058/0.9833, allocations: 61.41 kB / 1.02 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.9833, allocations: 0 / 1.02 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.9834, allocations: 0 / 1.02 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.349e-06/0.9834, allocations: 0 / 1.02 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006008/0.984, allocations: 296.5 kB / 1.02 GB, free: 348 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.759e-05/0.9841, allocations: 42.06 kB / 1.02 GB, free: 308 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.588e-05/0.9841, allocations: 24.67 kB / 1.02 GB, free: 288 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.9842, allocations: 4 kB / 1.02 GB, free: 284 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001179/0.9843, allocations: 70.94 kB / 1.02 GB, free: 208 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.9843, allocations: 0 / 1.02 GB, free: 208 kB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002564/0.9845, allocations: 100.3 kB / 1.02 GB, free: 120 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.9846, allocations: 55.41 kB / 1.02 GB, free: 52 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.698e-05/0.9847, allocations: 112.8 kB / 1.02 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.9847, allocations: 25.7 kB / 1.02 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.723e-05/0.9848, allocations: 92.27 kB / 1.02 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.9848, allocations: 19.55 kB / 1.02 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.662e-06/0.9848, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.985, allocations: 318.8 kB / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.506e-05/0.985, allocations: 15.62 kB / 1.021 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.348e-05/0.9851, allocations: 45.73 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.448e-05/0.9852, allocations: 23.8 kB / 1.021 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.9852, allocations: 4 kB / 1.021 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001586/0.9853, allocations: 88.66 kB / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.9854, allocations: 8 kB / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.9854, allocations: 0 / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.9854, allocations: 0 / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.9855, allocations: 19.92 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.9855, allocations: 0 / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.621e-05/0.9856, allocations: 11.89 kB / 1.021 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.9856, allocations: 8.062 kB / 1.021 GB, free: 15.28 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.983e-05/0.9857, allocations: 108.9 kB / 1.021 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.164e-05/0.9857, allocations: 3.938 kB / 1.021 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.054e-05/0.9858, allocations: 12.5 kB / 1.021 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.9858, allocations: 0 / 1.021 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.9858, allocations: 0 / 1.021 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.912e-06/0.9858, allocations: 3.984 kB / 1.021 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003487/0.9861, allocations: 349.5 kB / 1.021 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.9862, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.176e-05/0.9862, allocations: 4 kB / 1.021 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.9862, allocations: 3.984 kB / 1.021 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.9862, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.9862, allocations: 4 kB / 1.021 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.9863, allocations: 0 / 1.021 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002104/0.9865, allocations: 194.7 kB / 1.022 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.708e-05/0.9865, allocations: 85.02 kB / 1.022 GB, free: 14.49 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.397e-05/0.9866, allocations: 3.984 kB / 1.022 GB, free: 14.49 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.602e-05/0.9867, allocations: 4 kB / 1.022 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.766e-05/0.9867, allocations: 11.92 kB / 1.022 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.9867, allocations: 0 / 1.022 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.729e-05/0.9868, allocations: 96.23 kB / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.783e-06/0.9868, allocations: 0 / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003005/0.9871, allocations: 47.86 kB / 1.022 GB, free: 14.34 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.0003937/0.9875, allocations: 173.5 kB / 1.022 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001499/0.9877, allocations: 55.36 kB / 1.022 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.9877, allocations: 0 / 1.022 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.15e-05/0.9877, allocations: 25.25 kB / 1.022 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001782/0.9879, allocations: 8.078 kB / 1.022 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002882/0.9882, allocations: 98.53 kB / 1.022 GB, free: 14 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.9885, allocations: 0.6885 MB / 1.023 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.944e-05/0.9886, allocations: 8.172 kB / 1.023 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.633e-05/0.9886, allocations: 11.44 kB / 1.023 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/0.9886, allocations: 0 / 1.023 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of Templates: time 0.003998/0.9926, allocations: 1.505 MB / 1.024 GB, free: 11.81 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