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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 2.253/2.253, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.394e-05/3.416e-05, allocations: 4 kB / 292.7 MB, free: 8.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09034/0.0904, allocations: 50.41 MB / 343.1 MB, free: 5.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3565/0.4469, allocations: 81.52 MB / 424.6 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.4472, allocations: 69.91 kB / 424.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02801/0.4752, allocations: 6.757 MB / 431.4 MB, free: 6.809 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.386e-06/0.4753, allocations: 0 / 431.4 MB, free: 6.809 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.67e-05/0.4753, allocations: 8 kB / 431.4 MB, free: 6.801 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.001559/0.4769, allocations: 0.6478 MB / 432.1 MB, free: 6.129 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.4769, allocations: 12.03 kB / 432.1 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.4771, allocations: 43.53 kB / 432.1 MB, free: 6.074 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005116/0.4776, allocations: 292.7 kB / 432.4 MB, free: 5.777 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.048e-05/0.4777, allocations: 27.28 kB / 432.4 MB, free: 5.762 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.814e-05/0.4778, allocations: 30.81 kB / 432.5 MB, free: 5.742 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009383/0.4787, allocations: 387.8 kB / 432.8 MB, free: 5.473 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.158e-05/0.4788, allocations: 6.938 kB / 432.9 MB, free: 5.469 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.037e-05/0.4789, allocations: 18.25 kB / 432.9 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.4789, allocations: 11.95 kB / 432.9 MB, free: 5.449 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009178/0.4798, allocations: 362.2 kB / 433.2 MB, free: 5.211 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00343/0.4833, allocations: 1.298 MB / 434.5 MB, free: 4.105 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000894/0.4842, allocations: 342.6 kB / 434.9 MB, free: 3.875 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004975/0.4847, allocations: 209.6 kB / 435.1 MB, free: 3.75 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.45e-05/0.4848, allocations: 8.422 kB / 435.1 MB, free: 3.742 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.4849, allocations: 40.12 kB / 435.1 MB, free: 3.699 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 3.898e-06/0.4849, allocations: 0 / 435.1 MB, free: 3.699 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.004507/0.4894, allocations: 1.576 MB / 436.7 MB, free: 2.363 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.4895, allocations: 55.84 kB / 436.8 MB, free: 2.297 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002986/0.4898, allocations: 210.8 kB / 437 MB, free: 2.117 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.497e-05/0.4899, allocations: 43.69 kB / 437 MB, free: 2.078 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.49, allocations: 156.8 kB / 437.2 MB, free: 1.941 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001998/0.4903, allocations: 176.1 kB / 437.3 MB, free: 1.793 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.546e-05/0.4903, allocations: 10.75 kB / 437.3 MB, free: 1.793 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.4905, allocations: 348.5 kB / 437.7 MB, free: 1.457 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000487/0.491, allocations: 186.7 kB / 437.9 MB, free: 1.348 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005534/0.4916, allocations: 253.9 kB / 438.1 MB, free: 1.168 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004123/0.492, allocations: 144.8 kB / 438.2 MB, free: 1.074 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.492, allocations: 0 / 438.2 MB, free: 1.074 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002169/0.4942, allocations: 0.7012 MB / 439 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.4943, allocations: 4 kB / 439 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.4943, allocations: 4 kB / 439 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001334/0.4957, allocations: 444.1 kB / 439.4 MB, free: 188 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004021/0.4961, allocations: 75.09 kB / 439.5 MB, free: 116 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004035/0.5001, allocations: 3.378 MB / 442.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007353/0.5009, allocations: 102.7 kB / 442.9 MB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/0.501, allocations: 26.8 kB / 443 MB, free: 12.54 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.0002357/0.5013, allocations: 131.2 kB / 443.1 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.5014, allocations: 31.62 kB / 443.1 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002068/0.5035, allocations: 0.7127 MB / 443.8 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.5035, allocations: 8 kB / 443.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.438e-06/0.5036, allocations: 3.984 kB / 443.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.5036, allocations: 3.984 kB / 443.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002739/0.5063, allocations: 1.161 MB / 445 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.832e-06/0.5064, allocations: 0 / 445 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004291/0.5068, allocations: 59.16 kB / 445.1 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001258/0.5081, allocations: 429.9 kB / 445.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.905e-05/0.5082, allocations: 13.73 kB / 445.5 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003855/0.5121, allocations: 3.348 MB / 448.9 MB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.624e-06/0.5121, allocations: 0 / 448.9 MB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002213/0.5143, allocations: 0.8906 MB / 449.7 MB, free: 6.418 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003169/0.5147, allocations: 157.5 kB / 449.9 MB, free: 6.266 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.5148, allocations: 14.5 kB / 449.9 MB, free: 6.262 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006471/0.5155, allocations: 98.53 kB / 450 MB, free: 6.172 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002857/0.5158, allocations: 109.8 kB / 450.1 MB, free: 6.078 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.535e-05/0.5159, allocations: 23.84 kB / 450.1 MB, free: 6.059 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002365/0.5161, allocations: 166.4 kB / 450.3 MB, free: 5.918 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.81e-07/0.5161, allocations: 7.938 kB / 450.3 MB, free: 5.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006894/0.5168, allocations: 124.1 kB / 450.4 MB, free: 5.805 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.0003168/0.5172, allocations: 143.4 kB / 450.6 MB, free: 5.664 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001719/0.5189, allocations: 0.7583 MB / 451.3 MB, free: 5.039 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.87e-06/0.5189, allocations: 4 kB / 451.3 MB, free: 5.035 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.5199, allocations: 494.5 kB / 451.8 MB, free: 4.621 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005157/0.5205, allocations: 59.98 kB / 451.9 MB, free: 4.578 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.5228, allocations: 0.7883 MB / 452.7 MB, free: 3.863 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005622/0.5234, allocations: 0.8075 MB / 453.5 MB, free: 3.031 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000197/0.5236, allocations: 31.28 kB / 453.5 MB, free: 3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.5238, allocations: 19.44 kB / 453.5 MB, free: 2.98 MB / 362.7 MB Notification: Performance of SimCode: time 1.691e-06/0.5238, allocations: 4 kB / 453.5 MB, free: 2.977 MB / 362.7 MB Notification: Performance of Templates: time 0.0209/0.5447, allocations: 8.482 MB / 462 MB, free: 10.53 MB / 378.7 MB