fixed a constraint for required multi ports
added another constraint wrt. multi ports
fixed #565
added a test to (try to) reproduce Stefan's Problem