Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.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.Functions.Examples.Factorial,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial",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 2.919/2.919, allocations: 248.6 MB / 255.9 MB, free: 7.141 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.001847/0.001846, allocations: 190.9 kB / 315.1 MB, free: 4.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.303/2.303, allocations: 205.1 MB / 0.5658 GB, free: 280 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.001341/0.001341, allocations: 83.09 kB / 0.67 GB, free: 5.48 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5668/0.5682, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.8815, allocations: 106.2 MB / 0.8835 GB, free: 13.31 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8538/1.735, allocations: 131 MB / 1.011 GB, free: 9.086 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004278/1.736, allocations: 74.02 kB / 1.012 GB, free: 9.043 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.002583/1.738, allocations: 0.5204 MB / 1.012 GB, free: 8.527 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.598e-05/1.739, allocations: 11.28 kB / 1.012 GB, free: 8.52 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.342e-05/1.739, allocations: 7.906 kB / 1.012 GB, free: 8.512 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001482/1.739, allocations: 159.1 kB / 1.012 GB, free: 8.316 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/1.739, allocations: 0 / 1.012 GB, free: 8.316 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.689e-05/1.739, allocations: 0 / 1.012 GB, free: 8.316 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.81e-05/1.739, allocations: 4 kB / 1.012 GB, free: 8.312 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.592e-05/1.739, allocations: 33.62 kB / 1.012 GB, free: 8.273 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/1.739, allocations: 4 kB / 1.012 GB, free: 8.27 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/1.739, allocations: 3.406 kB / 1.012 GB, free: 8.27 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/1.739, allocations: 0 / 1.012 GB, free: 8.27 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002186/1.739, allocations: 129.7 kB / 1.012 GB, free: 8.109 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001055/1.739, allocations: 18.61 kB / 1.012 GB, free: 8.082 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.926e-05/1.74, allocations: 8.922 kB / 1.012 GB, free: 8.07 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002734/1.74, allocations: 85.09 kB / 1.012 GB, free: 7.969 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.51e-05/1.74, allocations: 42.31 kB / 1.013 GB, free: 7.922 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 2.565e-06/1.74, allocations: 0 / 1.013 GB, free: 7.922 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0002543/1.74, allocations: 37.62 kB / 1.013 GB, free: 7.879 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.126e-05/1.74, allocations: 55.41 kB / 1.013 GB, free: 7.812 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.209e-05/1.74, allocations: 85 kB / 1.013 GB, free: 7.723 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/1.74, allocations: 25.7 kB / 1.013 GB, free: 7.691 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.298e-05/1.74, allocations: 80.14 kB / 1.013 GB, free: 7.609 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.159e-05/1.74, allocations: 11.58 kB / 1.013 GB, free: 7.602 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.569e-06/1.741, allocations: 4.031 kB / 1.013 GB, free: 7.598 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001563/1.741, allocations: 310.8 kB / 1.013 GB, free: 7.285 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.394e-05/1.741, allocations: 4 kB / 1.013 GB, free: 7.281 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.439e-05/1.741, allocations: 0 / 1.013 GB, free: 7.281 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.66e-05/1.741, allocations: 4 kB / 1.013 GB, free: 7.277 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/1.741, allocations: 0 / 1.013 GB, free: 7.277 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001801/1.741, allocations: 40.75 kB / 1.013 GB, free: 7.234 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/1.741, allocations: 4 kB / 1.013 GB, free: 7.23 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/1.741, allocations: 11.19 kB / 1.013 GB, free: 7.223 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/1.741, allocations: 0 / 1.013 GB, free: 7.223 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/1.741, allocations: 4 kB / 1.013 GB, free: 7.219 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/1.741, allocations: 3.938 kB / 1.013 GB, free: 7.215 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.343e-05/1.741, allocations: 0.8438 kB / 1.013 GB, free: 7.215 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/1.741, allocations: 0 / 1.013 GB, free: 7.215 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: 2 (fac,n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001278/1.742, allocations: 105 kB / 1.013 GB, free: 7.105 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.776e-05/1.742, allocations: 0 / 1.013 GB, free: 7.105 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002578/1.742, allocations: 55.83 kB / 1.013 GB, free: 7.051 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/1.742, allocations: 0 / 1.013 GB, free: 7.051 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/1.742, allocations: 0 / 1.013 GB, free: 7.051 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/1.742, allocations: 0 / 1.013 GB, free: 7.051 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001671/1.742, allocations: 130.2 kB / 1.013 GB, free: 6.887 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/1.742, allocations: 7.938 kB / 1.013 GB, free: 6.879 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.121e-05/1.742, allocations: 0 / 1.013 GB, free: 6.879 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.436e-06/1.742, allocations: 0 / 1.013 GB, free: 6.879 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/1.742, allocations: 4 kB / 1.013 GB, free: 6.875 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.743e-06/1.742, allocations: 3.906 kB / 1.013 GB, free: 6.871 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/1.742, allocations: 0 / 1.013 GB, free: 6.871 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002189/1.743, allocations: 68.09 kB / 1.014 GB, free: 6.789 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003941/1.743, allocations: 444.4 kB / 1.014 GB, free: 6.34 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.303e-05/1.743, allocations: 77.11 kB / 1.014 GB, free: 6.246 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.903e-05/1.743, allocations: 7.688 kB / 1.014 GB, free: 6.242 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.916e-05/1.743, allocations: 4.062 kB / 1.014 GB, free: 6.238 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.131e-05/1.743, allocations: 0 / 1.014 GB, free: 6.238 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/1.743, allocations: 0 / 1.014 GB, free: 6.238 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.662e-05/1.743, allocations: 81.83 kB / 1.014 GB, free: 6.16 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001922/1.745, allocations: 11.91 kB / 1.014 GB, free: 6.148 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: 2 (fac,n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004176/1.746, allocations: 107.2 kB / 1.014 GB, free: 6.031 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001651/1.746, allocations: 11.06 kB / 1.014 GB, free: 6.023 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/1.746, allocations: 4.062 kB / 1.014 GB, free: 6.02 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.03e-05/1.746, allocations: 4 kB / 1.014 GB, free: 6.016 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002012/1.746, allocations: 7.938 kB / 1.014 GB, free: 6.012 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003301/1.747, allocations: 47.92 kB / 1.014 GB, free: 5.941 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004946/1.747, allocations: 0.6871 MB / 1.015 GB, free: 5.23 MB / 0.6355 GB Notification: Performance of SimCode: time 5.32e-06/1.747, allocations: 0 / 1.015 GB, free: 5.23 MB / 0.6355 GB