Why is my simulation model running very slow?

Why is my simulation model running very slow?

yesid_anacona
Not applicable
1,578 Views
7 Replies
Message 1 of 8

Why is my simulation model running very slow?

yesid_anacona
Not applicable

modelo-zenu-4-18-2017-autosave.fsm

Could you please check this model and give me some suggestions for the simulation to run faster, as well as this blocks my laptop when running the model and I do not have access to a better laptop at the moment. Any suggestions or corrections to the model are appreciated. THANK YOU VERY MUCH

0 Likes
Accepted solutions (1)
1,579 Views
7 Replies
Replies (7)
Message 2 of 8

SimFlex_support
Advisor
Advisor

The operators you set like model().find("Operator2") in use Transport looks like the names changed to 'Oper2'. The names of all operators look like that.

The model can't run.

Message 3 of 8

yesid_anacona
Not applicable

modelo-zenu-4-18-2017.fsm

Thanks for the recommendation, I already corrected it Is there anything else that can be done in order to accelerate the run of the model ?, in my pc it takes 15 minutes to run the whole simulation Thank you

0 Likes
Message 4 of 8

SCHamoen
Advisor
Advisor
Accepted solution

@yesid anacona The easiest way is to use the Code profiler under the debug menu. That shows you what functions are called, how many times and what time it took to execute them.

6320-codeprofiler.png

But I did that with your model and I couldn't find anything strange. The problem is just that you have large amount of items going through your model. I run it 1 day and you have around 400.000 products going through. So to make this faster you should model it differently. For instance you take some kind of magazine from the big containers that contains over 100 products. So let that be processed on the machine in 1 go and you divide the number events by a factor 100 and this will also cut down your runtime drastically.

Message 5 of 8

philip_diem
Not applicable

As Steve Hamoen said, try to reduce the number of flowItems. Especially if you`re working on a typical "office-laptop" I would recommend try to keep it below 10.000 flowitems to keep it running smoothly.

0 Likes
Message 6 of 8

yesid_anacona
Not applicable

Gracias por tomarte el tiempo de revisar, y gracias por tus recomendaciones, gracias a estos medios de ayuda e aprendido mucho.

0 Likes
Message 7 of 8

yesid_anacona
Not applicable

Gracias por su recomendacion la tendre presente.

0 Likes
Message 8 of 8

arunTTT2P
Collaborator
Collaborator

Hi @yesid anacona,

Here is a link from old forum, which discusses on how to make a model run faster. I hope this link will be helpful to other users also.

Regards,

Arun KR