Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadModel(ModelicaTest): time 1.887/1.887, allocations: 209.3 MB / 221.9 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.996e-05/4.078e-05, allocations: 7.984 kB / 273.1 MB, free: 3.656 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08615/0.08621, allocations: 48.69 MB / 321.7 MB, free: 2.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3752/0.4615, allocations: 74.94 MB / 396.7 MB, free: 7.078 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/0.4617, allocations: 69.42 kB / 396.7 MB, free: 7.078 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00824/0.47, allocations: 2.321 MB / 399.1 MB, free: 6.625 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.941e-06/0.47, allocations: 4 kB / 399.1 MB, free: 6.621 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.4701, allocations: 3.906 kB / 399.1 MB, free: 6.621 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004055/0.4705, allocations: 405.1 kB / 399.5 MB, free: 6.246 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.4705, allocations: 7.531 kB / 399.5 MB, free: 6.246 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.974e-05/0.4706, allocations: 15.66 kB / 399.5 MB, free: 6.238 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/0.4708, allocations: 207.2 kB / 399.7 MB, free: 6.023 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.4708, allocations: 6.469 kB / 399.7 MB, free: 6.023 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.228e-05/0.4709, allocations: 18.06 kB / 399.7 MB, free: 6.023 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002438/0.4711, allocations: 117.8 kB / 399.8 MB, free: 5.984 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.4711, allocations: 0 / 399.8 MB, free: 5.984 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.4712, allocations: 7.156 kB / 399.8 MB, free: 5.984 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.946e-06/0.4712, allocations: 3.844 kB / 399.8 MB, free: 5.984 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001773/0.4714, allocations: 73.06 kB / 399.9 MB, free: 5.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006544/0.472, allocations: 474.8 kB / 400.4 MB, free: 5.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.4723, allocations: 107.6 kB / 400.5 MB, free: 5.656 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.4724, allocations: 49.33 kB / 400.5 MB, free: 5.648 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.4724, allocations: 3.844 kB / 400.5 MB, free: 5.648 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.735e-05/0.4724, allocations: 37.88 kB / 400.6 MB, free: 5.605 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.514e-06/0.4725, allocations: 0 / 400.6 MB, free: 5.605 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.001358/0.4738, allocations: 0.746 MB / 401.3 MB, free: 5.113 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.364e-05/0.4739, allocations: 60.05 kB / 401.4 MB, free: 5.051 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.474, allocations: 126.1 kB / 401.5 MB, free: 4.957 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.474, allocations: 33.27 kB / 401.5 MB, free: 4.926 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.896e-05/0.4741, allocations: 176.2 kB / 401.7 MB, free: 4.766 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.647e-05/0.4741, allocations: 74.11 kB / 401.8 MB, free: 4.719 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.458e-06/0.4742, allocations: 0 / 401.8 MB, free: 4.719 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.998e-05/0.4742, allocations: 317.3 kB / 402.1 MB, free: 4.406 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.1e-05/0.4743, allocations: 41.59 kB / 402.1 MB, free: 4.402 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.4744, allocations: 71.5 kB / 402.2 MB, free: 4.367 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/0.4746, allocations: 62.17 kB / 402.3 MB, free: 4.355 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.14e-06/0.4746, allocations: 0 / 402.3 MB, free: 4.355 MB / 314.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004134/0.475, allocations: 187 kB / 402.4 MB, free: 4.301 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.475, allocations: 3.844 kB / 402.4 MB, free: 4.301 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.434e-06/0.475, allocations: 0 / 402.4 MB, free: 4.301 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001785/0.4752, allocations: 41.12 kB / 402.5 MB, free: 4.293 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.4755, allocations: 43.66 kB / 402.5 MB, free: 4.285 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001752/0.4772, allocations: 1.545 MB / 404.1 MB, free: 18.94 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.4774, allocations: 11.72 kB / 404.1 MB, free: 18.94 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.4774, allocations: 5.188 kB / 404.1 MB, free: 18.94 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001107/0.4775, allocations: 115.8 kB / 404.2 MB, free: 18.83 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.23e-05/0.4776, allocations: 14.53 kB / 404.2 MB, free: 18.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.15e-05/0.4776, allocations: 21.7 kB / 404.2 MB, free: 18.81 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.747e-06/0.4777, allocations: 10.52 kB / 404.3 MB, free: 18.8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.27e-06/0.4777, allocations: 9.344 kB / 404.3 MB, free: 18.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.4777, allocations: 0 / 404.3 MB, free: 18.8 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009127/0.4786, allocations: 0.546 MB / 404.8 MB, free: 18.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.402e-06/0.4786, allocations: 0 / 404.8 MB, free: 18.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002224/0.4789, allocations: 34.92 kB / 404.8 MB, free: 18.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001334/0.479, allocations: 32.09 kB / 404.9 MB, free: 18.39 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.479, allocations: 7.531 kB / 404.9 MB, free: 18.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001325/0.4804, allocations: 1.369 MB / 406.2 MB, free: 17.08 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.703e-06/0.4804, allocations: 3.953 kB / 406.3 MB, free: 17.07 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005051/0.4809, allocations: 338.5 kB / 406.6 MB, free: 16.88 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.985e-05/0.481, allocations: 104.5 kB / 406.7 MB, free: 16.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.4811, allocations: 7.875 kB / 406.7 MB, free: 16.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.4812, allocations: 7.625 kB / 406.7 MB, free: 16.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.331e-05/0.4813, allocations: 15.22 kB / 406.7 MB, free: 16.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.4813, allocations: 7.438 kB / 406.7 MB, free: 16.76 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001023/0.4814, allocations: 106.4 kB / 406.8 MB, free: 16.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.66e-07/0.4814, allocations: 0 / 406.8 MB, free: 16.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004466/0.4819, allocations: 42.47 kB / 406.9 MB, free: 16.68 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001404/0.4821, allocations: 102.7 kB / 407 MB, free: 16.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004625/0.4825, allocations: 243.3 kB / 407.2 MB, free: 16.47 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.073e-06/0.4826, allocations: 0 / 407.2 MB, free: 16.47 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002824/0.4828, allocations: 178.8 kB / 407.4 MB, free: 16.35 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.4831, allocations: 12.53 kB / 407.4 MB, free: 16.35 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006791/0.4838, allocations: 361.4 kB / 407.7 MB, free: 16.08 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.4843, allocations: 0.7273 MB / 408.5 MB, free: 15.36 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.89e-05/0.4843, allocations: 19.06 kB / 408.5 MB, free: 15.35 MB / 330.7 MB Notification: Performance of SimCode: time 1.509e-06/0.4843, allocations: 0 / 408.5 MB, free: 15.35 MB / 330.7 MB Notification: Performance of Templates: time 0.004115/0.4885, allocations: 2.317 MB / 410.8 MB, free: 14.19 MB / 330.7 MB