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_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.963/1.963, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.045e-05/3.061e-05, allocations: 4 kB / 292.1 MB, free: 8.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09253/0.09259, allocations: 50.41 MB / 342.6 MB, free: 5.879 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3851/0.4777, allocations: 81.57 MB / 424.1 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.478, allocations: 74.64 kB / 424.2 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03203/0.51, allocations: 7.802 MB / 432 MB, free: 5.902 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.272e-06/0.5101, allocations: 0 / 432 MB, free: 5.902 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.328e-05/0.5101, allocations: 8 kB / 432 MB, free: 5.895 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.001523/0.5116, allocations: 0.688 MB / 432.7 MB, free: 5.191 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.5117, allocations: 15.97 kB / 432.7 MB, free: 5.176 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/0.5118, allocations: 51.44 kB / 432.8 MB, free: 5.125 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005112/0.5124, allocations: 301.3 kB / 433.1 MB, free: 4.816 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.473e-05/0.5124, allocations: 30.22 kB / 433.1 MB, free: 4.801 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.5126, allocations: 47.75 kB / 433.1 MB, free: 4.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009994/0.5136, allocations: 417.4 kB / 433.5 MB, free: 4.484 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.074e-05/0.5136, allocations: 7.531 kB / 433.5 MB, free: 4.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.534e-05/0.5137, allocations: 17.64 kB / 433.6 MB, free: 4.473 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.5137, allocations: 8 kB / 433.6 MB, free: 4.465 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009714/0.5147, allocations: 400.9 kB / 434 MB, free: 4.199 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002899/0.5176, allocations: 1.141 MB / 435.1 MB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009647/0.5186, allocations: 366.8 kB / 435.5 MB, free: 2.992 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005526/0.5192, allocations: 239.5 kB / 435.7 MB, free: 2.848 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.946e-05/0.5193, allocations: 4.438 kB / 435.7 MB, free: 2.844 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.5193, allocations: 38.06 kB / 435.7 MB, free: 2.801 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 4.31e-06/0.5193, allocations: 0 / 435.7 MB, free: 2.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.004198/0.5235, allocations: 1.65 MB / 437.4 MB, free: 1.406 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.176e-05/0.5236, allocations: 59.97 kB / 437.4 MB, free: 1.336 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003333/0.524, allocations: 227.1 kB / 437.7 MB, free: 1.145 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.259e-05/0.5241, allocations: 44.31 kB / 437.7 MB, free: 1.105 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.5242, allocations: 177.4 kB / 437.9 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002276/0.5245, allocations: 197.8 kB / 438.1 MB, free: 0.793 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.604e-05/0.5245, allocations: 10.62 kB / 438.1 MB, free: 0.793 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.5248, allocations: 349 kB / 438.4 MB, free: 468 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004959/0.5253, allocations: 201.3 kB / 438.6 MB, free: 344 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005315/0.5258, allocations: 245.9 kB / 438.9 MB, free: 184 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000424/0.5263, allocations: 170.1 kB / 439 MB, free: 68 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.468e-06/0.5263, allocations: 3.953 kB / 439 MB, free: 64 kB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002067/0.5283, allocations: 0.6833 MB / 439.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.5284, allocations: 4 kB / 439.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.417e-05/0.5284, allocations: 4 kB / 439.7 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/0.5295, allocations: 386.9 kB / 440.1 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000504/0.53, allocations: 87.45 kB / 440.2 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001692/0.5318, allocations: 1.323 MB / 441.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006811/0.5325, allocations: 103.6 kB / 441.6 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.97e-05/0.5326, allocations: 23.55 kB / 441.6 MB, free: 13.79 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.0002237/0.5328, allocations: 150.4 kB / 441.8 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.5329, allocations: 35.53 kB / 441.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001884/0.5348, allocations: 0.6933 MB / 442.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.5349, allocations: 8 kB / 442.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.386e-06/0.5349, allocations: 0 / 442.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.5349, allocations: 3.984 kB / 442.5 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003506/0.5384, allocations: 1.356 MB / 443.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.387e-06/0.5385, allocations: 0 / 443.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000549/0.539, allocations: 91.23 kB / 444 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009311/0.54, allocations: 362.8 kB / 444.3 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.984e-05/0.5401, allocations: 26.59 kB / 444.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001585/0.5417, allocations: 1.287 MB / 445.6 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.388e-06/0.5417, allocations: 128 / 445.6 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002299/0.544, allocations: 1.014 MB / 446.6 MB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003154/0.5443, allocations: 159.9 kB / 446.8 MB, free: 9.363 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/0.5445, allocations: 24.95 kB / 446.8 MB, free: 9.352 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006001/0.5451, allocations: 87.67 kB / 446.9 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003003/0.5454, allocations: 107.6 kB / 447 MB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.172e-05/0.5455, allocations: 29.28 kB / 447 MB, free: 9.156 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002682/0.5458, allocations: 185.1 kB / 447.2 MB, free: 9.004 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.45e-07/0.5458, allocations: 0 / 447.2 MB, free: 9.004 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006596/0.5465, allocations: 137.8 kB / 447.4 MB, free: 8.887 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.0003027/0.5468, allocations: 149.7 kB / 447.5 MB, free: 8.742 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.5482, allocations: 0.5646 MB / 448.1 MB, free: 8.328 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.36e-06/0.5482, allocations: 7.938 kB / 448.1 MB, free: 8.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008042/0.5491, allocations: 290.6 kB / 448.4 MB, free: 8.129 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006068/0.5497, allocations: 70.59 kB / 448.4 MB, free: 8.074 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004405/0.5541, allocations: 1.317 MB / 449.8 MB, free: 6.805 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005788/0.5547, allocations: 0.8327 MB / 450.6 MB, free: 5.945 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002442/0.555, allocations: 39.27 kB / 450.6 MB, free: 5.906 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.5551, allocations: 34.61 kB / 450.7 MB, free: 5.875 MB / 362.7 MB Notification: Performance of SimCode: time 1.787e-06/0.5551, allocations: 0 / 450.7 MB, free: 5.875 MB / 362.7 MB Notification: Performance of Templates: time 0.02071/0.5759, allocations: 8.431 MB / 459.1 MB, free: 13.48 MB / 378.7 MB