Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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 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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001207/0.001207, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001276/0.001276, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.363/1.363, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5669/0.5669, allocations: 95.57 MB / 365.9 MB, free: 10.41 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006006/0.0006007, allocations: 12 kB / 446.8 MB, free: 9.418 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.274, allocations: 70.34 MB / 0.505 GB, free: 16.51 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001481/0.2756, allocations: 1.204 MB / 0.5062 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000273/0.2759, allocations: 104.2 kB / 0.5063 GB, free: 15.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.681e-05/0.2759, allocations: 0 / 0.5063 GB, free: 15.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.2761, allocations: 7.922 kB / 0.5063 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.282e-05/0.2761, allocations: 11.92 kB / 0.5063 GB, free: 15.17 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002056/0.2763, allocations: 15.98 kB / 0.5063 GB, free: 15.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.858e-05/0.2764, allocations: 39.88 kB / 0.5063 GB, free: 15.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.2765, allocations: 23.98 kB / 0.5064 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.223e-05/0.2766, allocations: 15.98 kB / 0.5064 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.361e-05/0.2767, allocations: 23.86 kB / 0.5064 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.2767, allocations: 0 / 0.5064 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.077e-05/0.2768, allocations: 7.984 kB / 0.5064 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.891e-05/0.2768, allocations: 11.98 kB / 0.5064 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.763e-05/0.2768, allocations: 37.64 kB / 0.5065 GB, free: 14.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.596e-05/0.2769, allocations: 37.89 kB / 0.5065 GB, free: 14.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.2769, allocations: 0 / 0.5065 GB, free: 14.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.2769, allocations: 0 / 0.5065 GB, free: 14.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.2769, allocations: 4 kB / 0.5065 GB, free: 14.95 MB / 382.1 MB 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.0004771/0.2774, allocations: 387.1 kB / 0.5069 GB, free: 14.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.2775, allocations: 11.98 kB / 0.5069 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.35e-05/0.2775, allocations: 7.906 kB / 0.5069 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000142/0.2777, allocations: 179 kB / 0.5071 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.2777, allocations: 7.953 kB / 0.5071 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.857e-05/0.2777, allocations: 7.938 kB / 0.5071 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002834/0.278, allocations: 97.62 kB / 0.5072 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.278, allocations: 0 / 0.5072 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.278, allocations: 0 / 0.5072 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.2781, allocations: 8 kB / 0.5072 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002887/0.2783, allocations: 99.92 kB / 0.5073 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004705/0.2788, allocations: 336.6 kB / 0.5076 GB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001942/0.279, allocations: 66.53 kB / 0.5077 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.766e-05/0.2791, allocations: 7.984 kB / 0.5077 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.2791, allocations: 46.67 kB / 0.5077 GB, free: 13.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.2791, allocations: 0 / 0.5077 GB, free: 13.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005256/0.2796, allocations: 173.6 kB / 0.5079 GB, free: 13.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.558e-05/0.2797, allocations: 51.41 kB / 0.5079 GB, free: 13.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.459e-05/0.2797, allocations: 117.8 kB / 0.508 GB, free: 13.19 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.738e-06/0.2798, allocations: 29.7 kB / 0.5081 GB, free: 13.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.659e-05/0.2798, allocations: 92.12 kB / 0.5081 GB, free: 13.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.2798, allocations: 11.75 kB / 0.5082 GB, free: 13.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.629e-06/0.2798, allocations: 7.938 kB / 0.5082 GB, free: 13.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.026e-05/0.2799, allocations: 318.8 kB / 0.5085 GB, free: 12.72 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.28, allocations: 47.95 kB / 0.5085 GB, free: 12.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.2802, allocations: 43.95 kB / 0.5086 GB, free: 12.63 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001329/0.2803, allocations: 47.91 kB / 0.5086 GB, free: 12.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2803, allocations: 0 / 0.5086 GB, free: 12.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002973/0.2806, allocations: 129.6 kB / 0.5087 GB, free: 12.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.2807, allocations: 4 kB / 0.5087 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2807, allocations: 0 / 0.5087 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.2807, allocations: 0 / 0.5087 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.2808, allocations: 23.98 kB / 0.5088 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.2808, allocations: 0 / 0.5088 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.241e-05/0.2809, allocations: 15.98 kB / 0.5088 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.192e-05/0.2809, allocations: 7.984 kB / 0.5088 GB, free: 12.4 MB / 382.1 MB 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 6.206e-05/0.281, allocations: 117.8 kB / 0.5089 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.329e-05/0.281, allocations: 7.906 kB / 0.5089 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00035/0.2814, allocations: 137.4 kB / 0.509 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2814, allocations: 8 kB / 0.509 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.2814, allocations: 0 / 0.509 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.2814, allocations: 0 / 0.509 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001225/0.2815, allocations: 181.6 kB / 0.5092 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2816, allocations: 0 / 0.5092 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.768e-05/0.2816, allocations: 19.98 kB / 0.5092 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.2817, allocations: 0 / 0.5092 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.2817, allocations: 0 / 0.5092 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.2817, allocations: 0 / 0.5092 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2817, allocations: 4 kB / 0.5092 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003286/0.282, allocations: 231.3 kB / 0.5095 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.689e-05/0.2821, allocations: 81.11 kB / 0.5095 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.2821, allocations: 0 / 0.5095 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.2822, allocations: 23.91 kB / 0.5096 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.413e-05/0.2822, allocations: 0 / 0.5096 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.2822, allocations: 8 kB / 0.5096 GB, free: 11.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.331e-05/0.2823, allocations: 91.27 kB / 0.5096 GB, free: 11.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2823, allocations: 0 / 0.5096 GB, free: 11.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002189/0.2825, allocations: 15.91 kB / 0.5097 GB, free: 11.39 MB / 382.1 MB 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.0001202/0.2826, allocations: 99.25 kB / 0.5098 GB, free: 11.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003323/0.283, allocations: 99.91 kB / 0.5099 GB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.283, allocations: 0 / 0.5099 GB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.2831, allocations: 51.91 kB / 0.5099 GB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.2834, allocations: 19.88 kB / 0.5099 GB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002994/0.2837, allocations: 165.3 kB / 0.5101 GB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001294/0.2838, allocations: 0.6887 MB / 0.5108 GB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.83e-05/0.2839, allocations: 7.984 kB / 0.5108 GB, free: 10.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.116e-05/0.2839, allocations: 11.44 kB / 0.5108 GB, free: 10.19 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2839, allocations: 0 / 0.5108 GB, free: 10.19 MB / 382.1 MB Notification: Performance of Templates: time 0.002359/0.2863, allocations: 0.6093 MB / 0.5114 GB, free: 9.586 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Utilities.Math.Examples.Average.makefile Environment - environmentSimulation: (rm -f Buildings_1.6_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_1.6_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) Environment - environmentSimulation: