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.801/1.801, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.889e-05/2.905e-05, allocations: 2.156 kB / 255.4 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07766/0.07771, allocations: 44.5 MB / 299.9 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3331/0.4108, allocations: 74.39 MB / 374.3 MB, free: 22.53 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.4111, allocations: 70.97 kB / 374.3 MB, free: 22.53 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03583/0.4469, allocations: 8.949 MB / 383.3 MB, free: 21.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.072e-06/0.447, allocations: 4 kB / 383.3 MB, free: 21.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.869e-05/0.447, allocations: 9.625 kB / 383.3 MB, free: 21.66 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.001669/0.4487, allocations: 0.775 MB / 384.1 MB, free: 21.17 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.4488, allocations: 9.625 kB / 384.1 MB, free: 21.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001663/0.4489, allocations: 56.06 kB / 384.1 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005041/0.4495, allocations: 348.2 kB / 384.5 MB, free: 20.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.852e-05/0.4495, allocations: 33.31 kB / 384.5 MB, free: 20.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.4497, allocations: 41.97 kB / 384.5 MB, free: 20.89 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.4509, allocations: 0.5508 MB / 385.1 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.242e-05/0.4509, allocations: 8.75 kB / 385.1 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.944e-05/0.451, allocations: 14.16 kB / 385.1 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/0.4511, allocations: 10.84 kB / 385.1 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.4522, allocations: 499.4 kB / 385.6 MB, free: 20.81 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003146/0.4554, allocations: 1.33 MB / 386.9 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.4566, allocations: 445.8 kB / 387.4 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005717/0.4572, allocations: 269.1 kB / 387.6 MB, free: 20.33 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.782e-05/0.4573, allocations: 11.98 kB / 387.6 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.4574, allocations: 39.53 kB / 387.7 MB, free: 20.29 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 4.12e-06/0.4574, allocations: 0 / 387.7 MB, free: 20.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.0048/0.4622, allocations: 1.926 MB / 389.6 MB, free: 19.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.001e-05/0.4622, allocations: 59.84 kB / 389.7 MB, free: 19.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003134/0.4626, allocations: 257.9 kB / 389.9 MB, free: 19.51 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001143/0.4627, allocations: 52.06 kB / 390 MB, free: 19.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.902e-05/0.4628, allocations: 239.5 kB / 390.2 MB, free: 19.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/0.463, allocations: 238.5 kB / 390.4 MB, free: 19.15 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.792e-05/0.4631, allocations: 15.44 kB / 390.5 MB, free: 19.15 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.161e-05/0.4632, allocations: 335.3 kB / 390.8 MB, free: 18.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005807/0.4638, allocations: 267.2 kB / 391 MB, free: 18.83 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006601/0.4645, allocations: 307 kB / 391.3 MB, free: 18.81 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004903/0.465, allocations: 199.9 kB / 391.5 MB, free: 18.8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.475e-06/0.465, allocations: 0 / 391.5 MB, free: 18.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001811/0.4668, allocations: 0.7709 MB / 392.3 MB, free: 18.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.4668, allocations: 5.5 kB / 392.3 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.35e-05/0.4669, allocations: 3.844 kB / 392.3 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/0.4682, allocations: 0.5515 MB / 392.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004773/0.4687, allocations: 98.06 kB / 393 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00151/0.4702, allocations: 0.9836 MB / 393.9 MB, free: 18.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009082/0.4711, allocations: 147.6 kB / 394.1 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.4712, allocations: 40.5 kB / 394.1 MB, free: 18.12 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.0002141/0.4715, allocations: 144 kB / 394.3 MB, free: 18.01 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.4716, allocations: 50.83 kB / 394.3 MB, free: 17.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002128/0.4738, allocations: 0.8668 MB / 395.2 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.502e-06/0.4738, allocations: 3.875 kB / 395.2 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.007e-06/0.4738, allocations: 3.234 kB / 395.2 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.4738, allocations: 7.328 kB / 395.2 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003043/0.4769, allocations: 1.423 MB / 396.6 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.487e-06/0.4769, allocations: 0 / 396.6 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006401/0.4776, allocations: 96.72 kB / 396.7 MB, free: 17.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001211/0.4788, allocations: 0.5303 MB / 397.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.287e-05/0.4789, allocations: 28.31 kB / 397.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.4803, allocations: 0.9563 MB / 398.2 MB, free: 16.94 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.064e-06/0.4803, allocations: 0 / 398.2 MB, free: 16.94 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/0.483, allocations: 1.119 MB / 399.4 MB, free: 16.74 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000362/0.4833, allocations: 179.2 kB / 399.5 MB, free: 16.63 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000163/0.4835, allocations: 26.45 kB / 399.6 MB, free: 16.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008999/0.4844, allocations: 142 kB / 399.7 MB, free: 16.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003313/0.4848, allocations: 146.8 kB / 399.8 MB, free: 16.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.49e-05/0.4849, allocations: 33.61 kB / 399.9 MB, free: 16.62 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000257/0.4852, allocations: 212.8 kB / 400.1 MB, free: 16.54 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.68e-07/0.4852, allocations: 3.938 kB / 400.1 MB, free: 16.53 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007334/0.4859, allocations: 159.4 kB / 400.2 MB, free: 16.52 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.0002858/0.4862, allocations: 156.5 kB / 400.4 MB, free: 16.42 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001559/0.4878, allocations: 0.7337 MB / 401.1 MB, free: 16.31 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.171e-06/0.4878, allocations: 0 / 401.1 MB, free: 16.31 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008779/0.4887, allocations: 378.9 kB / 401.5 MB, free: 16.29 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000703/0.4894, allocations: 73.08 kB / 401.6 MB, free: 16.28 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00273/0.4922, allocations: 1.247 MB / 402.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.4925, allocations: 0.8579 MB / 403.7 MB, free: 14.94 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.4927, allocations: 42.05 kB / 403.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of SimCode: time 1.939e-06/0.4927, allocations: 0 / 403.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of Templates: time 0.01271/0.5055, allocations: 8.286 MB / 412 MB, free: 13.42 MB / 314.7 MB