Cannot use a reference to the state when model can be changed (i.e. adjustCOMToReduceResiduals) since this force and initSystem, which wipes out the underlying system and the reference to the state becomes undefined.
Cannot use a reference to the state when model can be changed (i.e. adjustCOMToReduceResiduals) since this force and initSystem, which wipes out the underlying system and the reference to the state becomes undefined.

git-svn-id: 9e047e1e624cce0a2485e750063112e834f85522@6169 fc29be9c-2cb0-420d-b520-73dbd18add6e

opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core