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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001186/0.001186, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001466/0.001466, allocations: 192.8 kB / 16.25 MB, free: 6.633 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.436/1.436, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.891/2.891, allocations: 472.6 MB / 0.7448 GB, free: 4.945 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 65.12 kB / 0.9116 GB, free: 33.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3643, allocations: 159.9 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.003214/0.3676, allocations: 1.535 MB / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001193/0.3688, allocations: 0.7322 MB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.649e-05/0.3688, allocations: 0 / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.347e-05/0.3689, allocations: 0 / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.485e-05/0.369, allocations: 15.86 kB / 1.07 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005136/0.3695, allocations: 111.8 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001079/0.3696, allocations: 67.84 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.3697, allocations: 19.95 kB / 1.07 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.087e-05/0.3698, allocations: 35.86 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.905e-05/0.3699, allocations: 39.83 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.879e-05/0.3699, allocations: 8 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001754/0.3701, allocations: 91.92 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.565e-05/0.3701, allocations: 19.91 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.383e-05/0.3702, allocations: 35.84 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002165/0.3704, allocations: 139.8 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3704, allocations: 0 / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3704, allocations: 0 / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.3704, allocations: 0 / 1.07 GB, free: 7.965 MB / 0.8262 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.0006364/0.3711, allocations: 417 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.3711, allocations: 16.03 kB / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.993e-05/0.3712, allocations: 8.844 kB / 1.071 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.3715, allocations: 176.2 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.022e-05/0.3715, allocations: 8.375 kB / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.102e-05/0.3716, allocations: 8.375 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002232/0.3718, allocations: 69.97 kB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.3718, allocations: 3.984 kB / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.3718, allocations: 0 / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.3719, allocations: 3.938 kB / 1.071 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001326/0.372, allocations: 43.91 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007138/0.3727, allocations: 312.8 kB / 1.072 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.3729, allocations: 42.56 kB / 1.072 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.638e-05/0.373, allocations: 40.95 kB / 1.072 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.373, allocations: 0 / 1.072 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002093/0.3732, allocations: 83.31 kB / 1.072 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.3732, allocations: 0 / 1.072 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003862/0.3736, allocations: 137.6 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.3737, allocations: 63.41 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.3738, allocations: 125.7 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.3738, allocations: 25.7 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.348e-05/0.3738, allocations: 84.14 kB / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.044e-05/0.3739, allocations: 23.69 kB / 1.072 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.974e-05/0.3739, allocations: 29.7 kB / 1.072 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3741, allocations: 326.8 kB / 1.072 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.654e-05/0.3741, allocations: 23.92 kB / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.867e-05/0.3742, allocations: 54.98 kB / 1.073 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001431/0.3744, allocations: 66.56 kB / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3744, allocations: 0 / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002297/0.3746, allocations: 121.5 kB / 1.073 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.3746, allocations: 4 kB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3747, allocations: 0 / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.3747, allocations: 4 kB / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.725e-05/0.3748, allocations: 15.92 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.3748, allocations: 3.938 kB / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.416e-05/0.3749, allocations: 8 kB / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.3749, allocations: 7.984 kB / 1.073 GB, free: 5.406 MB / 0.8262 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 9.16e-05/0.375, allocations: 121.8 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.654e-05/0.375, allocations: 7.906 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.565e-05/0.375, allocations: 8.375 kB / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.375, allocations: 0 / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.375, allocations: 4 kB / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.375, allocations: 0 / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004236/0.3755, allocations: 382.3 kB / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3755, allocations: 4 kB / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.004e-05/0.3755, allocations: 7.984 kB / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.3755, allocations: 0 / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.3756, allocations: 4 kB / 1.073 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.3756, allocations: 0 / 1.073 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3756, allocations: 3.938 kB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002734/0.3758, allocations: 215.3 kB / 1.073 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.506e-05/0.3759, allocations: 81.02 kB / 1.074 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.3759, allocations: 8 kB / 1.074 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.83e-05/0.376, allocations: 4 kB / 1.074 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.73e-05/0.3761, allocations: 11.92 kB / 1.074 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.3761, allocations: 4 kB / 1.074 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.482e-05/0.3761, allocations: 95.42 kB / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3761, allocations: 0 / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002828/0.3764, allocations: 39.98 kB / 1.074 GB, free: 4.324 MB / 0.8262 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.0003056/0.3767, allocations: 166.7 kB / 1.074 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002476/0.377, allocations: 75.89 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.377, allocations: 0 / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.375e-05/0.3771, allocations: 39.91 kB / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.3774, allocations: 8.125 kB / 1.074 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003976/0.3778, allocations: 204.8 kB / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.378, allocations: 0.6864 MB / 1.075 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.805e-05/0.3781, allocations: 11.98 kB / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.585e-05/0.3781, allocations: 7.438 kB / 1.075 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.3781, allocations: 4 kB / 1.075 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of Templates: time 0.003841/0.382, allocations: 1.407 MB / 1.076 GB, free: 1.688 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