Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_11_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.007701/0.007701, allocations: 102.1 kB / 15.73 MB, free: 6.062 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.001657/0.001657, allocations: 196.4 kB / 16.68 MB, free: 5.973 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.68/2.68, allocations: 469.8 MB / 0.7425 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 67.89 kB / 1.065 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9003/0.9023, allocations: 159.1 MB / 1.221 GB, free: 2.109 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002579/0.9049, allocations: 1.538 MB / 1.222 GB, free: 0.5664 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.000348/0.9053, allocations: 119.7 kB / 1.222 GB, free: 460 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.109e-05/0.9053, allocations: 4 kB / 1.222 GB, free: 456 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001243/0.9054, allocations: 7.922 kB / 1.222 GB, free: 448 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.448e-05/0.9055, allocations: 7.875 kB / 1.222 GB, free: 440 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002253/0.9057, allocations: 27.97 kB / 1.222 GB, free: 412 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.9058, allocations: 59.78 kB / 1.222 GB, free: 352 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.9059, allocations: 19.97 kB / 1.222 GB, free: 332 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.547e-05/0.906, allocations: 27.91 kB / 1.222 GB, free: 304 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.297e-05/0.906, allocations: 23.92 kB / 1.222 GB, free: 280 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.616e-05/0.9061, allocations: 4 kB / 1.222 GB, free: 276 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.02e-05/0.9061, allocations: 15.98 kB / 1.222 GB, free: 260 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.144e-05/0.9062, allocations: 15.92 kB / 1.222 GB, free: 244 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.893e-05/0.9062, allocations: 27.88 kB / 1.222 GB, free: 216 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001404/0.9063, allocations: 60.3 kB / 1.223 GB, free: 160 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.9063, allocations: 3.984 kB / 1.223 GB, free: 156 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.412e-06/0.9063, allocations: 0 / 1.223 GB, free: 156 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.9064, allocations: 3.938 kB / 1.223 GB, free: 152 kB / 0.9356 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.00053/0.9069, allocations: 375.2 kB / 1.223 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.9069, allocations: 8.031 kB / 1.223 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.246e-05/0.9069, allocations: 12.88 kB / 1.223 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.9071, allocations: 196.1 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.868e-06/0.9071, allocations: 4.375 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.273e-05/0.9071, allocations: 384 / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002621/0.9074, allocations: 86.2 kB / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.9074, allocations: 192 / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.9074, allocations: 7.938 kB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.9074, allocations: 0 / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002803/0.9077, allocations: 87.84 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004743/0.9082, allocations: 320.7 kB / 1.224 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001852/0.9084, allocations: 62.56 kB / 1.224 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.9085, allocations: 44.91 kB / 1.224 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.829e-05/0.9085, allocations: 7.984 kB / 1.224 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.9086, allocations: 30.56 kB / 1.224 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.403e-06/0.9086, allocations: 0 / 1.224 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.000526/0.9091, allocations: 133.6 kB / 1.224 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.075e-05/0.9091, allocations: 51.41 kB / 1.224 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.279e-05/0.9092, allocations: 125.7 kB / 1.224 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.9092, allocations: 25.7 kB / 1.224 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.77e-05/0.9093, allocations: 96.02 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.039e-05/0.9093, allocations: 11.95 kB / 1.224 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.411e-05/0.9093, allocations: 17.72 kB / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.9094, allocations: 322.8 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.9096, allocations: 31.97 kB / 1.224 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001217/0.9097, allocations: 31.95 kB / 1.225 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000259/0.91, allocations: 80.78 kB / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.91, allocations: 0 / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002937/0.9102, allocations: 105.6 kB / 1.225 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.9103, allocations: 8 kB / 1.225 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.347e-06/0.9103, allocations: 0 / 1.225 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.9103, allocations: 3.938 kB / 1.225 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.9104, allocations: 20.31 kB / 1.225 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.9104, allocations: 0 / 1.225 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.04e-05/0.9105, allocations: 11.92 kB / 1.225 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.896e-05/0.9105, allocations: 7.984 kB / 1.225 GB, free: 13.64 MB / 0.9512 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.454e-05/0.9106, allocations: 118.3 kB / 1.225 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.503e-05/0.9106, allocations: 3.953 kB / 1.225 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003415/0.9109, allocations: 121.5 kB / 1.225 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.9109, allocations: 0 / 1.225 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.9109, allocations: 0 / 1.225 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.9109, allocations: 0 / 1.225 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001625/0.9111, allocations: 181.6 kB / 1.225 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.9111, allocations: 0 / 1.225 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.224e-05/0.9112, allocations: 19.92 kB / 1.225 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.9112, allocations: 4 kB / 1.225 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.9112, allocations: 4 kB / 1.225 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.9112, allocations: 0 / 1.225 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.9112, allocations: 0 / 1.225 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003351/0.9115, allocations: 203.4 kB / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.66e-05/0.9116, allocations: 81.11 kB / 1.225 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.9116, allocations: 0 / 1.225 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.9117, allocations: 15.97 kB / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.811e-05/0.9117, allocations: 7.938 kB / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.9117, allocations: 0 / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.926e-05/0.9118, allocations: 91.27 kB / 1.226 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of sort global known variables: time 8.1e-08/0.9118, allocations: 0 / 1.226 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002222/0.912, allocations: 15.94 kB / 1.226 GB, free: 12.68 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: 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.0001281/0.9121, allocations: 111.1 kB / 1.226 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003157/0.9125, allocations: 75.91 kB / 1.226 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.9125, allocations: 0 / 1.226 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.9126, allocations: 31.97 kB / 1.226 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/0.9129, allocations: 15.98 kB / 1.226 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003199/0.9132, allocations: 153.3 kB / 1.226 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.9134, allocations: 0.6885 MB / 1.227 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.034e-05/0.9135, allocations: 19.92 kB / 1.227 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.294e-05/0.9135, allocations: 7.438 kB / 1.227 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of SimCode: time 2.9e-07/0.9135, allocations: 0 / 1.227 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of Templates: time 0.002755/0.9162, allocations: 0.7689 MB / 1.227 GB, free: 10.76 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches