I am using old version of veins on with Omnet++ 4.1 . My VEINS
tutorial is running fine.
But when I increased the simtime from 6000s to 12000 s in omnetpp.ini
and replaced the existing net.net.xml and routes.rou.xml in
traci_launchd example with my own net.net.xml and routes.rou.xml then
it runs fine only for some time and simulation crashes abruptly with
following error.
<!> Error in module (TraCIScenarioManagerLaunchd) scenario.manager
(id=3) at event #9733, t=9224: Cannot convert 9.224e+06 to simtime_t:
out of range (-9223372.036854775807,9223372.036854775807), allowed by
scale exponent -12.
TRAPPING on the exception above, due to a debug-on-errors=true
configuration option. Is your debugger ready?
Simulation terminated with exit code: 134
Command line: /home/sandeep/omnetpp-4.1/bin/opp_run -r 0 -n
/home/sandeep/omnetpp-4.1/samples/sommer-inet-sommer-fa9561b/examples:/home/sandeep/omnetpp-4.1/samples/sommer-inet-sommer-fa9561b/src
-l /home/sandeep/omnetpp-4.1/samples/sommer-inet-sommer-fa9561b/src/inet
/home/sandeep/omnetpp-4.1/samples/sommer-inet-sommer-fa9561b/examples/traci_launchd/omnetpp.ini
Working directory:
/home/sandeep/omnetpp-4.1/samples/sommer-inet-sommer-fa9561b/examples/traci_launchd
PATH=/home/sandeep/omnetpp-4.1/bin::/usr/lib64/mpi/gcc/openmpi/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/home/sandeep/omnetpp-4.1/bin:/home/sandeep/omnetpp-4.1/bin
LD_LIBRARY_PATH=/home/sandeep/omnetpp-4.1/lib::/home/sandeep/omnetpp-4.1/samples/sommer-inet-sommer-fa9561b/src:/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/amd64/server:/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/amd64:/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/../lib/amd64:/usr/lib64/mpi/gcc/openmpi/lib64:/usr/lib64/xulrunner-addons
OMNETPP_IMAGE_PATH=/home/sandeep/omnetpp-4.1/images
Can anyone please tell me what is reason for this error? I am
attaching my net.net.xml and routes.rou.xml file. Any help will really
be appreciated.
Thank You !
--
Neeraj Mudgil
M.Tech Computer Engg.(2010-12)
NIT Kurukshetra
The reason behind this error is the TraCI client code temporarily
storing milliseconds (instead of seconds) in a simtime_t variable to
communicate with SUMO (which uses milliseconds).
You can work around this problem by either using a coarser-grained time
scale in your simulations (setting simtime-scale=-11 in your
omnetpp.ini), or by changing (simTime() * 1000).dbl() to simTime().dbl()
* 1000 in the client code.
You can find more information about this error in chapter 4.1.4
"Simulation Time" of the user manual [1].
Best,
Christoph
[1] http://www.omnetpp.org/doc/omnetpp/manual/usman.html#sec143
--
Dr.-Ing. Christoph Sommer
Institute of Computer Science
University of Innsbruck, Austria
Phone: +43 512 507-96835 / Fax: -9888
http://ccs.uibk.ac.at/~sommer/
> --
> Sent from the OMNeT++ mailing list. To configure your membership,
> visit http://groups.google.com/group/omnetpp
>
--
Neeraj Mudgil
M.Tech Computer Engg.(2010-12)
NIT Kurukshetra
Contact: 09992300873
*
**(¨`·.·´¨) Alwayz
`·.¸(¨`·.·´¨) Keep
(¨`·.·´¨)¸.·´ Smiling!
`·.¸.·´ *
I cannot think of any reason other than these simulations having been
executed with another version of the client modules.
Best,
Christoph
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp
>> *
>> **(¨`·.·´¨) Alwayz
>> `·.¸(¨`·.·´¨) Keep
>> (¨`·.·´¨)¸.·´ Smiling!
>> `·.¸.·´ *
>>
>>
>
> --
> Sent from the OMNeT++ mailing list. To configure your membership,
> visit http://groups.google.com/group/omnetpp
>
--
Neeraj Mudgil
M.Tech Computer Engg.(2010-12)
NIT Kurukshetra
Contact: 09992300873
*
**(¨`·.·´¨) Alwayz
`·.¸(¨`·.·´¨) Keep
(¨`·.·´¨)¸.·´ Smiling!
`·.¸.·´ *
Just as an FYI: starting with Veins 2.0-rc2, this is no longer necessary.