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.001251/0.001251, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001262/0.001263, allocations: 199.8 kB / 16.26 MB, free: 6.621 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.28/1.28, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.626/2.626, allocations: 461.9 MB / 0.7344 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 62.62 kB / 0.8987 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3091, allocations: 157.4 MB / 1.052 GB, free: 8.621 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK): time 0.002066/0.3112, allocations: 1.544 MB / 1.054 GB, free: 7.062 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009048/0.3121, allocations: 0.7366 MB / 1.055 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.114e-05/0.3121, allocations: 0 / 1.055 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.878e-05/0.3121, allocations: 3.938 kB / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.201e-05/0.3122, allocations: 11.91 kB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003092/0.3125, allocations: 111.8 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.828e-05/0.3126, allocations: 71.78 kB / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.541e-05/0.3126, allocations: 11.98 kB / 1.055 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.584e-05/0.3127, allocations: 35.91 kB / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.289e-05/0.3127, allocations: 35.84 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.184e-05/0.3128, allocations: 4 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.3129, allocations: 103.8 kB / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.786e-05/0.3129, allocations: 19.91 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.986e-05/0.313, allocations: 39.86 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001521/0.3131, allocations: 139.9 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.3131, allocations: 0 / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.22e-07/0.3131, allocations: 0 / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.345e-06/0.3131, allocations: 0 / 1.055 GB, free: 5.742 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.0003957/0.3135, allocations: 409 kB / 1.056 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.686e-05/0.3136, allocations: 12.62 kB / 1.056 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.699e-05/0.3136, allocations: 38.73 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.425e-05/0.3136, allocations: 12.84 kB / 1.056 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.626e-05/0.3137, allocations: 176.2 kB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.3137, allocations: 4.312 kB / 1.056 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.3137, allocations: 4.375 kB / 1.056 GB, free: 5 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001341/0.3139, allocations: 77.72 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.108e-06/0.3139, allocations: 0 / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.776e-06/0.3139, allocations: 3.984 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-06/0.3139, allocations: 4 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001103/0.314, allocations: 31.98 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004434/0.3145, allocations: 324.7 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.855e-05/0.3146, allocations: 46.5 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.95e-05/0.3147, allocations: 32.97 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.125e-05/0.3147, allocations: 4 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001482/0.3148, allocations: 79.38 kB / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.3149, allocations: 0 / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003054/0.3152, allocations: 141.5 kB / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.65e-05/0.3152, allocations: 55.39 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.062e-05/0.3153, allocations: 125.8 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.3153, allocations: 25.7 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.746e-05/0.3153, allocations: 92.05 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.3154, allocations: 19.83 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.237e-05/0.3154, allocations: 29.7 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.081e-05/0.3155, allocations: 318.8 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.942e-05/0.3156, allocations: 23.98 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.065e-05/0.3157, allocations: 54.92 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001357/0.3158, allocations: 74.48 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.3158, allocations: 0 / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002061/0.316, allocations: 113.8 kB / 1.057 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.848e-06/0.316, allocations: 9.312 kB / 1.057 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.316, allocations: 7.938 kB / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.621e-06/0.3161, allocations: 0 / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.798e-05/0.3161, allocations: 8 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.3161, allocations: 8.047 kB / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.293e-05/0.3162, allocations: 11.91 kB / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.3162, allocations: 4 kB / 1.057 GB, free: 3.152 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 6.928e-05/0.3163, allocations: 123.2 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.3163, allocations: 11.91 kB / 1.058 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.938e-05/0.3164, allocations: 12.36 kB / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.3164, allocations: 4 kB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-06/0.3164, allocations: 0 / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.3164, allocations: 0 / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003806/0.3168, allocations: 382.3 kB / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3168, allocations: 0 / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.679e-05/0.3168, allocations: 4 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3168, allocations: 7.984 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.457e-06/0.3168, allocations: 3.984 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.3168, allocations: 7.938 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3168, allocations: 4 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002408/0.3171, allocations: 207.4 kB / 1.058 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.348e-05/0.3171, allocations: 81.11 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.3172, allocations: 3.984 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.756e-05/0.3172, allocations: 15.88 kB / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.158e-05/0.3173, allocations: 4 kB / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.3173, allocations: 7.984 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.251e-05/0.3173, allocations: 95.2 kB / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3173, allocations: 0 / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002539/0.3176, allocations: 39.91 kB / 1.058 GB, free: 2.059 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.0005987/0.3182, allocations: 0.7904 MB / 1.059 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001893/0.3184, allocations: 75.89 kB / 1.059 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.3184, allocations: 128 / 1.059 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.506e-05/0.3185, allocations: 39.92 kB / 1.059 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/0.3187, allocations: 13.69 kB / 1.059 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.32, allocations: 1.5 MB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001905/0.3202, allocations: 0.6961 MB / 1.061 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.178e-05/0.3203, allocations: 4 kB / 1.061 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.442e-05/0.3203, allocations: 23.38 kB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of SimCode: time 2.81e-07/0.3203, allocations: 4 kB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.389/2.71, allocations: 2.486 MB / 1.064 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002796/2.71, allocations: 277.1 kB / 1.064 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.86/4.57, allocations: 0 / 1.064 GB, free: 12.11 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