Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,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.Nicol2001WindowsPakistan") translateModel(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,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.Nicol2001WindowsPakistan") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001761/0.001761, allocations: 193.4 kB / 16.14 MB, free: 6.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.721/2.721, allocations: 461.9 MB / 0.7342 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 59.52 kB / 0.8984 GB, free: 37.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3635, allocations: 157.4 MB / 1.052 GB, free: 8.863 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.003016/0.3666, allocations: 1.537 MB / 1.054 GB, free: 7.312 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001328/0.3679, allocations: 0.7439 MB / 1.054 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.9e-05/0.368, allocations: 0 / 1.054 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.98e-05/0.368, allocations: 7.875 kB / 1.054 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.946e-05/0.3681, allocations: 15.86 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005304/0.3686, allocations: 107.8 kB / 1.054 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.3688, allocations: 71.77 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.104e-05/0.3689, allocations: 8 kB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.042e-05/0.369, allocations: 31.91 kB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.908e-05/0.369, allocations: 39.83 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.692e-05/0.3691, allocations: 4 kB / 1.055 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001916/0.3693, allocations: 91.84 kB / 1.055 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.751e-05/0.3693, allocations: 15.92 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.178e-05/0.3694, allocations: 31.86 kB / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002611/0.3696, allocations: 135.9 kB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3697, allocations: 0 / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3697, allocations: 4 kB / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.3697, allocations: 0 / 1.055 GB, free: 6.008 MB / 0.8106 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.0006913/0.3704, allocations: 413 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.3704, allocations: 12.03 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.489e-05/0.3705, allocations: 8.844 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001333/0.3706, allocations: 180.2 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.3706, allocations: 4.359 kB / 1.055 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.41e-05/0.3707, allocations: 12.36 kB / 1.055 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001913/0.3709, allocations: 73.91 kB / 1.056 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.3709, allocations: 0 / 1.056 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.3709, allocations: 0 / 1.056 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.3709, allocations: 0 / 1.056 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.371, allocations: 35.97 kB / 1.056 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006392/0.3717, allocations: 316.8 kB / 1.056 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001354/0.3718, allocations: 46.5 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.088e-05/0.3719, allocations: 36.91 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.372, allocations: 8 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002399/0.3722, allocations: 79.44 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.3722, allocations: 0 / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004084/0.3726, allocations: 137.5 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.3727, allocations: 59.34 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.3728, allocations: 121.8 kB / 1.056 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.3728, allocations: 29.7 kB / 1.056 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.506e-05/0.3729, allocations: 96.12 kB / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.3729, allocations: 11.75 kB / 1.056 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.962e-05/0.373, allocations: 29.7 kB / 1.056 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3731, allocations: 326.8 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.28e-05/0.3732, allocations: 27.98 kB / 1.057 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.311e-05/0.3733, allocations: 46.56 kB / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001603/0.3735, allocations: 82.41 kB / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3735, allocations: 0 / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002436/0.3738, allocations: 109.8 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.3738, allocations: 5.406 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.3738, allocations: 8.062 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.3738, allocations: 4 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.3739, allocations: 15.98 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.3739, allocations: 80 / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.782e-05/0.374, allocations: 7.906 kB / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.374, allocations: 7.984 kB / 1.057 GB, free: 3.457 MB / 0.8106 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 (win.occ,win.curSeed,$PRE.win.curSeed,win.p,$PRE.win.p,win.on,$PRE.win.on,win.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.3741, allocations: 127.2 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.627e-05/0.3742, allocations: 7.938 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.743e-05/0.3742, allocations: 12.38 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3742, allocations: 0 / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3742, allocations: 4 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.3742, allocations: 0 / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004773/0.3747, allocations: 386.3 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3747, allocations: 0 / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.387e-05/0.3748, allocations: 11.92 kB / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3748, allocations: 0 / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.3748, allocations: 4 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3748, allocations: 0 / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.3748, allocations: 3.938 kB / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002817/0.3751, allocations: 203.4 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.717e-05/0.3752, allocations: 81.09 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.158e-05/0.3752, allocations: 8 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.639e-05/0.3753, allocations: 0 / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.856e-05/0.3753, allocations: 15.92 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.3754, allocations: 4 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.116e-05/0.3754, allocations: 91.27 kB / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3754, allocations: 0 / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002914/0.3757, allocations: 36 kB / 1.058 GB, free: 2.383 MB / 0.8106 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,win.occ,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003676/0.3761, allocations: 175.7 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002263/0.3763, allocations: 63.97 kB / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3763, allocations: 0 / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001079/0.3765, allocations: 43.91 kB / 1.058 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002734/0.3767, allocations: 13.98 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004328/0.3772, allocations: 198.7 kB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.3775, allocations: 0.6887 MB / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.691e-05/0.3775, allocations: 7.984 kB / 1.059 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.812e-05/0.3776, allocations: 7.438 kB / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/0.3776, allocations: 4 kB / 1.059 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of Templates: time 0.004094/0.3817, allocations: 1.376 MB / 1.061 GB, free: 15.78 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.makefile (rm -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.sim & ./Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.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,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0