Models with a direct feedthrough
Summary
Models with a direct feedthrough from inputs to outputs can have problems in the value setting. Setting a value might influence another quantity even if no simulation step is performed. If this other quantity is accessed after the value setting and before the step, the value is not accurate.
Steps to reproduce
\FST\Studierende\Logan\202205_MA_Meck\Git\mt-meck\code\schnittstelle\input_influence.py shows the problem for an example, where an output is directly influenced by an input (...\input_influence.mo).
Possible fixes
A simple fix is to seperate the reading and value setting (first read all values from the connections, then set all values for the connections) in set_systems_inputs
.