dump ModelData to ostream