Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Average.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 199.9 kB / 16.79 MB, free: 6.828 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.309/1.309, allocations: 222.9 MB / 240.5 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.7/2.7, allocations: 461.8 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 61.14 kB / 0.899 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3563, allocations: 157.4 MB / 1.053 GB, free: 8.328 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003247/0.3595, allocations: 1.605 MB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004/0.36, allocations: 115.7 kB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.052e-05/0.3601, allocations: 4 kB / 1.054 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.3602, allocations: 11.92 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.581e-05/0.3603, allocations: 3.938 kB / 1.054 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002298/0.3605, allocations: 27.97 kB / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.3606, allocations: 55.78 kB / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.3607, allocations: 23.91 kB / 1.055 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.826e-05/0.3608, allocations: 27.89 kB / 1.055 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.406e-05/0.3609, allocations: 23.92 kB / 1.055 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.946e-05/0.3609, allocations: 4 kB / 1.055 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.851e-05/0.361, allocations: 11.98 kB / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.367e-05/0.361, allocations: 15.92 kB / 1.055 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.816e-05/0.3611, allocations: 19.88 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001078/0.3612, allocations: 39.92 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.3612, allocations: 0 / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.52e-07/0.3612, allocations: 7.938 kB / 1.055 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.3612, allocations: 0 / 1.055 GB, free: 6.32 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005912/0.3618, allocations: 383.6 kB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.3619, allocations: 11.97 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.075e-05/0.3619, allocations: 4.938 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001818/0.3621, allocations: 188.2 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.254e-06/0.3621, allocations: 4.312 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.672e-05/0.3622, allocations: 4.375 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002959/0.3625, allocations: 90.19 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.3625, allocations: 192 / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.3625, allocations: 7.938 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.3625, allocations: 0 / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002967/0.3628, allocations: 79.86 kB / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005698/0.3634, allocations: 324.7 kB / 1.056 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001995/0.3636, allocations: 62.56 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.3638, allocations: 44.91 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.83e-05/0.3638, allocations: 0 / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.3638, allocations: 38.56 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 8.52e-07/0.3638, allocations: 0 / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.000548/0.3644, allocations: 137.5 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.3644, allocations: 59.28 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.081e-05/0.3645, allocations: 121.7 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.3646, allocations: 29.7 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.994e-05/0.3646, allocations: 88.08 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.29e-05/0.3647, allocations: 15.81 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.965e-05/0.3647, allocations: 17.7 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.3648, allocations: 322.8 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.365, allocations: 31.95 kB / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.3651, allocations: 31.97 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002706/0.3654, allocations: 81.05 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3654, allocations: 0 / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003225/0.3657, allocations: 105.5 kB / 1.057 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.3657, allocations: 8 kB / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.3658, allocations: 0 / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.3658, allocations: 0 / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.3659, allocations: 27.97 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.3659, allocations: 0 / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.747e-05/0.366, allocations: 7.984 kB / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.366, allocations: 4 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 8.902e-05/0.3661, allocations: 117.8 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.661e-05/0.3662, allocations: 3.906 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003633/0.3665, allocations: 117.5 kB / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3665, allocations: 3.938 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3665, allocations: 0 / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.3666, allocations: 0 / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001711/0.3667, allocations: 181.5 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3667, allocations: 4 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.758e-05/0.3668, allocations: 11.98 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3669, allocations: 0 / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.659e-06/0.3669, allocations: 7.984 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.3669, allocations: 4 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.3669, allocations: 0 / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003686/0.3673, allocations: 203.3 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.397e-05/0.3673, allocations: 81.09 kB / 1.058 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.3673, allocations: 4 kB / 1.058 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.3675, allocations: 15.98 kB / 1.058 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.595e-05/0.3675, allocations: 3.984 kB / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.3675, allocations: 4 kB / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.407e-05/0.3676, allocations: 87.28 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3676, allocations: 0 / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002287/0.3678, allocations: 15.84 kB / 1.058 GB, free: 2.855 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001461/0.368, allocations: 119.1 kB / 1.058 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003248/0.3683, allocations: 71.92 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3683, allocations: 4 kB / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.3685, allocations: 35.95 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.3688, allocations: 13.88 kB / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003635/0.3691, allocations: 189.2 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/0.3694, allocations: 0.6926 MB / 1.059 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.312e-05/0.3694, allocations: 15.38 kB / 1.059 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of SimCode: time 5.61e-07/0.3694, allocations: 4 kB / 1.059 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of Templates: time 0.002518/0.372, allocations: 0.9261 MB / 1.06 GB, free: 0.7305 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches