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.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.001896/0.001896, allocations: 83.69 kB / 20.23 MB, free: 4.188 MB / 18.57 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.002005/0.002005, allocations: 157.3 kB / 23.55 MB, free: 0.875 MB / 18.57 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.549/1.549, allocations: 177.1 MB / 203.9 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.938/2.938, allocations: 359 MB / 0.6048 GB, free: 10.95 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Average") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 0.7864 GB, free: 12.8 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.621e-05/2.805e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.79 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.004153/0.004181, allocations: 1.557 MB / 0.7879 GB, free: 11.24 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.000461/0.004642, allocations: 124.1 kB / 0.788 GB, free: 11.12 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.17e-05/0.004694, allocations: 1 kB / 0.788 GB, free: 11.12 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001492/0.004843, allocations: 11.86 kB / 0.788 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.508e-05/0.004888, allocations: 4.969 kB / 0.788 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002923/0.00518, allocations: 35.89 kB / 0.7881 GB, free: 11.07 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001603/0.00534, allocations: 55.83 kB / 0.7881 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.005458, allocations: 17.39 kB / 0.7881 GB, free: 11 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.005572, allocations: 31.91 kB / 0.7882 GB, free: 10.97 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 9.471e-05/0.005667, allocations: 23.95 kB / 0.7882 GB, free: 10.95 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.086e-05/0.005698, allocations: 9.062 kB / 0.7882 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 8.63e-05/0.005784, allocations: 15.98 kB / 0.7882 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.989e-05/0.005844, allocations: 15.92 kB / 0.7882 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 4.474e-05/0.005889, allocations: 13.5 kB / 0.7882 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002025/0.006091, allocations: 63.78 kB / 0.7883 GB, free: 10.83 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.006094, allocations: 0 / 0.7883 GB, free: 10.83 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.52e-07/0.006095, allocations: 4 kB / 0.7883 GB, free: 10.83 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.006099, allocations: 0 / 0.7883 GB, free: 10.83 MB / 0.7448 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.0007625/0.006861, allocations: 405.9 kB / 0.7887 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.006904, allocations: 8.031 kB / 0.7887 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.51e-05/0.006969, allocations: 12.89 kB / 0.7887 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.007217, allocations: 124.6 kB / 0.7888 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.00723, allocations: 2.688 kB / 0.7888 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.007247, allocations: 4.375 kB / 0.7888 GB, free: 10.22 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002915/0.007538, allocations: 62.23 kB / 0.7889 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.007551, allocations: 192 / 0.7889 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.007567, allocations: 8.312 kB / 0.7889 GB, free: 10.15 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.007571, allocations: 1 kB / 0.7889 GB, free: 10.15 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002997/0.007871, allocations: 49.55 kB / 0.789 GB, free: 10.1 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007507/0.008621, allocations: 311.6 kB / 0.7893 GB, free: 9.762 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002401/0.008862, allocations: 51.86 kB / 0.7893 GB, free: 9.699 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.009026, allocations: 32.42 kB / 0.7893 GB, free: 9.664 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 5.116e-05/0.009078, allocations: 11.97 kB / 0.7893 GB, free: 9.652 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.681e-05/0.009124, allocations: 38.77 kB / 0.7894 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.009126, allocations: 0 / 0.7894 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0006058/0.009731, allocations: 96.03 kB / 0.7895 GB, free: 9.508 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.009791, allocations: 55.41 kB / 0.7895 GB, free: 9.441 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002135/0.01, allocations: 185.9 kB / 0.7897 GB, free: 9.242 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.024e-05/0.01004, allocations: 25.7 kB / 0.7897 GB, free: 9.211 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.01016, allocations: 138.8 kB / 0.7899 GB, free: 9.07 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.571e-05/0.0102, allocations: 15.89 kB / 0.7899 GB, free: 9.055 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.605e-05/0.01026, allocations: 20.09 kB / 0.7899 GB, free: 9.027 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0003595/0.01062, allocations: 0.4884 MB / 0.7904 GB, free: 8.527 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.01077, allocations: 20.52 kB / 0.7904 GB, free: 8.508 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.0109, allocations: 17.64 kB / 0.7904 GB, free: 8.492 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.01118, allocations: 51.64 kB / 0.7905 GB, free: 8.438 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.01118, allocations: 0.6562 kB / 0.7905 GB, free: 8.438 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000356/0.01154, allocations: 78.86 kB / 0.7905 GB, free: 8.355 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.01156, allocations: 8 kB / 0.7905 GB, free: 8.348 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.01156, allocations: 0 / 0.7905 GB, free: 8.348 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.01158, allocations: 1.156 kB / 0.7905 GB, free: 8.348 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.01171, allocations: 11.98 kB / 0.7906 GB, free: 8.336 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.01171, allocations: 0 / 0.7906 GB, free: 8.336 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.3e-05/0.0118, allocations: 9.312 kB / 0.7906 GB, free: 8.328 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.01182, allocations: 7.984 kB / 0.7906 GB, free: 8.32 MB / 0.7448 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 0.0001666/0.01199, allocations: 156.6 kB / 0.7907 GB, free: 8.156 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.879e-05/0.01205, allocations: 13.64 kB / 0.7907 GB, free: 8.145 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003956/0.01245, allocations: 81.59 kB / 0.7908 GB, free: 8.059 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.01245, allocations: 0 / 0.7908 GB, free: 8.059 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.01245, allocations: 4.719 kB / 0.7908 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.01246, allocations: 0 / 0.7908 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000275/0.01273, allocations: 133.5 kB / 0.7909 GB, free: 7.891 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.01274, allocations: 4 kB / 0.7909 GB, free: 7.887 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001202/0.01286, allocations: 17.55 kB / 0.791 GB, free: 7.871 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.306e-06/0.01287, allocations: 3.938 kB / 0.791 GB, free: 7.867 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.01288, allocations: 3.938 kB / 0.791 GB, free: 7.863 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.01288, allocations: 0 / 0.791 GB, free: 7.863 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01288, allocations: 1.031 kB / 0.791 GB, free: 7.863 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000479/0.01336, allocations: 223.9 kB / 0.7912 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.832e-05/0.01338, allocations: 11.67 kB / 0.7912 GB, free: 7.617 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.0134, allocations: 0 / 0.7912 GB, free: 7.617 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.01352, allocations: 4 kB / 0.7912 GB, free: 7.613 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.068e-05/0.01359, allocations: 15.92 kB / 0.7912 GB, free: 7.598 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.0136, allocations: 0 / 0.7912 GB, free: 7.598 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001361/0.01374, allocations: 135.2 kB / 0.7913 GB, free: 7.465 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.21e-07/0.01374, allocations: 0 / 0.7913 GB, free: 7.465 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004234/0.01416, allocations: 15.95 kB / 0.7914 GB, free: 7.449 MB / 0.7448 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.0001971/0.01436, allocations: 93.69 kB / 0.7914 GB, free: 7.352 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003827/0.01474, allocations: 63.62 kB / 0.7915 GB, free: 7.285 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.01475, allocations: 0 / 0.7915 GB, free: 7.285 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001768/0.01492, allocations: 32.58 kB / 0.7915 GB, free: 7.25 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004158/0.01534, allocations: 7.938 kB / 0.7915 GB, free: 7.242 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000539/0.01588, allocations: 162.7 kB / 0.7917 GB, free: 7.055 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000125/0.016, allocations: 76.86 kB / 0.7918 GB, free: 6.961 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 6.294e-05/0.01607, allocations: 10.8 kB / 0.7918 GB, free: 6.953 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.428e-05/0.01612, allocations: 16.5 kB / 0.7918 GB, free: 6.938 MB / 0.7448 GB Notification: Performance of SimCode: time 7.12e-07/0.01612, allocations: 0 / 0.7918 GB, free: 6.938 MB / 0.7448 GB Notification: Performance of Templates: time 0.005455/0.02158, allocations: 0.8122 MB / 0.7926 GB, free: 6.152 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.Average.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 240] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.877077347016893]