Hi Sharif,
I'll try out the new files tomorrow. Just a short but important notice:
"--random 1" will lead to quite the opposite you want, as it initialises
the RNG with the system time. To choose a start seed yourself, use
"--seed INT" where INT is the chosen number.
Best regards
Mirko
Am 08.08.2023 um 18:21 schrieb Sharifullah Asady:
Hi Mirko,
Thank you so much for your help, I truly appreciate it. Attached is
the script to run the simulation. If you run the script it will give
you the error. I have also attached the required files and for network
and route file and signals setting, you can download from the github I
had previously shared.
I get the error at after about 20 minutes and at
traci.simulationStep(). Additionally, with the SUMO v1_17_0+0578, the
code on line 38
"float(traci.vehicle.getStopParameter(taxi_temp,0,'started'))" was
working but now updating the SUMO to SUMO v1_18 the function gives
error. Can you please also check this.
Also, I want to make the simulation deterministic but still when I
check the tripinfo file the departSpeed and timeloss for vehicles in
the route file is always different. I am using --random 1 to make it
deterministic.
Many thanks and please let me know if anything else is needed.
Best regards,
Sharif
------------------------------------------------------------------------
*From:* Mirko Barthauer <[email protected]>
*Sent:* Tuesday, August 8, 2023 9:17:29 AM
*To:* Sharifullah Asady
*Subject:* AW: [sumo-user] Error: bad allocation
Hi Sharif,
could you please either add all files referenced when calling sumo
(vehicle types, demand, ...) or cut down to a version which still
exhibits your problem with the least extra data possible? I cannot run
the simulation as some input is missing.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: Re: [sumo-user] Error: bad allocation
Datum: 2023-08-07T14:35:00+0200
Von: "Sharifullah Asady" <[email protected]>
An: "Mirko Barthauer" <[email protected]>, "Sumo project User
discussions" <[email protected]>
Hi Mirko,
Thanks to Harald and you. I tried with SUMO 1.18 and this time I
didn't get bad allocation error for the same scenario, instead this
time the connection closes at traci.simulationStep() in a different
scenario. Attached is the trace log file and error screenshot and also
I am using the Ingolstadt model which is available on github:
https://github.com/TUM-VT/sumo_ingolstadt
<https://github.com/TUM-VT/sumo_ingolstadt>.
Best,
Sharif
------------------------------------------------------------------------
*From:* sumo-user <[email protected]> on behalf of Mirko
Barthauer via sumo-user <[email protected]>
*Sent:* Monday, August 7, 2023 10:22:41 AM
*To:* Sumo project User discussions
*Cc:* Mirko Barthauer
*Subject:* Re: [sumo-user] Error: bad allocation
Hi Sharif,
as Harald already mentioned, there may be some internal problem in
SUMO causing the memory error. Could you please share a preferably
small scenario to reproduce your error? In case you use the TraCI
Python interface but do not want to share your custom script, you can
generate a log of your TraCI calls
<https://sumo.dlr.de/docs/TraCI/Interfacing_TraCI_from_Python.html#generating_a_log_of_all_traci_commands>
instead.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: Re: [sumo-user] Error: bad allocation
Datum: 2023-08-07T09:45:53+0200
Von: "Harald Schaefer via sumo-user" <[email protected]>
An: "Sumo project User discussions" <[email protected]>
Hi Sharif,
answers see below
Best regards Harald
Am 07.08.23 um 09:35 schrieb Sharifullah Asady:
Hi Harald,
Thanks for reply. I am using Windows OS and the development
version of SUMO v1_17_0+0578.
Have you tried SUMO 1.18 or the latest development version of 1.18?
additional comment, why taxi skips a stop when forced to be
teleported due to whatever reasons. Isn't it better to be
teleported to the next assigned stop instead to the very last
scheduled stop. Currently, I assume that when taxi is assigned to
a request, the taxi is assigned two scheduled stops, one at the
pick-up point and other at the request drop-off. Later, when the
taxi is forced to teleport, it is teleported to the very last
scheduled stop and maybe causing the bad allocation error. please
correct me if my assumption is wrong. 😊
May be somebody else can answer this question.
Many thanks and have a great day.
Best, Sharif
------------------------------------------------------------------------
*From:* sumo-user <[email protected]> on behalf of
Harald Schaefer via sumo-user <[email protected]>
*Sent:* Monday, August 7, 2023 9:03:59 AM
*To:* [email protected]
*Cc:* Harald Schaefer
*Subject:* Re: [sumo-user] Error: bad allocation
Hi Sharif,
it seems to be an internal memory problem in SUMO.
Which version of SUMO and which operating system are you using?
Best Regards, Harald
Am 06.08.23 um 20:04 schrieb Sharifullah Asady via sumo-user:
Dear all,
I am running simulation using traCI to assign taxis to
requests and at some point, in the simulation the taxi is
teleported and skips a stop at a lane where it has to pick the
request. Now, this behavior gives an error stating "Error: bad
allocation" forcing the simulation to close. Attached is the
screenshot of the of the message.
Many thanks for your response.
Best,
Sharif
_______________________________________________ sumo-user mailing [email protected] To unsubscribe from this list, visithttps://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user