NB --> model.getNumVelocities(). Fixes testMex.