Thousands of Australians were ordered to evacuate their homes in Sydney's northwest and elsewhere in New South Wales state as heavy rainfall flooded rivers and waterways.