Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.287/2.287, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.00116/0.00116, allocations: 185 kB / 498.1 MB, free: 5.738 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.614/1.614, allocations: 223.2 MB / 0.7948 GB, free: 18.88 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.001046/0.001046, allocations: 105.6 kB / 0.9346 GB, free: 7.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003802, allocations: 9.219 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2888, allocations: 142.3 MB / 1.223 GB, free: 89.6 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2014/0.4903, allocations: 151.2 MB / 1.371 GB, free: 2.188 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/0.4906, allocations: 91.94 kB / 1.371 GB, free: 2.098 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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.009454/0.5001, allocations: 3.038 MB / 1.374 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.673e-06/0.5001, allocations: 7.938 kB / 1.374 GB, free: 15.04 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.5001, allocations: 3.938 kB / 1.374 GB, free: 15.04 MB / 0.8855 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.0005723/0.5007, allocations: 416.7 kB / 1.374 GB, free: 14.58 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.5007, allocations: 12.03 kB / 1.374 GB, free: 14.57 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.312e-05/0.5008, allocations: 11.86 kB / 1.374 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.5009, allocations: 163.1 kB / 1.374 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.857e-05/0.501, allocations: 4 kB / 1.374 GB, free: 14.35 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.427e-05/0.501, allocations: 11.98 kB / 1.374 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000178/0.5012, allocations: 73.66 kB / 1.374 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.5012, allocations: 0 / 1.374 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.5012, allocations: 0 / 1.374 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.5012, allocations: 4 kB / 1.374 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001385/0.5014, allocations: 47.89 kB / 1.374 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006044/0.502, allocations: 320.8 kB / 1.375 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.5021, allocations: 46.56 kB / 1.375 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.5022, allocations: 8 kB / 1.375 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001701/0.5023, allocations: 83.34 kB / 1.375 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.803e-06/0.5023, allocations: 0 / 1.375 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0003927/0.5027, allocations: 153.7 kB / 1.375 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.832e-05/0.5028, allocations: 59.33 kB / 1.375 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.155e-05/0.5029, allocations: 116.8 kB / 1.375 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.503, allocations: 29.7 kB / 1.375 GB, free: 13.31 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.907e-05/0.503, allocations: 88.33 kB / 1.375 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.371e-05/0.5031, allocations: 19.73 kB / 1.375 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.214e-06/0.5031, allocations: 4 kB / 1.375 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.5032, allocations: 315 kB / 1.375 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.547e-05/0.5033, allocations: 31.98 kB / 1.376 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.865e-05/0.5034, allocations: 54.48 kB / 1.376 GB, free: 12.78 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.352e-05/0.5035, allocations: 43.98 kB / 1.376 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.5035, allocations: 0 / 1.376 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002279/0.5037, allocations: 113.5 kB / 1.376 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.5038, allocations: 4 kB / 1.376 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.79e-06/0.5038, allocations: 3.984 kB / 1.376 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.5038, allocations: 4 kB / 1.376 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.033e-05/0.5039, allocations: 8 kB / 1.376 GB, free: 12.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/0.5039, allocations: 12 kB / 1.376 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.633e-05/0.504, allocations: 12 kB / 1.376 GB, free: 12.58 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.504, allocations: 0 / 1.376 GB, free: 12.58 MB / 0.8855 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 () * Number of clocked 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 9.007e-05/0.5041, allocations: 121.8 kB / 1.376 GB, free: 12.45 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.504e-05/0.5041, allocations: 7.906 kB / 1.376 GB, free: 12.44 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.257e-05/0.5042, allocations: 12.36 kB / 1.376 GB, free: 12.43 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.5042, allocations: 0 / 1.376 GB, free: 12.43 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.5042, allocations: 4 kB / 1.376 GB, free: 12.43 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.5042, allocations: 7.891 kB / 1.376 GB, free: 12.42 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004487/0.5046, allocations: 378.5 kB / 1.376 GB, free: 11.99 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.5047, allocations: 0 / 1.376 GB, free: 11.99 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.102e-05/0.5047, allocations: 15.88 kB / 1.376 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.5047, allocations: 0 / 1.376 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.5047, allocations: 7.984 kB / 1.376 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.92e-06/0.5047, allocations: 7.953 kB / 1.376 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.5047, allocations: 0 / 1.376 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002882/0.505, allocations: 207.4 kB / 1.377 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.008e-05/0.5051, allocations: 81.11 kB / 1.377 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.967e-05/0.5051, allocations: 11.98 kB / 1.377 GB, free: 11.63 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.539e-05/0.5052, allocations: 4 kB / 1.377 GB, free: 11.63 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.538e-05/0.5053, allocations: 11.94 kB / 1.377 GB, free: 11.62 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-06/0.5053, allocations: 0 / 1.377 GB, free: 11.62 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.329e-05/0.5053, allocations: 95.27 kB / 1.377 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5053, allocations: 0 / 1.377 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003126/0.5057, allocations: 51.84 kB / 1.377 GB, free: 11.47 MB / 0.8855 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 () * Number of clocked 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.0003903/0.5061, allocations: 189.2 kB / 1.377 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002319/0.5063, allocations: 71.89 kB / 1.377 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.5063, allocations: 4 kB / 1.377 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.5064, allocations: 44.05 kB / 1.377 GB, free: 11.18 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001681/0.5066, allocations: 7.984 kB / 1.377 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000411/0.507, allocations: 211.1 kB / 1.377 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.5073, allocations: 0.6926 MB / 1.378 GB, free: 10.21 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.317e-05/0.5074, allocations: 8.172 kB / 1.378 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.906e-05/0.5074, allocations: 11.44 kB / 1.378 GB, free: 10.19 MB / 0.8855 GB Notification: Performance of SimCode: time 1.834e-06/0.5074, allocations: 0 / 1.378 GB, free: 10.19 MB / 0.8855 GB Notification: Performance of Templates: time 0.004074/0.5115, allocations: 1.51 MB / 1.379 GB, free: 8.684 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.makefile (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.sim & ./Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU.csv","../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.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.f,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