This function is used to write data for all customers in the model to a text file. This text file is formatted as an import file for customers, see the section entitled Consumption data.