Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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.Zhang2012WindowsEast,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.Zhang2012WindowsEast") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,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.Zhang2012WindowsEast") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006642/0.006642, allocations: 99.16 kB / 15.73 MB, free: 6.004 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.001466/0.001465, allocations: 193.1 kB / 16.67 MB, free: 5.93 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.746/2.746, allocations: 472.6 MB / 0.7453 GB, free: 0.4961 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 63.89 kB / 1.069 GB, free: 9.613 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8818/0.8831, allocations: 159.9 MB / 1.226 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.002884/0.886, allocations: 1.491 MB / 1.227 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001559/0.8876, allocations: 0.7371 MB / 1.228 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.57e-05/0.8877, allocations: 4 kB / 1.228 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 4.256e-05/0.8877, allocations: 7.922 kB / 1.228 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.859e-05/0.8878, allocations: 11.86 kB / 1.228 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006898/0.8885, allocations: 123.6 kB / 1.228 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001414/0.8887, allocations: 67.84 kB / 1.228 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.8888, allocations: 27.88 kB / 1.228 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.8889, allocations: 35.84 kB / 1.228 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.271e-05/0.889, allocations: 31.91 kB / 1.228 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.8891, allocations: 8 kB / 1.228 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002266/0.8893, allocations: 99.83 kB / 1.228 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.376e-05/0.8893, allocations: 19.92 kB / 1.228 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.478e-05/0.8894, allocations: 31.84 kB / 1.228 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002914/0.8897, allocations: 140.5 kB / 1.228 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.8897, allocations: 0 / 1.228 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.693e-06/0.8897, allocations: 0 / 1.228 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.035e-06/0.8897, allocations: 4 kB / 1.228 GB, free: 10.85 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.0008444/0.8906, allocations: 420.7 kB / 1.229 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.8907, allocations: 8.031 kB / 1.229 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.078e-05/0.8907, allocations: 8.891 kB / 1.229 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.8909, allocations: 176.3 kB / 1.229 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.8909, allocations: 384 / 1.229 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.206e-05/0.8909, allocations: 8.375 kB / 1.229 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001835/0.8911, allocations: 73.91 kB / 1.229 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.8911, allocations: 4 kB / 1.229 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.8911, allocations: 3.984 kB / 1.229 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.8912, allocations: 0 / 1.229 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001268/0.8913, allocations: 39.97 kB / 1.229 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006042/0.8919, allocations: 312.8 kB / 1.229 GB, free: 9.668 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000127/0.892, allocations: 54.48 kB / 1.229 GB, free: 9.605 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.724e-05/0.8921, allocations: 32.97 kB / 1.229 GB, free: 9.57 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.8921, allocations: 0 / 1.229 GB, free: 9.57 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00018/0.8923, allocations: 79.38 kB / 1.23 GB, free: 9.48 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.8923, allocations: 0 / 1.23 GB, free: 9.48 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0003929/0.8927, allocations: 137.5 kB / 1.23 GB, free: 9.34 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/0.8928, allocations: 63.47 kB / 1.23 GB, free: 9.266 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.762e-05/0.8929, allocations: 133.7 kB / 1.23 GB, free: 9.125 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.8929, allocations: 25.7 kB / 1.23 GB, free: 9.094 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.631e-05/0.893, allocations: 96.08 kB / 1.23 GB, free: 8.996 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.893, allocations: 7.906 kB / 1.23 GB, free: 8.988 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.951e-05/0.8931, allocations: 29.7 kB / 1.23 GB, free: 8.953 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.8932, allocations: 330.8 kB / 1.23 GB, free: 8.621 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.167e-05/0.8933, allocations: 31.92 kB / 1.23 GB, free: 8.59 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.923e-05/0.8934, allocations: 46.55 kB / 1.23 GB, free: 8.535 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.8935, allocations: 78.8 kB / 1.23 GB, free: 8.449 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.8935, allocations: 4 kB / 1.23 GB, free: 8.445 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002243/0.8938, allocations: 109.5 kB / 1.231 GB, free: 8.332 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.8938, allocations: 4 kB / 1.231 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.8938, allocations: 0 / 1.231 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.8938, allocations: 4 kB / 1.231 GB, free: 8.324 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.149e-05/0.8939, allocations: 11.98 kB / 1.231 GB, free: 8.312 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.8939, allocations: 0 / 1.231 GB, free: 8.312 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.42e-05/0.894, allocations: 8 kB / 1.231 GB, free: 8.305 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.894, allocations: 12.05 kB / 1.231 GB, free: 8.293 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.0001175/0.8941, allocations: 126.2 kB / 1.231 GB, free: 8.16 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.799e-05/0.8942, allocations: 7.953 kB / 1.231 GB, free: 8.152 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.354e-05/0.8942, allocations: 8.375 kB / 1.231 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.8942, allocations: 4 kB / 1.231 GB, free: 8.137 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.8942, allocations: 0 / 1.231 GB, free: 8.137 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.8942, allocations: 0 / 1.231 GB, free: 8.137 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004834/0.8947, allocations: 382.4 kB / 1.231 GB, free: 7.707 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.8947, allocations: 3.938 kB / 1.231 GB, free: 7.703 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.129e-05/0.8948, allocations: 11.98 kB / 1.231 GB, free: 7.691 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.8948, allocations: 0 / 1.231 GB, free: 7.691 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.8948, allocations: 0 / 1.231 GB, free: 7.691 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.8948, allocations: 0 / 1.231 GB, free: 7.691 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.8948, allocations: 7.938 kB / 1.231 GB, free: 7.684 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003132/0.8951, allocations: 207.5 kB / 1.231 GB, free: 7.465 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.138e-05/0.8952, allocations: 85.06 kB / 1.231 GB, free: 7.363 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.8952, allocations: 3.938 kB / 1.231 GB, free: 7.359 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.948e-05/0.8953, allocations: 11.98 kB / 1.231 GB, free: 7.348 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.939e-05/0.8954, allocations: 3.938 kB / 1.231 GB, free: 7.344 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.8954, allocations: 4 kB / 1.231 GB, free: 7.34 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.785e-05/0.8955, allocations: 91.27 kB / 1.232 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8955, allocations: 0 / 1.232 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003053/0.8958, allocations: 39.92 kB / 1.232 GB, free: 7.211 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.0004288/0.8962, allocations: 177.7 kB / 1.232 GB, free: 7.047 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002597/0.8965, allocations: 72.17 kB / 1.232 GB, free: 6.977 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.8965, allocations: 3.938 kB / 1.232 GB, free: 6.973 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.8966, allocations: 40.27 kB / 1.232 GB, free: 6.934 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.8969, allocations: 4.156 kB / 1.232 GB, free: 6.93 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000386/0.8973, allocations: 196.1 kB / 1.232 GB, free: 6.711 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002348/0.8975, allocations: 0.6846 MB / 1.233 GB, free: 6 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.711e-05/0.8976, allocations: 7.984 kB / 1.233 GB, free: 5.992 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.807e-05/0.8976, allocations: 15.44 kB / 1.233 GB, free: 5.977 MB / 0.9512 GB Notification: Performance of SimCode: time 1.603e-06/0.8976, allocations: 0 / 1.233 GB, free: 5.977 MB / 0.9512 GB Notification: Performance of Templates: time 0.004079/0.9017, allocations: 1.448 MB / 1.234 GB, free: 4.531 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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