Please help me solve this error of derivative block not being finite at time = 0

Hi all, I am currently running a ball mill circuit using MATLAB however, I am given the following error when simulation is run:
An error occurred while running the simulation and the simulation was terminated
Caused by:
Derivative of state '1' in block 'Assign_CombinedMillandmix/Mix & Mill/Ball Mill/Oversize/Integrator3' at time 0.0 is not finite.
The simulation will be stopped. There may be a singularity in the solution.
If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances).
To try and solve personally, I changed the solver method to variable, testing ODE23tb, ODE23t & ODE15s;
however, this did not solve the problem. Additionally attempted to change relative and absolute errors between the range 1e-4 to 1e-6. I am running circuit for 5000s with a min step size of 0.4 and max step size of 0.7.
My initial integral conditions are 0, however, this was required.
Help would be much appreciated. Will send model should you require additional info. Please attach possible email address and how you would go about changing to make work.
Ciao.

2 Comments

The error does disappear when running with an initial state of 1 for all the integral blocks, however, need it to run at initial, i.e. initial cond=0

hey all,i was doing projects on wind energy conversion and simulation was done in matlab simulink but this error message occurred "Derivative of state '1' in block 'arsema2fuzzywizrealwindspeed/mechanical system 1/Integrator1' at time 0.0 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)"
how can i fix?

Sign in to comment.

 Accepted Answer

Solved. Unfortunately, more ad hoc in nature, as integrals had to be started at a value greater than 0. Selected 0,001.

1 Comment

Hi sir/madam
Kindly let me know how you solved this as I need to run my simulation ignoring/removing this error

Sign in to comment.

More Answers (0)

Categories

Find more on General Applications in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!