During a test dive to the maximum depth of 300 meters , flooding was reported in the reactor compartment, and Captain Zateyev ordered the submarine to immediately surface, where it heeled over on its port side due to the water it had taken on.