Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.218/4.218, allocations: 464.6 MB / 476.8 MB, free: 2.105 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.476e-05/3.485e-05, allocations: 4 kB / 0.5732 GB, free: 5.609 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2299, allocations: 107.2 MB / 0.6778 GB, free: 10.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8531/1.083, allocations: 132 MB / 0.8068 GB, free: 12.3 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/1.083, allocations: 72.47 kB / 0.8068 GB, free: 12.3 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003649/1.087, allocations: 0.9314 MB / 0.8077 GB, free: 11.95 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.893e-06/1.087, allocations: 3.938 kB / 0.8077 GB, free: 11.94 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.586e-06/1.087, allocations: 0 / 0.8077 GB, free: 11.94 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.0004111/1.088, allocations: 349.7 kB / 0.8081 GB, free: 11.6 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/1.088, allocations: 11.53 kB / 0.8081 GB, free: 11.6 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/1.088, allocations: 30.56 kB / 0.8081 GB, free: 11.56 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.783e-05/1.088, allocations: 3.875 kB / 0.8081 GB, free: 11.56 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.052e-05/1.088, allocations: 171 kB / 0.8083 GB, free: 11.35 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.32e-05/1.088, allocations: 0 / 0.8083 GB, free: 11.35 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.673e-05/1.088, allocations: 7.188 kB / 0.8083 GB, free: 11.35 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/1.088, allocations: 46.97 kB / 0.8083 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/1.088, allocations: 0 / 0.8083 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/1.088, allocations: 0 / 0.8083 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/1.088, allocations: 0 / 0.8083 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.544e-05/1.088, allocations: 26 kB / 0.8084 GB, free: 11.31 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005114/1.089, allocations: 283.9 kB / 0.8086 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003509/1.089, allocations: 46.08 kB / 0.8087 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.388e-05/1.089, allocations: 12.55 kB / 0.8087 GB, free: 11.01 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000137/1.089, allocations: 83.7 kB / 0.8088 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/1.089, allocations: 38.5 kB / 0.8088 GB, free: 10.87 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 3.256e-06/1.089, allocations: 0 / 0.8088 GB, free: 10.87 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002739/1.09, allocations: 55.89 kB / 0.8089 GB, free: 10.83 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.605e-05/1.09, allocations: 51.41 kB / 0.8089 GB, free: 10.77 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.533e-05/1.09, allocations: 94.94 kB / 0.809 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/1.09, allocations: 25.7 kB / 0.809 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.29e-05/1.09, allocations: 84.05 kB / 0.8091 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/1.09, allocations: 6.719 kB / 0.8091 GB, free: 10.56 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.142e-06/1.09, allocations: 3.812 kB / 0.8091 GB, free: 10.56 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 5.995e-05/1.09, allocations: 318.8 kB / 0.8094 GB, free: 10.24 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.403e-05/1.09, allocations: 6.969 kB / 0.8094 GB, free: 10.24 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.199e-05/1.09, allocations: 7.719 kB / 0.8094 GB, free: 10.24 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.048e-05/1.09, allocations: 13.95 kB / 0.8094 GB, free: 10.24 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/1.09, allocations: 0 / 0.8094 GB, free: 10.24 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001204/1.09, allocations: 55.16 kB / 0.8095 GB, free: 10.2 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/1.09, allocations: 7.875 kB / 0.8095 GB, free: 10.2 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/1.09, allocations: 0 / 0.8095 GB, free: 10.2 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/1.09, allocations: 0 / 0.8095 GB, free: 10.2 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/1.09, allocations: 21.14 kB / 0.8095 GB, free: 10.2 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/1.09, allocations: 3.984 kB / 0.8095 GB, free: 10.19 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/1.091, allocations: 6.656 kB / 0.8095 GB, free: 10.19 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/1.091, allocations: 3.844 kB / 0.8095 GB, free: 10.19 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 5.444e-05/1.091, allocations: 104.9 kB / 0.8096 GB, free: 10.08 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.989e-05/1.091, allocations: 3.938 kB / 0.8096 GB, free: 10.08 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001668/1.091, allocations: 64.91 kB / 0.8097 GB, free: 10.04 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/1.091, allocations: 0 / 0.8097 GB, free: 10.04 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/1.091, allocations: 6.562 kB / 0.8097 GB, free: 10.03 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/1.091, allocations: 0 / 0.8097 GB, free: 10.03 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001686/1.091, allocations: 162.2 kB / 0.8099 GB, free: 9.84 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/1.091, allocations: 0 / 0.8099 GB, free: 9.84 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001325/1.091, allocations: 13.17 kB / 0.8099 GB, free: 9.84 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/1.091, allocations: 3.844 kB / 0.8099 GB, free: 9.84 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/1.091, allocations: 0 / 0.8099 GB, free: 9.84 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/1.091, allocations: 4 kB / 0.8099 GB, free: 9.836 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/1.091, allocations: 0 / 0.8099 GB, free: 9.836 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001357/1.091, allocations: 148.2 kB / 0.81 GB, free: 9.703 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.398e-05/1.092, allocations: 81.02 kB / 0.8101 GB, free: 9.605 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.729e-05/1.092, allocations: 3.062 kB / 0.8101 GB, free: 9.605 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/1.092, allocations: 14.75 kB / 0.8101 GB, free: 9.602 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.204e-05/1.092, allocations: 6.969 kB / 0.8101 GB, free: 9.602 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.253e-06/1.092, allocations: 4 kB / 0.8101 GB, free: 9.598 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.399e-05/1.092, allocations: 89.28 kB / 0.8102 GB, free: 9.52 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.31e-07/1.092, allocations: 3.938 kB / 0.8102 GB, free: 9.516 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003063/1.092, allocations: 15.66 kB / 0.8102 GB, free: 9.508 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.0008869/1.093, allocations: 0.6953 MB / 0.8109 GB, free: 24.84 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001252/1.093, allocations: 21.3 kB / 0.8109 GB, free: 24.84 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/1.093, allocations: 0 / 0.8109 GB, free: 24.84 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.245e-05/1.093, allocations: 11.62 kB / 0.8109 GB, free: 24.84 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002336/1.094, allocations: 10.98 kB / 0.811 GB, free: 24.84 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004572/1.094, allocations: 99.84 kB / 0.8111 GB, free: 24.73 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003022/1.094, allocations: 0.6821 MB / 0.8117 GB, free: 24.04 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.016e-05/1.094, allocations: 4 kB / 0.8117 GB, free: 24.03 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.96e-05/1.094, allocations: 15.34 kB / 0.8117 GB, free: 24.02 MB / 0.6511 GB Notification: Performance of SimCode: time 9.72e-07/1.094, allocations: 0 / 0.8117 GB, free: 24.02 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02258/1.117, allocations: 1.263 MB / 0.813 GB, free: 23.81 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002169/1.117, allocations: 148.3 kB / 0.8131 GB, free: 23.59 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.293/3.41, allocations: 3.938 kB / 0.8131 GB, free: 23.59 MB / 0.6511 GB