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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001374/0.001374, allocations: 115.8 kB / 16.37 MB, free: 6.012 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.001342/0.001342, allocations: 190.9 kB / 17.31 MB, free: 5.613 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.367/1.367, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.559/2.559, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00225/0.00225, allocations: 59.56 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3389, allocations: 153 MB / 1.027 GB, free: 2.043 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.00414/0.3431, allocations: 1.48 MB / 1.028 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001742/0.3449, allocations: 0.7399 MB / 1.029 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.083e-05/0.345, allocations: 0 / 1.029 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.328e-05/0.3451, allocations: 7.922 kB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.884e-05/0.3452, allocations: 15.88 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007916/0.346, allocations: 115.6 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001565/0.3462, allocations: 75.78 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.3463, allocations: 11.97 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.3465, allocations: 39.86 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.914e-05/0.3466, allocations: 43.88 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.68e-05/0.3466, allocations: 8 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002368/0.3468, allocations: 91.91 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.395e-05/0.3469, allocations: 19.86 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.405e-05/0.347, allocations: 35.86 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000321/0.3473, allocations: 139.6 kB / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3473, allocations: 0 / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.894e-06/0.3473, allocations: 0 / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.259e-05/0.3474, allocations: 0 / 1.029 GB, free: 15.22 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.0007625/0.3481, allocations: 420.9 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.3482, allocations: 8.031 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.792e-05/0.3483, allocations: 16.83 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001465/0.3484, allocations: 176.2 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.3484, allocations: 4.375 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.3485, allocations: 4.375 kB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.3487, allocations: 81.89 kB / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.3487, allocations: 0 / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.3487, allocations: 4 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.3487, allocations: 0 / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.3489, allocations: 43.97 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006446/0.3495, allocations: 308.8 kB / 1.03 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001233/0.3496, allocations: 50.48 kB / 1.031 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.426e-05/0.3497, allocations: 36.97 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.3498, allocations: 4 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002346/0.35, allocations: 79.44 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.35, allocations: 0 / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003854/0.3504, allocations: 137.5 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.3505, allocations: 55.41 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.3506, allocations: 125.8 kB / 1.031 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.3506, allocations: 33.7 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.224e-05/0.3507, allocations: 92.05 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.3507, allocations: 15.83 kB / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.719e-05/0.3507, allocations: 21.72 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.3509, allocations: 330.7 kB / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.843e-05/0.3509, allocations: 27.98 kB / 1.031 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.3511, allocations: 50.55 kB / 1.032 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/0.3512, allocations: 78.78 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3512, allocations: 0 / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002236/0.3515, allocations: 113.5 kB / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.3515, allocations: 8.062 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.3515, allocations: 0 / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.3515, allocations: 4 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.3516, allocations: 11.98 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.3516, allocations: 0 / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.535e-05/0.3517, allocations: 11.89 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.3517, allocations: 4 kB / 1.032 GB, free: 12.66 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 9.884e-05/0.3518, allocations: 125.7 kB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.847e-05/0.3519, allocations: 11.91 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.765e-05/0.3519, allocations: 4.375 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.3519, allocations: 4 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.3519, allocations: 3.984 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.3519, allocations: 3.938 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004663/0.3524, allocations: 382.4 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3524, allocations: 0 / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.816e-05/0.3525, allocations: 7.938 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.3525, allocations: 0 / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.3525, allocations: 4 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3525, allocations: 0 / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.3525, allocations: 7.938 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002714/0.3528, allocations: 211.3 kB / 1.032 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.147e-05/0.3528, allocations: 81.11 kB / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.773e-05/0.3529, allocations: 0 / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.004e-05/0.353, allocations: 11.98 kB / 1.033 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.029e-05/0.353, allocations: 11.94 kB / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.353, allocations: 7.984 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.298e-05/0.3531, allocations: 87.28 kB / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.3531, allocations: 0 / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000295/0.3534, allocations: 43.89 kB / 1.033 GB, free: 11.57 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.0003462/0.3537, allocations: 163.7 kB / 1.033 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000224/0.354, allocations: 76.12 kB / 1.033 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.354, allocations: 0 / 1.033 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.286e-05/0.3541, allocations: 36.08 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/0.3543, allocations: 12.14 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004084/0.3548, allocations: 184.6 kB / 1.033 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000281/0.3551, allocations: 0.6885 MB / 1.034 GB, free: 10.37 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.495e-05/0.3551, allocations: 4 kB / 1.034 GB, free: 10.37 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.499e-05/0.3551, allocations: 15.38 kB / 1.034 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/0.3551, allocations: 0 / 1.034 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of Templates: time 0.004109/0.3592, allocations: 1.437 MB / 1.035 GB, free: 8.926 MB / 0.8106 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 -s cvode -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/jenkins1/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