An Adaptive Method for Reducing Second-order Dynamical Systems