add model flattening to SBMLReader