question

yesid anacona avatar image
0 Likes"
yesid anacona asked Arun Kr edited

Why is my simulation model running very slow?

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

Choose One
run speed
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Steven Hamoen avatar image
2 Likes"
Steven Hamoen answered yesid anacona commented

@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.

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.


codeprofiler.png (579.9 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

yesid anacona avatar image yesid anacona commented ·

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

0 Likes 0 ·
Arun Kr avatar image
1 Like"
Arun Kr answered Arun Kr edited

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

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

David Seo avatar image
1 Like"
David Seo answered yesid anacona commented

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.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

yesid anacona avatar image yesid anacona commented ·

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 0 ·
Philip Diem avatar image
0 Likes"
Philip Diem answered yesid anacona commented

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.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

yesid anacona avatar image yesid anacona commented ·

Gracias por su recomendacion la tendre presente.

0 Likes 0 ·