Running: ./testmodel.py --libraries=/home/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 (/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) [: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 7.0.1/package.mo): time 3.008/3.008, allocations: 248.6 MB / 255.9 MB, free: 7.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001692/0.001692, allocations: 188.1 kB / 315.1 MB, free: 4.305 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.955/1.955, allocations: 205.1 MB / 0.5658 GB, free: 472 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001238/0.001238, allocations: 88.22 kB / 0.67 GB, free: 5.684 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5128/0.514, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.7237, allocations: 106.2 MB / 0.8835 GB, free: 13.41 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7043/1.428, allocations: 131.9 MB / 1.012 GB, free: 8.066 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003552/1.429, allocations: 67.28 kB / 1.012 GB, free: 8.031 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.006525/1.435, allocations: 1.211 MB / 1.014 GB, free: 6.891 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/1.435, allocations: 8 kB / 1.014 GB, free: 6.883 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.935e-05/1.435, allocations: 11.89 kB / 1.014 GB, free: 6.871 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002335/1.435, allocations: 183 kB / 1.014 GB, free: 6.656 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/1.435, allocations: 0 / 1.014 GB, free: 6.656 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.901e-05/1.435, allocations: 4 kB / 1.014 GB, free: 6.652 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001619/1.436, allocations: 33.73 kB / 1.014 GB, free: 6.629 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001481/1.436, allocations: 60.25 kB / 1.014 GB, free: 6.57 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/1.436, allocations: 4 kB / 1.014 GB, free: 6.566 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.794e-05/1.436, allocations: 10.03 kB / 1.014 GB, free: 6.559 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/1.436, allocations: 0 / 1.014 GB, free: 6.559 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007539/1.437, allocations: 311.5 kB / 1.014 GB, free: 6.234 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/1.437, allocations: 41.19 kB / 1.014 GB, free: 6.191 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.954e-05/1.437, allocations: 19.3 kB / 1.014 GB, free: 6.176 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.099e-05/1.437, allocations: 0 / 1.014 GB, free: 6.176 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/1.437, allocations: 30.56 kB / 1.014 GB, free: 6.137 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.423e-06/1.437, allocations: 4 kB / 1.014 GB, free: 6.133 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002727/1.437, allocations: 65.39 kB / 1.014 GB, free: 6.07 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.397e-05/1.437, allocations: 51.41 kB / 1.014 GB, free: 6.008 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/1.437, allocations: 111.4 kB / 1.014 GB, free: 5.898 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/1.437, allocations: 25.7 kB / 1.014 GB, free: 5.867 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.649e-05/1.437, allocations: 88.03 kB / 1.015 GB, free: 5.777 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.663e-05/1.438, allocations: 15.16 kB / 1.015 GB, free: 5.766 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.242e-06/1.438, allocations: 0 / 1.015 GB, free: 5.766 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001318/1.438, allocations: 313.8 kB / 1.015 GB, free: 5.453 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.837e-05/1.438, allocations: 15.48 kB / 1.015 GB, free: 5.441 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.894e-05/1.438, allocations: 7.875 kB / 1.015 GB, free: 5.438 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.909e-05/1.438, allocations: 15.55 kB / 1.015 GB, free: 5.426 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/1.438, allocations: 7.906 kB / 1.015 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001811/1.438, allocations: 56.38 kB / 1.015 GB, free: 5.363 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/1.438, allocations: 4 kB / 1.015 GB, free: 5.359 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/1.438, allocations: 0 / 1.015 GB, free: 5.359 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/1.438, allocations: 0 / 1.015 GB, free: 5.359 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002394/1.438, allocations: 31.92 kB / 1.015 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/1.438, allocations: 3.906 kB / 1.015 GB, free: 5.324 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001714/1.439, allocations: 19.97 kB / 1.015 GB, free: 5.305 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.232e-05/1.439, allocations: 0 / 1.015 GB, free: 5.305 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.0001215/1.439, allocations: 109 kB / 1.015 GB, free: 5.191 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.096e-05/1.439, allocations: 3.906 kB / 1.015 GB, free: 5.188 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002391/1.439, allocations: 66.8 kB / 1.015 GB, free: 5.125 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/1.439, allocations: 0 / 1.015 GB, free: 5.125 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/1.439, allocations: 4.625 kB / 1.015 GB, free: 5.121 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/1.439, allocations: 240 / 1.015 GB, free: 5.121 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002078/1.439, allocations: 159.7 kB / 1.015 GB, free: 4.938 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/1.439, allocations: 0 / 1.015 GB, free: 4.938 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002026/1.44, allocations: 24.61 kB / 1.015 GB, free: 4.914 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.396e-06/1.44, allocations: 7.984 kB / 1.015 GB, free: 4.906 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/1.44, allocations: 3.984 kB / 1.015 GB, free: 4.902 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/1.44, allocations: 7.875 kB / 1.015 GB, free: 4.895 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/1.44, allocations: 4 kB / 1.015 GB, free: 4.891 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002209/1.44, allocations: 157.4 kB / 1.016 GB, free: 4.73 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003521/1.44, allocations: 0.5253 MB / 1.016 GB, free: 4.195 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.17e-05/1.44, allocations: 85.02 kB / 1.016 GB, free: 4.094 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/1.44, allocations: 0 / 1.016 GB, free: 4.094 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/1.441, allocations: 22.55 kB / 1.016 GB, free: 4.074 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.936e-05/1.441, allocations: 7.922 kB / 1.016 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/1.441, allocations: 4 kB / 1.016 GB, free: 4.066 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.163e-05/1.441, allocations: 87.52 kB / 1.016 GB, free: 3.984 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001108/1.442, allocations: 15.84 kB / 1.016 GB, free: 3.969 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.0001831/1.442, allocations: 107.9 kB / 1.016 GB, free: 3.852 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001416/1.442, allocations: 26.31 kB / 1.016 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/1.442, allocations: 0 / 1.016 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.353e-05/1.442, allocations: 18.36 kB / 1.016 GB, free: 3.82 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002195/1.442, allocations: 6.969 kB / 1.016 GB, free: 3.816 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000396/1.443, allocations: 103.6 kB / 1.017 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004024/1.443, allocations: 0.6993 MB / 1.017 GB, free: 2.973 MB / 0.6355 GB Notification: Performance of SimCode: time 2.424e-06/1.443, allocations: 4 kB / 1.017 GB, free: 2.969 MB / 0.6355 GB