In a referenced model, you can log any signal configured for signal logging. Use the Signal Logging Selector to select a subset or all of the signals configured for signal logging for a model reference hierarchy. For details, see Models with Model Referencing: Overriding Signal Logging Settings.
Simulink® does not log signals inside referenced models in Rapid Accelerator mode.
For additional information, see Export Signal Data Using Signal Logging.