Problem in VEINS

957 views
Skip to first unread message

Neeraj Mudgil

unread,
Mar 25, 2012, 10:25:40 AM3/25/12
to omnetpp
Hello Everyone,

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

net.net.xml
routes.rou.xml

Christoph Sommer

unread,
Mar 25, 2012, 11:21:26 AM3/25/12
to omn...@googlegroups.com
Neeraj Mudgil wrote:
> t=9224: Cannot convert 9.224e+06 to simtime_t: out of range [...] allowed by scale exponent -12.

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/

Neeraj Mudgil

unread,
Mar 26, 2012, 1:06:20 AM3/26/12
to omn...@googlegroups.com
Sir, thank you very much for reply. Can you please explain me why this
problem did not occur with the original net.net.xml and routes.rou.xml
files included in the traci_launchd example even if I increased the
simtime from 6000s to 60000s and simulation completes successfully?

> --
> 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!
`·.¸.·´ *

Christoph Sommer

unread,
Mar 27, 2012, 5:30:23 AM3/27/12
to omn...@googlegroups.com
Neeraj Mudgil wrote:
> Can you please explain me why this
> problem did not occur with the original net.net.xml and routes.rou.xml

I cannot think of any reason other than these simulations having been
executed with another version of the client modules.


Best,

Christoph

Neeraj Mudgil

unread,
Mar 27, 2012, 11:15:33 AM3/27/12
to omn...@googlegroups.com
Respected sir,
Thank you very much for help. My problem is solved now.

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

Sra Sontisirikit

unread,
Apr 3, 2012, 12:56:07 AM4/3/12
to omn...@googlegroups.com
How you solve the problem. I have the same problem too.

เมื่อ วันพุธที่ 28 มีนาคม ค.ศ. 2012, 0 นาฬิกา 15 นาที 33 วินาที UTC+9, Neeraj Mudgil เขียนว่า:

Neeraj Mudgil

unread,
Apr 3, 2012, 1:41:25 AM4/3/12
to omn...@googlegroups.com
As christoph sir told set ur simtime-sacle=-11 in ur omnetpp.ini file.

>> *
>> **(¨`·.·´¨) 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!

`·.¸.·´ *

Christoph Sommer

unread,
Apr 4, 2012, 10:41:11 AM4/4/12
to omn...@googlegroups.com
Neeraj Mudgil wrote:
> set ur simtime-sacle=-11 in ur omnetpp.ini file.

Just as an FYI: starting with Veins 2.0-rc2, this is no longer necessary.

Message has been deleted

Sashi Gurung

unread,
Jul 1, 2012, 8:28:18 PM7/1/12
to omn...@googlegroups.com
Hi,

I would be highly obliged if you could suggest me something on this issue.
I am using Veins 2.0-rc2. Still I got the following error. 

Error in module (TraCIScenarioManagerLaunchd) scenario.manager (id=4) at event #2500, t=88: Cannot convert inf to simtime_t: out of range (-9223372036854775.807,9223372036854775.807), allowed by scale exponent -3.


Thanks,
Sashi

Christoph Sommer

unread,
Jul 1, 2012, 10:43:05 PM7/1/12
to omn...@googlegroups.com
Dear Sashi,

Sashi Gurung wrote:
> I got the following error.
>
> *Error in module (TraCIScenarioManagerLaunchd) scenario.manager (id=4)
> at event #2500, t=88: Cannot convert inf to simtime_t*

I'll be glad to help you. However, I'll need more information and,
ideally, a backtrace.

First of all, please make sure you've read through and followed the
Veins tutorial closely. If you need help with the tutorial, make sure to
state which steps worked and which step is giving you problems. If you
need help with more advanced topics, please make sure to mention that
you were able to follow the tutorial.

Please follow this with an exact list of steps to reproduce the problem,
given an (almost) blank computer. This list will likely include which
versions of OMNeT++, SUMO, Veins, or other software to download and
where to install them. Be aware that, during the development of Veins,
various parts and versions of its components have been copied into other
model libraries and frameworks. If you are using one of these instead of
Veins, please give the name and version of the framework you are using.
Finally, if you are experiencing a crash, make sure you include the
actual error message from the debug logs (see next question).

Include all of the above information in an email to either the OMNeT++
or the SUMO users mailing list. Both lists will send your message to us,
as well as thousands of fellow researchers, so please demonstrate that
you made an honest effort to solve the problem before sending your
message. Feel free to link to screen shots or movies, but please do not
attach them to your message.

Debug output for OMNeT++ can be found on the console (immediately before
the "simulation terminated" line). You can get more in-depth information
by enabling debug-on-errors and running the simulation with a debugger
attached.

For more information, please see the FAQ at
<http://veins.car2x.org/documentation/faq/>

Ana María Orozco Idrobo

unread,
Aug 15, 2012, 5:28:54 PM8/15/12
to omn...@googlegroups.com, christop...@uibk.ac.at
Good day all,

I got the same problem you are talking here:

<!> Error in module (TraCIScenarioManagerLaunchd) Calitest.manager (id=5) at 
event #2, t=0.1: Cannot convert inf to simtime_t: out of 
range (-92233720.36854775807,92233720.36854775807), allowed by scale exponent -11.

So, I read this thread and changed the omnetpp.ini file with:

simtime-scale=-11

But it didn't work. Then I also tried with -12,-15, and -9 but the problem persist.

The simulation we are working on consists in a VANET application Post-Crash Notification (PCN)
with a geocast routing protocol implemented by ourselves.

This is the first time we are testing the scenario with a real-world map, we had done it with
a simple road scenario in SUMO, without this problem before.

Any suggestion?

Thank you so much.


Ana Maria Orozco.
omnetpp.ini
sumo_files.rar

Christoph Sommer

unread,
Aug 15, 2012, 6:26:54 PM8/15/12
to omn...@googlegroups.com
Dear Ana María,

Ana María Orozco Idrobo wrote:
> I got the same problem you are talking here

This is fixed in more recent versions of Veins. You can resolve the
problem either by upgrading, or by changing the source code according to
[1].

Best,

Chris


[1] https://github.com/sommer/mixim-sommer/commit/dc3422de

--
Dr. Christoph Sommer
Network Research Lab, UCLA
Phone: +1 310-425-4674
BH 3803, 420 Westwood Plaza
Los Angeles, CA, 90095

Ana María Orozco Idrobo

unread,
Aug 15, 2012, 7:35:21 PM8/15/12
to omn...@googlegroups.com, christop...@uibk.ac.at
Good afternoon, Dr. Sommer,

Thanks for your answer, unfortunatly I still can't make it work.

I have the last version of Veins:  veins-2.0-rc2.

I checked the code you sent me and it is the same in our Omnet:

uint32_t TraCIScenarioManager::getCurrentTimeMs() {
return static_cast<uint32_t>(round(simTime().dbl() * 1000));
}

Thanks again.

Ana María.

Christoph Sommer

unread,
Aug 16, 2012, 2:17:01 PM8/16/12
to omnetpp, Ana María Orozco Idrobo
Dear Ana María,

Ana María Orozco Idrobo wrote:
>>> <!> Error in module (TraCIScenarioManagerLaunchd) Calitest.manager (id=5) at
>>> event #2, t=0.1: Cannot convert inf to simtime_t: out of
>>> range (-92233720.36854775807,92233720.36854775807), allowed by scale exponent -11.
>
> I'm sending here the simulation we are working on.

Thank you!

Turns out, the OMNeT++ playground in your simulation is too small. As
soon as one of your hosts enters the simulation outside the playground,
MiXiM crashes.

In fact, Veins warns about this on startup,
printing:
> WARNING: Playground size (2500, 3500) might be too small for vehicle at network bounds (10892.4, 30585.4)

You probably did not notice the warning, so I've now committed a patch
[1] that should give you a nicer error message and terminate the
simulation immediately when this happens.


Best,

Chris

[1] https://github.com/sommer/mixim-sommer/commit/8be3fe

Ana María Orozco Idrobo

unread,
Aug 16, 2012, 4:35:05 PM8/16/12
to omn...@googlegroups.com, Ana María Orozco Idrobo, christop...@uibk.ac.at

Thank you Dr. Sommer!

Your advise was very usefull. Now our simulation is working with the local map.

Thanks for your help and time.

Best regards,

Ana María and Roger.

Ghulam Sarwar

unread,
Dec 5, 2016, 1:35:00 PM12/5/16
to OMNeT++ Users, ana.oro...@gmail.com, christop...@uibk.ac.at
Dear Dr. Sommer,

Sir,  I am using veins 3.0, sumo21. But i still got the same error 

--- scheduling an event scheduleAt(simTime()+.012,sendRouteEvt)


t=14.189116586411: Cannot convert 1.38525e+008 to simtime_t: out of range (-9223372.036854775807,9223372.036854775807), allowed by scale exponent -12.

Can you please give me a suggestion........................



2012년 8월 17일 금요일 오전 5시 35분 5초 UTC+9, Ana María Orozco Idrobo 님의 말:

Christoph Sommer

unread,
Dec 5, 2016, 3:42:23 PM12/5/16
to Ghulam Sarwar, OMNeT++ Users, ana.oro...@gmail.com
Ghulam Sarwar wrote:
> --- scheduling an event scheduleAt(simTime()+.012,sendRouteEvt)
>
> t=14.189116586411: Cannot convert 1.38525e+008 to simtime_t: out of
> range

I would recommend running your simulation with a debugger attached (see
the Veins FAQ [1]) to find at which point in your code the error occurs
and what values the local variables take. I would further recommend
running your simulation in Valgrind's memory checker [2] to make sure
your code did not accidentally overwrite part of your memory.

Best,

Christoph


[1] http://veins.car2x.org/documentation/faq/
[2] http://valgrind.org/docs/manual/mc-manual.html

--
Dr. Christoph Sommer
Distributed Embedded Systems (CCS Labs)
Heinz Nixdorf Institute, Paderborn University, Germany
http://www.ccs-labs.org/~sommer/
Reply all
Reply to author
Forward
0 new messages