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: "" <> buildModelFMU(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, 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.001418/0.001418, allocations: 196.6 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.314/1.314, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.505/2.505, allocations: 461.9 MB / 0.7346 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 66.27 kB / 0.8992 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2903, allocations: 157.4 MB / 1.053 GB, free: 8.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.002567/0.293, allocations: 1.472 MB / 1.054 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001136/0.2941, allocations: 0.7443 MB / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.328e-05/0.2942, allocations: 0 / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.023e-05/0.2942, allocations: 7.922 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.914e-05/0.2943, allocations: 11.88 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000522/0.2948, allocations: 119.6 kB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.896e-05/0.2949, allocations: 79.77 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.233e-05/0.295, allocations: 15.98 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.914e-05/0.2951, allocations: 31.92 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.085e-05/0.2952, allocations: 43.83 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.995e-05/0.2952, allocations: 8 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001765/0.2954, allocations: 87.84 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.459e-05/0.2954, allocations: 19.92 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.115e-05/0.2954, allocations: 31.86 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000209/0.2957, allocations: 143.9 kB / 1.056 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2957, allocations: 0 / 1.056 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2957, allocations: 0 / 1.056 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.572e-06/0.2957, allocations: 7.984 kB / 1.056 GB, free: 5.48 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.0005515/0.2962, allocations: 413 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.2963, allocations: 8.625 kB / 1.056 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.242e-05/0.2963, allocations: 38.75 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.426e-05/0.2964, allocations: 8.828 kB / 1.056 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.997e-05/0.2965, allocations: 176.2 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.2965, allocations: 4.375 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.749e-05/0.2965, allocations: 8.375 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001576/0.2967, allocations: 69.78 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.066e-06/0.2967, allocations: 4 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.2967, allocations: 7.922 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.2967, allocations: 0 / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001182/0.2968, allocations: 39.97 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005114/0.2974, allocations: 320.7 kB / 1.057 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000116/0.2975, allocations: 50.55 kB / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.592e-05/0.2976, allocations: 36.97 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.2976, allocations: 4.062 kB / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001692/0.2978, allocations: 83.36 kB / 1.057 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.2978, allocations: 0 / 1.057 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003347/0.2981, allocations: 137.5 kB / 1.057 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.2982, allocations: 59.41 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.053e-05/0.2983, allocations: 117.8 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.2983, allocations: 29.7 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.321e-05/0.2983, allocations: 92.05 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.781e-05/0.2984, allocations: 23.81 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.173e-05/0.2984, allocations: 25.72 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.13e-05/0.2985, allocations: 326.8 kB / 1.058 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.437e-05/0.2986, allocations: 19.98 kB / 1.058 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.245e-05/0.2987, allocations: 50.55 kB / 1.058 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/0.2988, allocations: 78.5 kB / 1.058 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2988, allocations: 0 / 1.058 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002187/0.299, allocations: 109.5 kB / 1.058 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.2991, allocations: 5.25 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.2991, allocations: 0 / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.2991, allocations: 0 / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.377e-05/0.2992, allocations: 15.92 kB / 1.058 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.2992, allocations: 12 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.546e-05/0.2993, allocations: 15.89 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.2993, allocations: 4 kB / 1.058 GB, free: 2.879 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 7.536e-05/0.2994, allocations: 119.3 kB / 1.058 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.572e-05/0.2994, allocations: 7.906 kB / 1.058 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.147e-05/0.2994, allocations: 8.375 kB / 1.058 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.2994, allocations: 0 / 1.058 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2994, allocations: 3.984 kB / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.2994, allocations: 4 kB / 1.058 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003902/0.2998, allocations: 386.3 kB / 1.058 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2998, allocations: 0 / 1.058 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.022e-05/0.2999, allocations: 8 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2999, allocations: 0 / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.2999, allocations: 0 / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.2999, allocations: 3.938 kB / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2999, allocations: 0 / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002404/0.3002, allocations: 211.4 kB / 1.059 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.247e-05/0.3002, allocations: 77.11 kB / 1.059 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.3002, allocations: 11.94 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.606e-05/0.3003, allocations: 15.86 kB / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.489e-05/0.3004, allocations: 4 kB / 1.059 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.3004, allocations: 3.984 kB / 1.059 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.265e-05/0.3004, allocations: 95.94 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.3004, allocations: 0 / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002689/0.3007, allocations: 43.89 kB / 1.059 GB, free: 1.797 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.0006485/0.3014, allocations: 0.8049 MB / 1.06 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002057/0.3016, allocations: 71.91 kB / 1.06 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3016, allocations: 0 / 1.06 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.899e-05/0.3017, allocations: 39.91 kB / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.3019, allocations: 11.94 kB / 1.06 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.3033, allocations: 1.488 MB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.3035, allocations: 0.6922 MB / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.566e-05/0.3036, allocations: 7.984 kB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.807e-05/0.3036, allocations: 19.44 kB / 1.062 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3036, allocations: 0 / 1.062 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5821/0.8857, allocations: 2.621 MB / 1.065 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.927/7.812, allocations: 16.31 kB / 1.065 GB, free: 12.03 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.fmu > 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,TOut.y,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed