Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadModel(Buildings): time 4.328/4.328, allocations: 464.7 MB / 476.8 MB, free: 2.207 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.848e-05/3.859e-05, allocations: 4 kB / 0.5731 GB, free: 5.727 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.197/0.197, allocations: 107.2 MB / 0.6778 GB, free: 10.38 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6903/0.8874, allocations: 131.1 MB / 0.8058 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/0.8877, allocations: 82.12 kB / 0.8058 GB, free: 12.58 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001322/0.8891, allocations: 0.5226 MB / 0.8064 GB, free: 12.27 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.404e-06/0.8891, allocations: 0 / 0.8064 GB, free: 12.27 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.908e-06/0.8891, allocations: 0 / 0.8064 GB, free: 12.27 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.0001754/0.8893, allocations: 309.1 kB / 0.8067 GB, free: 11.93 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.8893, allocations: 13.33 kB / 0.8067 GB, free: 11.93 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.934e-05/0.8894, allocations: 7.781 kB / 0.8067 GB, free: 11.92 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.894e-05/0.8895, allocations: 163 kB / 0.8068 GB, free: 11.72 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.8895, allocations: 0 / 0.8068 GB, free: 11.72 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.174e-06/0.8895, allocations: 7.875 kB / 0.8068 GB, free: 11.71 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.262e-05/0.8896, allocations: 39.89 kB / 0.8069 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.312e-06/0.8896, allocations: 0 / 0.8069 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-06/0.8896, allocations: 0 / 0.8069 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.791e-06/0.8896, allocations: 0 / 0.8069 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.9e-05/0.8897, allocations: 3.844 kB / 0.8069 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001086/0.8898, allocations: 156.1 kB / 0.807 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.326e-05/0.8899, allocations: 22.41 kB / 0.807 GB, free: 11.46 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.924e-05/0.8899, allocations: 8.703 kB / 0.8071 GB, free: 11.45 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001157/0.89, allocations: 78.28 kB / 0.8071 GB, free: 11.36 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.14e-05/0.89, allocations: 38.59 kB / 0.8072 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 2.017e-06/0.8901, allocations: 0 / 0.8072 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.000116/0.8902, allocations: 42.62 kB / 0.8072 GB, free: 11.28 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.034e-05/0.8902, allocations: 52.81 kB / 0.8073 GB, free: 11.22 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.002e-05/0.8902, allocations: 85 kB / 0.8073 GB, free: 11.13 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.835e-06/0.8903, allocations: 29.08 kB / 0.8074 GB, free: 11.1 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 1.228e-05/0.8903, allocations: 80.14 kB / 0.8074 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.8903, allocations: 0 / 0.8074 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.789e-06/0.8903, allocations: 0 / 0.8074 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 4.717e-05/0.8904, allocations: 312.4 kB / 0.8077 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.229e-05/0.8904, allocations: 3.844 kB / 0.8077 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.823e-06/0.8904, allocations: 7.875 kB / 0.8078 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.527e-05/0.8905, allocations: 3.125 kB / 0.8078 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.8905, allocations: 0 / 0.8078 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.114e-05/0.8905, allocations: 39.45 kB / 0.8078 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.8906, allocations: 11.66 kB / 0.8078 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.8906, allocations: 1.453 kB / 0.8078 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.8906, allocations: 0 / 0.8078 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.814e-05/0.8907, allocations: 3.844 kB / 0.8078 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.8907, allocations: 0 / 0.8078 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.792e-05/0.8907, allocations: 8.031 kB / 0.8078 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.454e-06/0.8908, allocations: 1.453 kB / 0.8078 GB, free: 10.65 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.281e-05/0.8908, allocations: 108.8 kB / 0.8079 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.115e-05/0.8908, allocations: 7.859 kB / 0.8079 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.091e-05/0.8909, allocations: 43.16 kB / 0.808 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.8909, allocations: 1.219 kB / 0.808 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.536e-06/0.891, allocations: 0.875 kB / 0.808 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.891, allocations: 0 / 0.808 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.365e-05/0.891, allocations: 155.6 kB / 0.8081 GB, free: 10.31 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.103e-06/0.8911, allocations: 0 / 0.8081 GB, free: 10.31 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.135e-05/0.8911, allocations: 0 / 0.8081 GB, free: 10.31 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.8911, allocations: 5.344 kB / 0.8081 GB, free: 10.3 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.197e-06/0.8911, allocations: 15.77 kB / 0.8081 GB, free: 10.29 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.042e-06/0.8911, allocations: 0 / 0.8081 GB, free: 10.29 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.608e-06/0.8912, allocations: 0 / 0.8081 GB, free: 10.29 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.167e-05/0.8912, allocations: 58.36 kB / 0.8082 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 1.895e-05/0.8913, allocations: 82.36 kB / 0.8083 GB, free: 10.13 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.265e-05/0.8913, allocations: 3.812 kB / 0.8083 GB, free: 10.13 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.794e-05/0.8913, allocations: 7.516 kB / 0.8083 GB, free: 10.13 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.862e-05/0.8914, allocations: 1.547 kB / 0.8083 GB, free: 10.13 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.033e-06/0.8914, allocations: 0 / 0.8083 GB, free: 10.13 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 1.556e-05/0.8914, allocations: 75.28 kB / 0.8084 GB, free: 10.05 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.5e-07/0.8914, allocations: 0 / 0.8084 GB, free: 10.05 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002535/0.8917, allocations: 9.359 kB / 0.8084 GB, free: 10.05 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.0001488/0.8918, allocations: 119.3 kB / 0.8085 GB, free: 9.953 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.148e-05/0.8919, allocations: 14.75 kB / 0.8085 GB, free: 9.949 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.683e-06/0.8919, allocations: 0 / 0.8085 GB, free: 9.949 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.051e-05/0.892, allocations: 5.141 kB / 0.8085 GB, free: 9.949 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001007/0.8921, allocations: 9.172 kB / 0.8085 GB, free: 9.945 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001449/0.8922, allocations: 56.08 kB / 0.8086 GB, free: 9.879 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/0.8923, allocations: 0.6745 MB / 0.8092 GB, free: 9.184 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 2.028e-05/0.8924, allocations: 0 / 0.8092 GB, free: 9.184 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.642e-05/0.8924, allocations: 17.05 kB / 0.8092 GB, free: 9.172 MB / 0.6355 GB Notification: Performance of SimCode: time 1.305e-06/0.8924, allocations: 0 / 0.8092 GB, free: 9.172 MB / 0.6355 GB Notification: Performance of Templates: time 0.002392/0.8948, allocations: 305.8 kB / 0.8095 GB, free: 9.125 MB / 0.6355 GB