Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.01025/0.01025, allocations: 97.42 kB / 15.73 MB, free: 6.055 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.001995/0.001995, allocations: 195.7 kB / 16.68 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.529/1.529, 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 10.1.1-maint.10.0.x/package.mo): time 2.451/2.451, allocations: 437 MB / 0.7105 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 60.12 kB / 1.018 GB, free: 9.445 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8771/0.8783, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.002738/0.881, allocations: 1.504 MB / 1.168 GB, free: 2.371 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001322/0.8824, allocations: 0.7284 MB / 1.169 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.597e-05/0.8825, allocations: 4 kB / 1.169 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.356e-05/0.8825, allocations: 11.92 kB / 1.169 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.209e-05/0.8826, allocations: 7.875 kB / 1.169 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005708/0.8832, allocations: 119.6 kB / 1.169 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001274/0.8833, allocations: 71.78 kB / 1.169 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.8834, allocations: 15.98 kB / 1.169 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.17e-05/0.8835, allocations: 39.84 kB / 1.169 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.073e-05/0.8836, allocations: 39.83 kB / 1.169 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.019e-05/0.8836, allocations: 8 kB / 1.169 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002161/0.8838, allocations: 95.84 kB / 1.169 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.124e-05/0.8839, allocations: 19.97 kB / 1.169 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.7e-05/0.8839, allocations: 35.8 kB / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.8842, allocations: 135 kB / 1.169 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.8842, allocations: 4 kB / 1.169 GB, free: 1.047 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.273e-06/0.8842, allocations: 0 / 1.169 GB, free: 1.047 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.8842, allocations: 0 / 1.169 GB, free: 1.047 MB / 0.8887 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.0006279/0.8848, allocations: 421.8 kB / 1.17 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.8849, allocations: 12.03 kB / 1.17 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.69e-05/0.8849, allocations: 12.88 kB / 1.17 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.885, allocations: 172.3 kB / 1.17 GB, free: 360 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.8851, allocations: 4.375 kB / 1.17 GB, free: 356 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.573e-05/0.8851, allocations: 8.312 kB / 1.17 GB, free: 348 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.8853, allocations: 69.97 kB / 1.17 GB, free: 272 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.8853, allocations: 7.922 kB / 1.17 GB, free: 264 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.8853, allocations: 8 kB / 1.17 GB, free: 256 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.8853, allocations: 0 / 1.17 GB, free: 256 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001302/0.8855, allocations: 35.97 kB / 1.17 GB, free: 220 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006028/0.8861, allocations: 312.7 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.8862, allocations: 62.42 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.286e-05/0.8863, allocations: 32.97 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.8864, allocations: 0 / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001821/0.8865, allocations: 75.38 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.693e-06/0.8866, allocations: 0 / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0004049/0.887, allocations: 141.6 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.887, allocations: 59.41 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.594e-05/0.8871, allocations: 121.8 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.8871, allocations: 29.7 kB / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.887e-05/0.8872, allocations: 92.09 kB / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.054e-05/0.8872, allocations: 15.89 kB / 1.171 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-05/0.8873, allocations: 21.72 kB / 1.171 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.8874, allocations: 326.8 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.655e-05/0.8875, allocations: 31.98 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.346e-05/0.8876, allocations: 50.92 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/0.8878, allocations: 70.5 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.8878, allocations: 0 / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002448/0.888, allocations: 121.5 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.8881, allocations: 4 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.8881, allocations: 0 / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.8881, allocations: 4 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.812e-05/0.8882, allocations: 11.98 kB / 1.172 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.8882, allocations: 0 / 1.172 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.873e-05/0.8883, allocations: 11.92 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.8883, allocations: 4 kB / 1.172 GB, free: 14.5 MB / 0.9044 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.0001013/0.8884, allocations: 131 kB / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.902e-05/0.8884, allocations: 11.95 kB / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.576e-05/0.8885, allocations: 4.375 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.8885, allocations: 4 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.8885, allocations: 3.984 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.8885, allocations: 0 / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004638/0.889, allocations: 390.4 kB / 1.172 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.889, allocations: 4 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.042e-05/0.889, allocations: 4 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.889, allocations: 0 / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.8891, allocations: 0 / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.8891, allocations: 0 / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.8891, allocations: 7.875 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002888/0.8894, allocations: 212 kB / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.516e-05/0.8894, allocations: 89.06 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.8894, allocations: 0 / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.989e-05/0.8895, allocations: 3.984 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.708e-05/0.8896, allocations: 7.938 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.8896, allocations: 7.984 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.459e-05/0.8897, allocations: 91.28 kB / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8897, allocations: 3.938 kB / 1.173 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000322/0.89, allocations: 35.92 kB / 1.173 GB, free: 13.41 MB / 0.9044 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.0003595/0.8904, allocations: 165.3 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002491/0.8906, allocations: 75.89 kB / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.8907, allocations: 0 / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.8908, allocations: 31.98 kB / 1.173 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002644/0.891, allocations: 8.125 kB / 1.173 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000421/0.8915, allocations: 188.2 kB / 1.173 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.8918, allocations: 0.6923 MB / 1.174 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.993e-05/0.8918, allocations: 4 kB / 1.174 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.062e-05/0.8918, allocations: 15.38 kB / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of SimCode: time 2.51e-07/0.8918, allocations: 4 kB / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of Templates: time 0.00422/0.8961, allocations: 1.451 MB / 1.175 GB, free: 10.73 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.makefile (rm -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & ./Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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