Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 1.611/1.611, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.886e-05/2.9e-05, allocations: 7.938 kB / 225 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2105, allocations: 38.77 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1031/0.3136, allocations: 69.09 MB / 332.9 MB, free: 4.668 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/0.3139, allocations: 71.95 kB / 332.9 MB, free: 4.598 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03774/0.3516, allocations: 8.784 MB / 341.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.645e-06/0.3517, allocations: 3.984 kB / 341.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.08e-05/0.3517, allocations: 8 kB / 341.7 MB, free: 11.78 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001948/0.3537, allocations: 0.7829 MB / 342.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.3538, allocations: 12.03 kB / 342.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000203/0.354, allocations: 55.34 kB / 342.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006747/0.3547, allocations: 343.6 kB / 342.9 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.375e-05/0.3547, allocations: 37 kB / 342.9 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/0.3549, allocations: 51.86 kB / 343 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.3563, allocations: 0.5703 MB / 343.6 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.132e-05/0.3564, allocations: 15.83 kB / 343.6 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.989e-05/0.3565, allocations: 16 kB / 343.6 MB, free: 9.809 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.3565, allocations: 16 kB / 343.6 MB, free: 9.793 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.3579, allocations: 0.5408 MB / 344.1 MB, free: 9.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003504/0.3614, allocations: 1.352 MB / 345.5 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.3627, allocations: 432 kB / 345.9 MB, free: 7.402 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006717/0.3634, allocations: 282.5 kB / 346.2 MB, free: 7.125 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.454e-05/0.3635, allocations: 8.547 kB / 346.2 MB, free: 7.117 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.3635, allocations: 47.05 kB / 346.3 MB, free: 7.062 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 4.605e-06/0.3636, allocations: 0 / 346.3 MB, free: 7.062 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.005731/0.3693, allocations: 2.077 MB / 348.3 MB, free: 4.895 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/0.3694, allocations: 55.97 kB / 348.4 MB, free: 4.828 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000501/0.3699, allocations: 283.6 kB / 348.7 MB, free: 4.551 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001596/0.3701, allocations: 49.69 kB / 348.7 MB, free: 4.496 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002028/0.3703, allocations: 247.7 kB / 349 MB, free: 4.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003133/0.3706, allocations: 221 kB / 349.2 MB, free: 4.031 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.875e-05/0.3707, allocations: 16 kB / 349.2 MB, free: 4.016 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.3709, allocations: 342.8 kB / 349.5 MB, free: 3.672 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007449/0.3717, allocations: 289.5 kB / 349.8 MB, free: 3.387 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008176/0.3725, allocations: 345.5 kB / 350.1 MB, free: 3.043 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006152/0.3731, allocations: 230 kB / 350.4 MB, free: 2.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.041e-06/0.3731, allocations: 0 / 350.4 MB, free: 2.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002245/0.3754, allocations: 0.8566 MB / 351.2 MB, free: 1.953 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/0.3755, allocations: 8.031 kB / 351.2 MB, free: 1.945 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.3755, allocations: 0 / 351.2 MB, free: 1.945 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001945/0.3775, allocations: 0.7561 MB / 352 MB, free: 1.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006278/0.3781, allocations: 111.8 kB / 352.1 MB, free: 1.078 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001999/0.3801, allocations: 1.071 MB / 353.2 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000975/0.3812, allocations: 143.9 kB / 353.3 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.3813, allocations: 35.98 kB / 353.3 MB, free: 15.81 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0002528/0.3816, allocations: 143.1 kB / 353.5 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.3817, allocations: 47.44 kB / 353.5 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001886/0.3819, allocations: 72.75 kB / 353.6 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.382, allocations: 7.984 kB / 353.6 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.386e-06/0.382, allocations: 4 kB / 353.6 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.382, allocations: 3.953 kB / 353.6 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003787/0.3858, allocations: 1.567 MB / 355.2 MB, free: 13.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.245e-06/0.3858, allocations: 0 / 355.2 MB, free: 13.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006498/0.3865, allocations: 91.88 kB / 355.3 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001723/0.3882, allocations: 0.7384 MB / 356 MB, free: 13.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/0.3884, allocations: 27.97 kB / 356 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001906/0.3903, allocations: 1.032 MB / 357.1 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.3904, allocations: 8 kB / 357.1 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003292/0.3937, allocations: 1.29 MB / 358.4 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004416/0.3942, allocations: 192.4 kB / 358.6 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001616/0.3943, allocations: 20 kB / 358.6 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008456/0.3952, allocations: 139.9 kB / 358.7 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003959/0.3956, allocations: 148.2 kB / 358.9 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.3957, allocations: 35.95 kB / 358.9 MB, free: 10.13 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000359/0.3961, allocations: 222.2 kB / 359.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.49e-07/0.3961, allocations: 3.938 kB / 359.1 MB, free: 9.902 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007678/0.3969, allocations: 163.9 kB / 359.3 MB, free: 9.742 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003409/0.3972, allocations: 154.9 kB / 359.4 MB, free: 9.586 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001868/0.3991, allocations: 0.6884 MB / 360.1 MB, free: 8.898 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.995e-06/0.3992, allocations: 0 / 360.1 MB, free: 8.898 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/0.4002, allocations: 392.8 kB / 360.5 MB, free: 8.512 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007424/0.401, allocations: 75.64 kB / 360.6 MB, free: 8.438 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003264/0.4043, allocations: 1.25 MB / 361.8 MB, free: 7.152 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006051/0.4049, allocations: 0.8596 MB / 362.7 MB, free: 6.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/0.4052, allocations: 39.41 kB / 362.7 MB, free: 6.23 MB / 314.7 MB Notification: Performance of SimCode: time 1.724e-06/0.4052, allocations: 0 / 362.7 MB, free: 6.23 MB / 314.7 MB Notification: Performance of Templates: time 0.1932/0.5984, allocations: 7.772 MB / 370.5 MB, free: 92.78 MB / 314.7 MB