Running command: translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 2.171/2.171, allocations: 225.8 MB / 238.8 MB, free: 11.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.65e-05/2.66e-05, allocations: 4 kB / 292.1 MB, free: 8.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0906/0.09065, allocations: 50.4 MB / 342.5 MB, free: 5.926 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4111/0.5018, allocations: 81.53 MB / 424.1 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001912/0.502, allocations: 65.34 kB / 424.1 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02697/0.529, allocations: 6.755 MB / 430.9 MB, free: 6.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.936e-06/0.5291, allocations: 4 kB / 430.9 MB, free: 6.836 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.538e-05/0.5291, allocations: 8 kB / 430.9 MB, free: 6.828 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001466/0.5306, allocations: 0.6572 MB / 431.6 MB, free: 6.148 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.5306, allocations: 8.031 kB / 431.6 MB, free: 6.141 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.5308, allocations: 43.53 kB / 431.6 MB, free: 6.098 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000487/0.5313, allocations: 296.8 kB / 431.9 MB, free: 5.797 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.965e-05/0.5313, allocations: 23.28 kB / 431.9 MB, free: 5.785 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.5315, allocations: 37.31 kB / 432 MB, free: 5.762 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008986/0.5324, allocations: 387.2 kB / 432.3 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.437e-05/0.5324, allocations: 0 / 432.3 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.676e-05/0.5325, allocations: 17.56 kB / 432.3 MB, free: 5.488 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.982e-05/0.5325, allocations: 11.95 kB / 432.4 MB, free: 5.477 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009004/0.5334, allocations: 374 kB / 432.7 MB, free: 5.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003227/0.5367, allocations: 1.288 MB / 434 MB, free: 4.133 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00085/0.5375, allocations: 341.5 kB / 434.3 MB, free: 3.906 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004688/0.538, allocations: 212 kB / 434.6 MB, free: 3.777 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.813e-05/0.5381, allocations: 8.25 kB / 434.6 MB, free: 3.773 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.5382, allocations: 42.92 kB / 434.6 MB, free: 3.723 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 3.398e-06/0.5382, allocations: 4 kB / 434.6 MB, free: 3.719 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.004189/0.5424, allocations: 1.572 MB / 436.2 MB, free: 2.387 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.5425, allocations: 59.84 kB / 436.2 MB, free: 2.316 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.5427, allocations: 203.3 kB / 436.4 MB, free: 2.145 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.881e-05/0.5428, allocations: 44.06 kB / 436.5 MB, free: 2.105 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.543, allocations: 155.3 kB / 436.6 MB, free: 1.973 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002029/0.5432, allocations: 177.1 kB / 436.8 MB, free: 1.824 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.695e-05/0.5433, allocations: 10.88 kB / 436.8 MB, free: 1.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.5435, allocations: 352 kB / 437.2 MB, free: 1.48 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004674/0.5439, allocations: 184.1 kB / 437.3 MB, free: 1.375 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005259/0.5445, allocations: 249.3 kB / 437.6 MB, free: 1.199 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003977/0.5449, allocations: 156.9 kB / 437.7 MB, free: 1.094 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.907e-06/0.5449, allocations: 0 / 437.7 MB, free: 1.094 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002063/0.547, allocations: 0.6944 MB / 438.4 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.547, allocations: 8 kB / 438.4 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.021e-05/0.5471, allocations: 4 kB / 438.4 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001264/0.5483, allocations: 435.2 kB / 438.9 MB, free: 220 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003663/0.5487, allocations: 71.22 kB / 438.9 MB, free: 152 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003842/0.5526, allocations: 3.388 MB / 442.3 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006741/0.5533, allocations: 113.7 kB / 442.4 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.563e-05/0.5534, allocations: 23.36 kB / 442.5 MB, free: 12.56 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (46): * Single equations (assignments): 41 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.000208/0.5536, allocations: 132.7 kB / 442.6 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.5537, allocations: 31.62 kB / 442.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001975/0.5557, allocations: 0.7132 MB / 443.3 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.584e-06/0.5558, allocations: 4 kB / 443.3 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.603e-06/0.5558, allocations: 4 kB / 443.3 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.586e-06/0.5558, allocations: 3.984 kB / 443.3 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002538/0.5583, allocations: 1.148 MB / 444.5 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.978e-06/0.5584, allocations: 4 kB / 444.5 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003911/0.5588, allocations: 67.45 kB / 444.6 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001206/0.56, allocations: 410.8 kB / 445 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.534e-05/0.5601, allocations: 18.97 kB / 445 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003684/0.5638, allocations: 3.352 MB / 448.3 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.477e-06/0.5638, allocations: 0 / 448.3 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/0.5659, allocations: 0.897 MB / 449.2 MB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002878/0.5662, allocations: 150.2 kB / 449.4 MB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.5663, allocations: 18.25 kB / 449.4 MB, free: 6.289 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000615/0.5669, allocations: 98.53 kB / 449.5 MB, free: 6.199 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002785/0.5672, allocations: 114.1 kB / 449.6 MB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.847e-05/0.5673, allocations: 23.16 kB / 449.6 MB, free: 6.082 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002342/0.5676, allocations: 166.3 kB / 449.8 MB, free: 5.941 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.04e-07/0.5676, allocations: 0 / 449.8 MB, free: 5.941 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006712/0.5683, allocations: 125.6 kB / 449.9 MB, free: 5.836 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003011/0.5686, allocations: 149.5 kB / 450.1 MB, free: 5.688 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001629/0.5702, allocations: 0.7493 MB / 450.8 MB, free: 5.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.665e-06/0.5703, allocations: 4 kB / 450.8 MB, free: 5.066 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.5713, allocations: 0.4951 MB / 451.3 MB, free: 4.641 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004932/0.5718, allocations: 53.3 kB / 451.4 MB, free: 4.605 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002238/0.5741, allocations: 0.7927 MB / 452.1 MB, free: 3.883 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005389/0.5746, allocations: 0.8075 MB / 453 MB, free: 3.047 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000184/0.5748, allocations: 27.28 kB / 453 MB, free: 3.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.5749, allocations: 29.67 kB / 453 MB, free: 2.992 MB / 362.7 MB Notification: Performance of SimCode: time 1.637e-06/0.575, allocations: 3.938 kB / 453 MB, free: 2.988 MB / 362.7 MB Notification: Performance of Templates: time 0.02044/0.5954, allocations: 8.475 MB / 461.5 MB, free: 10.55 MB / 378.7 MB