Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK") translateModel(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.463/2.463, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.001369/0.001369, allocations: 184 kB / 0.4902 GB, free: 2.227 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.617/1.617, allocations: 223.1 MB / 0.7992 GB, free: 14.71 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.001152/0.001152, allocations: 108.2 kB / 0.9396 GB, free: 1.902 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003601, allocations: 6.938 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3012, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1884/0.4896, allocations: 152 MB / 1.378 GB, free: 1.57 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/0.4899, allocations: 83.95 kB / 1.378 GB, free: 1.488 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.009901/0.4999, allocations: 3.039 MB / 1.381 GB, free: 14.44 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.104e-06/0.4999, allocations: 0 / 1.381 GB, free: 14.44 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.626e-06/0.4999, allocations: 0 / 1.381 GB, free: 14.44 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.0006304/0.5005, allocations: 420.7 kB / 1.381 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.5006, allocations: 8.562 kB / 1.381 GB, free: 13.97 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.387e-05/0.5007, allocations: 7.953 kB / 1.381 GB, free: 13.96 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.5008, allocations: 178.8 kB / 1.381 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/0.5009, allocations: 12 kB / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.406e-05/0.5009, allocations: 4 kB / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.5011, allocations: 65.66 kB / 1.381 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.5011, allocations: 0 / 1.381 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.5012, allocations: 0 / 1.381 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.5012, allocations: 3.938 kB / 1.381 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001412/0.5013, allocations: 51.97 kB / 1.381 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006715/0.502, allocations: 316.7 kB / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002014/0.5022, allocations: 58.55 kB / 1.382 GB, free: 13.18 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.5023, allocations: 3.984 kB / 1.382 GB, free: 13.18 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001783/0.5024, allocations: 79.48 kB / 1.382 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 2.214e-06/0.5025, allocations: 0 / 1.382 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0004367/0.5029, allocations: 161.5 kB / 1.382 GB, free: 12.92 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.503, allocations: 51.41 kB / 1.382 GB, free: 12.86 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.996e-05/0.5031, allocations: 109 kB / 1.382 GB, free: 12.75 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.5031, allocations: 29.7 kB / 1.382 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.404e-05/0.5032, allocations: 92.22 kB / 1.382 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.975e-05/0.5032, allocations: 11.91 kB / 1.382 GB, free: 12.6 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.982e-06/0.5032, allocations: 0 / 1.382 GB, free: 12.6 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.5033, allocations: 326.8 kB / 1.383 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.838e-05/0.5034, allocations: 27.98 kB / 1.383 GB, free: 12.25 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.454e-05/0.5035, allocations: 50.98 kB / 1.383 GB, free: 12.19 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.763e-05/0.5036, allocations: 35.94 kB / 1.383 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.5036, allocations: 0 / 1.383 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002439/0.5039, allocations: 117.5 kB / 1.383 GB, free: 12.03 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.5039, allocations: 4 kB / 1.383 GB, free: 12.03 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.5039, allocations: 4 kB / 1.383 GB, free: 12.02 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.5039, allocations: 4.062 kB / 1.383 GB, free: 12.02 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.504, allocations: 11.98 kB / 1.383 GB, free: 12.01 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.5041, allocations: 7.953 kB / 1.383 GB, free: 12 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.14e-05/0.5041, allocations: 7.906 kB / 1.383 GB, free: 11.99 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.874e-05/0.5042, allocations: 11.98 kB / 1.383 GB, free: 11.98 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 (occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$whenCondition1,win.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.362e-05/0.5043, allocations: 125.7 kB / 1.383 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.565e-05/0.5043, allocations: 4 kB / 1.383 GB, free: 11.84 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.947e-05/0.5043, allocations: 12.38 kB / 1.383 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.5043, allocations: 0 / 1.383 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.5043, allocations: 0 / 1.383 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.5044, allocations: 7.953 kB / 1.383 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000455/0.5048, allocations: 378.4 kB / 1.383 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.5048, allocations: 0 / 1.383 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.401e-05/0.5049, allocations: 11.98 kB / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.5049, allocations: 3.938 kB / 1.383 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.5049, allocations: 7.938 kB / 1.383 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.5049, allocations: 3.953 kB / 1.383 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.5049, allocations: 0 / 1.383 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002893/0.5052, allocations: 219.5 kB / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.248e-05/0.5053, allocations: 81.02 kB / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.5053, allocations: 4 kB / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.983e-05/0.5054, allocations: 7.984 kB / 1.384 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.755e-05/0.5054, allocations: 11.95 kB / 1.384 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.5055, allocations: 4 kB / 1.384 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.785e-05/0.5055, allocations: 95.42 kB / 1.384 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5055, allocations: 0 / 1.384 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003225/0.5059, allocations: 51.92 kB / 1.384 GB, free: 10.87 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 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.p,win.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.0004074/0.5063, allocations: 172.6 kB / 1.384 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002465/0.5065, allocations: 79.94 kB / 1.384 GB, free: 10.63 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.5065, allocations: 4.125 kB / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.706e-05/0.5066, allocations: 35.92 kB / 1.384 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001826/0.5068, allocations: 12.27 kB / 1.384 GB, free: 10.58 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004112/0.5073, allocations: 215.1 kB / 1.384 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.5075, allocations: 0.6896 MB / 1.385 GB, free: 9.621 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.468e-05/0.5076, allocations: 8.172 kB / 1.385 GB, free: 9.613 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.694e-05/0.5076, allocations: 11.44 kB / 1.385 GB, free: 9.602 MB / 0.8855 GB Notification: Performance of SimCode: time 3.11e-07/0.5076, allocations: 0 / 1.385 GB, free: 9.602 MB / 0.8855 GB Notification: Performance of Templates: time 0.004322/0.5119, allocations: 1.52 MB / 1.387 GB, free: 8.086 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.makefile (rm -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.sim & ./Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK.csv","../files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0