Running command: translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") Notification: Performance of loadModel(BuildingSystems): time 3.164/3.164, allocations: 343.8 MB / 355.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.947e-05/3.961e-05, allocations: 4 kB / 436.6 MB, free: 2.477 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1406, allocations: 77.73 MB / 0.5023 GB, free: 4.586 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5645/0.7051, allocations: 105.8 MB / 0.6056 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002295/0.7054, allocations: 67.97 kB / 0.6057 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.003498/0.7089, allocations: 0.9383 MB / 0.6066 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.052e-06/0.709, allocations: 3.938 kB / 0.6066 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.908e-06/0.709, allocations: 4 kB / 0.6066 GB, free: 14.26 MB / 0.4948 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.0004316/0.7094, allocations: 340.8 kB / 0.6069 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.7095, allocations: 8.031 kB / 0.6069 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.014e-05/0.7095, allocations: 0 / 0.6069 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/0.7097, allocations: 167 kB / 0.6071 GB, free: 13.68 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.406e-05/0.7097, allocations: 4 kB / 0.6071 GB, free: 13.67 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.7097, allocations: 4 kB / 0.6071 GB, free: 13.67 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001217/0.7099, allocations: 49.62 kB / 0.6071 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.461e-06/0.7099, allocations: 0 / 0.6071 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.7099, allocations: 3.984 kB / 0.6071 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.246e-06/0.7099, allocations: 0 / 0.6071 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.518e-05/0.71, allocations: 23.94 kB / 0.6072 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005292/0.7106, allocations: 284.8 kB / 0.6074 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000267/0.7108, allocations: 42.56 kB / 0.6075 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.037e-05/0.7109, allocations: 16.92 kB / 0.6075 GB, free: 13.19 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001339/0.7111, allocations: 85.03 kB / 0.6076 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.7111, allocations: 34.56 kB / 0.6076 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=3): time 2.562e-06/0.7111, allocations: 0 / 0.6076 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3): time 0.0001898/0.7113, allocations: 45.78 kB / 0.6076 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.7114, allocations: 59.36 kB / 0.6077 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.218e-05/0.7115, allocations: 96.98 kB / 0.6078 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.7115, allocations: 25.7 kB / 0.6078 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.937e-05/0.7116, allocations: 84.14 kB / 0.6079 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.7116, allocations: 7.906 kB / 0.6079 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.834e-06/0.7116, allocations: 0 / 0.6079 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.7118, allocations: 310.8 kB / 0.6082 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.453e-05/0.7118, allocations: 11.98 kB / 0.6082 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.299e-05/0.7119, allocations: 16 kB / 0.6082 GB, free: 12.36 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.578e-05/0.7119, allocations: 4.328 kB / 0.6082 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.712, allocations: 3.938 kB / 0.6082 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001315/0.7121, allocations: 53.58 kB / 0.6083 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.7121, allocations: 6.656 kB / 0.6083 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.443e-06/0.7121, allocations: 5 kB / 0.6083 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.7122, allocations: 0 / 0.6083 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.7123, allocations: 15.98 kB / 0.6083 GB, free: 12.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.127e-06/0.7123, allocations: 3.984 kB / 0.6083 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.033e-05/0.7124, allocations: 23.88 kB / 0.6083 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.687e-06/0.7124, allocations: 0 / 0.6083 GB, free: 12.24 MB / 0.4948 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.917e-05/0.7125, allocations: 105 kB / 0.6084 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.415e-05/0.7126, allocations: 0 / 0.6084 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001693/0.7128, allocations: 61.11 kB / 0.6085 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.188e-06/0.7128, allocations: 3.938 kB / 0.6085 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.106e-06/0.7128, allocations: 0.875 kB / 0.6085 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.653e-06/0.7128, allocations: 4 kB / 0.6085 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002312/0.7131, allocations: 165.6 kB / 0.6087 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.05e-06/0.7131, allocations: 0 / 0.6087 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.7132, allocations: 19.98 kB / 0.6087 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.363e-06/0.7132, allocations: 0 / 0.6087 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.7132, allocations: 4 kB / 0.6087 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.183e-06/0.7133, allocations: 0 / 0.6087 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.618e-06/0.7133, allocations: 0 / 0.6087 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001822/0.7135, allocations: 155.4 kB / 0.6088 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.993e-05/0.7135, allocations: 77.11 kB / 0.6089 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.7135, allocations: 0 / 0.6089 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.7137, allocations: 11.98 kB / 0.6089 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.452e-05/0.7138, allocations: 11.92 kB / 0.6089 GB, free: 11.53 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.265e-06/0.7138, allocations: 0 / 0.6089 GB, free: 11.53 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 5.4e-05/0.7138, allocations: 83.28 kB / 0.609 GB, free: 11.45 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.61e-07/0.7139, allocations: 0 / 0.609 GB, free: 11.45 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.000314/0.7142, allocations: 15.94 kB / 0.609 GB, free: 11.43 MB / 0.4948 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.0001782/0.7144, allocations: 115 kB / 0.6091 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001155/0.7145, allocations: 27.94 kB / 0.6092 GB, free: 11.29 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.283e-06/0.7145, allocations: 0 / 0.6092 GB, free: 11.29 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 4.705e-05/0.7146, allocations: 8 kB / 0.6092 GB, free: 11.28 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001971/0.7148, allocations: 11.94 kB / 0.6092 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002382/0.715, allocations: 69.95 kB / 0.6092 GB, free: 11.18 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.7154, allocations: 0.6809 MB / 0.6099 GB, free: 10.47 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 4.106e-05/0.7155, allocations: 4 kB / 0.6099 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.004e-05/0.7155, allocations: 7.438 kB / 0.6099 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of SimCode: time 1.322e-06/0.7155, allocations: 0 / 0.6099 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of Templates: time 0.003127/0.7186, allocations: 0.5997 MB / 0.6105 GB, free: 9.863 MB / 0.4948 GB