Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(BuildingSystems): time 3.587/3.587, allocations: 343.8 MB / 355.9 MB, free: 9.395 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.003e-05/5.013e-05, allocations: 12 kB / 436.7 MB, free: 2.383 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.1812, allocations: 77.73 MB / 0.5023 GB, free: 4.496 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6806/0.8619, allocations: 104.9 MB / 0.6048 GB, free: 52 kB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003509/0.8623, allocations: 75.95 kB / 0.6048 GB, free: 15.98 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.001622/0.8639, allocations: 0.5188 MB / 0.6053 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.144e-06/0.864, allocations: 4 kB / 0.6053 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.262e-05/0.864, allocations: 0 / 0.6053 GB, free: 15.45 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003073/0.8643, allocations: 317.2 kB / 0.6056 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.8644, allocations: 8.031 kB / 0.6057 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.406e-05/0.8645, allocations: 30.56 kB / 0.6057 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.522e-05/0.8645, allocations: 0 / 0.6057 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.8646, allocations: 167 kB / 0.6058 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.8646, allocations: 4 kB / 0.6058 GB, free: 14.85 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.258e-06/0.8647, allocations: 0 / 0.6058 GB, free: 14.85 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.8648, allocations: 33.69 kB / 0.6059 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.8648, allocations: 3.938 kB / 0.6059 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.278e-06/0.8648, allocations: 4 kB / 0.6059 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.8648, allocations: 0 / 0.6059 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.264e-05/0.8649, allocations: 4 kB / 0.6059 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001863/0.8651, allocations: 153.6 kB / 0.606 GB, free: 14.6 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 6.811e-05/0.8652, allocations: 22.61 kB / 0.6061 GB, free: 14.57 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.828e-05/0.8652, allocations: 13.61 kB / 0.6061 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001902/0.8654, allocations: 81.17 kB / 0.6061 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.8655, allocations: 34.56 kB / 0.6062 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=2): time 1.893e-06/0.8655, allocations: 0 / 0.6062 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2): time 0.000157/0.8656, allocations: 41.62 kB / 0.6062 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.8657, allocations: 51.41 kB / 0.6063 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.845e-05/0.8658, allocations: 85 kB / 0.6064 GB, free: 14.21 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.8658, allocations: 29.7 kB / 0.6064 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 3.559e-05/0.8658, allocations: 80.14 kB / 0.6065 GB, free: 14.1 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.94e-05/0.8659, allocations: 7.906 kB / 0.6065 GB, free: 14.09 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.975e-06/0.8659, allocations: 0 / 0.6065 GB, free: 14.09 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001487/0.8661, allocations: 318.8 kB / 0.6068 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.487e-05/0.8661, allocations: 0 / 0.6068 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.428e-05/0.8661, allocations: 4 kB / 0.6068 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.816e-05/0.8661, allocations: 3.984 kB / 0.6068 GB, free: 13.76 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.8662, allocations: 0 / 0.6068 GB, free: 13.76 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.348e-05/0.8662, allocations: 37.7 kB / 0.6068 GB, free: 13.72 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.8663, allocations: 10.66 kB / 0.6068 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.8663, allocations: 0 / 0.6068 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.8663, allocations: 4.094 kB / 0.6068 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.476e-05/0.8664, allocations: 11.92 kB / 0.6068 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.8664, allocations: 0 / 0.6068 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.05e-05/0.8665, allocations: 2.812 kB / 0.6068 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-06/0.8665, allocations: 3.938 kB / 0.6068 GB, free: 13.69 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,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 8.47e-05/0.8666, allocations: 108.9 kB / 0.6069 GB, free: 13.58 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.718e-06/0.8666, allocations: 0 / 0.6069 GB, free: 13.58 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000127/0.8667, allocations: 44.81 kB / 0.607 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.8668, allocations: 4.031 kB / 0.607 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.8668, allocations: 0 / 0.607 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.8668, allocations: 0 / 0.607 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001317/0.8669, allocations: 149.6 kB / 0.6071 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.8669, allocations: 4 kB / 0.6071 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.731e-05/0.867, allocations: 3.984 kB / 0.6071 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.867, allocations: 0 / 0.6071 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.867, allocations: 4 kB / 0.6071 GB, free: 13.31 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.867, allocations: 0 / 0.6071 GB, free: 13.31 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.8671, allocations: 3.938 kB / 0.6072 GB, free: 13.31 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001094/0.8672, allocations: 69.11 kB / 0.6072 GB, free: 13.22 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.574e-05/0.8672, allocations: 81.06 kB / 0.6073 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.8673, allocations: 0 / 0.6073 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.89e-05/0.8673, allocations: 4 kB / 0.6073 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.193e-05/0.8673, allocations: 4 kB / 0.6073 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.8673, allocations: 0 / 0.6073 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 3.648e-05/0.8674, allocations: 75.28 kB / 0.6074 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.91e-07/0.8674, allocations: 0 / 0.6074 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003013/0.8677, allocations: 16.03 kB / 0.6074 GB, free: 13.03 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,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.0005347/0.8683, allocations: 0.6085 MB / 0.608 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 8.324e-05/0.8684, allocations: 12 kB / 0.608 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.8684, allocations: 96 / 0.608 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 2.299e-05/0.8684, allocations: 8 kB / 0.608 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001048/0.8685, allocations: 0 / 0.608 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003288/0.8689, allocations: 94.58 kB / 0.6081 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.8692, allocations: 0.6692 MB / 0.6087 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.918e-05/0.8692, allocations: 15.91 kB / 0.6088 GB, free: 11.53 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.481e-05/0.8693, allocations: 7.438 kB / 0.6088 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of SimCode: time 8.61e-07/0.8693, allocations: 0 / 0.6088 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02264/0.8919, allocations: 0.8595 MB / 0.6096 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.001078/0.8931, allocations: 174.6 kB / 0.6098 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.473/3.366, allocations: 0 / 0.6098 GB, free: 10.5 MB / 0.4948 GB