Global Stack overflow

Project:Simile
Version:5.97
Component:Miscellaneous
Category:support request
Priority:critical
Assigned:Hamdy Elsayed
Status:active
Description

Dear Simulistics,

 

I hope my e-mail finds you very well. I am working on a model using Simile. Suddenly, the model crashed while executing and an error message appears. I have attached a link to the model and the error message. Please let me know how to solve it and your advice to avoid it in the future.

https://www.dropbox.com/s/0ykiyc5q2ooy5nt/Global%20stack%20overflow.jpg?dl=0

Thank you for your cooperation in advance. If you need further information please let me know.

I am looking to hearing from you soon.

 

Best regards,

  hamdy

 

Comments

#1

Hi Hamdy,

I'm afraid I didn't receive the model via your link, only the image with the error message.

You can attach the model file to this thread if you wish.

Regards

Jasper

#2

Good morning Jasper, 

Thank you so much for your reply. Here you are the link to the model.

https://www.dropbox.com/s/9c2cnguat0sj21i/White%20Nile%20Model.rar?dl=0

Regards,

 hamdy

#3

Hi Hamdy,

Thanks for supplying the model. The problem seems to be that you have too many numerical constants saved in the model itself. This is because you are using the table() function to save large arrays of time series data in several places.

You should instead be using variable parameters. These enable the model to read data from files as it executes, meaning the model code can be more compact. They also give you extra flexibility, since you can create different scenario files to load data from different sources.

Variable parameters are described in Simile documentation here.

I also notice that the layout of your model seems to follow a map of the region of East Africa that it models. You might be interested to know that we are working on an extension to Simile that will allow components placed on an image background to interact with cells in a grid submodel according to their position on the image -- so, for instance, you could have a flow indicating water from a well at a particular position, and have that remove water from a particular cell in a grid model representing groundwater.

Anyway, please let me know if you need any extra help using variable parameters to supply data to your model.

Kindest regards

Jasper

#4

Dear Jasper,

Thank you so much for this valuable advice. I will use it.

Is the extension available now? I am intersted to know more about it.

 

Regards, 

hamdy

#5

It's still in development. I'll be sure to post a news story when it's complete.