I developped in MATLAB 2019a version, separately, two Simulink models.
They work perfectly when they are run separately.
The simulation using one of the models is very fast and the simulation using the other model is very slow but both simulations run perfectely during the simulation time which is the same for the two models.
Both of the models are configured to run with an Automatic solver selection of a solver of the Fixed-step type and a fixed step size set to Auto.
The problems start when I copy one of the models into the other model and try to run the obtained combined model: Even without connecting the inputs and the outputs of the two models the simulation is failing: it runs for a fraction of a second and then stops with the error:
An error occurred while running the simulation and the simulation was terminated
During one of the attempts to solve the problem I have used the Rate transition block to connects the inputs and the outputs of the two models but it did not solve the problem.
Please, can anyone help with this problem???
Every little hint is welcome.
Thank you very much in advance.