Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_6_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.155/4.155, allocations: 432.7 MB / 444.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.723e-05/4.748e-05, allocations: 5.531 kB / 0.5338 GB, free: 12.25 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.2356, allocations: 98.73 MB / 0.6302 GB, free: 6.129 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2313/0.4669, allocations: 123.8 MB / 0.7511 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003052/0.4672, allocations: 79.94 kB / 0.7512 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001514/0.4688, allocations: 0.5203 MB / 0.7517 GB, free: 9.562 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.014e-06/0.4688, allocations: 0 / 0.7517 GB, free: 9.562 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.079e-06/0.4688, allocations: 0 / 0.7517 GB, free: 9.562 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.0003129/0.4692, allocations: 322.4 kB / 0.752 GB, free: 9.203 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.4692, allocations: 12.03 kB / 0.752 GB, free: 9.191 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.668e-05/0.4693, allocations: 34.55 kB / 0.752 GB, free: 9.148 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.094e-05/0.4693, allocations: 0 / 0.752 GB, free: 9.148 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.4694, allocations: 163 kB / 0.7522 GB, free: 8.949 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.594e-05/0.4695, allocations: 4 kB / 0.7522 GB, free: 8.945 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.4695, allocations: 4 kB / 0.7522 GB, free: 8.941 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.574e-05/0.4696, allocations: 25.7 kB / 0.7522 GB, free: 8.91 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.4696, allocations: 0 / 0.7522 GB, free: 8.91 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.4696, allocations: 8 kB / 0.7522 GB, free: 8.902 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.4697, allocations: 3.938 kB / 0.7522 GB, free: 8.898 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.601e-05/0.4697, allocations: 3.984 kB / 0.7523 GB, free: 8.895 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001602/0.4699, allocations: 149.6 kB / 0.7524 GB, free: 8.699 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.739e-05/0.4699, allocations: 26.61 kB / 0.7524 GB, free: 8.664 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.338e-05/0.47, allocations: 12.86 kB / 0.7524 GB, free: 8.648 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001675/0.4702, allocations: 85.09 kB / 0.7525 GB, free: 8.547 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.4702, allocations: 30.56 kB / 0.7525 GB, free: 8.508 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.733e-06/0.4703, allocations: 0 / 0.7525 GB, free: 8.508 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001537/0.4704, allocations: 41.64 kB / 0.7526 GB, free: 8.461 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.4705, allocations: 51.41 kB / 0.7526 GB, free: 8.398 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.398e-05/0.4705, allocations: 89.03 kB / 0.7527 GB, free: 8.305 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.4706, allocations: 29.69 kB / 0.7527 GB, free: 8.27 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.468e-05/0.4706, allocations: 80.14 kB / 0.7528 GB, free: 8.188 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.4706, allocations: 0 / 0.7528 GB, free: 8.188 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-06/0.4706, allocations: 0 / 0.7528 GB, free: 8.188 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.4708, allocations: 318.8 kB / 0.7531 GB, free: 7.867 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.681e-05/0.4708, allocations: 4 kB / 0.7531 GB, free: 7.863 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.228e-05/0.4708, allocations: 0 / 0.7531 GB, free: 7.863 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.456e-05/0.4709, allocations: 8 kB / 0.7531 GB, free: 7.855 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4709, allocations: 4 kB / 0.7531 GB, free: 7.852 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.289e-05/0.471, allocations: 37.69 kB / 0.7532 GB, free: 7.809 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.471, allocations: 5.25 kB / 0.7532 GB, free: 7.805 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.471, allocations: 4 kB / 0.7532 GB, free: 7.801 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.471, allocations: 0 / 0.7532 GB, free: 7.801 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.737e-05/0.4711, allocations: 3.938 kB / 0.7532 GB, free: 7.797 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.4712, allocations: 4 kB / 0.7532 GB, free: 7.793 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.032e-05/0.4712, allocations: 0 / 0.7532 GB, free: 7.793 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.4712, allocations: 0 / 0.7532 GB, free: 7.793 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 8.786e-05/0.4713, allocations: 113 kB / 0.7533 GB, free: 7.676 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.091e-05/0.4713, allocations: 3.906 kB / 0.7533 GB, free: 7.672 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00012/0.4714, allocations: 40.81 kB / 0.7533 GB, free: 7.629 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.4715, allocations: 0 / 0.7533 GB, free: 7.629 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4715, allocations: 0 / 0.7533 GB, free: 7.629 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.4715, allocations: 4 kB / 0.7533 GB, free: 7.625 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.4716, allocations: 153.6 kB / 0.7535 GB, free: 7.426 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4716, allocations: 0 / 0.7535 GB, free: 7.426 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.039e-05/0.4717, allocations: 11.98 kB / 0.7535 GB, free: 7.414 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.4717, allocations: 4.031 kB / 0.7535 GB, free: 7.41 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-06/0.4717, allocations: 0 / 0.7535 GB, free: 7.41 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.4717, allocations: 0 / 0.7535 GB, free: 7.41 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.4717, allocations: 0 / 0.7535 GB, free: 7.41 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001059/0.4719, allocations: 69.06 kB / 0.7536 GB, free: 7.324 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.194e-05/0.4719, allocations: 81.06 kB / 0.7537 GB, free: 7.227 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.4719, allocations: 0 / 0.7537 GB, free: 7.227 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.532e-05/0.472, allocations: 0 / 0.7537 GB, free: 7.227 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.865e-05/0.472, allocations: 12.02 kB / 0.7537 GB, free: 7.215 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.472, allocations: 3.938 kB / 0.7537 GB, free: 7.211 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.713e-05/0.4721, allocations: 75.28 kB / 0.7537 GB, free: 7.137 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.81e-07/0.4721, allocations: 3.938 kB / 0.7537 GB, free: 7.133 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002527/0.4723, allocations: 4 kB / 0.7537 GB, free: 7.129 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.0004922/0.4728, allocations: 0.6163 MB / 0.7543 GB, free: 6.484 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.71e-05/0.4729, allocations: 8 kB / 0.7544 GB, free: 6.477 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.473, allocations: 0 / 0.7544 GB, free: 6.477 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.169e-05/0.473, allocations: 4 kB / 0.7544 GB, free: 6.473 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001108/0.4731, allocations: 0 / 0.7544 GB, free: 6.473 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003173/0.4734, allocations: 82.7 kB / 0.7544 GB, free: 6.355 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.4737, allocations: 0.677 MB / 0.7551 GB, free: 5.652 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 1.854e-05/0.4738, allocations: 4.125 kB / 0.7551 GB, free: 5.648 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.783e-05/0.4738, allocations: 11.44 kB / 0.7551 GB, free: 5.637 MB / 0.6355 GB Notification: Performance of SimCode: time 6.72e-07/0.4738, allocations: 3.938 kB / 0.7551 GB, free: 5.633 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01778/0.4916, allocations: 0.8568 MB / 0.756 GB, free: 4.84 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003296/0.492, allocations: 160.2 kB / 0.7561 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.345/2.837, allocations: 0 / 0.7561 GB, free: 4.613 MB / 0.6355 GB