Learning-based Balancing of Model-based and Feedback Control for Second-order Mechanical Systems