Hello,
I have a translational model that has only one variable which shall have a specified initial condition (start position). It is set to high priority and the tick mark for override in the variable section of my custom block ist set.
All other variables of the model are set to have priority. Nonetheless the model initializes and ignores the target I set. I get a warning that the states may deviate from the requested initial conditions. In the variable viewer the start position is marked as not satisfied.
I noticed that another variable - the position of the center of gravity, which is simply a constant offset in a variable direction - is set to initial values even when its priority is set to none. It seems that this variable is somehow pinned to a higher priority which overrides the other variable.
I hope my problem becomes clear and that somebody might point me into the right direction to find the cause. Sadly I can't (not allowed to) attach the model. So feel free to ask further questions that may help.
# Edit:
Things I tried:
1) Setting every variable of the whole model to priority low (even none), except the desired one. Initial value is ignored.
2) Set variable to private, but with priority=priority.high with value=startPosition and a parameter startPosition. Same behavior.
3) Changes in the position of the center of gravity (priority=priority.none) is respected. The Variable Viewer still complains that target value of the only variable of priority=priority.high is not satisfied.