It is unlikely either vessel was operating its active sonar at the time of the collision, because the submarines are designed to "hide" while on patrol and the use of active sonar would immediately reveal the boat's location.  Both submarines' hulls are covered with anechoic tile to reduce detection by sonar, so the boats' navigational passive sonar would not have detected the presence of the other.