Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest,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.Zhang2012WindowsWest") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,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.Zhang2012WindowsWest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001845/0.001845, allocations: 193.4 kB / 16.13 MB, free: 6.695 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.42/1.42, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.77/2.77, allocations: 461.8 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.001541, allocations: 64.02 kB / 0.8984 GB, free: 37.22 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3808/0.3824, allocations: 157.4 MB / 1.052 GB, free: 8.844 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002966/0.3854, allocations: 1.552 MB / 1.054 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001318/0.3867, allocations: 0.7516 MB / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.154e-05/0.3868, allocations: 0 / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.491e-05/0.3869, allocations: 7.922 kB / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.945e-05/0.3869, allocations: 7.938 kB / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005508/0.3875, allocations: 103.8 kB / 1.054 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001116/0.3876, allocations: 71.78 kB / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.3877, allocations: 11.97 kB / 1.055 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.987e-05/0.3878, allocations: 31.92 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.864e-05/0.3879, allocations: 35.83 kB / 1.055 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.825e-05/0.3879, allocations: 4 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002406/0.3882, allocations: 91.86 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.378e-05/0.3882, allocations: 15.91 kB / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.181e-05/0.3883, allocations: 31.86 kB / 1.055 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.3885, allocations: 139.9 kB / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.3885, allocations: 3.984 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.153e-06/0.3885, allocations: 0 / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.409e-06/0.3886, allocations: 0 / 1.055 GB, free: 5.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.0006877/0.3892, allocations: 413 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.3893, allocations: 8.031 kB / 1.055 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.361e-05/0.3894, allocations: 8.844 kB / 1.055 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.3895, allocations: 184.1 kB / 1.055 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.3895, allocations: 8.375 kB / 1.055 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/0.3896, allocations: 4.375 kB / 1.055 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001993/0.3898, allocations: 69.95 kB / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3898, allocations: 4 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.3898, allocations: 0 / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.3898, allocations: 4 kB / 1.056 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.39, allocations: 39.97 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006188/0.3906, allocations: 304.8 kB / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002009/0.3908, allocations: 62.44 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.376e-05/0.3909, allocations: 32.95 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.3909, allocations: 4 kB / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002196/0.3911, allocations: 71.38 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.442e-06/0.3911, allocations: 0 / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004762/0.3916, allocations: 153.5 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.095e-05/0.3917, allocations: 55.34 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.3918, allocations: 121.8 kB / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.3918, allocations: 29.7 kB / 1.056 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.436e-05/0.3919, allocations: 88.14 kB / 1.056 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.452e-05/0.3919, allocations: 19.75 kB / 1.056 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.676e-05/0.392, allocations: 25.7 kB / 1.057 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.3921, allocations: 326.8 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.55e-05/0.3922, allocations: 27.98 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.845e-05/0.3923, allocations: 43 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001586/0.3925, allocations: 78.48 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3925, allocations: 0 / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002415/0.3927, allocations: 117.5 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.3928, allocations: 8 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.3928, allocations: 0 / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.3928, allocations: 0 / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.3929, allocations: 11.98 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.3929, allocations: 4 kB / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.796e-05/0.393, allocations: 11.97 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.393, allocations: 7.922 kB / 1.057 GB, free: 3.426 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.0001007/0.3931, allocations: 125.7 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.398e-05/0.3931, allocations: 0 / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.773e-05/0.3932, allocations: 12.38 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.3932, allocations: 4 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3932, allocations: 0 / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.3932, allocations: 0 / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004834/0.3937, allocations: 394.2 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3937, allocations: 0 / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.115e-05/0.3937, allocations: 7.984 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.3937, allocations: 0 / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.3938, allocations: 4 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3938, allocations: 0 / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3938, allocations: 3.938 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003039/0.3941, allocations: 211.9 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.354e-05/0.3941, allocations: 81.11 kB / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.844e-05/0.3942, allocations: 0 / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.761e-05/0.3943, allocations: 4 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.521e-05/0.3943, allocations: 15.86 kB / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-06/0.3943, allocations: 0 / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.725e-05/0.3944, allocations: 95.42 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3944, allocations: 4 kB / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002964/0.3947, allocations: 43.98 kB / 1.058 GB, free: 2.34 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.0003557/0.395, allocations: 161.3 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003084/0.3954, allocations: 67.91 kB / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3954, allocations: 128 / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.3955, allocations: 43.91 kB / 1.058 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002524/0.3957, allocations: 6.062 kB / 1.058 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004209/0.3962, allocations: 198 kB / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.3965, allocations: 0.6936 MB / 1.059 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.085e-05/0.3965, allocations: 11.97 kB / 1.059 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.689e-05/0.3965, allocations: 11.44 kB / 1.059 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.3966, allocations: 0 / 1.059 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of Templates: time 0.003952/0.4005, allocations: 1.379 MB / 1.061 GB, free: 15.74 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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