remove non-physical equation for k-factor of Thermostatic3WayValve.mo and replace it by a non-event boundary for the enthalpy.