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_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 1.867/1.867, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.009e-05/3.034e-05, allocations: 2.844 kB / 255.3 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0781/0.07815, allocations: 44.5 MB / 299.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3341/0.4123, allocations: 74.39 MB / 374.2 MB, free: 22.58 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.4125, allocations: 69.83 kB / 374.3 MB, free: 22.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03608/0.4486, allocations: 8.946 MB / 383.2 MB, free: 21.71 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.025e-06/0.4486, allocations: 0 / 383.2 MB, free: 21.71 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.506e-05/0.4487, allocations: 13.62 kB / 383.3 MB, free: 21.71 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.001783/0.4505, allocations: 0.7694 MB / 384 MB, free: 21.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.4505, allocations: 9.625 kB / 384 MB, free: 21.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001767/0.4507, allocations: 56.16 kB / 384.1 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005159/0.4513, allocations: 347.9 kB / 384.4 MB, free: 20.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.551e-05/0.4513, allocations: 37.72 kB / 384.5 MB, free: 20.94 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001315/0.4515, allocations: 42.16 kB / 384.5 MB, free: 20.94 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.4527, allocations: 0.5515 MB / 385.1 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.377e-05/0.4528, allocations: 12.53 kB / 385.1 MB, free: 20.87 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.26e-05/0.4529, allocations: 14.72 kB / 385.1 MB, free: 20.87 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.4529, allocations: 10.97 kB / 385.1 MB, free: 20.87 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.4541, allocations: 0.4912 MB / 385.6 MB, free: 20.87 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003164/0.4573, allocations: 1.331 MB / 386.9 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.4585, allocations: 447.6 kB / 387.4 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005872/0.4591, allocations: 270.9 kB / 387.6 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.677e-05/0.4592, allocations: 15.95 kB / 387.6 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.4593, allocations: 38 kB / 387.7 MB, free: 20.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 4.118e-06/0.4593, allocations: 0 / 387.7 MB, free: 20.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.004841/0.4641, allocations: 1.93 MB / 389.6 MB, free: 19.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.976e-05/0.4642, allocations: 59.88 kB / 389.7 MB, free: 19.67 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000337/0.4646, allocations: 261.2 kB / 389.9 MB, free: 19.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001032/0.4647, allocations: 48.28 kB / 390 MB, free: 19.53 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.4648, allocations: 244 kB / 390.2 MB, free: 19.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.465, allocations: 229.1 kB / 390.4 MB, free: 19.21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.91e-05/0.4651, allocations: 18.34 kB / 390.4 MB, free: 19.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.112e-05/0.4652, allocations: 335.6 kB / 390.8 MB, free: 18.89 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006372/0.4658, allocations: 260.4 kB / 391 MB, free: 18.89 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006643/0.4665, allocations: 317.7 kB / 391.3 MB, free: 18.86 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000488/0.467, allocations: 193.6 kB / 391.5 MB, free: 18.85 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.758e-06/0.467, allocations: 4 kB / 391.5 MB, free: 18.85 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001895/0.4689, allocations: 0.7746 MB / 392.3 MB, free: 18.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.469, allocations: 3.875 kB / 392.3 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.554e-05/0.469, allocations: 7.516 kB / 392.3 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001323/0.4704, allocations: 0.5486 MB / 392.9 MB, free: 18.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005485/0.4709, allocations: 101.8 kB / 393 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.4725, allocations: 0.9875 MB / 394 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000972/0.4735, allocations: 150.9 kB / 394.1 MB, free: 18.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.4737, allocations: 32.94 kB / 394.1 MB, free: 18.17 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.0002235/0.4739, allocations: 140.7 kB / 394.3 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.4741, allocations: 50.95 kB / 394.3 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002076/0.4761, allocations: 0.8702 MB / 395.2 MB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.703e-06/0.4762, allocations: 3.906 kB / 395.2 MB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.4762, allocations: 0 / 395.2 MB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.4762, allocations: 3.422 kB / 395.2 MB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003024/0.4792, allocations: 1.429 MB / 396.6 MB, free: 17.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.26e-06/0.4793, allocations: 0 / 396.6 MB, free: 17.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005908/0.4799, allocations: 92 kB / 396.7 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001318/0.4812, allocations: 0.5276 MB / 397.2 MB, free: 17.54 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.4814, allocations: 29.83 kB / 397.3 MB, free: 17.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001502/0.4829, allocations: 0.9563 MB / 398.2 MB, free: 16.99 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.362e-06/0.4829, allocations: 3.609 kB / 398.2 MB, free: 16.99 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002731/0.4857, allocations: 1.119 MB / 399.3 MB, free: 16.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004178/0.4861, allocations: 179.7 kB / 399.5 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001717/0.4863, allocations: 22.88 kB / 399.5 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009553/0.4873, allocations: 144.6 kB / 399.7 MB, free: 16.67 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003578/0.4877, allocations: 146.6 kB / 399.8 MB, free: 16.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-05/0.4878, allocations: 34.2 kB / 399.9 MB, free: 16.67 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002729/0.4881, allocations: 216.6 kB / 400.1 MB, free: 16.58 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.4e-07/0.4881, allocations: 0 / 400.1 MB, free: 16.58 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007491/0.4888, allocations: 162.7 kB / 400.2 MB, free: 16.57 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.0002905/0.4892, allocations: 159.2 kB / 400.4 MB, free: 16.47 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.4909, allocations: 0.7417 MB / 401.1 MB, free: 16.35 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.484e-06/0.4909, allocations: 0 / 401.1 MB, free: 16.35 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008532/0.4918, allocations: 380.3 kB / 401.5 MB, free: 16.33 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007335/0.4925, allocations: 77.36 kB / 401.6 MB, free: 16.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002941/0.4955, allocations: 1.246 MB / 402.8 MB, free: 15.69 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.4958, allocations: 0.8544 MB / 403.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002091/0.4961, allocations: 41.92 kB / 403.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of SimCode: time 1.805e-06/0.4961, allocations: 0 / 403.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of Templates: time 0.01336/0.5095, allocations: 8.307 MB / 412 MB, free: 13.48 MB / 314.7 MB