Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(BuildSysPro): time 3.582/3.582, allocations: 325.3 MB / 337.4 MB, free: 10.09 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.513e-05/4.518e-05, allocations: 7.984 kB / 414.9 MB, free: 6.027 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.177/0.1771, allocations: 74.42 MB / 489.3 MB, free: 11.47 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6649/0.8421, allocations: 102.3 MB / 0.5777 GB, free: 13 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00029/0.8424, allocations: 72.77 kB / 0.5778 GB, free: 12.96 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003956/0.8464, allocations: 0.9505 MB / 0.5787 GB, free: 12.11 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.8464, allocations: 0 / 0.5787 GB, free: 12.11 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.8465, allocations: 0 / 0.5787 GB, free: 12.11 MB / 474.7 MB 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.0005094/0.847, allocations: 343.8 kB / 0.579 GB, free: 11.73 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.847, allocations: 16.02 kB / 0.579 GB, free: 11.71 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.841e-05/0.8471, allocations: 34.56 kB / 0.5791 GB, free: 11.67 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.876e-05/0.8471, allocations: 3.906 kB / 0.5791 GB, free: 11.67 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.8473, allocations: 167 kB / 0.5792 GB, free: 11.46 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.661e-05/0.8473, allocations: 7.984 kB / 0.5792 GB, free: 11.46 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.8474, allocations: 0 / 0.5792 GB, free: 11.46 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.8475, allocations: 46.28 kB / 0.5793 GB, free: 11.41 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.8475, allocations: 3.938 kB / 0.5793 GB, free: 11.41 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.8475, allocations: 0 / 0.5793 GB, free: 11.41 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.8476, allocations: 4 kB / 0.5793 GB, free: 11.41 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.118e-05/0.8476, allocations: 22.86 kB / 0.5793 GB, free: 11.39 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006135/0.8483, allocations: 278.7 kB / 0.5796 GB, free: 11.08 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003697/0.8487, allocations: 50.3 kB / 0.5796 GB, free: 11.03 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.59e-05/0.8487, allocations: 12.92 kB / 0.5796 GB, free: 11.02 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001428/0.8489, allocations: 81.11 kB / 0.5797 GB, free: 10.92 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.8489, allocations: 33.94 kB / 0.5797 GB, free: 10.88 MB / 474.7 MB Notification: Performance of pre-optimization done (n=3): time 4.408e-06/0.8489, allocations: 0 / 0.5797 GB, free: 10.88 MB / 474.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002105/0.8492, allocations: 55.75 kB / 0.5798 GB, free: 10.82 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/0.8492, allocations: 59.34 kB / 0.5799 GB, free: 10.75 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.994e-05/0.8493, allocations: 92.98 kB / 0.5799 GB, free: 10.66 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.8494, allocations: 28.52 kB / 0.58 GB, free: 10.62 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.651e-05/0.8494, allocations: 84.14 kB / 0.5801 GB, free: 10.54 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.139e-05/0.8495, allocations: 7.891 kB / 0.5801 GB, free: 10.53 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.523e-06/0.8495, allocations: 7.875 kB / 0.5801 GB, free: 10.53 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.8496, allocations: 314.8 kB / 0.5804 GB, free: 10.21 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.409e-05/0.8497, allocations: 7.875 kB / 0.5804 GB, free: 10.21 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.451e-05/0.8497, allocations: 4 kB / 0.5804 GB, free: 10.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.161e-05/0.8498, allocations: 11.48 kB / 0.5804 GB, free: 10.2 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.8498, allocations: 0 / 0.5804 GB, free: 10.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001303/0.8499, allocations: 52.19 kB / 0.5804 GB, free: 10.14 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.85, allocations: 8 kB / 0.5804 GB, free: 10.14 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.85, allocations: 0 / 0.5804 GB, free: 10.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.85, allocations: 0 / 0.5804 GB, free: 10.14 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.8502, allocations: 15.98 kB / 0.5805 GB, free: 10.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.8502, allocations: 0 / 0.5805 GB, free: 10.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.8503, allocations: 7.938 kB / 0.5805 GB, free: 10.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.8503, allocations: 7.984 kB / 0.5805 GB, free: 10.11 MB / 474.7 MB 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 9.035e-05/0.8504, allocations: 108.9 kB / 0.5806 GB, free: 9.992 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.123e-05/0.8505, allocations: 0.875 kB / 0.5806 GB, free: 9.992 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001843/0.8507, allocations: 63.34 kB / 0.5806 GB, free: 9.934 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.8507, allocations: 48 / 0.5806 GB, free: 9.934 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.8507, allocations: 3.984 kB / 0.5806 GB, free: 9.93 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.8507, allocations: 3.984 kB / 0.5807 GB, free: 9.926 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002308/0.8509, allocations: 164.9 kB / 0.5808 GB, free: 9.719 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.851, allocations: 0 / 0.5808 GB, free: 9.719 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.8511, allocations: 23.73 kB / 0.5808 GB, free: 9.699 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.8511, allocations: 0 / 0.5808 GB, free: 9.699 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.8511, allocations: 4 kB / 0.5808 GB, free: 9.695 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.8511, allocations: 3.984 kB / 0.5808 GB, free: 9.691 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.8512, allocations: 3.938 kB / 0.5808 GB, free: 9.688 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001836/0.8514, allocations: 146.8 kB / 0.581 GB, free: 9.535 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.857e-05/0.8514, allocations: 81.11 kB / 0.5811 GB, free: 9.438 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.8514, allocations: 0 / 0.5811 GB, free: 9.438 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.8516, allocations: 11.98 kB / 0.5811 GB, free: 9.426 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.805e-05/0.8517, allocations: 4 kB / 0.5811 GB, free: 9.422 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.8517, allocations: 7.797 kB / 0.5811 GB, free: 9.418 MB / 474.7 MB Notification: Performance of sorting global known variables: time 5.364e-05/0.8518, allocations: 79.28 kB / 0.5812 GB, free: 9.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.8518, allocations: 0 / 0.5812 GB, free: 9.34 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0003305/0.8521, allocations: 19.94 kB / 0.5812 GB, free: 9.32 MB / 474.7 MB 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.0006351/0.8528, allocations: 0.6982 MB / 0.5819 GB, free: 8.605 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001298/0.8529, allocations: 18.75 kB / 0.5819 GB, free: 8.594 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.8529, allocations: 0 / 0.5819 GB, free: 8.594 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 5.195e-05/0.853, allocations: 11.19 kB / 0.5819 GB, free: 8.586 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.8532, allocations: 7.984 kB / 0.5819 GB, free: 8.578 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004724/0.8537, allocations: 110.8 kB / 0.582 GB, free: 8.441 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.854, allocations: 0.6809 MB / 0.5827 GB, free: 7.734 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 4.657e-05/0.8541, allocations: 0 / 0.5827 GB, free: 7.734 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.036e-05/0.8542, allocations: 18.67 kB / 0.5827 GB, free: 7.719 MB / 474.7 MB Notification: Performance of SimCode: time 8.02e-07/0.8542, allocations: 0 / 0.5827 GB, free: 7.719 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01916/0.8734, allocations: 1.279 MB / 0.5839 GB, free: 6.5 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002604/0.8737, allocations: 156.3 kB / 0.5841 GB, free: 6.273 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.4/3.274, allocations: 0 / 0.5841 GB, free: 6.273 MB / 474.7 MB