proper time scaling and variable end time for direct collocation