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: translateModel(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK") translateModel(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006245/0.006245, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.471/1.471, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.92/2.92, allocations: 462.7 MB / 0.7364 GB, free: 284 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003888/0.0003889, allocations: 8.625 kB / 0.9028 GB, free: 36.7 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3768/0.3772, allocations: 159.6 MB / 1.059 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK): time 0.001779/0.379, allocations: 1.209 MB / 1.06 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001316/0.3803, allocations: 0.7283 MB / 1.061 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.348e-05/0.3804, allocations: 0 / 1.061 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.241e-05/0.3804, allocations: 7.922 kB / 1.061 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.157e-05/0.3805, allocations: 7.938 kB / 1.061 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005267/0.381, allocations: 103.8 kB / 1.061 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001325/0.3812, allocations: 67.83 kB / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.834e-05/0.3813, allocations: 15.98 kB / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.306e-05/0.3814, allocations: 27.86 kB / 1.061 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.226e-05/0.3814, allocations: 39.83 kB / 1.061 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.3815, allocations: 4 kB / 1.061 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001895/0.3817, allocations: 91.91 kB / 1.061 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.493e-05/0.3817, allocations: 15.92 kB / 1.061 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.853e-05/0.3818, allocations: 49.56 kB / 1.061 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002173/0.382, allocations: 139.8 kB / 1.061 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.382, allocations: 0 / 1.061 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.455e-06/0.382, allocations: 4 kB / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.857e-06/0.382, allocations: 0 / 1.061 GB, free: 2.973 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.0006489/0.3827, allocations: 405.1 kB / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.3827, allocations: 8.031 kB / 1.061 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.446e-05/0.3828, allocations: 8.844 kB / 1.062 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.3829, allocations: 180.2 kB / 1.062 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.603e-05/0.383, allocations: 8.375 kB / 1.062 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.708e-05/0.383, allocations: 384 / 1.062 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002134/0.3832, allocations: 73.97 kB / 1.062 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.3832, allocations: 3.938 kB / 1.062 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.3833, allocations: 0 / 1.062 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.3833, allocations: 4 kB / 1.062 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000143/0.3834, allocations: 51.91 kB / 1.062 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006458/0.3841, allocations: 316.7 kB / 1.062 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001406/0.3842, allocations: 50.56 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.214e-05/0.3843, allocations: 40.97 kB / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.3844, allocations: 3.984 kB / 1.062 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002191/0.3846, allocations: 83.39 kB / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.3846, allocations: 0 / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004678/0.3851, allocations: 145.6 kB / 1.062 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.3851, allocations: 55.41 kB / 1.062 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.3853, allocations: 125.7 kB / 1.063 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.3853, allocations: 37.69 kB / 1.063 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.637e-05/0.3854, allocations: 84.14 kB / 1.063 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.383e-05/0.3854, allocations: 19.75 kB / 1.063 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.842e-05/0.3854, allocations: 17.7 kB / 1.063 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.3856, allocations: 318.8 kB / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.416e-05/0.3857, allocations: 47.84 kB / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.585e-05/0.3858, allocations: 46.56 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.386, allocations: 82.53 kB / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.386, allocations: 0 / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002528/0.3862, allocations: 117.5 kB / 1.063 GB, free: 448 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.3863, allocations: 8 kB / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.3863, allocations: 0 / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.3863, allocations: 3.938 kB / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.116e-05/0.3864, allocations: 20 kB / 1.063 GB, free: 416 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.3864, allocations: 3.984 kB / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.721e-05/0.3865, allocations: 4 kB / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.3865, allocations: 4 kB / 1.063 GB, free: 404 kB / 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 0.0001113/0.3866, allocations: 121.8 kB / 1.063 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.543e-05/0.3867, allocations: 7.906 kB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.117e-05/0.3867, allocations: 12.36 kB / 1.064 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.3867, allocations: 4 kB / 1.064 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.3867, allocations: 3.984 kB / 1.064 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.3867, allocations: 0 / 1.064 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004938/0.3872, allocations: 394.7 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3872, allocations: 0 / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.839e-05/0.3873, allocations: 4 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3873, allocations: 4 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.3873, allocations: 3.984 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3873, allocations: 80 / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3873, allocations: 7.922 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003628/0.3877, allocations: 215.4 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.358e-05/0.3877, allocations: 89.02 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.3878, allocations: 3.984 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.696e-05/0.3879, allocations: 4 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.232e-05/0.3879, allocations: 11.92 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.665e-06/0.3879, allocations: 0 / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.114e-05/0.388, allocations: 99.27 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.388, allocations: 0 / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002872/0.3883, allocations: 36 kB / 1.064 GB, free: 15.29 MB / 0.8262 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.0003534/0.3886, allocations: 164.2 kB / 1.065 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003134/0.389, allocations: 79.89 kB / 1.065 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.389, allocations: 0 / 1.065 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.3891, allocations: 44.03 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.3894, allocations: 15.92 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004163/0.3898, allocations: 203.2 kB / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.3901, allocations: 0.6926 MB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.669e-05/0.3901, allocations: 4 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.003e-05/0.3902, allocations: 15.42 kB / 1.066 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of SimCode: time 3.9e-07/0.3902, allocations: 0 / 1.066 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of Templates: time 0.004717/0.3949, allocations: 1.367 MB / 1.067 GB, free: 12.68 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.makefile (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 & ./Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0