Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadModel(ModelicaTest): time 2.311/2.311, allocations: 234.9 MB / 250.1 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.292e-05/2.298e-05, allocations: 0 / 308 MB, free: 4 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3698/0.3699, allocations: 54.86 MB / 362.8 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.000647/0.3706, allocations: 198.1 kB / 363 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004602/0.3752, allocations: 2.083 MB / 365.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.358e-05/0.3753, allocations: 4 kB / 365.1 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.333e-05/0.3753, allocations: 0 / 365.1 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.041e-06/0.3753, allocations: 0 / 365.1 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003212/0.3785, allocations: 0.7957 MB / 365.9 MB, free: 9.754 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.935e-05/0.3786, allocations: 5.125 kB / 365.9 MB, free: 9.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.061e-05/0.3787, allocations: 0 / 365.9 MB, free: 9.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.033e-05/0.3787, allocations: 13.17 kB / 365.9 MB, free: 9.738 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004433/0.3831, allocations: 1.608 MB / 367.5 MB, free: 8.992 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.453e-05/0.3832, allocations: 0 / 367.5 MB, free: 8.992 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.3832, allocations: 0 / 367.5 MB, free: 8.992 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.028e-05/0.3833, allocations: 1.031 kB / 367.5 MB, free: 8.992 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.462e-05/0.3833, allocations: 0 / 367.5 MB, free: 8.992 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 3.621e-05/0.3833, allocations: 1.031 kB / 367.5 MB, free: 8.992 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.64e-05/0.3834, allocations: 4 kB / 367.5 MB, free: 8.988 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.3834, allocations: 0 / 367.5 MB, free: 8.988 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.3834, allocations: 0.875 kB / 367.5 MB, free: 8.988 MB / 298.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.0003903/0.3838, allocations: 343.3 kB / 367.9 MB, free: 8.602 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.3839, allocations: 8.656 kB / 367.9 MB, free: 8.602 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.184e-05/0.3839, allocations: 0.9375 kB / 367.9 MB, free: 8.602 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.3841, allocations: 159.1 kB / 368 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.3841, allocations: 1.062 kB / 368 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.113e-05/0.3841, allocations: 1.312 kB / 368 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000102/0.3843, allocations: 34.95 kB / 368.1 MB, free: 8.367 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.3843, allocations: 5.016 kB / 368.1 MB, free: 8.363 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.3843, allocations: 3.938 kB / 368.1 MB, free: 8.359 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.3843, allocations: 3.953 kB / 368.1 MB, free: 8.355 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.221e-05/0.3844, allocations: 1.375 kB / 368.1 MB, free: 8.355 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002058/0.3846, allocations: 146.9 kB / 368.2 MB, free: 8.164 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.284e-05/0.3847, allocations: 17.23 kB / 368.3 MB, free: 8.141 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.739e-06/0.3847, allocations: 4 kB / 368.3 MB, free: 8.137 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.087e-05/0.3848, allocations: 61.55 kB / 368.3 MB, free: 8.062 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 2.024e-06/0.3848, allocations: 0 / 368.3 MB, free: 8.062 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002071/0.385, allocations: 63.27 kB / 368.4 MB, free: 7.996 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.649e-05/0.3851, allocations: 82.17 kB / 368.5 MB, free: 7.898 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.82e-05/0.3852, allocations: 85 kB / 368.5 MB, free: 7.809 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.3852, allocations: 25.7 kB / 368.6 MB, free: 7.777 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.551e-05/0.3853, allocations: 151.8 kB / 368.7 MB, free: 7.629 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.547e-05/0.3853, allocations: 7.906 kB / 368.7 MB, free: 7.621 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-06/0.3853, allocations: 1.438 kB / 368.7 MB, free: 7.621 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.3855, allocations: 314.8 kB / 369 MB, free: 7.305 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.273e-05/0.3855, allocations: 1.438 kB / 369 MB, free: 7.305 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.374e-06/0.3856, allocations: 0 / 369 MB, free: 7.305 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.977e-05/0.3856, allocations: 35.66 kB / 369.1 MB, free: 7.266 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3856, allocations: 0 / 369.1 MB, free: 7.266 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001174/0.3858, allocations: 61.75 kB / 369.1 MB, free: 7.199 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.922e-05/0.3858, allocations: 36.08 kB / 369.2 MB, free: 7.164 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3859, allocations: 0 / 369.2 MB, free: 7.164 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.3859, allocations: 1.219 kB / 369.2 MB, free: 7.164 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.793e-06/0.3859, allocations: 3.938 kB / 369.2 MB, free: 7.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.3859, allocations: 0 / 369.2 MB, free: 7.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.484e-05/0.386, allocations: 1.188 kB / 369.2 MB, free: 7.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-06/0.386, allocations: 0 / 369.2 MB, free: 7.16 MB / 298.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.0001322/0.3861, allocations: 142.8 kB / 369.3 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.318e-05/0.3861, allocations: 0 / 369.3 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.202e-05/0.3862, allocations: 8.188 kB / 369.3 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.3862, allocations: 0 / 369.3 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.3862, allocations: 1.188 kB / 369.3 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3862, allocations: 0 / 369.3 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001544/0.3864, allocations: 158.8 kB / 369.5 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.3864, allocations: 1.25 kB / 369.5 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.423e-06/0.3864, allocations: 3.938 kB / 369.5 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.3864, allocations: 0 / 369.5 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.3864, allocations: 1.344 kB / 369.5 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.3865, allocations: 3.938 kB / 369.5 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3865, allocations: 1.219 kB / 369.5 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001562/0.3866, allocations: 97.72 kB / 369.6 MB, free: 6.684 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.008e-05/0.3867, allocations: 77.11 kB / 369.7 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.061e-05/0.3867, allocations: 1.188 kB / 369.7 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.734e-05/0.3868, allocations: 0 / 369.7 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.103e-05/0.3868, allocations: 1.219 kB / 369.7 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.3868, allocations: 5 kB / 369.7 MB, free: 6.586 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.512e-05/0.3869, allocations: 75.28 kB / 369.7 MB, free: 6.512 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3869, allocations: 4.031 kB / 369.7 MB, free: 6.508 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003938/0.3873, allocations: 2.344 kB / 369.7 MB, free: 6.508 MB / 298.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.0001568/0.3875, allocations: 93.5 kB / 369.8 MB, free: 6.418 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001219/0.3876, allocations: 64.73 kB / 369.9 MB, free: 6.348 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3876, allocations: 0 / 369.9 MB, free: 6.348 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.682e-05/0.3877, allocations: 54.34 kB / 370 MB, free: 6.285 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001561/0.3879, allocations: 6.203 kB / 370 MB, free: 6.281 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002377/0.3881, allocations: 107.1 kB / 370.1 MB, free: 6.152 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.3885, allocations: 0.676 MB / 370.7 MB, free: 5.453 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.524e-05/0.3885, allocations: 7.438 kB / 370.7 MB, free: 5.445 MB / 298.7 MB Notification: Performance of SimCode: time 8.61e-07/0.3885, allocations: 0 / 370.7 MB, free: 5.445 MB / 298.7 MB Notification: Performance of Templates: time 0.002153/0.3907, allocations: 340.4 kB / 371.1 MB, free: 5.148 MB / 298.7 MB