Time out problem

Concerns: Interface Builder (forio.com)

Hi Will

Having solved the previous problems myself and working on the applicatieon I suddenly got the following message. Can you please advise me?

22:58:59The timeout(10) seconds was exceeded while waiting for a response from command(com.forio.epicenter.grid.transformer.worker.uplink.v1.command.StateCommand@298667ed)

https://forio.com/v2/run/synmind/isa-ggz-prototype-01/0000018f7e08101d3250511d9dbb00658744/operations/stepTo/
500: Internal Server Error
Type: com.forio.epicenter.grid.transformer.worker.ModelTimeoutException

This issue is due to the stepTo operation taking too long. There’s a default 10 second time it needs to run otherwise there’s an error. Usually this is due to a very large model, or a very small timestep.

You can extend the timeout period for an operation up to 300 seconds by adding a snippet like this in your context file (*.ctx2). The default is 10 seconds.

"operations": {
   "step": {
      "timeoutSeconds": 30
    }
  },

Let us know if that helps.

WILL

Hi Will,

Thank you for your previous explanation and suggestion.

I am currently running a relatively large system dynamics model (HAM System Dynamic Model) on Forio. I have been experiencing the following error:

The timeout(10) seconds was exceeded while waiting for a response from command (StateCommand...)

I understand from your explanation that this is likely caused by the stepTo operation taking longer than the default 10-second timeout, potentially due to the model’s size or a small simulation timestep.

Following your recommendation, I added the configuration to my .ctx2 file:

{
“version”: “v2”,
“restorations”: {
“assembly”: [
{
“replay”: {}
}
],
“log”: “temporal”
},
“defaults”: {
“variables”: {}
},
“variables”: {},
“operations”: {
“step”: {
“timeoutSeconds”: 30
}
}
}

But unfortunately, the error hasn’t changed, and it still seems to be using the default 10-second timeout.

The model has several interconnected hydrological, environmental, and socioeconomic components, so I’d prefer not to simplify it or change the timestep if possible, as this could affect the simulation results.

Could you please check if the configuration is correct and let me know if I’m missing something? Any help would be greatly appreciated.

Thanks again!

Best,
Amirreza

Hi Amirreza,

When you resume a run, any call to get data restarts the run and replays all the decisions that have been made to date. With many decisions or a large model, this can be slow.

Two changes. First, increase the time allowed for the model replay. This is in seconds and can be up to 300 seconds. We recommend starting shorter and increasing it. (otherwise you can find yourself waiting when there are errors for too long a period).

"inceptionGracePeriodSeconds": 60,

Second, remove “restoration” section. The body that you’ve included enforces the “temporal” approach to storing the replay data. The “temporal” mechanism for restoring the run data has been supplanted by newer mechanisms that are more efficient.

You’ll lose access to your prior runs, so you might want to copy your files to a new project first.

Let us know if that helps.