Running command: translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.99/1.99, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.978e-05/2.99e-05, allocations: 6.031 kB / 292.7 MB, free: 8.359 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08997/0.09003, allocations: 50.42 MB / 343.1 MB, free: 5.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.357/0.447, allocations: 81.57 MB / 424.7 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/0.4473, allocations: 70.02 kB / 424.7 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03344/0.4808, allocations: 7.797 MB / 432.5 MB, free: 5.934 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.721e-06/0.4808, allocations: 4 kB / 432.5 MB, free: 5.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.184e-05/0.4809, allocations: 8 kB / 432.5 MB, free: 5.922 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001569/0.4824, allocations: 0.6888 MB / 433.2 MB, free: 5.215 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.4825, allocations: 12.03 kB / 433.2 MB, free: 5.203 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.4827, allocations: 51.44 kB / 433.3 MB, free: 5.152 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005305/0.4832, allocations: 305.2 kB / 433.6 MB, free: 4.844 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.526e-05/0.4833, allocations: 28.84 kB / 433.6 MB, free: 4.828 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.4834, allocations: 44.75 kB / 433.7 MB, free: 4.797 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.4844, allocations: 422.5 kB / 434.1 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.96e-05/0.4845, allocations: 3.906 kB / 434.1 MB, free: 4.504 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.8e-05/0.4845, allocations: 21.33 kB / 434.1 MB, free: 4.496 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.4846, allocations: 11.94 kB / 434.1 MB, free: 4.484 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009741/0.4856, allocations: 395 kB / 434.5 MB, free: 4.223 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00304/0.4886, allocations: 1.136 MB / 435.6 MB, free: 3.266 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009795/0.4896, allocations: 367.4 kB / 436 MB, free: 3.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005688/0.4902, allocations: 236.6 kB / 436.2 MB, free: 2.875 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.241e-05/0.4903, allocations: 12.23 kB / 436.2 MB, free: 2.867 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.4904, allocations: 42.5 kB / 436.3 MB, free: 2.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 4e-06/0.4904, allocations: 0 / 436.3 MB, free: 2.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.004298/0.4947, allocations: 1.635 MB / 437.9 MB, free: 1.438 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/0.4948, allocations: 63.95 kB / 438 MB, free: 1.363 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003541/0.4951, allocations: 227 kB / 438.2 MB, free: 1.172 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.79e-05/0.4952, allocations: 45.81 kB / 438.2 MB, free: 1.133 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001597/0.4954, allocations: 175.4 kB / 438.4 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.4957, allocations: 204.7 kB / 438.6 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.641e-05/0.4957, allocations: 9.875 kB / 438.6 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.4959, allocations: 353.4 kB / 439 MB, free: 488 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005002/0.4965, allocations: 197.2 kB / 439.1 MB, free: 368 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005494/0.497, allocations: 250.5 kB / 439.4 MB, free: 204 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004267/0.4975, allocations: 158.9 kB / 439.5 MB, free: 96 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.537e-06/0.4975, allocations: 3.953 kB / 439.6 MB, free: 92 kB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002085/0.4996, allocations: 0.6863 MB / 440.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.4996, allocations: 4 kB / 440.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.55e-05/0.4997, allocations: 7.984 kB / 440.3 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/0.5007, allocations: 377.4 kB / 440.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005072/0.5012, allocations: 93.89 kB / 440.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00169/0.5029, allocations: 1.327 MB / 442 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006879/0.5037, allocations: 99.41 kB / 442.1 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.136e-05/0.5038, allocations: 26.86 kB / 442.2 MB, free: 13.81 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002222/0.504, allocations: 148.4 kB / 442.3 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.5041, allocations: 39.53 kB / 442.3 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001891/0.506, allocations: 0.6919 MB / 443 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.5061, allocations: 8 kB / 443 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.773e-06/0.5061, allocations: 0 / 443 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.5061, allocations: 3.984 kB / 443 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003567/0.5097, allocations: 1.358 MB / 444.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.726e-06/0.5097, allocations: 0 / 444.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007606/0.5105, allocations: 90.98 kB / 444.5 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001709/0.5122, allocations: 360.9 kB / 444.8 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001253/0.5124, allocations: 26.28 kB / 444.9 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002537/0.515, allocations: 1.289 MB / 446.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.067e-05/0.515, allocations: 4.031 kB / 446.2 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004175/0.5192, allocations: 1.008 MB / 447.2 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005326/0.5198, allocations: 164.5 kB / 447.3 MB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002112/0.52, allocations: 22.02 kB / 447.4 MB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.5212, allocations: 82.55 kB / 447.4 MB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004941/0.5217, allocations: 108.8 kB / 447.5 MB, free: 9.207 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/0.5219, allocations: 27.8 kB / 447.6 MB, free: 9.188 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004536/0.5224, allocations: 187.1 kB / 447.8 MB, free: 9.031 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.617e-06/0.5224, allocations: 4 kB / 447.8 MB, free: 9.027 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001276/0.5237, allocations: 138.2 kB / 447.9 MB, free: 8.91 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004585/0.5242, allocations: 141.5 kB / 448 MB, free: 8.773 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002497/0.5267, allocations: 0.565 MB / 448.6 MB, free: 8.359 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.009e-06/0.5267, allocations: 0 / 448.6 MB, free: 8.359 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001508/0.5283, allocations: 297.9 kB / 448.9 MB, free: 8.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009164/0.5292, allocations: 66.92 kB / 449 MB, free: 8.109 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007887/0.5371, allocations: 1.329 MB / 450.3 MB, free: 6.828 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.5382, allocations: 0.8288 MB / 451.1 MB, free: 5.973 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004652/0.5387, allocations: 35.28 kB / 451.1 MB, free: 5.938 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002768/0.539, allocations: 35.42 kB / 451.2 MB, free: 5.902 MB / 362.7 MB Notification: Performance of SimCode: time 3.149e-06/0.5391, allocations: 0 / 451.2 MB, free: 5.902 MB / 362.7 MB Notification: Performance of Templates: time 0.02115/0.5602, allocations: 8.423 MB / 459.6 MB, free: 13.52 MB / 378.7 MB