I have a model with 69 inputs and one output. For linearization, I mark all input signals that go into the model subsystem via the "Linear analysis points" submenu as "open loop input" (and the output as output obviously) and start the Model Linearizer app. The linearization itself works like a charm and is the preceding step of a model predicitive control development. However, the ORDER (sequence) of neither the states nor the inputs in the resulting state space system (e.g. checked via the property ss.Statename) fits the original order of the inputs.
If I linearize it (obviously an example picture) and then examine the properties of the resulting state space object, the sequence of the inputs, e.g. in ss.InputName, is all wrong, it could like like
and the same is true for internal states. I assume this also affects the state matrices A,B,C,D. However, the original order is important, because it is also done analytically with the symbolic toolbox and the results need to be comparable (and are intertwined later on).
Can somebody help with this? What rules does the sequence follow and how to control it?