Currently, the setter functions do not change the current simulation mode. Nevertehless, FMI 2.0 ME requires that discrete variables are only set in the event mode. Consider entering the event mode before a discrete input is set. The interface may be extended such that event mode can be explicitly entered.