Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.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.Nicol2001WindowsUK,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK",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.001117/0.00112, 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.001121/0.001121, allocations: 195.8 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.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.543/2.543, allocations: 461.9 MB / 0.7346 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001364, allocations: 67.16 kB / 0.8992 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2877, allocations: 157.4 MB / 1.053 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK): time 0.002392/0.2902, allocations: 1.48 MB / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001073/0.2913, allocations: 0.7326 MB / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.749e-05/0.2913, allocations: 0 / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.087e-05/0.2913, allocations: 11.86 kB / 1.055 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.63e-05/0.2914, allocations: 15.92 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004638/0.2919, allocations: 127.5 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.968e-05/0.292, allocations: 67.84 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.202e-05/0.2921, allocations: 15.98 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.254e-05/0.2921, allocations: 35.91 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.572e-05/0.2922, allocations: 35.84 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.2922, allocations: 8 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.2924, allocations: 99.84 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.534e-05/0.2924, allocations: 23.89 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.093e-05/0.2925, allocations: 31.86 kB / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001896/0.2927, allocations: 143.9 kB / 1.056 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.2927, allocations: 0 / 1.056 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.313e-06/0.2927, allocations: 0 / 1.056 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.2927, allocations: 0 / 1.056 GB, free: 5.496 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.0005028/0.2932, allocations: 412.9 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.2932, allocations: 8.625 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.424e-05/0.2933, allocations: 46.73 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.993e-05/0.2933, allocations: 4.844 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.59e-05/0.2934, allocations: 172.2 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.2934, allocations: 4.375 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.2935, allocations: 4.375 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001584/0.2936, allocations: 73.78 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.072e-06/0.2936, allocations: 7.875 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.2937, allocations: 0 / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.2937, allocations: 0 / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001263/0.2938, allocations: 47.89 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000504/0.2943, allocations: 316.8 kB / 1.057 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/0.2944, allocations: 46.56 kB / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.885e-05/0.2945, allocations: 40.97 kB / 1.057 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.325e-05/0.2945, allocations: 0 / 1.057 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001547/0.2947, allocations: 83.3 kB / 1.057 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.2947, allocations: 0 / 1.057 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003413/0.295, allocations: 137.6 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.255e-05/0.2951, allocations: 59.41 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.686e-05/0.2952, allocations: 125.8 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.2952, allocations: 29.7 kB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.617e-05/0.2952, allocations: 88.05 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.807e-05/0.2953, allocations: 19.83 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.391e-05/0.2953, allocations: 29.7 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.119e-05/0.2954, allocations: 322.8 kB / 1.058 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.558e-05/0.2955, allocations: 19.98 kB / 1.058 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.25e-05/0.2956, allocations: 58.48 kB / 1.058 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.2957, allocations: 70.55 kB / 1.058 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2957, allocations: 0 / 1.058 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002167/0.2959, allocations: 117.5 kB / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.296, allocations: 4 kB / 1.058 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.296, allocations: 3.984 kB / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.296, allocations: 3.938 kB / 1.058 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.473e-05/0.2961, allocations: 15.94 kB / 1.058 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.2961, allocations: 0 / 1.058 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.261e-05/0.2962, allocations: 11.89 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.2962, allocations: 8 kB / 1.058 GB, free: 2.895 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.644e-05/0.2963, allocations: 125 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.696e-05/0.2963, allocations: 7.906 kB / 1.058 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.22e-05/0.2963, allocations: 12.36 kB / 1.058 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2963, allocations: 3.984 kB / 1.058 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2963, allocations: 0 / 1.058 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2963, allocations: 4 kB / 1.058 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003803/0.2967, allocations: 378.4 kB / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2967, allocations: 0 / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.095e-05/0.2968, allocations: 8 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.2968, allocations: 0 / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.2968, allocations: 0 / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.2968, allocations: 7.922 kB / 1.058 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2968, allocations: 3.938 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002458/0.2971, allocations: 215.3 kB / 1.059 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.779e-05/0.2971, allocations: 77.11 kB / 1.059 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.2971, allocations: 8 kB / 1.059 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.572e-05/0.2972, allocations: 7.922 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.894e-05/0.2972, allocations: 8 kB / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.198e-06/0.2973, allocations: 7.984 kB / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.033e-05/0.2973, allocations: 95.27 kB / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2973, allocations: 0 / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002641/0.2976, allocations: 39.91 kB / 1.059 GB, free: 1.809 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.0006292/0.2982, allocations: 0.8037 MB / 1.06 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002102/0.2984, allocations: 71.97 kB / 1.06 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2984, allocations: 4.062 kB / 1.06 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.029e-05/0.2985, allocations: 39.95 kB / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.2988, allocations: 15.88 kB / 1.06 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.3001, allocations: 1.481 MB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001782/0.3003, allocations: 0.6883 MB / 1.062 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.285e-05/0.3003, allocations: 11.98 kB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.757e-05/0.3004, allocations: 15.44 kB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3004, allocations: 4 kB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5375/0.8379, allocations: 2.62 MB / 1.065 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.933/7.771, allocations: 0 / 1.065 GB, free: 12.05 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK.fmu > Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.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