Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadModel(Buildings): time 4.097/4.097, allocations: 464.6 MB / 476.8 MB, free: 2.105 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.204e-05/3.22e-05, allocations: 4 kB / 0.5731 GB, free: 5.727 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1949/0.1949, allocations: 107.2 MB / 0.6777 GB, free: 10.37 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7473/0.9423, allocations: 132 MB / 0.8067 GB, free: 12.63 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.9426, allocations: 68.17 kB / 0.8068 GB, free: 12.63 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003053/0.9456, allocations: 0.9297 MB / 0.8077 GB, free: 12.29 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.839e-06/0.9457, allocations: 0 / 0.8077 GB, free: 12.29 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.9457, allocations: 3.812 kB / 0.8077 GB, free: 12.29 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.0003132/0.946, allocations: 351 kB / 0.808 GB, free: 11.93 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.9461, allocations: 7.688 kB / 0.808 GB, free: 11.93 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.815e-05/0.9461, allocations: 4 kB / 0.808 GB, free: 11.93 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.595e-05/0.9462, allocations: 173.6 kB / 0.8082 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.9462, allocations: 0 / 0.8082 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.9463, allocations: 3.812 kB / 0.8082 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001004/0.9464, allocations: 42.62 kB / 0.8082 GB, free: 11.7 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.492e-06/0.9464, allocations: 0 / 0.8082 GB, free: 11.7 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.9464, allocations: 7.922 kB / 0.8082 GB, free: 11.69 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.67e-06/0.9464, allocations: 0 / 0.8082 GB, free: 11.69 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.444e-05/0.9465, allocations: 20.17 kB / 0.8082 GB, free: 11.69 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004133/0.9469, allocations: 289.7 kB / 0.8085 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002521/0.9472, allocations: 43.11 kB / 0.8086 GB, free: 11.39 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.952e-05/0.9473, allocations: 15.7 kB / 0.8086 GB, free: 11.38 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.9474, allocations: 84.98 kB / 0.8087 GB, free: 11.28 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.834e-05/0.9474, allocations: 30.56 kB / 0.8087 GB, free: 11.24 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 2.197e-06/0.9474, allocations: 0 / 0.8087 GB, free: 11.24 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001809/0.9476, allocations: 54.94 kB / 0.8087 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.044e-05/0.9477, allocations: 54.55 kB / 0.8088 GB, free: 11.14 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.236e-05/0.9477, allocations: 91.91 kB / 0.8089 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.9477, allocations: 25.7 kB / 0.8089 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.83e-05/0.9478, allocations: 80.14 kB / 0.809 GB, free: 10.94 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.653e-05/0.9478, allocations: 14.75 kB / 0.809 GB, free: 10.93 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.337e-06/0.9478, allocations: 0 / 0.809 GB, free: 10.93 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 5.157e-05/0.9479, allocations: 317.6 kB / 0.8093 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.793e-05/0.9479, allocations: 6.656 kB / 0.8093 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.466e-05/0.948, allocations: 10.69 kB / 0.8093 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.352e-05/0.948, allocations: 10.23 kB / 0.8093 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.046e-06/0.948, allocations: 3.938 kB / 0.8093 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001098/0.9481, allocations: 51.22 kB / 0.8094 GB, free: 10.58 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.9482, allocations: 7.656 kB / 0.8094 GB, free: 10.58 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.9482, allocations: 0 / 0.8094 GB, free: 10.58 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.9482, allocations: 7.938 kB / 0.8094 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.9483, allocations: 16.33 kB / 0.8094 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.531e-06/0.9483, allocations: 0 / 0.8094 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.501e-05/0.9484, allocations: 7.469 kB / 0.8094 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.079e-06/0.9484, allocations: 3.875 kB / 0.8094 GB, free: 10.57 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 4.814e-05/0.9485, allocations: 104.9 kB / 0.8095 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.386e-05/0.9485, allocations: 4 kB / 0.8095 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001448/0.9487, allocations: 60.23 kB / 0.8096 GB, free: 10.42 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.662e-06/0.9487, allocations: 0 / 0.8096 GB, free: 10.42 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.736e-06/0.9487, allocations: 4 kB / 0.8096 GB, free: 10.41 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.135e-06/0.9487, allocations: 3.234 kB / 0.8096 GB, free: 10.41 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001534/0.9489, allocations: 164.8 kB / 0.8097 GB, free: 10.22 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.03e-06/0.9489, allocations: 0 / 0.8097 GB, free: 10.22 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.949, allocations: 14.52 kB / 0.8098 GB, free: 10.22 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.22e-06/0.949, allocations: 6.875 kB / 0.8098 GB, free: 10.22 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.265e-06/0.9491, allocations: 4 kB / 0.8098 GB, free: 10.21 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.239e-06/0.9491, allocations: 0 / 0.8098 GB, free: 10.21 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.628e-06/0.9491, allocations: 0 / 0.8098 GB, free: 10.21 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001257/0.9492, allocations: 155 kB / 0.8099 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.116e-05/0.9493, allocations: 81.02 kB / 0.81 GB, free: 9.977 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.581e-05/0.9493, allocations: 0 / 0.81 GB, free: 9.977 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.9494, allocations: 10.86 kB / 0.81 GB, free: 9.977 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.634e-05/0.9495, allocations: 14.5 kB / 0.81 GB, free: 9.973 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.007e-06/0.9495, allocations: 0 / 0.81 GB, free: 9.973 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 2.904e-05/0.9495, allocations: 79.16 kB / 0.8101 GB, free: 9.898 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.678e-06/0.9495, allocations: 0 / 0.8101 GB, free: 9.898 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003132/0.9499, allocations: 18.62 kB / 0.8101 GB, free: 9.891 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.0001415/0.95, allocations: 113.1 kB / 0.8102 GB, free: 9.801 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001083/0.9501, allocations: 25.12 kB / 0.8102 GB, free: 9.797 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.536e-06/0.9502, allocations: 4 kB / 0.8102 GB, free: 9.793 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.246e-05/0.9502, allocations: 10.72 kB / 0.8103 GB, free: 9.793 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001984/0.9504, allocations: 7.812 kB / 0.8103 GB, free: 9.789 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002202/0.9506, allocations: 71.64 kB / 0.8103 GB, free: 9.719 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004071/0.9511, allocations: 0.6802 MB / 0.811 GB, free: 25.02 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.128e-05/0.9511, allocations: 2.766 kB / 0.811 GB, free: 25.02 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.808e-05/0.9512, allocations: 15.28 kB / 0.811 GB, free: 25.01 MB / 0.6511 GB Notification: Performance of SimCode: time 1.716e-06/0.9512, allocations: 0 / 0.811 GB, free: 25.01 MB / 0.6511 GB Notification: Performance of Templates: time 0.00301/0.9542, allocations: 0.6006 MB / 0.8116 GB, free: 24.95 MB / 0.6511 GB