Local linearization method in the integration of multibody equations