Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.401/4.401, allocations: 460.4 MB / 472.6 MB, free: 5.406 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 5.285e-05/5.292e-05, allocations: 7.984 kB / 0.5682 GB, free: 10.09 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2507, allocations: 106.2 MB / 0.6719 GB, free: 15.67 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9199/1.171, allocations: 130.7 MB / 0.7996 GB, free: 12.94 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/1.171, allocations: 72.14 kB / 0.7996 GB, free: 12.94 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001353/1.172, allocations: 0.5167 MB / 0.8001 GB, free: 12.62 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.764e-06/1.172, allocations: 0 / 0.8001 GB, free: 12.62 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.642e-06/1.172, allocations: 0 / 0.8001 GB, free: 12.62 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.0002259/1.173, allocations: 321.8 kB / 0.8004 GB, free: 12.28 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/1.173, allocations: 7.688 kB / 0.8005 GB, free: 12.28 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.572e-05/1.173, allocations: 30.56 kB / 0.8005 GB, free: 12.24 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.334e-05/1.173, allocations: 3.953 kB / 0.8005 GB, free: 12.24 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.63e-05/1.173, allocations: 160.5 kB / 0.8006 GB, free: 12.04 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/1.173, allocations: 11.83 kB / 0.8007 GB, free: 12.04 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.997e-05/1.173, allocations: 0 / 0.8007 GB, free: 12.04 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.685e-05/1.173, allocations: 35.41 kB / 0.8007 GB, free: 12 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-06/1.173, allocations: 0 / 0.8007 GB, free: 12 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.216e-06/1.173, allocations: 0 / 0.8007 GB, free: 12 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.249e-06/1.173, allocations: 0 / 0.8007 GB, free: 12 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.574e-05/1.173, allocations: 8.703 kB / 0.8007 GB, free: 12 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001319/1.173, allocations: 154.3 kB / 0.8008 GB, free: 11.8 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.395e-05/1.173, allocations: 31.19 kB / 0.8009 GB, free: 11.78 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.323e-05/1.173, allocations: 8.797 kB / 0.8009 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001553/1.174, allocations: 82.53 kB / 0.801 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/1.174, allocations: 37.75 kB / 0.801 GB, free: 11.63 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.493e-06/1.174, allocations: 0 / 0.801 GB, free: 11.63 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001403/1.174, allocations: 35.08 kB / 0.801 GB, free: 11.6 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/1.174, allocations: 52.67 kB / 0.8011 GB, free: 11.54 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.165e-05/1.174, allocations: 89.03 kB / 0.8012 GB, free: 11.44 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.428e-06/1.174, allocations: 25.7 kB / 0.8012 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 1.55e-05/1.174, allocations: 83.98 kB / 0.8013 GB, free: 11.33 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.371e-05/1.174, allocations: 2.75 kB / 0.8013 GB, free: 11.33 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-06/1.174, allocations: 0 / 0.8013 GB, free: 11.33 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 5.982e-05/1.174, allocations: 320.3 kB / 0.8016 GB, free: 11.01 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.498e-05/1.174, allocations: 3.844 kB / 0.8016 GB, free: 11.01 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.102e-05/1.174, allocations: 0 / 0.8016 GB, free: 11.01 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.823e-05/1.174, allocations: 12.42 kB / 0.8016 GB, free: 11 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/1.174, allocations: 0 / 0.8016 GB, free: 11 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.265e-05/1.174, allocations: 38.77 kB / 0.8016 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/1.174, allocations: 3.875 kB / 0.8016 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/1.174, allocations: 0 / 0.8016 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/1.174, allocations: 0 / 0.8016 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.501e-05/1.174, allocations: 5.672 kB / 0.8016 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/1.174, allocations: 0 / 0.8016 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.864e-05/1.174, allocations: 0 / 0.8016 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-06/1.174, allocations: 6.906 kB / 0.8016 GB, free: 10.97 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 5.23e-05/1.174, allocations: 113.6 kB / 0.8018 GB, free: 10.86 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.846e-06/1.174, allocations: 0 / 0.8018 GB, free: 10.86 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/1.175, allocations: 50.92 kB / 0.8018 GB, free: 10.81 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-06/1.175, allocations: 0 / 0.8018 GB, free: 10.81 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/1.175, allocations: 0 / 0.8018 GB, free: 10.81 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/1.175, allocations: 3.875 kB / 0.8018 GB, free: 10.81 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.101e-05/1.175, allocations: 152.8 kB / 0.802 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/1.175, allocations: 0 / 0.802 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.619e-05/1.175, allocations: 7.812 kB / 0.802 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/1.175, allocations: 5.484 kB / 0.802 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/1.175, allocations: 0 / 0.802 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/1.175, allocations: 0 / 0.802 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.175, allocations: 0 / 0.802 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.246e-05/1.175, allocations: 62.61 kB / 0.802 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.356e-05/1.175, allocations: 83.08 kB / 0.8021 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/1.175, allocations: 0 / 0.8021 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.743e-05/1.175, allocations: 7.094 kB / 0.8021 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.196e-05/1.175, allocations: 3.844 kB / 0.8021 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/1.175, allocations: 1.312 kB / 0.8021 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 1.804e-05/1.175, allocations: 75.28 kB / 0.8022 GB, free: 10.37 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.1e-07/1.175, allocations: 0 / 0.8022 GB, free: 10.37 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000257/1.175, allocations: 7.781 kB / 0.8022 GB, free: 10.37 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.0007436/1.176, allocations: 0.6172 MB / 0.8028 GB, free: 25.77 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 8.18e-05/1.176, allocations: 7.688 kB / 0.8028 GB, free: 25.77 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.176, allocations: 0 / 0.8028 GB, free: 25.77 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 2.163e-05/1.176, allocations: 3.875 kB / 0.8028 GB, free: 25.77 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001122/1.176, allocations: 9.656 kB / 0.8028 GB, free: 25.77 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003077/1.177, allocations: 93.39 kB / 0.8029 GB, free: 25.65 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/1.177, allocations: 0.6781 MB / 0.8036 GB, free: 24.95 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 2.191e-05/1.177, allocations: 2.188 kB / 0.8036 GB, free: 24.95 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.163e-05/1.177, allocations: 7.438 kB / 0.8036 GB, free: 24.95 MB / 0.6511 GB Notification: Performance of SimCode: time 9.31e-07/1.177, allocations: 0 / 0.8036 GB, free: 24.95 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01921/1.196, allocations: 0.8615 MB / 0.8044 GB, free: 24.75 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002485/1.197, allocations: 152.2 kB / 0.8046 GB, free: 24.52 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.466/3.663, allocations: 7.938 kB / 0.8046 GB, free: 24.52 MB / 0.6511 GB