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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 2.062/2.062, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.595e-05/2.605e-05, allocations: 4 kB / 292.7 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09118/0.09123, allocations: 50.43 MB / 343.1 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3498/0.4411, allocations: 79.89 MB / 423 MB, free: 14.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.4413, allocations: 69.66 kB / 423 MB, free: 14.3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03871/0.4801, allocations: 9.278 MB / 432.3 MB, free: 6.273 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.122e-06/0.4801, allocations: 0 / 432.3 MB, free: 6.273 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.859e-05/0.4802, allocations: 8 kB / 432.3 MB, free: 6.266 MB / 346.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.001924/0.4821, allocations: 0.778 MB / 433.1 MB, free: 5.469 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.4822, allocations: 8.031 kB / 433.1 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.4823, allocations: 55.34 kB / 433.2 MB, free: 5.406 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006035/0.483, allocations: 334.8 kB / 433.5 MB, free: 5.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.779e-05/0.483, allocations: 31.5 kB / 433.5 MB, free: 5.055 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.4832, allocations: 46.11 kB / 433.6 MB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.4844, allocations: 0.5548 MB / 434.1 MB, free: 4.629 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.359e-05/0.4845, allocations: 7.891 kB / 434.1 MB, free: 4.621 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.166e-05/0.4846, allocations: 22.52 kB / 434.2 MB, free: 4.613 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.1e-05/0.4846, allocations: 12 kB / 434.2 MB, free: 4.602 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.4859, allocations: 493.1 kB / 434.7 MB, free: 4.277 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003433/0.4893, allocations: 1.348 MB / 436 MB, free: 3.125 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.4906, allocations: 439.8 kB / 436.4 MB, free: 2.828 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005988/0.4912, allocations: 264.5 kB / 436.7 MB, free: 2.676 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.746e-05/0.4913, allocations: 8.562 kB / 436.7 MB, free: 2.668 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/0.4913, allocations: 46.06 kB / 436.7 MB, free: 2.621 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 4.032e-06/0.4913, allocations: 0 / 436.7 MB, free: 2.621 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.005064/0.4964, allocations: 1.926 MB / 438.7 MB, free: 1.043 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.732e-05/0.4965, allocations: 59.97 kB / 438.7 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003999/0.4969, allocations: 262.1 kB / 439 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001059/0.4971, allocations: 48.83 kB / 439 MB, free: 0.707 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.4972, allocations: 186.2 kB / 439.2 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002641/0.4975, allocations: 229.6 kB / 439.4 MB, free: 380 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.176e-05/0.4976, allocations: 18.56 kB / 439.5 MB, free: 372 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.4978, allocations: 353.2 kB / 439.8 MB, free: 28 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006467/0.4985, allocations: 263 kB / 440.1 MB, free: 15.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006844/0.4992, allocations: 315.4 kB / 440.4 MB, free: 15.67 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005021/0.4997, allocations: 189 kB / 440.5 MB, free: 15.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.294e-06/0.4997, allocations: 0 / 440.5 MB, free: 15.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00201/0.5017, allocations: 0.7993 MB / 441.3 MB, free: 14.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.5018, allocations: 7.953 kB / 441.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.647e-05/0.5018, allocations: 4 kB / 441.4 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001432/0.5032, allocations: 0.549 MB / 441.9 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005402/0.5038, allocations: 106.2 kB / 442 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001717/0.5055, allocations: 0.9745 MB / 443 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008884/0.5065, allocations: 150.7 kB / 443.1 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.5066, allocations: 31.11 kB / 443.2 MB, free: 13.46 MB / 362.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.0002411/0.5068, allocations: 144.1 kB / 443.3 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001634/0.507, allocations: 47.44 kB / 443.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002237/0.5093, allocations: 0.866 MB / 444.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.5093, allocations: 8 kB / 444.2 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.426e-06/0.5093, allocations: 0 / 444.2 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.5093, allocations: 3.984 kB / 444.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003161/0.5125, allocations: 1.423 MB / 445.7 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.5125, allocations: 0 / 445.7 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006498/0.5132, allocations: 95.06 kB / 445.7 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001338/0.5146, allocations: 0.5334 MB / 446.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.475e-05/0.5147, allocations: 26.39 kB / 446.3 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001652/0.5163, allocations: 0.9455 MB / 447.2 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.559e-06/0.5164, allocations: 0 / 447.2 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002832/0.5192, allocations: 1.119 MB / 448.4 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003823/0.5196, allocations: 188.5 kB / 448.6 MB, free: 8.883 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000159/0.5198, allocations: 35.94 kB / 448.6 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008371/0.5206, allocations: 139.9 kB / 448.7 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003898/0.521, allocations: 148.2 kB / 448.9 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.5212, allocations: 35.95 kB / 448.9 MB, free: 8.527 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003129/0.5215, allocations: 210.2 kB / 449.1 MB, free: 8.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.55e-07/0.5215, allocations: 0 / 449.1 MB, free: 8.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000715/0.5222, allocations: 156 kB / 449.3 MB, free: 8.168 MB / 362.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.0003264/0.5226, allocations: 159.1 kB / 449.4 MB, free: 8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001787/0.5244, allocations: 0.7403 MB / 450.2 MB, free: 7.246 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.808e-06/0.5244, allocations: 3.938 kB / 450.2 MB, free: 7.242 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009825/0.5254, allocations: 380.8 kB / 450.5 MB, free: 6.871 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006426/0.526, allocations: 73.09 kB / 450.6 MB, free: 6.801 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003011/0.5291, allocations: 1.198 MB / 451.8 MB, free: 5.578 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006008/0.5297, allocations: 0.8557 MB / 452.7 MB, free: 4.695 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002417/0.53, allocations: 40.17 kB / 452.7 MB, free: 4.652 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001577/0.5301, allocations: 43.41 kB / 452.7 MB, free: 4.609 MB / 362.7 MB Notification: Performance of SimCode: time 1.707e-06/0.5301, allocations: 3.938 kB / 452.7 MB, free: 4.605 MB / 362.7 MB Notification: Performance of Templates: time 0.02722/0.5574, allocations: 11.45 MB / 464.2 MB, free: 9.199 MB / 378.7 MB