Six Australian warships have departed Sydney Harbour in formation to complete training, sea qualification and surveying tasks.