Long Josephson junction in ultralow-noise magnetometer configuration