Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadModel(Buildings): time 4.052/4.052, allocations: 460.5 MB / 472.6 MB, free: 5.395 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.591e-05/3.604e-05, allocations: 8 kB / 0.5681 GB, free: 10.17 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2577, allocations: 106.2 MB / 0.6718 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7406/0.9984, allocations: 130.7 MB / 0.7995 GB, free: 13.07 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.9986, allocations: 81.2 kB / 0.7996 GB, free: 13.07 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001253/0.9999, allocations: 0.5179 MB / 0.8001 GB, free: 12.75 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.704e-06/0.9999, allocations: 3.844 kB / 0.8001 GB, free: 12.75 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.37e-05/0.9999, allocations: 3.25 kB / 0.8001 GB, free: 12.75 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.0001702/1, allocations: 311.6 kB / 0.8004 GB, free: 12.41 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/1, allocations: 10.5 kB / 0.8004 GB, free: 12.41 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.263e-05/1, allocations: 0 / 0.8004 GB, free: 12.41 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.594e-05/1, allocations: 163 kB / 0.8005 GB, free: 12.21 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/1, allocations: 0 / 0.8005 GB, free: 12.21 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/1, allocations: 3.844 kB / 0.8005 GB, free: 12.21 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.978e-05/1, allocations: 40.42 kB / 0.8006 GB, free: 12.18 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.201e-06/1, allocations: 3.938 kB / 0.8006 GB, free: 12.17 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.78e-06/1, allocations: 0 / 0.8006 GB, free: 12.17 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.955e-06/1, allocations: 0 / 0.8006 GB, free: 12.17 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.907e-05/1, allocations: 3.969 kB / 0.8006 GB, free: 12.17 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001047/1.001, allocations: 152.6 kB / 0.8007 GB, free: 11.98 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.079e-05/1.001, allocations: 22.3 kB / 0.8007 GB, free: 11.96 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.832e-05/1.001, allocations: 4.859 kB / 0.8007 GB, free: 11.95 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001108/1.001, allocations: 91.47 kB / 0.8008 GB, free: 11.85 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.461e-05/1.001, allocations: 34.44 kB / 0.8009 GB, free: 11.81 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.971e-06/1.001, allocations: 0 / 0.8009 GB, free: 11.81 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001162/1.001, allocations: 41.23 kB / 0.8009 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.518e-05/1.001, allocations: 54.59 kB / 0.801 GB, free: 11.71 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.876e-05/1.001, allocations: 85 kB / 0.801 GB, free: 11.62 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.37e-06/1.001, allocations: 25.7 kB / 0.8011 GB, free: 11.59 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 1.498e-05/1.001, allocations: 84.17 kB / 0.8011 GB, free: 11.5 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.551e-05/1.001, allocations: 7.219 kB / 0.8012 GB, free: 11.5 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.072e-06/1.001, allocations: 0 / 0.8012 GB, free: 11.5 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 5.094e-05/1.001, allocations: 314.8 kB / 0.8015 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.202e-05/1.001, allocations: 0 / 0.8015 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.711e-06/1.001, allocations: 7.781 kB / 0.8015 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.114e-05/1.001, allocations: 3.844 kB / 0.8015 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.744e-06/1.001, allocations: 0 / 0.8015 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.155e-05/1.001, allocations: 40.78 kB / 0.8015 GB, free: 11.15 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/1.001, allocations: 7.844 kB / 0.8015 GB, free: 11.14 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.305e-06/1.001, allocations: 0 / 0.8015 GB, free: 11.14 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/1.001, allocations: 2.5 kB / 0.8015 GB, free: 11.14 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.521e-05/1.001, allocations: 7.781 kB / 0.8015 GB, free: 11.14 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.789e-06/1.001, allocations: 2.859 kB / 0.8015 GB, free: 11.14 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.726e-05/1.002, allocations: 0 / 0.8015 GB, free: 11.14 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.616e-06/1.002, allocations: 3.844 kB / 0.8015 GB, free: 11.14 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.292e-05/1.002, allocations: 104.9 kB / 0.8016 GB, free: 11.03 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.278e-06/1.002, allocations: 0 / 0.8016 GB, free: 11.03 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.066e-05/1.002, allocations: 51.38 kB / 0.8017 GB, free: 10.99 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.969e-06/1.002, allocations: 3.984 kB / 0.8017 GB, free: 10.98 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/1.002, allocations: 0 / 0.8017 GB, free: 10.98 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.118e-06/1.002, allocations: 0 / 0.8017 GB, free: 10.98 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.331e-05/1.002, allocations: 160.3 kB / 0.8018 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.842e-06/1.002, allocations: 0 / 0.8018 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.317e-05/1.002, allocations: 3.969 kB / 0.8018 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.09e-06/1.002, allocations: 0 / 0.8018 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.674e-06/1.002, allocations: 0 / 0.8018 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.265e-06/1.002, allocations: 0 / 0.8018 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.19e-06/1.002, allocations: 11.3 kB / 0.8018 GB, free: 10.78 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.366e-05/1.002, allocations: 62.27 kB / 0.8019 GB, free: 10.71 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 1.912e-05/1.002, allocations: 83.97 kB / 0.802 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.174e-05/1.002, allocations: 0 / 0.802 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.619e-05/1.002, allocations: 0 / 0.802 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.628e-05/1.002, allocations: 0 / 0.802 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.165e-06/1.002, allocations: 7.844 kB / 0.802 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 1.608e-05/1.002, allocations: 81.81 kB / 0.8021 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.33e-07/1.002, allocations: 0 / 0.8021 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002484/1.002, allocations: 6.797 kB / 0.8021 GB, free: 10.54 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.0001363/1.003, allocations: 108.2 kB / 0.8022 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 6.714e-05/1.003, allocations: 11.28 kB / 0.8022 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.467e-06/1.003, allocations: 3.844 kB / 0.8022 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.971e-05/1.003, allocations: 6.703 kB / 0.8022 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.636e-05/1.003, allocations: 4.125 kB / 0.8022 GB, free: 10.44 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001406/1.003, allocations: 56.34 kB / 0.8023 GB, free: 10.37 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001026/1.003, allocations: 0.6795 MB / 0.8029 GB, free: 9.672 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 1.619e-05/1.003, allocations: 6.969 kB / 0.8029 GB, free: 9.672 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.396e-05/1.003, allocations: 7.438 kB / 0.8029 GB, free: 9.664 MB / 0.6355 GB Notification: Performance of SimCode: time 1.492e-06/1.003, allocations: 0 / 0.8029 GB, free: 9.664 MB / 0.6355 GB Notification: Performance of Templates: time 0.002319/1.005, allocations: 295.2 kB / 0.8032 GB, free: 9.625 MB / 0.6355 GB