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/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5068/0.5068, allocations: 94.74 MB / 102 MB, free: 10.37 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00103/0.00103, allocations: 180.8 kB / 125.3 MB, free: 12 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.147/1.147, allocations: 170.5 MB / 319 MB, free: 9.355 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001591/0.001591, allocations: 111.3 kB / 381 MB, free: 18.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.155e-05/1.159e-05, allocations: 4.219 kB / 448.6 MB, free: 2.129 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1514, allocations: 61.52 MB / 0.4981 GB, free: 4.52 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3535/0.505, allocations: 93.12 MB / 0.5891 GB, free: 9.273 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/0.5053, allocations: 71.95 kB / 0.5891 GB, free: 9.203 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.003289/0.5086, allocations: 0.801 MB / 0.5899 GB, free: 8.441 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.5087, allocations: 0 / 0.5899 GB, free: 8.441 MB / 410.7 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.0004969/0.5092, allocations: 376.7 kB / 0.5903 GB, free: 8.035 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.5092, allocations: 9.031 kB / 0.5903 GB, free: 8.027 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.174e-05/0.5093, allocations: 12.95 kB / 0.5903 GB, free: 8.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.5095, allocations: 190.2 kB / 0.5905 GB, free: 7.797 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.5095, allocations: 4.906 kB / 0.5905 GB, free: 7.793 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/0.5095, allocations: 4 kB / 0.5905 GB, free: 7.789 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001136/0.5096, allocations: 32.48 kB / 0.5905 GB, free: 7.758 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.5098, allocations: 58.19 kB / 0.5906 GB, free: 7.695 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.5098, allocations: 3.984 kB / 0.5906 GB, free: 7.691 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.5098, allocations: 4 kB / 0.5906 GB, free: 7.688 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.5098, allocations: 0 / 0.5906 GB, free: 7.688 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005505/0.5104, allocations: 316.1 kB / 0.5909 GB, free: 7.344 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.638e-05/0.5105, allocations: 34.58 kB / 0.5909 GB, free: 7.301 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.88e-05/0.5105, allocations: 20.86 kB / 0.5909 GB, free: 7.277 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.032e-05/0.5106, allocations: 0 / 0.5909 GB, free: 7.277 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.5106, allocations: 38.59 kB / 0.591 GB, free: 7.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.5106, allocations: 0 / 0.591 GB, free: 7.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002482/0.5108, allocations: 57.77 kB / 0.591 GB, free: 7.168 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.5109, allocations: 56.06 kB / 0.5911 GB, free: 7.102 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.511, allocations: 105 kB / 0.5912 GB, free: 6.992 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.5111, allocations: 25.7 kB / 0.5912 GB, free: 6.961 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.482e-05/0.5111, allocations: 92.12 kB / 0.5913 GB, free: 6.867 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.5111, allocations: 11.75 kB / 0.5913 GB, free: 6.855 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.458e-06/0.5112, allocations: 0 / 0.5913 GB, free: 6.855 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.5113, allocations: 318.8 kB / 0.5916 GB, free: 6.535 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.887e-05/0.5113, allocations: 12 kB / 0.5916 GB, free: 6.523 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.244e-05/0.5113, allocations: 9.031 kB / 0.5916 GB, free: 6.516 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.516e-05/0.5114, allocations: 18.23 kB / 0.5916 GB, free: 6.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.5114, allocations: 0 / 0.5916 GB, free: 6.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001242/0.5115, allocations: 65.53 kB / 0.5917 GB, free: 6.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.5116, allocations: 9.406 kB / 0.5917 GB, free: 6.422 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.5116, allocations: 0 / 0.5917 GB, free: 6.422 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.5116, allocations: 4 kB / 0.5917 GB, free: 6.418 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.5118, allocations: 23.97 kB / 0.5917 GB, free: 6.395 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.5118, allocations: 2.625 kB / 0.5917 GB, free: 6.395 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.039e-05/0.5119, allocations: 19.98 kB / 0.5918 GB, free: 6.375 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.5119, allocations: 4 kB / 0.5918 GB, free: 6.371 MB / 410.7 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 () * 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 8.403e-05/0.512, allocations: 104.5 kB / 0.5919 GB, free: 6.266 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.737e-05/0.512, allocations: 3.906 kB / 0.5919 GB, free: 6.262 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000174/0.5122, allocations: 69.67 kB / 0.5919 GB, free: 6.184 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.5122, allocations: 3.938 kB / 0.5919 GB, free: 6.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.5122, allocations: 0 / 0.5919 GB, free: 6.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.5122, allocations: 11.89 kB / 0.592 GB, free: 6.168 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001578/0.5124, allocations: 146.2 kB / 0.5921 GB, free: 5.988 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.5124, allocations: 1.75 kB / 0.5921 GB, free: 5.988 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.5126, allocations: 35.97 kB / 0.5921 GB, free: 5.953 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.5126, allocations: 0 / 0.5921 GB, free: 5.953 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.5126, allocations: 0 / 0.5921 GB, free: 5.953 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.5126, allocations: 0 / 0.5921 GB, free: 5.953 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.5126, allocations: 0 / 0.5921 GB, free: 5.953 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001593/0.5128, allocations: 152.3 kB / 0.5923 GB, free: 5.789 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.082e-05/0.5128, allocations: 81.02 kB / 0.5924 GB, free: 5.691 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.5128, allocations: 11.98 kB / 0.5924 GB, free: 5.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.513, allocations: 15.98 kB / 0.5924 GB, free: 5.664 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.187e-05/0.513, allocations: 0 / 0.5924 GB, free: 5.664 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.513, allocations: 4 kB / 0.5924 GB, free: 5.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.833e-05/0.5131, allocations: 99.2 kB / 0.5925 GB, free: 5.562 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002131/0.5133, allocations: 11.91 kB / 0.5925 GB, free: 5.551 MB / 410.7 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 () * 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.0001762/0.5135, allocations: 103.2 kB / 0.5926 GB, free: 5.438 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001055/0.5136, allocations: 27.98 kB / 0.5926 GB, free: 5.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.5136, allocations: 0 / 0.5926 GB, free: 5.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.614e-05/0.5136, allocations: 20 kB / 0.5926 GB, free: 5.391 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001744/0.5138, allocations: 4 kB / 0.5926 GB, free: 5.387 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002862/0.5141, allocations: 102.7 kB / 0.5927 GB, free: 5.262 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002964/0.5144, allocations: 0.7032 MB / 0.5934 GB, free: 4.535 MB / 410.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5144, allocations: 0 / 0.5934 GB, free: 4.535 MB / 410.7 MB Notification: Performance of Templates: time 0.00291/0.5174, allocations: 0.7045 MB / 0.5941 GB, free: 3.867 MB / 410.7 MB make -j1 -f Buildings_1.6_Buildings.Utilities.Math.Examples.Average.makefile (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)