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 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: "" <> 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.006533/0.006533, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001725/0.001725, allocations: 191.5 kB / 16.67 MB, free: 5.969 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.571/2.571, allocations: 482.6 MB / 0.755 GB, free: 6.637 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001778/0.001779, allocations: 63.09 kB / 1.083 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2899, allocations: 162.3 MB / 1.242 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK): time 0.002541/0.2924, allocations: 1.483 MB / 1.243 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001214/0.2937, allocations: 0.7259 MB / 1.244 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.553e-05/0.2937, allocations: 0 / 1.244 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.333e-05/0.2938, allocations: 7.875 kB / 1.244 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.814e-05/0.2938, allocations: 11.92 kB / 1.244 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005524/0.2944, allocations: 123.5 kB / 1.244 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001227/0.2945, allocations: 83.77 kB / 1.244 GB, free: 6.492 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.096e-05/0.2946, allocations: 15.98 kB / 1.244 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.488e-05/0.2947, allocations: 31.91 kB / 1.244 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.279e-05/0.2948, allocations: 39.83 kB / 1.244 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.876e-05/0.2948, allocations: 11.94 kB / 1.244 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001909/0.295, allocations: 91.91 kB / 1.244 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.799e-05/0.2951, allocations: 15.98 kB / 1.244 GB, free: 6.289 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.918e-05/0.2951, allocations: 35.84 kB / 1.244 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.2954, allocations: 143.8 kB / 1.245 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2954, allocations: 0 / 1.245 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of FrontEnd: time 9.01e-07/0.2954, allocations: 3.938 kB / 1.245 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.359e-06/0.2954, allocations: 0 / 1.245 GB, free: 6.109 MB / 0.9669 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.0006306/0.296, allocations: 428.7 kB / 1.245 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.2961, allocations: 8.031 kB / 1.245 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.434e-05/0.2961, allocations: 34.75 kB / 1.245 GB, free: 5.586 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.134e-05/0.2962, allocations: 4.891 kB / 1.245 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.2963, allocations: 176.3 kB / 1.245 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.804e-05/0.2963, allocations: 12.36 kB / 1.245 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.2964, allocations: 4.375 kB / 1.245 GB, free: 5.355 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001754/0.2965, allocations: 69.78 kB / 1.245 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.2965, allocations: 7.922 kB / 1.245 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.2966, allocations: 4 kB / 1.245 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.2966, allocations: 0 / 1.245 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.2967, allocations: 35.97 kB / 1.245 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005622/0.2973, allocations: 316.8 kB / 1.246 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.2974, allocations: 50.56 kB / 1.246 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.565e-05/0.2975, allocations: 36.91 kB / 1.246 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.776e-05/0.2975, allocations: 0 / 1.246 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002061/0.2977, allocations: 79.31 kB / 1.246 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/0.2978, allocations: 0 / 1.246 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003821/0.2981, allocations: 145.6 kB / 1.246 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.2982, allocations: 55.41 kB / 1.246 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.2983, allocations: 113.8 kB / 1.246 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.2984, allocations: 41.58 kB / 1.246 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.538e-05/0.2985, allocations: 96.08 kB / 1.246 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.488e-05/0.2985, allocations: 19.84 kB / 1.246 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.736e-05/0.2985, allocations: 25.7 kB / 1.246 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000263/0.2988, allocations: 326.8 kB / 1.247 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.2989, allocations: 23.98 kB / 1.247 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.431e-05/0.299, allocations: 46.56 kB / 1.247 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.2992, allocations: 78.48 kB / 1.247 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.2992, allocations: 0 / 1.247 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002358/0.2995, allocations: 113.9 kB / 1.247 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.2995, allocations: 5.562 kB / 1.247 GB, free: 3.543 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.2995, allocations: 64 / 1.247 GB, free: 3.543 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.2995, allocations: 4 kB / 1.247 GB, free: 3.539 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.127e-05/0.2996, allocations: 15.98 kB / 1.247 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.2996, allocations: 4.062 kB / 1.247 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.127e-05/0.2997, allocations: 4 kB / 1.247 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.2997, allocations: 4 kB / 1.247 GB, free: 3.512 MB / 0.9669 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 0.0001002/0.2998, allocations: 129.4 kB / 1.247 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.774e-05/0.2998, allocations: 11.89 kB / 1.247 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.215e-05/0.2999, allocations: 8.375 kB / 1.247 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.2999, allocations: 0 / 1.247 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2999, allocations: 0 / 1.247 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.2999, allocations: 0 / 1.247 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005019/0.3004, allocations: 382.5 kB / 1.247 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.3004, allocations: 0 / 1.247 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.773e-05/0.3004, allocations: 7.984 kB / 1.247 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3004, allocations: 4 kB / 1.247 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.3005, allocations: 3.938 kB / 1.247 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.3005, allocations: 11.88 kB / 1.247 GB, free: 2.902 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3005, allocations: 0 / 1.247 GB, free: 2.902 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002815/0.3008, allocations: 211.5 kB / 1.248 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.959e-05/0.3008, allocations: 88.98 kB / 1.248 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.3008, allocations: 4 kB / 1.248 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.226e-05/0.3009, allocations: 3.938 kB / 1.248 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.585e-05/0.301, allocations: 11.98 kB / 1.248 GB, free: 2.555 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.301, allocations: 4 kB / 1.248 GB, free: 2.551 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.443e-05/0.3011, allocations: 95.27 kB / 1.248 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3011, allocations: 3.938 kB / 1.248 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002801/0.3013, allocations: 35.94 kB / 1.248 GB, free: 2.418 MB / 0.9669 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.000884/0.3022, allocations: 0.8007 MB / 1.249 GB, free: 1.605 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002254/0.3025, allocations: 71.89 kB / 1.249 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3025, allocations: 0 / 1.249 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.102e-05/0.3026, allocations: 31.98 kB / 1.249 GB, free: 1.504 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002401/0.3028, allocations: 14.95 kB / 1.249 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/0.3045, allocations: 1.497 MB / 1.25 GB, free: 15.9 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.3048, allocations: 0.6885 MB / 1.251 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.502e-05/0.3048, allocations: 7.984 kB / 1.251 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.573e-05/0.3049, allocations: 19.44 kB / 1.251 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.3049, allocations: 0 / 1.251 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2499/0.5548, allocations: 2.654 MB / 1.253 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.42/7.975, allocations: 6.5 kB / 1.253 GB, free: 12.64 MB / 0.9825 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=400 --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