Automatic Differentiation In The Automatic Generation Of The Linearized Equations Of Motion