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.001801/0.001801, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 195.9 kB / 16.53 MB, free: 6.664 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.379/1.379, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.856/2.856, allocations: 472.6 MB / 0.7451 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 62.2 kB / 0.912 GB, free: 33.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.3113, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.003075/0.3144, allocations: 1.482 MB / 1.07 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.3158, allocations: 0.7323 MB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.04e-05/0.3159, allocations: 4 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.614e-05/0.3159, allocations: 7.875 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.524e-05/0.316, allocations: 7.922 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000634/0.3166, allocations: 123.6 kB / 1.071 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001249/0.3168, allocations: 71.83 kB / 1.071 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.994e-05/0.3169, allocations: 19.97 kB / 1.071 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.317, allocations: 31.92 kB / 1.071 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.233e-05/0.3171, allocations: 43.81 kB / 1.071 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.159e-05/0.3171, allocations: 8 kB / 1.071 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002153/0.3173, allocations: 99.84 kB / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.62e-05/0.3174, allocations: 11.92 kB / 1.071 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.908e-05/0.3174, allocations: 35.84 kB / 1.071 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002608/0.3177, allocations: 143.9 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.3177, allocations: 0 / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.977e-06/0.3177, allocations: 0 / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.3177, allocations: 7.938 kB / 1.071 GB, free: 7.574 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.0006419/0.3184, allocations: 409 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.3184, allocations: 11.97 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.767e-05/0.3185, allocations: 12.84 kB / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.3186, allocations: 180.2 kB / 1.072 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.3186, allocations: 4.375 kB / 1.072 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.3187, allocations: 4.375 kB / 1.072 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001938/0.3189, allocations: 73.97 kB / 1.072 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.3189, allocations: 0 / 1.072 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.3189, allocations: 0 / 1.072 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.3189, allocations: 7.938 kB / 1.072 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.319, allocations: 39.91 kB / 1.072 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006235/0.3197, allocations: 316.8 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.3198, allocations: 50.55 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.786e-05/0.3199, allocations: 32.97 kB / 1.072 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.3199, allocations: 4 kB / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002115/0.3201, allocations: 79.31 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 2.855e-06/0.3202, allocations: 7.984 kB / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003744/0.3205, allocations: 133.5 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/0.3206, allocations: 51.41 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.3207, allocations: 125.7 kB / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.3207, allocations: 29.7 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.65e-05/0.3208, allocations: 88.14 kB / 1.073 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.3208, allocations: 27.8 kB / 1.073 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.701e-05/0.3209, allocations: 29.72 kB / 1.073 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.321, allocations: 318.8 kB / 1.073 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.699e-05/0.3211, allocations: 27.98 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.267e-05/0.3212, allocations: 50.48 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.3213, allocations: 70.56 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3213, allocations: 0 / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002372/0.3216, allocations: 117.8 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.3216, allocations: 8 kB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3216, allocations: 0 / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.3216, allocations: 0 / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.457e-05/0.3217, allocations: 15.92 kB / 1.073 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.485e-05/0.3218, allocations: 7.938 kB / 1.073 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.679e-05/0.3218, allocations: 12.05 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.3219, allocations: 4 kB / 1.073 GB, free: 5.023 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 8.624e-05/0.3219, allocations: 123.3 kB / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.616e-05/0.322, allocations: 3.906 kB / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.532e-05/0.322, allocations: 12.38 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.322, allocations: 0 / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.322, allocations: 0 / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.322, allocations: 3.984 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004375/0.3225, allocations: 390.3 kB / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3225, allocations: 3.984 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.771e-05/0.3225, allocations: 4 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3225, allocations: 0 / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.3225, allocations: 4 kB / 1.074 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3226, allocations: 0 / 1.074 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3226, allocations: 3.938 kB / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002759/0.3228, allocations: 215.3 kB / 1.074 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.444e-05/0.3229, allocations: 85.02 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.3229, allocations: 0 / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.527e-05/0.323, allocations: 7.984 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.451e-05/0.3231, allocations: 11.94 kB / 1.074 GB, free: 4.074 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.3231, allocations: 0 / 1.074 GB, free: 4.074 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.864e-05/0.3231, allocations: 91.27 kB / 1.074 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3231, allocations: 8 kB / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002965/0.3234, allocations: 39.98 kB / 1.074 GB, free: 3.938 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.0003576/0.3238, allocations: 159.8 kB / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002339/0.324, allocations: 75.94 kB / 1.074 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3241, allocations: 8 kB / 1.074 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.388e-05/0.3242, allocations: 35.92 kB / 1.074 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.3244, allocations: 12.56 kB / 1.074 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004218/0.3248, allocations: 184.9 kB / 1.075 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.3251, allocations: 0.6885 MB / 1.075 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.523e-05/0.3252, allocations: 0.5469 kB / 1.075 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.192e-05/0.3252, allocations: 15.44 kB / 1.075 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.3252, allocations: 0 / 1.075 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of Templates: time 0.004071/0.3293, allocations: 1.455 MB / 1.077 GB, free: 1.277 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