Fixed a bug in MotionMath.getLinearRegressionCoefficients which fixed a bug in the simulation model.
Fixed velocity and acceleration locking on arbitrary value after 20 seconds...