Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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.Office.Windows.Validation.Herkel2008WindowsSmall,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001091, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001182/0.001182, allocations: 196.8 kB / 16.14 MB, free: 6.719 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.406/1.406, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.818/2.818, allocations: 461.9 MB / 0.7342 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 63.72 kB / 0.8984 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3397, allocations: 157.4 MB / 1.052 GB, free: 8.816 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.002938/0.3426, allocations: 1.564 MB / 1.054 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001281/0.344, allocations: 0.7399 MB / 1.054 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.846e-05/0.344, allocations: 3.938 kB / 1.054 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.873e-05/0.3441, allocations: 7.984 kB / 1.054 GB, free: 6.48 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.618e-05/0.3441, allocations: 11.92 kB / 1.054 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004938/0.3446, allocations: 99.77 kB / 1.054 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000112/0.3447, allocations: 71.78 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.981e-05/0.3449, allocations: 11.98 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.878e-05/0.3449, allocations: 35.84 kB / 1.055 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.501e-05/0.345, allocations: 35.89 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.3451, allocations: 0 / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001836/0.3452, allocations: 95.84 kB / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.582e-05/0.3453, allocations: 15.92 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.767e-05/0.3453, allocations: 31.84 kB / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002197/0.3456, allocations: 139.9 kB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.3456, allocations: 0 / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.32e-07/0.3456, allocations: 0 / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.049e-06/0.3456, allocations: 0 / 1.055 GB, free: 5.941 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.0006722/0.3463, allocations: 409 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.3463, allocations: 12.03 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.485e-05/0.3464, allocations: 12.83 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.3465, allocations: 172.2 kB / 1.055 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.606e-05/0.3466, allocations: 16.25 kB / 1.055 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.3466, allocations: 4.375 kB / 1.055 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.3468, allocations: 69.95 kB / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.3468, allocations: 4 kB / 1.056 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.3468, allocations: 4 kB / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3468, allocations: 0 / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001407/0.347, allocations: 39.97 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006887/0.3477, allocations: 316.7 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.3478, allocations: 54.48 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.631e-05/0.3479, allocations: 36.97 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.348, allocations: 0 / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.3482, allocations: 71.38 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.3482, allocations: 0 / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004253/0.3486, allocations: 141.5 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.3487, allocations: 55.48 kB / 1.056 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.3488, allocations: 125.8 kB / 1.056 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.3488, allocations: 33.7 kB / 1.056 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.641e-05/0.3489, allocations: 88.12 kB / 1.056 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.359e-05/0.3489, allocations: 23.73 kB / 1.056 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.828e-05/0.349, allocations: 21.72 kB / 1.057 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3491, allocations: 326.8 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.292e-05/0.3492, allocations: 23.98 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.23e-05/0.3493, allocations: 54.55 kB / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.3494, allocations: 70.8 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3495, allocations: 4 kB / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002412/0.3497, allocations: 117.5 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.3497, allocations: 8 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3497, allocations: 0 / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.3498, allocations: 0 / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.3499, allocations: 11.98 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.3499, allocations: 4 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.923e-05/0.35, allocations: 11.89 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.672e-05/0.35, allocations: 4 kB / 1.057 GB, free: 3.395 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 0.0001146/0.3501, allocations: 132.9 kB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.75e-05/0.3501, allocations: 4 kB / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.72e-05/0.3502, allocations: 4.375 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.3502, allocations: 0 / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3502, allocations: 0 / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3502, allocations: 3.984 kB / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004742/0.3507, allocations: 394.2 kB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.145e-06/0.3507, allocations: 4 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.117e-05/0.3507, allocations: 8 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.3507, allocations: 0 / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.3508, allocations: 0 / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3508, allocations: 0 / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.3508, allocations: 3.938 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002975/0.3511, allocations: 215.4 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.074e-05/0.3511, allocations: 77.11 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.3512, allocations: 4 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.243e-05/0.3513, allocations: 11.92 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.688e-05/0.3513, allocations: 7.938 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.3513, allocations: 3.984 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.797e-05/0.3514, allocations: 99.22 kB / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3514, allocations: 0 / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002952/0.3517, allocations: 39.98 kB / 1.058 GB, free: 2.305 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.0003473/0.3521, allocations: 157.9 kB / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002447/0.3523, allocations: 76.11 kB / 1.058 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3523, allocations: 0 / 1.058 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.616e-05/0.3524, allocations: 36.14 kB / 1.058 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002612/0.3527, allocations: 4 kB / 1.058 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004096/0.3531, allocations: 198.3 kB / 1.059 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002749/0.3534, allocations: 0.6897 MB / 1.059 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.936e-05/0.3534, allocations: 11.92 kB / 1.059 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.738e-05/0.3535, allocations: 11.44 kB / 1.059 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.3535, allocations: 0 / 1.059 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of Templates: time 0.003969/0.3575, allocations: 1.369 MB / 1.061 GB, free: 15.72 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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