The SteadyStateSelections vector is completely re-ordered when 'getSteadyStateValues' is called, and the resulting values correspond to the new order, not the old. This is particularly problematic when the steady state selection vector was set by the user, as in the commented-out bits: it was set to x0, but gives the result for x2!
The selection vector needs to be left alone and not changed. Here's an example of the problem:
The SteadyStateSelections vector is completely re-ordered when 'getSteadyStateValues' is called, and the resulting values correspond to the new order, not the old. This is particularly problematic when the steady state selection vector was set by the user, as in the commented-out bits: it was set to x0, but gives the result for x2!