Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_6_0_0_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.157/4.157, allocations: 432.7 MB / 444.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 5.384e-05/5.4e-05, allocations: 4.312 kB / 0.5338 GB, free: 12.24 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2244, allocations: 98.73 MB / 0.6302 GB, free: 6.117 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2728/0.4973, allocations: 124.7 MB / 0.752 GB, free: 9.262 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/0.4976, allocations: 71.95 kB / 0.752 GB, free: 9.191 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003762/0.5014, allocations: 0.9028 MB / 0.7529 GB, free: 8.285 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.723e-06/0.5015, allocations: 0 / 0.7529 GB, free: 8.285 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.05e-05/0.5015, allocations: 4 kB / 0.7529 GB, free: 8.281 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.0004847/0.502, allocations: 342.4 kB / 0.7533 GB, free: 7.902 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.5021, allocations: 16.02 kB / 0.7533 GB, free: 7.887 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.326e-05/0.5021, allocations: 30.56 kB / 0.7533 GB, free: 7.848 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.7e-05/0.5022, allocations: 0 / 0.7533 GB, free: 7.848 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/0.5023, allocations: 171 kB / 0.7535 GB, free: 7.641 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.5023, allocations: 4 kB / 0.7535 GB, free: 7.637 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.5024, allocations: 4 kB / 0.7535 GB, free: 7.633 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001299/0.5025, allocations: 45.62 kB / 0.7535 GB, free: 7.582 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.5025, allocations: 0 / 0.7535 GB, free: 7.582 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.5026, allocations: 0 / 0.7535 GB, free: 7.582 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.5026, allocations: 0 / 0.7535 GB, free: 7.582 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.589e-05/0.5027, allocations: 23.98 kB / 0.7535 GB, free: 7.559 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005851/0.5033, allocations: 284.8 kB / 0.7538 GB, free: 7.23 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003624/0.5036, allocations: 46.59 kB / 0.7538 GB, free: 7.176 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.324e-05/0.5037, allocations: 24.91 kB / 0.7539 GB, free: 7.148 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001398/0.5039, allocations: 77.11 kB / 0.7539 GB, free: 7.055 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.5039, allocations: 38.56 kB / 0.754 GB, free: 7.008 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.893e-06/0.5039, allocations: 0 / 0.754 GB, free: 7.008 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002059/0.5041, allocations: 45.69 kB / 0.754 GB, free: 6.957 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.544e-05/0.5042, allocations: 55.36 kB / 0.7541 GB, free: 6.891 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.231e-05/0.5043, allocations: 105 kB / 0.7542 GB, free: 6.781 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.5043, allocations: 25.7 kB / 0.7542 GB, free: 6.75 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.317e-05/0.5044, allocations: 92.08 kB / 0.7543 GB, free: 6.656 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.5044, allocations: 3.906 kB / 0.7543 GB, free: 6.652 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-06/0.5044, allocations: 0 / 0.7543 GB, free: 6.652 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.5046, allocations: 314.8 kB / 0.7546 GB, free: 6.336 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.595e-05/0.5046, allocations: 8 kB / 0.7546 GB, free: 6.328 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.662e-05/0.5047, allocations: 15.94 kB / 0.7546 GB, free: 6.312 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.826e-05/0.5047, allocations: 7.984 kB / 0.7546 GB, free: 6.305 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.5047, allocations: 0 / 0.7546 GB, free: 6.305 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001354/0.5049, allocations: 53.59 kB / 0.7547 GB, free: 6.246 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.5049, allocations: 8 kB / 0.7547 GB, free: 6.238 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.5049, allocations: 0 / 0.7547 GB, free: 6.238 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.5049, allocations: 0 / 0.7547 GB, free: 6.238 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.5051, allocations: 15.98 kB / 0.7547 GB, free: 6.223 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.5051, allocations: 0 / 0.7547 GB, free: 6.223 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.5052, allocations: 11.95 kB / 0.7547 GB, free: 6.211 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.5053, allocations: 3.984 kB / 0.7547 GB, free: 6.207 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 8.063e-05/0.5054, allocations: 105 kB / 0.7548 GB, free: 6.098 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.5054, allocations: 0 / 0.7548 GB, free: 6.098 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001816/0.5056, allocations: 61.12 kB / 0.7549 GB, free: 6.031 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.5056, allocations: 0 / 0.7549 GB, free: 6.031 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.5056, allocations: 0 / 0.7549 GB, free: 6.031 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.5056, allocations: 7.984 kB / 0.7549 GB, free: 6.023 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002158/0.5059, allocations: 165.6 kB / 0.755 GB, free: 5.812 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.5059, allocations: 0 / 0.755 GB, free: 5.812 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.506, allocations: 15.98 kB / 0.7551 GB, free: 5.797 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.506, allocations: 0 / 0.7551 GB, free: 5.797 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.5061, allocations: 3.938 kB / 0.7551 GB, free: 5.793 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.147e-06/0.5061, allocations: 3.984 kB / 0.7551 GB, free: 5.789 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5061, allocations: 4 kB / 0.7551 GB, free: 5.785 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000175/0.5063, allocations: 147.5 kB / 0.7552 GB, free: 5.625 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.532e-05/0.5063, allocations: 84.95 kB / 0.7553 GB, free: 5.523 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.5064, allocations: 0 / 0.7553 GB, free: 5.523 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.5065, allocations: 11.98 kB / 0.7553 GB, free: 5.512 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.974e-05/0.5066, allocations: 4 kB / 0.7553 GB, free: 5.508 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.5066, allocations: 7.984 kB / 0.7553 GB, free: 5.5 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.191e-05/0.5067, allocations: 83.7 kB / 0.7554 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.31e-07/0.5067, allocations: 0 / 0.7554 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003178/0.507, allocations: 12 kB / 0.7554 GB, free: 5.406 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.0005595/0.5076, allocations: 0.6891 MB / 0.7561 GB, free: 4.691 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001304/0.5077, allocations: 31.94 kB / 0.7561 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.5077, allocations: 3.938 kB / 0.7561 GB, free: 4.656 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.707e-05/0.5078, allocations: 12 kB / 0.7561 GB, free: 4.645 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.508, allocations: 3.984 kB / 0.7561 GB, free: 4.641 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004861/0.5085, allocations: 102.5 kB / 0.7562 GB, free: 4.504 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.5089, allocations: 0.6809 MB / 0.7569 GB, free: 3.797 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.442e-05/0.5089, allocations: 12 kB / 0.7569 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.355e-05/0.509, allocations: 15.42 kB / 0.7569 GB, free: 3.77 MB / 0.6355 GB Notification: Performance of SimCode: time 8.81e-07/0.509, allocations: 0 / 0.7569 GB, free: 3.77 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01737/0.5264, allocations: 1.26 MB / 0.7581 GB, free: 2.574 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002502/0.5267, allocations: 156.9 kB / 0.7583 GB, free: 2.344 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.338/2.865, allocations: 4.062 kB / 0.7583 GB, free: 2.34 MB / 0.6355 GB