Why is Simulink throwing "duplicate file" warnings when opening any model?

Hello all,
I am getting some warnings when opening Simulink in my fresh Matlab R2025b installation. I am not sure if these should worry me, especially since it's on a new installation. Whether it's opening a blank or existing model, I get a bunch of warnings (about 30). Most of them are about duplicate naming, only the very first one is different:
>> open_system(h)
Warning: An error occurred while evaluating the rtwTargetInfo file "C:\Program Files\MATLAB\R2025b\Toolbox\soc\hardwareboards\alterasoc\rtwTargetInfo.m": Index exceeds array bounds.
> In coder.targetreg.internal/TargetRegistry/registerTargetInfosOnPath
In coder.targetreg.internal.TargetRegistry.initialize
In coder.targetreg.internal.TargetRegistry.getWithoutDataLoad
In RTW.TargetRegistry.getInstance
In registerTargetInfo (line 14)
In customizationSimulinkCoderCore (line 16)
In slCustomizer/refresh
In slCustomizer.callRefresh
In slCustomizer>@()slCustomizer.callRefresh()
In slCustomizer.staticRefresh
In simulinkrc (line 35)
In Simulink.start_simulink
In connector.internal.fevalMatlab
In connector.internal.fevalJSON
Warning: The toolset already has a feature named ModelAdvisorSupportsLibrary.
> In simulink.toolstrip.internal.loadConfig
In simulink.toolstrip.internal.refreshConfig
In sltemplate.internal.request.createSimulinkModel
In connector.internal.fevalMatlab
In connector.internal.fevalJSON
Warning: The toolset already has a feature named InterfaceEditor.
...
After that, there are a more warnings about "The toolset already has a feature..." with the same structure. Thats followed by a list of warnings of the type:
Warning: Attempt to include duplicate file C:\Program Files\MATLAB\R2025b\Toolbox\simulink\ui\studio\config\m\+SLStudio\FileMenu.xml into Toolset .
> In simulink.toolstrip.internal.loadConfig
In simulink.toolstrip.internal.refreshConfig
In sltemplate.internal.request.createSimulinkModel
In connector.internal.fevalMatlab
In connector.internal.fevalJSON
Warning: Attempt to include duplicate file C:\Program Files\MATLAB\R2025b\Toolbox\simulink\ui\studio\config\m\+SLStudio\NewMenu.xml into Toolset .
...
Can anyone help me out with interpreting if these warnings should be adressed (and if so, how)?
I would like to avoid a reinstall as that would take ~1 day on my internet connection.
Thanks!

 Accepted Answer

When starting Simulink in R2025b, some warnings may appear during initialization.
  • The “duplicate feature / duplicate file” warnings are related to Simulink toolstrip customization being loaded more than once. These are benign warnings and do not affect Simulink functionality. Models should open and run as expected.
  • The first warning related to "rtwTargetInfo.m" comes from optional hardware target registration (SoC/Altera support). If you are not using SoC or Altera hardware workflows, this warning can be safely ignored.
Overall, these warnings are non‑blocking and do not indicate installation corruption. No reinstall is required unless Simulink functionality is impacted.
If needed, you can reset Simulink customizations and code‑generation registration by running
>> sl_refresh_customizations
>> RTW.TargetRegistry.getInstance('reset')
>> rehash toolboxcache
and then restarting Simulink ("start_simulink").
If the warning persists even after the above recommended steps, you can reach out to Mathworks Technical Support through the below link: https://in.mathworks.com/company/aboutus/contact_us.html

1 Comment

Hello Ritam, thank you for your answer. I had suspected, that the warnings are not grave, as I didnt experience any problems opening models. However, I was still a bit concerned about the number of warnings on a fresh installation so it is good to know that they are nothing to worry about.

Sign in to comment.

More Answers (0)

Products

Release

R2025b

Tags

Asked:

Tim
on 24 Mar 2026

Commented:

Tim
on 15 Apr 2026 at 8:51

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!