Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.356/4.356, allocations: 464.6 MB / 476.8 MB, free: 2.199 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.187e-05/4.192e-05, allocations: 4 kB / 0.5732 GB, free: 5.625 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2473, allocations: 107.2 MB / 0.6778 GB, free: 10.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9653/1.213, allocations: 131.1 MB / 0.8059 GB, free: 12.58 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002827/1.213, allocations: 73.84 kB / 0.8059 GB, free: 12.58 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001334/1.214, allocations: 0.5188 MB / 0.8064 GB, free: 12.26 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.104e-06/1.214, allocations: 0 / 0.8064 GB, free: 12.26 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.82e-06/1.214, allocations: 0 / 0.8064 GB, free: 12.26 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.0002217/1.215, allocations: 319 kB / 0.8067 GB, free: 11.92 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/1.215, allocations: 11.53 kB / 0.8068 GB, free: 11.92 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.791e-05/1.215, allocations: 35.27 kB / 0.8068 GB, free: 11.88 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.093e-05/1.215, allocations: 0 / 0.8068 GB, free: 11.88 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.763e-05/1.215, allocations: 167 kB / 0.8069 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/1.215, allocations: 1.688 kB / 0.8069 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/1.215, allocations: 3.781 kB / 0.8069 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.469e-05/1.215, allocations: 31.06 kB / 0.807 GB, free: 11.64 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/1.215, allocations: 3.938 kB / 0.807 GB, free: 11.64 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.188e-06/1.215, allocations: 4 kB / 0.807 GB, free: 11.64 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/1.215, allocations: 0 / 0.807 GB, free: 11.64 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.876e-05/1.215, allocations: 6.812 kB / 0.807 GB, free: 11.64 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001337/1.215, allocations: 149.1 kB / 0.8071 GB, free: 11.45 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.501e-05/1.215, allocations: 25.77 kB / 0.8072 GB, free: 11.42 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.346e-05/1.215, allocations: 8.797 kB / 0.8072 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001577/1.216, allocations: 82.56 kB / 0.8072 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/1.216, allocations: 40.14 kB / 0.8073 GB, free: 11.27 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 2.896e-06/1.216, allocations: 3.984 kB / 0.8073 GB, free: 11.27 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001408/1.216, allocations: 37.61 kB / 0.8073 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.564e-05/1.216, allocations: 51.41 kB / 0.8074 GB, free: 11.17 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.167e-05/1.216, allocations: 85 kB / 0.8075 GB, free: 11.08 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.024e-05/1.216, allocations: 29.14 kB / 0.8075 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 1.611e-05/1.216, allocations: 80.14 kB / 0.8076 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.398e-05/1.216, allocations: 5.359 kB / 0.8076 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-06/1.216, allocations: 0 / 0.8076 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 5.65e-05/1.216, allocations: 314.9 kB / 0.8079 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.312e-05/1.216, allocations: 0 / 0.8079 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.062e-05/1.216, allocations: 3.812 kB / 0.8079 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.79e-05/1.216, allocations: 7.484 kB / 0.8079 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/1.216, allocations: 3.938 kB / 0.8079 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.899e-05/1.216, allocations: 40.3 kB / 0.8079 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/1.216, allocations: 3.812 kB / 0.8079 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/1.216, allocations: 0 / 0.8079 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/1.216, allocations: 5.219 kB / 0.8079 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.39e-05/1.216, allocations: 5.281 kB / 0.8079 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/1.216, allocations: 0 / 0.8079 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.109e-05/1.216, allocations: 7.844 kB / 0.8079 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/1.216, allocations: 3.875 kB / 0.8079 GB, free: 10.6 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 4.964e-05/1.217, allocations: 104.3 kB / 0.808 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/1.217, allocations: 5.5 kB / 0.808 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/1.217, allocations: 46.47 kB / 0.8081 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/1.217, allocations: 4.031 kB / 0.8081 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/1.217, allocations: 2.125 kB / 0.8081 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/1.217, allocations: 0 / 0.8081 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.886e-05/1.217, allocations: 152.2 kB / 0.8082 GB, free: 10.26 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/1.217, allocations: 0 / 0.8082 GB, free: 10.26 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.446e-05/1.217, allocations: 3.906 kB / 0.8082 GB, free: 10.26 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/1.217, allocations: 1.219 kB / 0.8082 GB, free: 10.26 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/1.217, allocations: 3.953 kB / 0.8083 GB, free: 10.26 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/1.217, allocations: 0 / 0.8083 GB, free: 10.26 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/1.217, allocations: 3.984 kB / 0.8083 GB, free: 10.25 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.103e-05/1.217, allocations: 67.77 kB / 0.8083 GB, free: 10.19 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.15e-05/1.217, allocations: 77.11 kB / 0.8084 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/1.217, allocations: 1.031 kB / 0.8084 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.683e-05/1.217, allocations: 3.953 kB / 0.8084 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.347e-05/1.217, allocations: 8.516 kB / 0.8084 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-06/1.217, allocations: 0 / 0.8084 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 1.817e-05/1.217, allocations: 79.22 kB / 0.8085 GB, free: 10.01 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.4e-07/1.217, allocations: 3.969 kB / 0.8085 GB, free: 10.01 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002633/1.217, allocations: 12.53 kB / 0.8085 GB, free: 10 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.0003483/1.218, allocations: 0.6019 MB / 0.8091 GB, free: 9.414 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.716e-05/1.218, allocations: 10.84 kB / 0.8091 GB, free: 9.414 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/1.218, allocations: 8.031 kB / 0.8091 GB, free: 9.406 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.102e-05/1.218, allocations: 7.719 kB / 0.8091 GB, free: 9.402 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001122/1.218, allocations: 9.75 kB / 0.8091 GB, free: 9.398 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002889/1.218, allocations: 91.48 kB / 0.8092 GB, free: 9.289 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005751/1.219, allocations: 0.673 MB / 0.8099 GB, free: 24.59 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 2.206e-05/1.219, allocations: 2.672 kB / 0.8099 GB, free: 24.59 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.261e-05/1.219, allocations: 7.438 kB / 0.8099 GB, free: 24.59 MB / 0.6511 GB Notification: Performance of SimCode: time 1.002e-06/1.219, allocations: 0 / 0.8099 GB, free: 24.59 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01923/1.238, allocations: 0.8593 MB / 0.8107 GB, free: 24.38 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002508/1.239, allocations: 164.8 kB / 0.8109 GB, free: 24.16 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.34/3.579, allocations: 0 / 0.8109 GB, free: 24.16 MB / 0.6511 GB