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.01087/0.01087, allocations: 100.6 kB / 15.73 MB, free: 5.98 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.002227/0.002227, allocations: 201.6 kB / 16.68 MB, free: 5.906 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.604/2.604, allocations: 461.9 MB / 0.7348 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 64.11 kB / 1.054 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8736/0.875, allocations: 157.4 MB / 1.207 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK): time 0.002503/0.8776, allocations: 1.478 MB / 1.209 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00123/0.8788, allocations: 0.7361 MB / 1.209 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.938e-05/0.8789, allocations: 0 / 1.209 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.923e-05/0.879, allocations: 3.938 kB / 1.209 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.314e-05/0.879, allocations: 11.86 kB / 1.209 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000544/0.8796, allocations: 123.6 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.8797, allocations: 75.78 kB / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.997e-05/0.8798, allocations: 15.94 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.691e-05/0.8799, allocations: 43.84 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.553e-05/0.88, allocations: 39.89 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.88, allocations: 4 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001872/0.8802, allocations: 91.84 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.928e-05/0.8802, allocations: 23.91 kB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.477e-05/0.8803, allocations: 31.86 kB / 1.21 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002214/0.8805, allocations: 137.9 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.8805, allocations: 0 / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8805, allocations: 4 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.8805, allocations: 4 kB / 1.21 GB, free: 10.77 MB / 0.9356 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.0006003/0.8811, allocations: 420.9 kB / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.8812, allocations: 12.03 kB / 1.21 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.652e-05/0.8812, allocations: 34.75 kB / 1.21 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.543e-05/0.8813, allocations: 8.844 kB / 1.21 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.8814, allocations: 172.2 kB / 1.211 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.8814, allocations: 8.359 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.472e-05/0.8814, allocations: 4.375 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.8816, allocations: 77.77 kB / 1.211 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.8816, allocations: 0 / 1.211 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.8816, allocations: 0 / 1.211 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/0.8817, allocations: 4 kB / 1.211 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000131/0.8818, allocations: 35.97 kB / 1.211 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005738/0.8824, allocations: 320.7 kB / 1.211 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001223/0.8825, allocations: 42.56 kB / 1.211 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.004e-05/0.8826, allocations: 32.97 kB / 1.211 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.8826, allocations: 0 / 1.211 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001926/0.8828, allocations: 87.27 kB / 1.211 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.633e-06/0.8828, allocations: 4 kB / 1.211 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.000386/0.8832, allocations: 145.6 kB / 1.211 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/0.8833, allocations: 55.41 kB / 1.211 GB, free: 9.133 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.543e-05/0.8834, allocations: 122.1 kB / 1.212 GB, free: 9.004 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.8834, allocations: 29.64 kB / 1.212 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.836e-05/0.8834, allocations: 92.12 kB / 1.212 GB, free: 8.875 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.8835, allocations: 15.81 kB / 1.212 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.159e-05/0.8835, allocations: 33.7 kB / 1.212 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.198e-05/0.8836, allocations: 322.8 kB / 1.212 GB, free: 8.496 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.546e-05/0.8837, allocations: 23.98 kB / 1.212 GB, free: 8.473 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.215e-05/0.8838, allocations: 50.55 kB / 1.212 GB, free: 8.414 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001591/0.884, allocations: 78.48 kB / 1.212 GB, free: 8.328 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.884, allocations: 0 / 1.212 GB, free: 8.328 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002404/0.8842, allocations: 117.5 kB / 1.212 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.8843, allocations: 6.031 kB / 1.212 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.8843, allocations: 4 kB / 1.212 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.8843, allocations: 0 / 1.212 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.53e-05/0.8844, allocations: 11.98 kB / 1.212 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.8844, allocations: 8 kB / 1.212 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.924e-05/0.8845, allocations: 11.94 kB / 1.212 GB, free: 8.168 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.8845, allocations: 4 kB / 1.212 GB, free: 8.164 MB / 0.9356 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.321e-05/0.8846, allocations: 121.8 kB / 1.212 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.758e-05/0.8846, allocations: 7.906 kB / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.731e-05/0.8847, allocations: 12.38 kB / 1.212 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.8847, allocations: 0 / 1.212 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.8847, allocations: 0 / 1.212 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.8847, allocations: 4 kB / 1.212 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004429/0.8851, allocations: 378.4 kB / 1.213 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.8851, allocations: 0 / 1.213 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.262e-05/0.8852, allocations: 7.984 kB / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.8852, allocations: 0 / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.8852, allocations: 4 kB / 1.213 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.8852, allocations: 7.938 kB / 1.213 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.8852, allocations: 0 / 1.213 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002803/0.8855, allocations: 207.4 kB / 1.213 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.194e-05/0.8856, allocations: 89 kB / 1.213 GB, free: 7.238 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.842e-05/0.8856, allocations: 0 / 1.213 GB, free: 7.238 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.407e-05/0.8857, allocations: 15.88 kB / 1.213 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.876e-05/0.8857, allocations: 7.922 kB / 1.213 GB, free: 7.215 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-06/0.8858, allocations: 4 kB / 1.213 GB, free: 7.211 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.052e-05/0.8858, allocations: 91.27 kB / 1.213 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8858, allocations: 4 kB / 1.213 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003115/0.8861, allocations: 39.94 kB / 1.213 GB, free: 7.078 MB / 0.9356 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.0007304/0.8869, allocations: 0.8017 MB / 1.214 GB, free: 6.266 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002309/0.8871, allocations: 75.89 kB / 1.214 GB, free: 6.191 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.8871, allocations: 0 / 1.214 GB, free: 6.191 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.898e-05/0.8872, allocations: 39.91 kB / 1.214 GB, free: 6.152 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.8875, allocations: 11.94 kB / 1.214 GB, free: 6.141 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/0.8891, allocations: 1.489 MB / 1.216 GB, free: 4.555 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.8893, allocations: 0.6846 MB / 1.216 GB, free: 3.844 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.057e-05/0.8893, allocations: 15.97 kB / 1.216 GB, free: 3.828 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.535e-05/0.8894, allocations: 19.44 kB / 1.216 GB, free: 3.809 MB / 0.9356 GB Notification: Performance of SimCode: time 1.533e-06/0.8894, allocations: 0 / 1.216 GB, free: 3.809 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0184/0.9078, allocations: 2.685 MB / 1.219 GB, free: 1.273 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.724/8.632, allocations: 9.703 kB / 1.219 GB, free: 1.27 MB / 0.9356 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