Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.288/4.288, allocations: 460.4 MB / 472.6 MB, free: 5.391 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.904e-05/3.922e-05, allocations: 4 kB / 0.5682 GB, free: 10.09 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2391, allocations: 106.2 MB / 0.6719 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8626/1.102, allocations: 131.6 MB / 0.8005 GB, free: 13.14 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/1.102, allocations: 70.14 kB / 0.8005 GB, free: 13.14 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003543/1.106, allocations: 0.9321 MB / 0.8015 GB, free: 12.8 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.763e-06/1.106, allocations: 0 / 0.8015 GB, free: 12.8 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.103e-06/1.106, allocations: 0 / 0.8015 GB, free: 12.8 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.0004006/1.106, allocations: 351.7 kB / 0.8018 GB, free: 12.44 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/1.106, allocations: 11.5 kB / 0.8018 GB, free: 12.44 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.102e-05/1.106, allocations: 30.56 kB / 0.8018 GB, free: 12.4 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.75e-05/1.106, allocations: 5.359 kB / 0.8018 GB, free: 12.4 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.999e-05/1.106, allocations: 163 kB / 0.802 GB, free: 12.2 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/1.106, allocations: 0 / 0.802 GB, free: 12.2 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.227e-05/1.106, allocations: 9.578 kB / 0.802 GB, free: 12.2 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/1.107, allocations: 51.64 kB / 0.802 GB, free: 12.16 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/1.107, allocations: 3.984 kB / 0.8021 GB, free: 12.16 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/1.107, allocations: 0 / 0.8021 GB, free: 12.16 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/1.107, allocations: 0 / 0.8021 GB, free: 12.16 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.366e-05/1.107, allocations: 21.27 kB / 0.8021 GB, free: 12.16 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005015/1.107, allocations: 284.5 kB / 0.8023 GB, free: 11.88 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003383/1.108, allocations: 45.77 kB / 0.8024 GB, free: 11.86 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.249e-05/1.108, allocations: 12.67 kB / 0.8024 GB, free: 11.85 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001438/1.108, allocations: 87.03 kB / 0.8025 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/1.108, allocations: 33.25 kB / 0.8025 GB, free: 11.71 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 2.385e-06/1.108, allocations: 0 / 0.8025 GB, free: 11.71 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002924/1.108, allocations: 56.34 kB / 0.8026 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/1.108, allocations: 51.41 kB / 0.8026 GB, free: 11.61 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.223e-05/1.108, allocations: 93 kB / 0.8027 GB, free: 11.52 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/1.108, allocations: 27.06 kB / 0.8027 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.001e-05/1.108, allocations: 84.02 kB / 0.8028 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.894e-05/1.108, allocations: 7.75 kB / 0.8028 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.137e-06/1.108, allocations: 0 / 0.8028 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 7.76e-05/1.109, allocations: 315.4 kB / 0.8031 GB, free: 11.09 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.577e-05/1.109, allocations: 11.78 kB / 0.8031 GB, free: 11.09 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.812e-05/1.109, allocations: 17.25 kB / 0.8031 GB, free: 11.08 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.936e-05/1.109, allocations: 9.234 kB / 0.8032 GB, free: 11.08 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/1.109, allocations: 0 / 0.8032 GB, free: 11.08 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002201/1.109, allocations: 43.25 kB / 0.8032 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/1.109, allocations: 7.656 kB / 0.8032 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/1.109, allocations: 0 / 0.8032 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/1.109, allocations: 5.156 kB / 0.8032 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002414/1.109, allocations: 15.12 kB / 0.8032 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/1.109, allocations: 8.578 kB / 0.8032 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/1.11, allocations: 16.22 kB / 0.8032 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/1.11, allocations: 3.906 kB / 0.8032 GB, free: 11.04 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.496e-05/1.11, allocations: 101 kB / 0.8033 GB, free: 10.93 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.903e-05/1.11, allocations: 0 / 0.8033 GB, free: 10.93 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002676/1.11, allocations: 65.2 kB / 0.8034 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/1.11, allocations: 432 / 0.8034 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/1.11, allocations: 4 kB / 0.8034 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/1.11, allocations: 3.953 kB / 0.8034 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002891/1.111, allocations: 165.8 kB / 0.8036 GB, free: 10.69 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.778e-06/1.111, allocations: 0 / 0.8036 GB, free: 10.69 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002017/1.111, allocations: 10.59 kB / 0.8036 GB, free: 10.69 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.119e-05/1.111, allocations: 7.734 kB / 0.8036 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/1.111, allocations: 0 / 0.8036 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/1.111, allocations: 3 kB / 0.8036 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/1.111, allocations: 0 / 0.8036 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002336/1.111, allocations: 152.7 kB / 0.8037 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.662e-05/1.111, allocations: 81.02 kB / 0.8038 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.022e-05/1.111, allocations: 2.812 kB / 0.8038 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002477/1.111, allocations: 7.719 kB / 0.8038 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.077e-05/1.112, allocations: 12.69 kB / 0.8038 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/1.112, allocations: 0 / 0.8038 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.956e-05/1.112, allocations: 79.12 kB / 0.8039 GB, free: 10.37 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.072e-06/1.112, allocations: 4 kB / 0.8039 GB, free: 10.37 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0007684/1.112, allocations: 23 kB / 0.8039 GB, free: 10.36 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.0009975/1.113, allocations: 0.6871 MB / 0.8046 GB, free: 25.7 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001963/1.114, allocations: 23.19 kB / 0.8046 GB, free: 25.69 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/1.114, allocations: 4 kB / 0.8046 GB, free: 25.69 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.918e-05/1.114, allocations: 12.91 kB / 0.8047 GB, free: 25.69 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003741/1.114, allocations: 3.844 kB / 0.8047 GB, free: 25.69 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008263/1.115, allocations: 107.5 kB / 0.8048 GB, free: 25.57 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004217/1.116, allocations: 0.6808 MB / 0.8054 GB, free: 24.88 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 9.368e-05/1.116, allocations: 1.828 kB / 0.8054 GB, free: 24.88 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.8e-05/1.116, allocations: 20.36 kB / 0.8054 GB, free: 24.87 MB / 0.6511 GB Notification: Performance of SimCode: time 1.633e-06/1.116, allocations: 0 / 0.8054 GB, free: 24.87 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02088/1.137, allocations: 1.261 MB / 0.8067 GB, free: 24.66 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002144/1.137, allocations: 145.2 kB / 0.8068 GB, free: 24.43 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.29/3.427, allocations: 0 / 0.8068 GB, free: 24.43 MB / 0.6511 GB