Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.461/1.461, allocations: 289.8 MB / 297.1 MB, free: 6.691 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.001049/0.001049, allocations: 169.3 kB / 366.3 MB, free: 2.004 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.245/1.245, allocations: 205.2 MB / 0.6256 GB, free: 5.84 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008862/0.0008862, allocations: 86.7 kB / 0.7396 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.215e-06/8.436e-06, allocations: 0 / 0.859 GB, free: 13.39 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6795/0.6795, allocations: 116.3 MB / 0.9726 GB, free: 68.42 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1783/0.8579, allocations: 138.3 MB / 1.108 GB, free: 10.24 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.8582, allocations: 75.89 kB / 1.108 GB, free: 10.17 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.003249/0.8615, allocations: 0.8296 MB / 1.109 GB, free: 9.348 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 9.929e-06/0.8615, allocations: 0 / 1.109 GB, free: 9.348 MB / 0.7136 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.0004531/0.862, allocations: 370.3 kB / 1.109 GB, free: 8.941 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.862, allocations: 8.031 kB / 1.109 GB, free: 8.934 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.788e-05/0.8621, allocations: 11.91 kB / 1.109 GB, free: 8.922 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001957/0.8623, allocations: 194.8 kB / 1.109 GB, free: 8.691 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.8623, allocations: 4 kB / 1.109 GB, free: 8.688 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.448e-05/0.8623, allocations: 0.75 kB / 1.109 GB, free: 8.688 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001021/0.8624, allocations: 32 kB / 1.109 GB, free: 8.656 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.8625, allocations: 57.67 kB / 1.109 GB, free: 8.594 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.8626, allocations: 3.938 kB / 1.109 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.8626, allocations: 0.75 kB / 1.109 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.8626, allocations: 4 kB / 1.109 GB, free: 8.586 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005264/0.8631, allocations: 317.2 kB / 1.11 GB, free: 8.238 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.263e-05/0.8632, allocations: 38.56 kB / 1.11 GB, free: 8.191 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.666e-05/0.8632, allocations: 16.89 kB / 1.11 GB, free: 8.172 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.824e-05/0.8633, allocations: 4 kB / 1.11 GB, free: 8.168 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.8633, allocations: 34.56 kB / 1.11 GB, free: 8.125 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.8633, allocations: 0 / 1.11 GB, free: 8.125 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0002201/0.8636, allocations: 62.25 kB / 1.11 GB, free: 8.059 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/0.8636, allocations: 51.41 kB / 1.11 GB, free: 7.996 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.114e-05/0.8637, allocations: 106 kB / 1.11 GB, free: 7.887 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.8637, allocations: 25.7 kB / 1.11 GB, free: 7.855 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.62e-05/0.8637, allocations: 88.12 kB / 1.11 GB, free: 7.766 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.409e-05/0.8638, allocations: 15.75 kB / 1.11 GB, free: 7.75 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-06/0.8638, allocations: 0.6562 kB / 1.11 GB, free: 7.75 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.8639, allocations: 318.8 kB / 1.11 GB, free: 7.43 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.53e-05/0.8639, allocations: 8 kB / 1.11 GB, free: 7.422 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.057e-05/0.864, allocations: 15.98 kB / 1.11 GB, free: 7.406 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.224e-05/0.864, allocations: 16.12 kB / 1.11 GB, free: 7.391 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.864, allocations: 0 / 1.11 GB, free: 7.391 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001158/0.8642, allocations: 69.52 kB / 1.11 GB, free: 7.316 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.8642, allocations: 8.781 kB / 1.11 GB, free: 7.309 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.8642, allocations: 0 / 1.11 GB, free: 7.309 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.8642, allocations: 0 / 1.11 GB, free: 7.309 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.8644, allocations: 23.98 kB / 1.11 GB, free: 7.285 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.8644, allocations: 1.406 kB / 1.11 GB, free: 7.285 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.631e-05/0.8645, allocations: 23.98 kB / 1.11 GB, free: 7.262 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.118e-05/0.8645, allocations: 3.984 kB / 1.11 GB, free: 7.258 MB / 0.7136 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 () * 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.727e-05/0.8646, allocations: 104.9 kB / 1.11 GB, free: 7.148 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.772e-05/0.8646, allocations: 4 kB / 1.11 GB, free: 7.145 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000169/0.8648, allocations: 78.17 kB / 1.111 GB, free: 7.059 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.8648, allocations: 0 / 1.111 GB, free: 7.059 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.8648, allocations: 4 kB / 1.111 GB, free: 7.055 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.8648, allocations: 4 kB / 1.111 GB, free: 7.051 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.865, allocations: 154.2 kB / 1.111 GB, free: 6.863 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.865, allocations: 0 / 1.111 GB, free: 6.863 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.8651, allocations: 19.98 kB / 1.111 GB, free: 6.844 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.8651, allocations: 1.312 kB / 1.111 GB, free: 6.844 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.425e-06/0.8651, allocations: 4 kB / 1.111 GB, free: 6.84 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.8651, allocations: 0 / 1.111 GB, free: 6.84 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.8651, allocations: 7.906 kB / 1.111 GB, free: 6.832 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001559/0.8653, allocations: 155.4 kB / 1.111 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.628e-05/0.8653, allocations: 77.11 kB / 1.111 GB, free: 6.57 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.738e-05/0.8654, allocations: 0 / 1.111 GB, free: 6.57 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.8655, allocations: 19.98 kB / 1.111 GB, free: 6.551 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.105e-05/0.8655, allocations: 11.89 kB / 1.111 GB, free: 6.539 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.263e-06/0.8656, allocations: 0 / 1.111 GB, free: 6.539 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6.252e-05/0.8656, allocations: 98.16 kB / 1.111 GB, free: 6.445 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000209/0.8658, allocations: 8 kB / 1.111 GB, free: 6.438 MB / 0.7136 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 () * 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.0001866/0.866, allocations: 111.2 kB / 1.111 GB, free: 6.316 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.000101/0.8661, allocations: 27.98 kB / 1.111 GB, free: 6.289 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.8662, allocations: 1.5 kB / 1.111 GB, free: 6.289 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.688e-05/0.8662, allocations: 19.94 kB / 1.111 GB, free: 6.27 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000165/0.8664, allocations: 4 kB / 1.111 GB, free: 6.266 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002785/0.8667, allocations: 95.73 kB / 1.111 GB, free: 6.145 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002677/0.8669, allocations: 0.7032 MB / 1.112 GB, free: 5.418 MB / 0.7136 GB Notification: Performance of SimCode: time 2.31e-07/0.8669, allocations: 0 / 1.112 GB, free: 5.418 MB / 0.7136 GB Notification: Performance of Templates: time 0.002626/0.8696, allocations: 0.7024 MB / 1.113 GB, free: 4.746 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_8_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)