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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.006495/0.006495, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.001516/0.001516, allocations: 190.6 kB / 16.67 MB, free: 5.969 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.649/2.649, allocations: 472.6 MB / 0.7453 GB, free: 500 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 67.89 kB / 1.069 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.007/1.009, allocations: 159.9 MB / 1.226 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002653/1.012, allocations: 1.496 MB / 1.227 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001262/1.013, allocations: 0.7294 MB / 1.228 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.597e-05/1.013, allocations: 4 kB / 1.228 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.636e-05/1.013, allocations: 7.875 kB / 1.228 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.157e-05/1.013, allocations: 3.938 kB / 1.228 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006144/1.014, allocations: 123.6 kB / 1.228 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001256/1.014, allocations: 79.7 kB / 1.228 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/1.014, allocations: 19.95 kB / 1.228 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.015e-05/1.014, allocations: 31.91 kB / 1.228 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.458e-05/1.015, allocations: 39.83 kB / 1.228 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.278e-05/1.015, allocations: 8 kB / 1.228 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002026/1.015, allocations: 95.84 kB / 1.228 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.298e-05/1.015, allocations: 23.91 kB / 1.228 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.647e-05/1.015, allocations: 27.86 kB / 1.228 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002627/1.015, allocations: 144.1 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/1.015, allocations: 0 / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.744e-06/1.015, allocations: 0 / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.157e-05/1.015, allocations: 3.938 kB / 1.228 GB, free: 10.66 MB / 0.9512 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.000702/1.016, allocations: 428.6 kB / 1.229 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/1.016, allocations: 8.031 kB / 1.229 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.679e-05/1.016, allocations: 8.891 kB / 1.229 GB, free: 10.17 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/1.016, allocations: 168.3 kB / 1.229 GB, free: 9.969 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.888e-05/1.016, allocations: 4.375 kB / 1.229 GB, free: 9.965 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.042e-05/1.016, allocations: 8.375 kB / 1.229 GB, free: 9.957 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/1.016, allocations: 73.95 kB / 1.229 GB, free: 9.879 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/1.016, allocations: 3.984 kB / 1.229 GB, free: 9.875 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/1.016, allocations: 3.984 kB / 1.229 GB, free: 9.871 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/1.016, allocations: 4 kB / 1.229 GB, free: 9.867 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/1.017, allocations: 35.92 kB / 1.229 GB, free: 9.832 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006209/1.017, allocations: 324.6 kB / 1.229 GB, free: 9.465 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000117/1.017, allocations: 42.56 kB / 1.229 GB, free: 9.414 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.805e-05/1.017, allocations: 32.97 kB / 1.229 GB, free: 9.379 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/1.017, allocations: 0 / 1.229 GB, free: 9.379 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002014/1.018, allocations: 87.31 kB / 1.23 GB, free: 9.281 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/1.018, allocations: 0 / 1.23 GB, free: 9.281 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0003932/1.018, allocations: 141.6 kB / 1.23 GB, free: 9.137 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/1.018, allocations: 59.39 kB / 1.23 GB, free: 9.066 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/1.018, allocations: 125.7 kB / 1.23 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/1.018, allocations: 25.7 kB / 1.23 GB, free: 8.902 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.517e-05/1.018, allocations: 96.12 kB / 1.23 GB, free: 8.805 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.583e-05/1.018, allocations: 11.91 kB / 1.23 GB, free: 8.793 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.268e-05/1.018, allocations: 33.7 kB / 1.23 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001293/1.019, allocations: 318.8 kB / 1.23 GB, free: 8.434 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.684e-05/1.019, allocations: 27.97 kB / 1.23 GB, free: 8.406 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.835e-05/1.019, allocations: 46.5 kB / 1.23 GB, free: 8.352 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000148/1.019, allocations: 78.55 kB / 1.23 GB, free: 8.266 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/1.019, allocations: 0 / 1.23 GB, free: 8.266 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002169/1.019, allocations: 113.5 kB / 1.231 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/1.019, allocations: 4 kB / 1.231 GB, free: 8.145 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/1.019, allocations: 4 kB / 1.231 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/1.019, allocations: 0 / 1.231 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.622e-05/1.019, allocations: 12 kB / 1.231 GB, free: 8.129 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/1.019, allocations: 7.984 kB / 1.231 GB, free: 8.121 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.45e-05/1.019, allocations: 11.94 kB / 1.231 GB, free: 8.109 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/1.019, allocations: 7.938 kB / 1.231 GB, free: 8.102 MB / 0.9512 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.0001083/1.019, allocations: 118.3 kB / 1.231 GB, free: 7.977 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.688e-05/1.019, allocations: 7.953 kB / 1.231 GB, free: 7.969 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.441e-05/1.02, allocations: 12.36 kB / 1.231 GB, free: 7.953 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/1.02, allocations: 8 kB / 1.231 GB, free: 7.945 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/1.02, allocations: 7.938 kB / 1.231 GB, free: 7.938 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/1.02, allocations: 0 / 1.231 GB, free: 7.938 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004415/1.02, allocations: 378.4 kB / 1.231 GB, free: 7.512 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/1.02, allocations: 0 / 1.231 GB, free: 7.512 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.694e-05/1.02, allocations: 8 kB / 1.231 GB, free: 7.504 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/1.02, allocations: 0 / 1.231 GB, free: 7.504 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/1.02, allocations: 3.984 kB / 1.231 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/1.02, allocations: 4 kB / 1.231 GB, free: 7.496 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.02, allocations: 3.938 kB / 1.231 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002982/1.02, allocations: 207.4 kB / 1.231 GB, free: 7.273 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.058e-05/1.02, allocations: 85.06 kB / 1.231 GB, free: 7.172 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.282e-05/1.02, allocations: 7.984 kB / 1.231 GB, free: 7.164 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.23e-05/1.021, allocations: 4 kB / 1.231 GB, free: 7.16 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.213e-05/1.021, allocations: 7.922 kB / 1.231 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/1.021, allocations: 4 kB / 1.231 GB, free: 7.148 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.039e-05/1.021, allocations: 95.27 kB / 1.232 GB, free: 7.055 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.11e-07/1.021, allocations: 0 / 1.232 GB, free: 7.055 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003044/1.021, allocations: 35.94 kB / 1.232 GB, free: 7.02 MB / 0.9512 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.0003792/1.021, allocations: 168.4 kB / 1.232 GB, free: 6.863 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002437/1.022, allocations: 79.88 kB / 1.232 GB, free: 6.785 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/1.022, allocations: 0 / 1.232 GB, free: 6.785 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.91e-05/1.022, allocations: 35.98 kB / 1.232 GB, free: 6.75 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/1.022, allocations: 11.92 kB / 1.232 GB, free: 6.738 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004206/1.022, allocations: 196.1 kB / 1.232 GB, free: 6.52 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/1.023, allocations: 0.6925 MB / 1.233 GB, free: 5.801 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.808e-05/1.023, allocations: 4 kB / 1.233 GB, free: 5.797 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.528e-05/1.023, allocations: 11.44 kB / 1.233 GB, free: 5.785 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/1.023, allocations: 0 / 1.233 GB, free: 5.785 MB / 0.9512 GB Notification: Performance of Templates: time 0.004286/1.027, allocations: 1.448 MB / 1.234 GB, free: 4.34 MB / 0.9512 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