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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001752/0.001752, allocations: 212.7 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.486/1.486, allocations: 230.6 MB / 256 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.287/3.287, allocations: 0.5107 GB / 0.8158 GB, free: 17.77 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00208/0.00208, allocations: 72.58 kB / 1.186 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3627, allocations: 181.9 MB / 1.364 GB, free: 13.52 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003483/0.3662, allocations: 1.552 MB / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0005115/0.3667, allocations: 111.7 kB / 1.365 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.12e-05/0.3668, allocations: 0 / 1.365 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001694/0.367, allocations: 7.875 kB / 1.365 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.855e-05/0.367, allocations: 3.938 kB / 1.365 GB, free: 11.83 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003856/0.3674, allocations: 43.94 kB / 1.366 GB, free: 11.79 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000129/0.3675, allocations: 47.84 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.3677, allocations: 23.92 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.88e-05/0.3677, allocations: 31.86 kB / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.036e-05/0.3678, allocations: 23.91 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.981e-05/0.3678, allocations: 4 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.841e-05/0.3679, allocations: 12 kB / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.266e-05/0.368, allocations: 19.91 kB / 1.366 GB, free: 11.63 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.917e-05/0.368, allocations: 15.92 kB / 1.366 GB, free: 11.61 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001759/0.3682, allocations: 67.69 kB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3682, allocations: 3.938 kB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.725e-06/0.3682, allocations: 0 / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.3682, allocations: 0 / 1.366 GB, free: 11.54 MB / 1.061 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.0005836/0.3688, allocations: 307.5 kB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.3688, allocations: 12.03 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.96e-05/0.3689, allocations: 12.88 kB / 1.366 GB, free: 11.19 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.3691, allocations: 126.4 kB / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.984e-06/0.3691, allocations: 4.375 kB / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.9e-05/0.3691, allocations: 4.375 kB / 1.366 GB, free: 11.03 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002828/0.3694, allocations: 86.14 kB / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.3694, allocations: 4.188 kB / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.3694, allocations: 7.938 kB / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.3694, allocations: 3.984 kB / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003099/0.3697, allocations: 75.92 kB / 1.366 GB, free: 10.85 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000503/0.3702, allocations: 260.3 kB / 1.367 GB, free: 10.57 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002049/0.3704, allocations: 62.53 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.3706, allocations: 36.92 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 4.504e-05/0.3706, allocations: 3.984 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.3707, allocations: 42.5 kB / 1.367 GB, free: 10.4 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.3707, allocations: 0 / 1.367 GB, free: 10.4 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0005667/0.3712, allocations: 137.6 kB / 1.367 GB, free: 10.26 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.3713, allocations: 51.41 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.3714, allocations: 121.8 kB / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.3714, allocations: 25.7 kB / 1.367 GB, free: 10.04 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.281e-05/0.3715, allocations: 96.08 kB / 1.367 GB, free: 9.941 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.634e-05/0.3715, allocations: 15.84 kB / 1.367 GB, free: 9.926 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.914e-05/0.3716, allocations: 13.72 kB / 1.367 GB, free: 9.906 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.3717, allocations: 322.8 kB / 1.368 GB, free: 9.582 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.3719, allocations: 39.91 kB / 1.368 GB, free: 9.543 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001483/0.372, allocations: 35.95 kB / 1.368 GB, free: 9.508 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002761/0.3723, allocations: 68.78 kB / 1.368 GB, free: 9.438 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3723, allocations: 0 / 1.368 GB, free: 9.438 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003335/0.3726, allocations: 109.5 kB / 1.368 GB, free: 9.324 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.3726, allocations: 4 kB / 1.368 GB, free: 9.32 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.3726, allocations: 0 / 1.368 GB, free: 9.32 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.3727, allocations: 0 / 1.368 GB, free: 9.32 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.3728, allocations: 19.98 kB / 1.368 GB, free: 9.301 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3728, allocations: 0 / 1.368 GB, free: 9.301 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.734e-05/0.3729, allocations: 15.98 kB / 1.368 GB, free: 9.285 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.3729, allocations: 0 / 1.368 GB, free: 9.285 MB / 1.061 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.608e-05/0.373, allocations: 121.8 kB / 1.368 GB, free: 9.156 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.77e-05/0.373, allocations: 7.953 kB / 1.368 GB, free: 9.148 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003953/0.3734, allocations: 113.9 kB / 1.368 GB, free: 9.02 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3734, allocations: 8.031 kB / 1.368 GB, free: 9.012 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.3734, allocations: 4 kB / 1.368 GB, free: 9.008 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.3734, allocations: 0 / 1.368 GB, free: 9.008 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000159/0.3736, allocations: 129.2 kB / 1.368 GB, free: 8.852 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3736, allocations: 0 / 1.368 GB, free: 8.852 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.285e-05/0.3737, allocations: 15.97 kB / 1.368 GB, free: 8.836 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3737, allocations: 0 / 1.368 GB, free: 8.836 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.3737, allocations: 7.938 kB / 1.368 GB, free: 8.828 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3737, allocations: 0 / 1.368 GB, free: 8.828 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3737, allocations: 0 / 1.368 GB, free: 8.828 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003891/0.3741, allocations: 207.4 kB / 1.368 GB, free: 8.609 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.064e-05/0.3741, allocations: 4 kB / 1.368 GB, free: 8.605 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.3741, allocations: 0 / 1.368 GB, free: 8.605 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.3742, allocations: 11.92 kB / 1.368 GB, free: 8.594 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.315e-05/0.3743, allocations: 7.984 kB / 1.368 GB, free: 8.586 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.3743, allocations: 0 / 1.368 GB, free: 8.586 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.923e-05/0.3743, allocations: 95.27 kB / 1.368 GB, free: 8.492 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3743, allocations: 4 kB / 1.368 GB, free: 8.488 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002302/0.3746, allocations: 15.95 kB / 1.369 GB, free: 8.473 MB / 1.061 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.0001402/0.3747, allocations: 91.25 kB / 1.369 GB, free: 8.375 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003643/0.3751, allocations: 71.92 kB / 1.369 GB, free: 8.305 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3751, allocations: 0 / 1.369 GB, free: 8.305 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001595/0.3752, allocations: 47.89 kB / 1.369 GB, free: 8.258 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.3755, allocations: 11.94 kB / 1.369 GB, free: 8.246 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003719/0.3759, allocations: 157.3 kB / 1.369 GB, free: 8.066 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.655e-05/0.376, allocations: 71.34 kB / 1.369 GB, free: 7.977 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.261e-05/0.376, allocations: 7.984 kB / 1.369 GB, free: 7.969 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.093e-05/0.376, allocations: 11.44 kB / 1.369 GB, free: 7.957 MB / 1.061 GB Notification: Performance of SimCode: time 3.11e-07/0.376, allocations: 4 kB / 1.369 GB, free: 7.953 MB / 1.061 GB Notification: Performance of Templates: time 0.003499/0.3795, allocations: 0.8407 MB / 1.37 GB, free: 7.129 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.813785107806325]