Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.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.Examples.Factorial,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_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 3.289/3.289, allocations: 248.6 MB / 255.9 MB, free: 7.199 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.002541/0.002541, allocations: 180.2 kB / 315.1 MB, free: 4.262 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.566/2.566, allocations: 205.1 MB / 0.5658 GB, free: 292 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.001326/0.001326, allocations: 89.56 kB / 0.67 GB, free: 5.496 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5581/0.5595, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.8264, allocations: 106.3 MB / 0.8835 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7885/1.615, allocations: 132 MB / 1.012 GB, free: 8.168 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003863/1.615, allocations: 73.83 kB / 1.012 GB, free: 8.129 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.006506/1.622, allocations: 0.965 MB / 1.013 GB, free: 7.23 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/1.622, allocations: 12 kB / 1.013 GB, free: 7.219 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.192e-05/1.622, allocations: 4 kB / 1.013 GB, free: 7.215 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/1.622, allocations: 163 kB / 1.014 GB, free: 7.016 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/1.622, allocations: 0 / 1.014 GB, free: 7.016 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.318e-05/1.622, allocations: 4 kB / 1.014 GB, free: 7.012 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001257/1.623, allocations: 11.38 kB / 1.014 GB, free: 7.004 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000161/1.623, allocations: 56.8 kB / 1.014 GB, free: 6.953 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/1.623, allocations: 0 / 1.014 GB, free: 6.953 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.564e-05/1.623, allocations: 3.938 kB / 1.014 GB, free: 6.949 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/1.623, allocations: 0 / 1.014 GB, free: 6.949 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008124/1.624, allocations: 260.5 kB / 1.014 GB, free: 6.668 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004894/1.624, allocations: 49.11 kB / 1.014 GB, free: 6.617 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.868e-05/1.624, allocations: 12.3 kB / 1.014 GB, free: 6.605 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002121/1.625, allocations: 85.19 kB / 1.014 GB, free: 6.504 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/1.625, allocations: 34.5 kB / 1.014 GB, free: 6.461 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 4.017e-06/1.625, allocations: 0 / 1.014 GB, free: 6.461 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0003655/1.625, allocations: 49.41 kB / 1.014 GB, free: 6.41 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/1.625, allocations: 51.41 kB / 1.014 GB, free: 6.348 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001375/1.625, allocations: 100.4 kB / 1.014 GB, free: 6.246 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/1.625, allocations: 25.7 kB / 1.014 GB, free: 6.215 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.368e-05/1.625, allocations: 91.06 kB / 1.014 GB, free: 6.125 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.9e-05/1.625, allocations: 3.906 kB / 1.014 GB, free: 6.121 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-06/1.625, allocations: 0 / 1.014 GB, free: 6.121 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002048/1.626, allocations: 310.8 kB / 1.015 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.456e-05/1.626, allocations: 7.812 kB / 1.015 GB, free: 5.805 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.647e-05/1.626, allocations: 7 kB / 1.015 GB, free: 5.801 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001148/1.626, allocations: 11.61 kB / 1.015 GB, free: 5.793 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/1.626, allocations: 4 kB / 1.015 GB, free: 5.789 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002689/1.626, allocations: 57.47 kB / 1.015 GB, free: 5.73 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/1.626, allocations: 4 kB / 1.015 GB, free: 5.727 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/1.626, allocations: 0 / 1.015 GB, free: 5.727 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/1.626, allocations: 0 / 1.015 GB, free: 5.727 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/1.627, allocations: 15.98 kB / 1.015 GB, free: 5.711 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/1.627, allocations: 0 / 1.015 GB, free: 5.711 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001667/1.627, allocations: 15.94 kB / 1.015 GB, free: 5.695 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/1.627, allocations: 0 / 1.015 GB, free: 5.695 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.y,fac.u) * 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.0001517/1.627, allocations: 104.9 kB / 1.015 GB, free: 5.586 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.111e-05/1.627, allocations: 7.984 kB / 1.015 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003239/1.628, allocations: 56.81 kB / 1.015 GB, free: 5.523 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/1.628, allocations: 0 / 1.015 GB, free: 5.523 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/1.628, allocations: 0 / 1.015 GB, free: 5.523 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/1.628, allocations: 7.906 kB / 1.015 GB, free: 5.516 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002968/1.628, allocations: 145.1 kB / 1.015 GB, free: 5.344 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/1.628, allocations: 0 / 1.015 GB, free: 5.344 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002445/1.628, allocations: 11.98 kB / 1.015 GB, free: 5.332 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/1.628, allocations: 0 / 1.015 GB, free: 5.332 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/1.628, allocations: 4 kB / 1.015 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/1.628, allocations: 0 / 1.015 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.503e-06/1.628, allocations: 3 kB / 1.015 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003518/1.629, allocations: 150.2 kB / 1.015 GB, free: 5.176 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004877/1.629, allocations: 0.5217 MB / 1.016 GB, free: 4.641 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.939e-05/1.629, allocations: 77.11 kB / 1.016 GB, free: 4.547 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.032e-05/1.629, allocations: 4 kB / 1.016 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003126/1.63, allocations: 11.98 kB / 1.016 GB, free: 4.531 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.871e-05/1.63, allocations: 11.22 kB / 1.016 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/1.63, allocations: 3.984 kB / 1.016 GB, free: 4.52 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.707e-05/1.63, allocations: 79.28 kB / 1.016 GB, free: 4.441 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.002219/1.632, allocations: 15.19 kB / 1.016 GB, free: 4.43 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.y,fac.u) * 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.0003397/1.633, allocations: 115.2 kB / 1.016 GB, free: 4.309 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001902/1.633, allocations: 22.11 kB / 1.016 GB, free: 4.293 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/1.633, allocations: 3.938 kB / 1.016 GB, free: 4.289 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.629e-05/1.633, allocations: 19 kB / 1.016 GB, free: 4.273 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/1.633, allocations: 0 / 1.016 GB, free: 4.273 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005407/1.634, allocations: 71.31 kB / 1.016 GB, free: 4.184 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004542/1.634, allocations: 0.6876 MB / 1.017 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of SimCode: time 1.433e-06/1.634, allocations: 0 / 1.017 GB, free: 3.473 MB / 0.6355 GB