Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.866/1.866, allocations: 288.4 MB / 303.4 MB, free: 8.035 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001315/0.001316, allocations: 185.3 kB / 372 MB, free: 10.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.906/1.906, allocations: 205.4 MB / 0.6307 GB, free: 10.03 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000865/0.000865, allocations: 90.3 kB / 0.7441 GB, free: 5.941 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004171/0.0004172, allocations: 12.62 kB / 0.867 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2859, allocations: 115.3 MB / 0.9796 GB, free: 27.69 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001809/0.2878, allocations: 1.238 MB / 0.9808 GB, free: 26.43 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0003666/0.2882, allocations: 104.6 kB / 0.9809 GB, free: 26.33 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.385e-05/0.2883, allocations: 3.938 kB / 0.9809 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.2884, allocations: 7.922 kB / 0.9809 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 2.874e-05/0.2884, allocations: 7.938 kB / 0.9809 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002654/0.2887, allocations: 27.89 kB / 0.9809 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.049e-05/0.2888, allocations: 51.84 kB / 0.981 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.289, allocations: 15.98 kB / 0.981 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.675e-05/0.289, allocations: 23.86 kB / 0.981 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.782e-05/0.2891, allocations: 19.92 kB / 0.981 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.915e-05/0.2891, allocations: 0 / 0.981 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.584e-05/0.2892, allocations: 15.98 kB / 0.9811 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.741e-05/0.2893, allocations: 15.91 kB / 0.9811 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.232e-05/0.2893, allocations: 33.7 kB / 0.9811 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001023/0.2894, allocations: 35.94 kB / 0.9811 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2894, allocations: 0 / 0.9811 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.984e-06/0.2894, allocations: 0 / 0.9811 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.2894, allocations: 0 / 0.9811 GB, free: 26.07 MB / 0.6198 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.0005688/0.29, allocations: 383.4 kB / 0.9815 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.2901, allocations: 16.02 kB / 0.9815 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.198e-05/0.2901, allocations: 3.906 kB / 0.9815 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002023/0.2903, allocations: 190.8 kB / 0.9817 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.2904, allocations: 4 kB / 0.9817 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.2904, allocations: 0 / 0.9817 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002971/0.2907, allocations: 97.64 kB / 0.9818 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.2907, allocations: 0 / 0.9818 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.2907, allocations: 11.98 kB / 0.9818 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.2907, allocations: 0 / 0.9818 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003068/0.2911, allocations: 99.86 kB / 0.9819 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005032/0.2916, allocations: 340.7 kB / 0.9822 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000201/0.2918, allocations: 74.56 kB / 0.9823 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.2919, allocations: 52.91 kB / 0.9824 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.265e-05/0.292, allocations: 4 kB / 0.9824 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.958e-05/0.292, allocations: 34.56 kB / 0.9824 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.382e-06/0.292, allocations: 0 / 0.9824 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0005578/0.2926, allocations: 165.5 kB / 0.9825 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/0.2926, allocations: 51.41 kB / 0.9826 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.495e-05/0.2927, allocations: 125.8 kB / 0.9827 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.2927, allocations: 25.7 kB / 0.9827 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.97e-05/0.2928, allocations: 99.98 kB / 0.9828 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.796e-05/0.2928, allocations: 3.906 kB / 0.9828 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-06/0.2928, allocations: 0 / 0.9828 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.075e-05/0.2929, allocations: 322.8 kB / 0.9831 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001448/0.293, allocations: 43.97 kB / 0.9832 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.2932, allocations: 51.89 kB / 0.9832 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.2933, allocations: 48.23 kB / 0.9833 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2933, allocations: 0 / 0.9833 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000306/0.2937, allocations: 125.5 kB / 0.9834 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.2937, allocations: 8 kB / 0.9834 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.2937, allocations: 3.938 kB / 0.9834 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.2937, allocations: 0 / 0.9834 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.2938, allocations: 31.92 kB / 0.9834 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.2939, allocations: 0 / 0.9834 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.998e-05/0.2939, allocations: 15.98 kB / 0.9835 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.247e-05/0.294, allocations: 0 / 0.9835 GB, free: 23.46 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.643e-05/0.2941, allocations: 117.8 kB / 0.9836 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.656e-05/0.2941, allocations: 11.89 kB / 0.9836 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003845/0.2945, allocations: 141.5 kB / 0.9837 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.2945, allocations: 0 / 0.9837 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.2945, allocations: 3.953 kB / 0.9837 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.2945, allocations: 4 kB / 0.9837 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.2947, allocations: 173.6 kB / 0.9839 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.2947, allocations: 0 / 0.9839 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.356e-05/0.2948, allocations: 23.97 kB / 0.9839 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.2948, allocations: 0 / 0.9839 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.2948, allocations: 0 / 0.9839 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2948, allocations: 4 kB / 0.9839 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2948, allocations: 0 / 0.9839 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003499/0.2952, allocations: 227.4 kB / 0.9841 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.851e-05/0.2952, allocations: 81.02 kB / 0.9842 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.2952, allocations: 4 kB / 0.9842 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.2953, allocations: 11.98 kB / 0.9842 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.893e-05/0.2954, allocations: 15.98 kB / 0.9842 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-06/0.2954, allocations: 0 / 0.9842 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.518e-05/0.2954, allocations: 91.27 kB / 0.9843 GB, free: 22.47 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2954, allocations: 0 / 0.9843 GB, free: 22.47 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002093/0.2957, allocations: 19.89 kB / 0.9844 GB, free: 22.45 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001589/0.2958, allocations: 95.25 kB / 0.9844 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003867/0.2962, allocations: 99.86 kB / 0.9845 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.2962, allocations: 0 / 0.9845 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001612/0.2964, allocations: 55.95 kB / 0.9846 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.2967, allocations: 10.19 kB / 0.9846 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003727/0.2971, allocations: 169.4 kB / 0.9848 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001753/0.2973, allocations: 0.6926 MB / 0.9854 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.842e-05/0.2973, allocations: 7.984 kB / 0.9854 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.732e-05/0.2974, allocations: 11.44 kB / 0.9855 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of SimCode: time 2.3e-07/0.2974, allocations: 0 / 0.9855 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of Templates: time 0.002808/0.3002, allocations: 0.6161 MB / 0.9861 GB, free: 20.64 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)