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.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 2.101/2.101, allocations: 194.9 MB / 208 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.464e-05, allocations: 4 kB / 255.4 MB, free: 2.691 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0965/0.09656, allocations: 44.5 MB / 299.9 MB, free: 6.133 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3387/0.4353, allocations: 74.4 MB / 374.3 MB, free: 22.44 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001885/0.4355, allocations: 75.33 kB / 374.4 MB, free: 22.44 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03542/0.471, allocations: 8.94 MB / 383.3 MB, free: 21.58 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.543e-06/0.471, allocations: 0 / 383.3 MB, free: 21.58 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.982e-05/0.4711, allocations: 9 kB / 383.3 MB, free: 21.58 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001751/0.4728, allocations: 0.7725 MB / 384.1 MB, free: 21.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.996e-05/0.4729, allocations: 9.625 kB / 384.1 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001819/0.4731, allocations: 56.47 kB / 384.1 MB, free: 21.06 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005306/0.4736, allocations: 344.4 kB / 384.5 MB, free: 20.81 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.472e-05/0.4737, allocations: 33.31 kB / 384.5 MB, free: 20.81 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.4738, allocations: 46.62 kB / 384.6 MB, free: 20.81 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.475, allocations: 0.5508 MB / 385.1 MB, free: 20.74 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.297e-05/0.4751, allocations: 7.188 kB / 385.1 MB, free: 20.74 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.927e-05/0.4752, allocations: 21.38 kB / 385.1 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.4752, allocations: 13.84 kB / 385.1 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001188/0.4764, allocations: 491.8 kB / 385.6 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003103/0.4795, allocations: 1.337 MB / 387 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.4807, allocations: 446 kB / 387.4 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006041/0.4813, allocations: 267.1 kB / 387.7 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.383e-05/0.4815, allocations: 12.33 kB / 387.7 MB, free: 20.24 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.926e-05/0.4815, allocations: 38.19 kB / 387.7 MB, free: 20.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 4.046e-06/0.4815, allocations: 0 / 387.7 MB, free: 20.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.004691/0.4862, allocations: 1.925 MB / 389.6 MB, free: 19.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.588e-05/0.4863, allocations: 67.69 kB / 389.7 MB, free: 19.53 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003187/0.4866, allocations: 261.9 kB / 390 MB, free: 19.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.482e-05/0.4867, allocations: 48.3 kB / 390 MB, free: 19.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.4868, allocations: 187.9 kB / 390.2 MB, free: 19.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/0.487, allocations: 238.3 kB / 390.4 MB, free: 19.13 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.137e-05/0.4871, allocations: 11.78 kB / 390.4 MB, free: 19.13 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.603e-05/0.4872, allocations: 350.7 kB / 390.8 MB, free: 18.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006133/0.4878, allocations: 260 kB / 391 MB, free: 18.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006494/0.4885, allocations: 318 kB / 391.3 MB, free: 18.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004556/0.489, allocations: 192.6 kB / 391.5 MB, free: 18.78 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.288e-06/0.489, allocations: 0 / 391.5 MB, free: 18.78 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001823/0.4908, allocations: 0.7935 MB / 392.3 MB, free: 18.69 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.4909, allocations: 5.938 kB / 392.3 MB, free: 18.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.642e-05/0.4909, allocations: 3.688 kB / 392.3 MB, free: 18.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001989/0.4929, allocations: 0.5549 MB / 392.9 MB, free: 18.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005738/0.4935, allocations: 106.1 kB / 393 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001578/0.4951, allocations: 0.9773 MB / 394 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/0.4961, allocations: 149 kB / 394.1 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/0.4963, allocations: 32.83 kB / 394.1 MB, free: 18.09 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): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0002262/0.4965, allocations: 148.3 kB / 394.3 MB, free: 17.97 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.4967, allocations: 50.83 kB / 394.3 MB, free: 17.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002066/0.4988, allocations: 0.8522 MB / 395.2 MB, free: 17.85 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.405e-06/0.4988, allocations: 7.875 kB / 395.2 MB, free: 17.85 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.365e-06/0.4988, allocations: 4 kB / 395.2 MB, free: 17.85 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.4989, allocations: 3.609 kB / 395.2 MB, free: 17.85 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003092/0.502, allocations: 1.421 MB / 396.6 MB, free: 17.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.988e-06/0.502, allocations: 4 kB / 396.6 MB, free: 17.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005693/0.5026, allocations: 96.39 kB / 396.7 MB, free: 17.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001239/0.5038, allocations: 0.5369 MB / 397.3 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.861e-05/0.504, allocations: 25.66 kB / 397.3 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001471/0.5054, allocations: 0.9534 MB / 398.2 MB, free: 16.91 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.664e-06/0.5055, allocations: 4 kB / 398.2 MB, free: 16.91 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002662/0.5081, allocations: 1.11 MB / 399.4 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003738/0.5086, allocations: 188.9 kB / 399.5 MB, free: 16.6 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001514/0.5087, allocations: 18.94 kB / 399.6 MB, free: 16.6 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008695/0.5096, allocations: 148.1 kB / 399.7 MB, free: 16.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00034/0.51, allocations: 145.8 kB / 399.8 MB, free: 16.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.5101, allocations: 38.11 kB / 399.9 MB, free: 16.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002735/0.5104, allocations: 213.9 kB / 400.1 MB, free: 16.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.8e-07/0.5104, allocations: 3.938 kB / 400.1 MB, free: 16.5 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007683/0.5112, allocations: 161.9 kB / 400.3 MB, free: 16.49 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,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,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.0002856/0.5115, allocations: 152 kB / 400.4 MB, free: 16.39 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001658/0.5131, allocations: 0.7418 MB / 401.1 MB, free: 16.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.162e-06/0.5132, allocations: 3.5 kB / 401.1 MB, free: 16.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008963/0.5141, allocations: 372.5 kB / 401.5 MB, free: 16.25 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007443/0.5148, allocations: 81.55 kB / 401.6 MB, free: 16.25 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.5177, allocations: 1.206 MB / 402.8 MB, free: 15.65 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.518, allocations: 0.856 MB / 403.7 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002944/0.5183, allocations: 41.58 kB / 403.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001501/0.5185, allocations: 37.5 kB / 403.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of SimCode: time 1.85e-06/0.5185, allocations: 4 kB / 403.7 MB, free: 14.92 MB / 314.7 MB Notification: Performance of Templates: time 0.02386/0.5424, allocations: 11.45 MB / 415.2 MB, free: 11.58 MB / 314.7 MB