Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(BuildingSystems): time 3.556/3.556, allocations: 343.8 MB / 355.9 MB, free: 9.406 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.711e-05/5.739e-05, allocations: 4 kB / 436.6 MB, free: 2.402 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1771/0.1772, allocations: 77.73 MB / 0.5023 GB, free: 4.52 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6466/0.8239, allocations: 105.8 MB / 0.6057 GB, free: 15.26 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002891/0.8242, allocations: 75.89 kB / 0.6057 GB, free: 15.19 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.00404/0.8283, allocations: 0.9252 MB / 0.6066 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.828e-06/0.8283, allocations: 0 / 0.6066 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.12e-05/0.8284, allocations: 6.188 kB / 0.6066 GB, free: 14.26 MB / 0.4948 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.0005241/0.8289, allocations: 338.5 kB / 0.607 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.8289, allocations: 16.02 kB / 0.607 GB, free: 13.87 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.026e-05/0.829, allocations: 34.56 kB / 0.607 GB, free: 13.83 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.095e-05/0.8291, allocations: 4.5 kB / 0.607 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/0.8292, allocations: 170.9 kB / 0.6072 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.8293, allocations: 0 / 0.6072 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.679e-05/0.8293, allocations: 4 kB / 0.6072 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.8295, allocations: 52.69 kB / 0.6072 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.8295, allocations: 3.938 kB / 0.6072 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.8295, allocations: 0 / 0.6072 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.8295, allocations: 0 / 0.6072 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.85e-05/0.8296, allocations: 19.98 kB / 0.6073 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000611/0.8302, allocations: 280.9 kB / 0.6075 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003666/0.8306, allocations: 42.55 kB / 0.6076 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.974e-05/0.8307, allocations: 16.92 kB / 0.6076 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001494/0.8308, allocations: 81.05 kB / 0.6077 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.656e-05/0.8309, allocations: 38.56 kB / 0.6077 GB, free: 13 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=3): time 1.934e-06/0.8309, allocations: 0 / 0.6077 GB, free: 13 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3): time 0.0002227/0.8311, allocations: 49.78 kB / 0.6077 GB, free: 12.94 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.8312, allocations: 55.36 kB / 0.6078 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.841e-05/0.8313, allocations: 92.98 kB / 0.6079 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.8313, allocations: 25.7 kB / 0.6079 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 6.106e-05/0.8314, allocations: 92.05 kB / 0.608 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.8314, allocations: 0 / 0.608 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.951e-06/0.8314, allocations: 4 kB / 0.608 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.8316, allocations: 314.8 kB / 0.6083 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.36e-05/0.8316, allocations: 7.938 kB / 0.6083 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.329e-05/0.8317, allocations: 12 kB / 0.6083 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.03e-05/0.8317, allocations: 8.312 kB / 0.6083 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.8317, allocations: 0 / 0.6083 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001353/0.8319, allocations: 61.52 kB / 0.6084 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.8319, allocations: 4 kB / 0.6084 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.8319, allocations: 4 kB / 0.6084 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.832, allocations: 4 kB / 0.6084 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.8321, allocations: 15.92 kB / 0.6084 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.8322, allocations: 0 / 0.6084 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.8323, allocations: 11.95 kB / 0.6084 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.8323, allocations: 3.984 kB / 0.6084 GB, free: 12.2 MB / 0.4948 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 9.048e-05/0.8324, allocations: 105 kB / 0.6085 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.96e-05/0.8324, allocations: 0 / 0.6085 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001924/0.8327, allocations: 61.12 kB / 0.6086 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.8327, allocations: 0 / 0.6086 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.8327, allocations: 0 / 0.6086 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.8327, allocations: 7.984 kB / 0.6086 GB, free: 12 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002274/0.8329, allocations: 161.6 kB / 0.6088 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.833, allocations: 0 / 0.6088 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/0.8331, allocations: 15.98 kB / 0.6088 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.185e-06/0.8331, allocations: 0 / 0.6088 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.8332, allocations: 0 / 0.6088 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.8332, allocations: 11.97 kB / 0.6088 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.8332, allocations: 0.5 kB / 0.6088 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000192/0.8334, allocations: 151.4 kB / 0.6089 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.336e-05/0.8335, allocations: 77.11 kB / 0.609 GB, free: 11.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.69e-05/0.8335, allocations: 0 / 0.609 GB, free: 11.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.8337, allocations: 15.98 kB / 0.609 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.617e-05/0.8337, allocations: 12 kB / 0.609 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.8338, allocations: 7.922 kB / 0.609 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 5.522e-05/0.8338, allocations: 79.28 kB / 0.6091 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.31e-07/0.8338, allocations: 0 / 0.6091 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003223/0.8342, allocations: 15.94 kB / 0.6091 GB, free: 11.38 MB / 0.4948 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.000591/0.8348, allocations: 0.7007 MB / 0.6098 GB, free: 10.66 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001255/0.8349, allocations: 16 kB / 0.6098 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.8349, allocations: 0 / 0.6098 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 6.265e-05/0.835, allocations: 15.94 kB / 0.6098 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000223/0.8352, allocations: 8.547 kB / 0.6098 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004747/0.8357, allocations: 98.64 kB / 0.6099 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.836, allocations: 0.6809 MB / 0.6106 GB, free: 9.777 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 5.159e-05/0.8361, allocations: 8 kB / 0.6106 GB, free: 9.77 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.207e-05/0.8362, allocations: 11.42 kB / 0.6106 GB, free: 9.758 MB / 0.4948 GB Notification: Performance of SimCode: time 1.252e-06/0.8362, allocations: 0 / 0.6106 GB, free: 9.758 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02034/0.8565, allocations: 1.286 MB / 0.6119 GB, free: 8.555 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002879/0.8569, allocations: 159.4 kB / 0.612 GB, free: 8.328 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.516/3.372, allocations: 0 / 0.612 GB, free: 8.328 MB / 0.4948 GB