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_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 1.652/1.652, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.74e-05/2.762e-05, allocations: 4 kB / 225 MB, free: 2.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2126, allocations: 38.77 MB / 263.8 MB, free: 9.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1052/0.3179, allocations: 69.1 MB / 332.9 MB, free: 4.637 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/0.3182, allocations: 67.97 kB / 332.9 MB, free: 4.57 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03687/0.355, allocations: 8.792 MB / 341.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.978e-06/0.3551, allocations: 0 / 341.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.673e-05/0.3551, allocations: 8 kB / 341.7 MB, free: 11.75 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.001892/0.357, allocations: 0.7868 MB / 342.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.3571, allocations: 8.031 kB / 342.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001665/0.3573, allocations: 59.33 kB / 342.6 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006343/0.3579, allocations: 339.6 kB / 342.9 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.049e-05/0.358, allocations: 33 kB / 343 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.3581, allocations: 47.86 kB / 343 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.3595, allocations: 0.582 MB / 343.6 MB, free: 9.801 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/0.3596, allocations: 7.844 kB / 343.6 MB, free: 9.793 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.464e-05/0.3597, allocations: 24 kB / 343.6 MB, free: 9.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/0.3597, allocations: 15.98 kB / 343.6 MB, free: 9.754 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.3611, allocations: 0.5447 MB / 344.2 MB, free: 9.207 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003294/0.3644, allocations: 1.348 MB / 345.5 MB, free: 7.797 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.3656, allocations: 432.7 kB / 345.9 MB, free: 7.363 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006362/0.3662, allocations: 282.5 kB / 346.2 MB, free: 7.086 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.403e-05/0.3663, allocations: 8.562 kB / 346.2 MB, free: 7.078 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.3664, allocations: 39.12 kB / 346.3 MB, free: 7.031 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 3.953e-06/0.3664, allocations: 0 / 346.3 MB, free: 7.031 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.005645/0.372, allocations: 2.076 MB / 348.3 MB, free: 4.867 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.646e-05/0.3721, allocations: 63.95 kB / 348.4 MB, free: 4.793 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004497/0.3726, allocations: 275.6 kB / 348.7 MB, free: 4.523 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001034/0.3727, allocations: 49.7 kB / 348.7 MB, free: 4.469 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001869/0.3729, allocations: 201.2 kB / 348.9 MB, free: 4.266 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002684/0.3732, allocations: 225 kB / 349.1 MB, free: 4.043 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.781e-05/0.3733, allocations: 19.98 kB / 349.2 MB, free: 4.023 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.3735, allocations: 350.8 kB / 349.5 MB, free: 3.672 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007345/0.3742, allocations: 293.5 kB / 349.8 MB, free: 3.383 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008097/0.3751, allocations: 341.5 kB / 350.1 MB, free: 3.043 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005819/0.3757, allocations: 230 kB / 350.3 MB, free: 2.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.299e-06/0.3757, allocations: 0 / 350.3 MB, free: 2.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002229/0.3779, allocations: 0.8838 MB / 351.2 MB, free: 1.926 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.378, allocations: 4 kB / 351.2 MB, free: 1.922 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.129e-06/0.378, allocations: 0 / 351.2 MB, free: 1.922 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001824/0.3798, allocations: 0.756 MB / 352 MB, free: 1.168 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000596/0.3804, allocations: 107.8 kB / 352.1 MB, free: 1.062 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001964/0.3824, allocations: 1.068 MB / 353.2 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009512/0.3834, allocations: 155.9 kB / 353.3 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.3835, allocations: 27.98 kB / 353.3 MB, free: 15.79 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.000253/0.3838, allocations: 155.2 kB / 353.5 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.384, allocations: 47.44 kB / 353.5 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001785/0.3842, allocations: 68.75 kB / 353.6 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.3842, allocations: 8 kB / 353.6 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.79e-06/0.3842, allocations: 0 / 353.6 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/0.3842, allocations: 7.938 kB / 353.6 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003722/0.388, allocations: 1.559 MB / 355.2 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.388, allocations: 7.984 kB / 355.2 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006138/0.3886, allocations: 91.89 kB / 355.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001752/0.3904, allocations: 0.7384 MB / 356 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.3905, allocations: 23.97 kB / 356 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001857/0.3924, allocations: 1.04 MB / 357.1 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.498e-06/0.3924, allocations: 0 / 357.1 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003163/0.3956, allocations: 1.281 MB / 358.4 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004211/0.396, allocations: 192.4 kB / 358.6 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.3962, allocations: 24 kB / 358.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008508/0.3971, allocations: 143.9 kB / 358.7 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003933/0.3975, allocations: 148.2 kB / 358.9 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/0.3976, allocations: 31.97 kB / 358.9 MB, free: 10.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003505/0.398, allocations: 222.2 kB / 359.1 MB, free: 9.887 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.36e-07/0.398, allocations: 0 / 359.1 MB, free: 9.887 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007766/0.3988, allocations: 159.9 kB / 359.3 MB, free: 9.73 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.0003328/0.3991, allocations: 167 kB / 359.4 MB, free: 9.562 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001848/0.401, allocations: 0.6884 MB / 360.1 MB, free: 8.875 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.709e-06/0.401, allocations: 0 / 360.1 MB, free: 8.875 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.402, allocations: 396.8 kB / 360.5 MB, free: 8.484 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007341/0.4028, allocations: 73.06 kB / 360.6 MB, free: 8.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003297/0.4061, allocations: 1.222 MB / 361.8 MB, free: 7.16 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006182/0.4068, allocations: 0.8596 MB / 362.7 MB, free: 6.277 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003153/0.4071, allocations: 48.16 kB / 362.7 MB, free: 6.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001714/0.4073, allocations: 35.42 kB / 362.7 MB, free: 6.195 MB / 314.7 MB Notification: Performance of SimCode: time 1.746e-06/0.4073, allocations: 0 / 362.7 MB, free: 6.195 MB / 314.7 MB Notification: Performance of Templates: time 0.203/0.6103, allocations: 11.03 MB / 373.8 MB, free: 92.49 MB / 314.7 MB