<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def model_setup(self):
 """ Call the ``setup`` function of the loaded models. This function is to be called after parsing all the data files during the system set up. Returns ------- None """

        for device in self.devman.devices:
            if self.__dict__[device].n:
                try:
                    self.__dict__[device].setup()
                except Exception as e:
                    raise e