Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.Average.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.175/2.175, allocations: 253.1 MB / 260.4 MB, free: 7.582 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001633/0.001633, allocations: 190 kB / 319.6 MB, free: 3.285 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.092/2.092, allocations: 205.4 MB / 0.5704 GB, free: 15 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00126/0.001259, allocations: 90.56 kB / 0.6746 GB, free: 4.359 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.404e-05/1.417e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2139/0.2139, allocations: 106.2 MB / 0.888 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.623/0.8369, allocations: 131.9 MB / 1.017 GB, free: 6.352 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003812/0.8374, allocations: 76 kB / 1.017 GB, free: 6.309 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.007327/0.8448, allocations: 0.8272 MB / 1.018 GB, free: 5.594 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.922e-05/0.8448, allocations: 3.828 kB / 1.018 GB, free: 5.594 MB / 0.6355 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.000909/0.8458, allocations: 377.2 kB / 1.018 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/0.8458, allocations: 12.03 kB / 1.018 GB, free: 5.172 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.436e-05/0.8459, allocations: 3.906 kB / 1.018 GB, free: 5.168 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003196/0.8463, allocations: 190.5 kB / 1.018 GB, free: 4.945 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/0.8463, allocations: 0 / 1.018 GB, free: 4.945 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.715e-05/0.8463, allocations: 0 / 1.018 GB, free: 4.945 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002307/0.8466, allocations: 34.55 kB / 1.018 GB, free: 4.922 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.8468, allocations: 56.36 kB / 1.018 GB, free: 4.867 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.8469, allocations: 4.844 kB / 1.018 GB, free: 4.863 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.698e-05/0.8469, allocations: 3.906 kB / 1.018 GB, free: 4.859 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.8469, allocations: 7.938 kB / 1.018 GB, free: 4.852 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.8481, allocations: 314.4 kB / 1.019 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001456/0.8483, allocations: 33.89 kB / 1.019 GB, free: 4.488 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.894e-05/0.8484, allocations: 15.8 kB / 1.019 GB, free: 4.477 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 7.575e-05/0.8485, allocations: 12.11 kB / 1.019 GB, free: 4.465 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.889e-05/0.8486, allocations: 30.56 kB / 1.019 GB, free: 4.426 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 5.901e-06/0.8486, allocations: 0 / 1.019 GB, free: 4.426 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.000425/0.849, allocations: 67.09 kB / 1.019 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.8492, allocations: 51.41 kB / 1.019 GB, free: 4.301 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.8493, allocations: 107.4 kB / 1.019 GB, free: 4.195 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.8494, allocations: 29.7 kB / 1.019 GB, free: 4.16 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.063e-05/0.8495, allocations: 88.05 kB / 1.019 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.48e-05/0.8495, allocations: 11.59 kB / 1.019 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.768e-06/0.8496, allocations: 4 kB / 1.019 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000178/0.8498, allocations: 314.8 kB / 1.019 GB, free: 3.742 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.893e-05/0.8499, allocations: 10.69 kB / 1.019 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.212e-05/0.8499, allocations: 11.75 kB / 1.019 GB, free: 3.73 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001508/0.8501, allocations: 15.75 kB / 1.019 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.156e-06/0.8501, allocations: 3.906 kB / 1.019 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002992/0.8505, allocations: 68.23 kB / 1.02 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.992e-05/0.8505, allocations: 4 kB / 1.02 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.8505, allocations: 0 / 1.02 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.8506, allocations: 0 / 1.02 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000351/0.8509, allocations: 23.97 kB / 1.02 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.851, allocations: 7.906 kB / 1.02 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002715/0.8513, allocations: 19.98 kB / 1.02 GB, free: 3.594 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.202e-05/0.8513, allocations: 0 / 1.02 GB, free: 3.594 MB / 0.6355 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 0.0001166/0.8514, allocations: 104.9 kB / 1.02 GB, free: 3.484 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.3e-05/0.8515, allocations: 11.91 kB / 1.02 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000391/0.8519, allocations: 75.91 kB / 1.02 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.852, allocations: 0 / 1.02 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.852, allocations: 3.062 kB / 1.02 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.852, allocations: 0 / 1.02 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003184/0.8523, allocations: 153.2 kB / 1.02 GB, free: 3.223 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.8524, allocations: 0 / 1.02 GB, free: 3.223 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003255/0.8527, allocations: 27.97 kB / 1.02 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.8527, allocations: 0 / 1.02 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.8528, allocations: 0 / 1.02 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.103e-06/0.8528, allocations: 4 kB / 1.02 GB, free: 3.191 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.8528, allocations: 0 / 1.02 GB, free: 3.191 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005325/0.8533, allocations: 153.1 kB / 1.02 GB, free: 3.035 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.989e-05/0.8534, allocations: 89 kB / 1.02 GB, free: 2.93 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.386e-05/0.8535, allocations: 0 / 1.02 GB, free: 2.93 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003317/0.8538, allocations: 15.98 kB / 1.02 GB, free: 2.914 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.908e-05/0.8539, allocations: 11.42 kB / 1.02 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.854, allocations: 0 / 1.02 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of sort global known variables: time 9.978e-05/0.8541, allocations: 89.91 kB / 1.02 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0005575/0.8546, allocations: 11.94 kB / 1.02 GB, free: 2.809 MB / 0.6355 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.0002415/0.8549, allocations: 99.19 kB / 1.02 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002216/0.8552, allocations: 37.48 kB / 1.02 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.8552, allocations: 0 / 1.02 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.8553, allocations: 15.81 kB / 1.02 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003403/0.8557, allocations: 7.156 kB / 1.02 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005562/0.8563, allocations: 109.7 kB / 1.021 GB, free: 2.531 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004392/0.8567, allocations: 0.7071 MB / 1.021 GB, free: 1.801 MB / 0.6355 GB Notification: Performance of SimCode: time 1.383e-06/0.8567, allocations: 0 / 1.021 GB, free: 1.801 MB / 0.6355 GB Notification: Performance of Templates: time 0.005486/0.8622, allocations: 0.7103 MB / 1.022 GB, free: 1.113 MB / 0.6355 GB