Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_10_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.001102/0.001105, 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.001104/0.001104, allocations: 200.4 kB / 16.79 MB, free: 6.809 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.377/1.377, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.678/2.678, allocations: 437 MB / 0.7106 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 59.91 kB / 0.8692 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6593/0.6607, allocations: 151.6 MB / 1.017 GB, free: 2.832 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003276/0.664, allocations: 1.601 MB / 1.019 GB, free: 1.223 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0004244/0.6645, allocations: 112.5 kB / 1.019 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.477e-05/0.6646, allocations: 0 / 1.019 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.6647, allocations: 3.938 kB / 1.019 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.509e-05/0.6648, allocations: 11.92 kB / 1.019 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002537/0.6651, allocations: 27.97 kB / 1.019 GB, free: 1.066 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001104/0.6652, allocations: 55.78 kB / 1.019 GB, free: 1.012 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.6653, allocations: 19.98 kB / 1.019 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.7e-05/0.6654, allocations: 23.92 kB / 1.019 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.345e-05/0.6655, allocations: 31.89 kB / 1.019 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.459e-05/0.6655, allocations: 4 kB / 1.019 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.76e-05/0.6656, allocations: 12 kB / 1.019 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 5.56e-05/0.6657, allocations: 15.92 kB / 1.019 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.515e-05/0.6657, allocations: 27.8 kB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001413/0.6659, allocations: 31.95 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.6659, allocations: 0 / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.643e-06/0.6659, allocations: 0 / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.795e-06/0.6659, allocations: 0 / 1.019 GB, free: 0.8477 MB / 0.7637 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.0008039/0.6667, allocations: 393.1 kB / 1.02 GB, free: 424 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.588e-05/0.6668, allocations: 8.031 kB / 1.02 GB, free: 416 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.517e-05/0.6669, allocations: 8.938 kB / 1.02 GB, free: 408 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002577/0.6671, allocations: 188.2 kB / 1.02 GB, free: 180 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.6672, allocations: 8.312 kB / 1.02 GB, free: 172 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.6672, allocations: 4.375 kB / 1.02 GB, free: 168 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000338/0.6675, allocations: 86.2 kB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.6676, allocations: 4.188 kB / 1.02 GB, free: 72 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.6676, allocations: 3.938 kB / 1.02 GB, free: 68 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.6676, allocations: 0 / 1.02 GB, free: 68 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003593/0.668, allocations: 79.91 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006997/0.6687, allocations: 328.6 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002356/0.6689, allocations: 62.53 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.6691, allocations: 44.95 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.827e-05/0.6691, allocations: 7.984 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.6692, allocations: 34.56 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.6692, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0006167/0.6698, allocations: 137.5 kB / 1.021 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.6699, allocations: 51.41 kB / 1.021 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.67, allocations: 125.8 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.67, allocations: 25.7 kB / 1.021 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.285e-05/0.6701, allocations: 88.12 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.836e-05/0.6701, allocations: 15.75 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.892e-05/0.6702, allocations: 17.72 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.6703, allocations: 322.8 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001455/0.6705, allocations: 39.91 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.6706, allocations: 31.95 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.6709, allocations: 72.78 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.6709, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003169/0.6712, allocations: 101.9 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.6713, allocations: 10.34 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.6713, allocations: 7.922 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.6713, allocations: 0 / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.6714, allocations: 15.98 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.6714, allocations: 0 / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.041e-05/0.6715, allocations: 15.98 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.499e-05/0.6716, allocations: 7.938 kB / 1.021 GB, free: 14.32 MB / 0.7794 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 9.756e-05/0.6717, allocations: 118.3 kB / 1.022 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.93e-05/0.6717, allocations: 7.906 kB / 1.022 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003927/0.6721, allocations: 113.5 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.6721, allocations: 0 / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.6721, allocations: 3.984 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.6721, allocations: 0 / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001838/0.6723, allocations: 181.6 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.6723, allocations: 0 / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.592e-05/0.6724, allocations: 11.98 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.6724, allocations: 0 / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.6725, allocations: 8 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.6725, allocations: 0 / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.6725, allocations: 3.938 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003746/0.6729, allocations: 207.3 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.596e-05/0.6729, allocations: 77.11 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.6729, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.673, allocations: 23.92 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.268e-05/0.6731, allocations: 7.984 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.375e-06/0.6731, allocations: 0 / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.758e-05/0.6732, allocations: 91.27 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6732, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002349/0.6734, allocations: 8 kB / 1.022 GB, free: 13.38 MB / 0.7794 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.0001565/0.6736, allocations: 103.2 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003537/0.6739, allocations: 87.84 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.325e-05/0.674, allocations: 0 / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.6741, allocations: 35.97 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.6745, allocations: 3.984 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004115/0.6749, allocations: 200.4 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.6752, allocations: 0.6887 MB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.565e-05/0.6752, allocations: 11.44 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of SimCode: time 6.81e-07/0.6752, allocations: 0 / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of Templates: time 0.002839/0.6781, allocations: 0.9267 MB / 1.024 GB, free: 11.27 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches