Creates a new DataModel which will contain analysed data from model.
model
a DataModel to analyse data from, or null
a pointer to the newly created DataModel.