Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadModel(ModelicaTest): time 2.537/2.537, allocations: 269 MB / 284.1 MB, free: 3.625 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.201e-05/3.197e-05, allocations: 4 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1504, allocations: 61.89 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0007663/0.1513, allocations: 180.7 kB / 411.1 MB, free: 12.68 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.006953/0.1583, allocations: 2.061 MB / 413.2 MB, free: 10.6 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.577e-05/0.1584, allocations: 0 / 413.2 MB, free: 10.6 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.702e-05/0.1584, allocations: 0 / 413.2 MB, free: 10.6 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.444e-06/0.1584, allocations: 0 / 413.2 MB, free: 10.6 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004136/0.1626, allocations: 0.8021 MB / 414 MB, free: 9.797 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 8.412e-05/0.1627, allocations: 4 kB / 414 MB, free: 9.793 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.1628, allocations: 3.984 kB / 414 MB, free: 9.789 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.071e-05/0.1629, allocations: 0 / 414 MB, free: 9.789 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004317/0.1672, allocations: 1.608 MB / 415.6 MB, free: 8.18 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.385e-05/0.1673, allocations: 0 / 415.6 MB, free: 8.18 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.098e-05/0.1673, allocations: 0 / 415.6 MB, free: 8.18 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.699e-05/0.1673, allocations: 0 / 415.6 MB, free: 8.18 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.33e-05/0.1673, allocations: 3.938 kB / 415.6 MB, free: 8.176 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 3.434e-05/0.1674, allocations: 7.984 kB / 415.6 MB, free: 8.168 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1674, allocations: 0 / 415.6 MB, free: 8.168 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.1674, allocations: 3.938 kB / 415.6 MB, free: 8.164 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.1674, allocations: 0 / 415.6 MB, free: 8.164 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003218/0.1678, allocations: 341 kB / 415.9 MB, free: 7.777 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.9e-05/0.1678, allocations: 12.09 kB / 415.9 MB, free: 7.766 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.26e-05/0.1679, allocations: 0 / 415.9 MB, free: 7.766 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.168, allocations: 159.1 kB / 416.1 MB, free: 7.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.168, allocations: 0 / 416.1 MB, free: 7.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.1681, allocations: 3.938 kB / 416.1 MB, free: 7.566 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.645e-05/0.1682, allocations: 41.64 kB / 416.1 MB, free: 7.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1682, allocations: 0 / 416.1 MB, free: 7.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.1682, allocations: 0 / 416.1 MB, free: 7.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1682, allocations: 4 kB / 416.1 MB, free: 7.516 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.193e-05/0.1682, allocations: 0 / 416.1 MB, free: 7.516 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001485/0.1684, allocations: 149.6 kB / 416.3 MB, free: 7.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.16e-05/0.1685, allocations: 14.58 kB / 416.3 MB, free: 7.297 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.087e-06/0.1685, allocations: 0 / 416.3 MB, free: 7.297 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.083e-05/0.1685, allocations: 60.36 kB / 416.4 MB, free: 7.223 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.452e-06/0.1685, allocations: 0 / 416.4 MB, free: 7.223 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001778/0.1687, allocations: 75.28 kB / 416.4 MB, free: 7.137 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.1688, allocations: 81.11 kB / 416.5 MB, free: 7.039 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.84e-05/0.1689, allocations: 85 kB / 416.6 MB, free: 6.949 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.1689, allocations: 25.7 kB / 416.6 MB, free: 6.918 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.697e-05/0.169, allocations: 150.6 kB / 416.8 MB, free: 6.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.738e-05/0.169, allocations: 0 / 416.8 MB, free: 6.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.405e-06/0.169, allocations: 0 / 416.8 MB, free: 6.77 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1691, allocations: 310.8 kB / 417.1 MB, free: 6.457 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.4e-05/0.1691, allocations: 8.125 kB / 417.1 MB, free: 6.449 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.268e-06/0.1692, allocations: 4 kB / 417.1 MB, free: 6.445 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.136e-05/0.1692, allocations: 29.69 kB / 417.1 MB, free: 6.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1692, allocations: 0 / 417.1 MB, free: 6.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.573e-05/0.1693, allocations: 59.41 kB / 417.2 MB, free: 6.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.075e-05/0.1694, allocations: 29.7 kB / 417.2 MB, free: 6.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.1694, allocations: 4 kB / 417.2 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.1694, allocations: 0 / 417.2 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.076e-05/0.1694, allocations: 7.891 kB / 417.2 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.1694, allocations: 8.078 kB / 417.2 MB, free: 6.285 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.731e-05/0.1695, allocations: 3.938 kB / 417.2 MB, free: 6.281 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.1695, allocations: 0 / 417.2 MB, free: 6.281 MB / 346.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: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001019/0.1696, allocations: 139.5 kB / 417.4 MB, free: 6.129 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-06/0.1696, allocations: 0 / 417.4 MB, free: 6.129 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.767e-05/0.1696, allocations: 15.06 kB / 417.4 MB, free: 6.113 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1697, allocations: 0 / 417.4 MB, free: 6.113 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1697, allocations: 3.953 kB / 417.4 MB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1697, allocations: 0 / 417.4 MB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.1698, allocations: 149.7 kB / 417.5 MB, free: 5.914 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1698, allocations: 4 kB / 417.5 MB, free: 5.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.162e-06/0.1698, allocations: 0 / 417.5 MB, free: 5.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1698, allocations: 0 / 417.5 MB, free: 5.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.1699, allocations: 4 kB / 417.5 MB, free: 5.906 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1699, allocations: 3.938 kB / 417.5 MB, free: 5.902 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1699, allocations: 4 kB / 417.5 MB, free: 5.898 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.17, allocations: 90.78 kB / 417.6 MB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.552e-05/0.1701, allocations: 81.14 kB / 417.7 MB, free: 5.688 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.1701, allocations: 7.938 kB / 417.7 MB, free: 5.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.129e-05/0.1701, allocations: 0 / 417.7 MB, free: 5.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.703e-05/0.1701, allocations: 0 / 417.7 MB, free: 5.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.1702, allocations: 0 / 417.7 MB, free: 5.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.254e-05/0.1702, allocations: 75.28 kB / 417.8 MB, free: 5.605 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.1702, allocations: 0 / 417.8 MB, free: 5.605 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002152/0.1704, allocations: 7.953 kB / 417.8 MB, free: 5.598 MB / 346.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: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001094/0.1705, allocations: 91.25 kB / 417.9 MB, free: 5.496 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.667e-05/0.1707, allocations: 71.39 kB / 418 MB, free: 5.414 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1707, allocations: 0 / 418 MB, free: 5.414 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.83e-05/0.1707, allocations: 55.41 kB / 418 MB, free: 5.348 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.836e-05/0.1708, allocations: 2.5 kB / 418 MB, free: 5.348 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001819/0.171, allocations: 100.6 kB / 418.1 MB, free: 5.215 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.1713, allocations: 0.6809 MB / 418.8 MB, free: 4.508 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.144e-05/0.1713, allocations: 7.438 kB / 418.8 MB, free: 4.5 MB / 346.7 MB Notification: Performance of SimCode: time 6.11e-07/0.1713, allocations: 4.125 kB / 418.8 MB, free: 4.496 MB / 346.7 MB Notification: Performance of Templates: time 0.001765/0.1731, allocations: 331.9 kB / 419.1 MB, free: 4.172 MB / 346.7 MB