Nonlinearity measurements via auto-tune test in robotics