[Omnetpp-l] Problem with global simtime variable in INET

272 views
Skip to first unread message

Vitali Anselm

unread,
Mar 29, 2009, 7:23:56 AM3/29/09
to omne...@omnetpp.org
Hello,
 
I am working with the last version of Omnet++ 4.0 and the last version of INETMANET (downloaded from github).
After installation of both programs, I have imported the INETMANET as "Existing project" into Omnet IDE.
First, I had problems to get the INETMANET working, because the INET.exe was not generated. I solved this problem by :
 
1) changing the C/C++ Build-->Build Directory under project properties to ${ProjDirPath}
2) setting the top directory INETMANET as "source location" under project properties-->Omnet++-->Makemake  , moreover let this top directory generate makefile and select the folowing parameters under "Options...":  Target--> Executable ,  Scope-->recursive make , Compile---> check the box "Compile object files for use in DLLs"
3) the same procedure with other parameters was done with the /src directory. made changes under "Options..." are:  Target-->Shared library and check the box "export this library for other projects"  , Scope--> deep compile 
 
After this solution of first problem, I could start every simulation example, e.g. net80211_aodv, without any errors...
But as soon as I import self-written directory including implementation of Ieee80216 stack, any simulation example can't be started anymore.
The following error is produced:
 

<!> Error during startup: Global simtime_t variable found, with value 2e-005. Global simtime_t variables are forbidden, because scale exponent is not yet known at the time they get initialized. Please use double or const_simtime_t instead.

OMNeT++ Discrete Event Simulation (C) 1992-2008 Andras Varga, OpenSim Ltd.

Version: 4.0, build: 090310-10709, edition: Academic Public License -- NOT FOR COMMERCIAL USE

See the license for distribution terms and warranty disclaimer

End.

Simulation terminated with exit code: 1

Command line: G:/inetmanet/INET.exe -r 0 -n G:/inetmanet/examples;G:/inetmanet/src -l G:/inetmanet/src/INET G:/inetmanet/examples/adhoc/net80211_aodv/omnetpp.ini

Working directory: G:/inetmanet/examples/adhoc/net80211_aodv

OMNETPP_ROOT=G:/OMNETPP-4.0

PATH=;G:/INETMANET/SRC;G:\OMNETPP-4.0\BIN;G:\OMNETPP-4.0\MSYS\BIN;G:\OMNETPP-4.0\MINGW\BIN;C:/PROGRAM FILES/JAVA/JRE6/BIN/CLIENT;C:/PROGRAM FILES/JAVA/JRE6/BIN;.;G:\OMNETPP-4.0\MSYS\LOCAL\BIN;G:\OMNETPP-4.0\MINGW\BIN;G:\OMNETPP-4.0\MSYS\BIN;G:\OMNETPP-4.0\BIN;C:\PROGRAM FILES\MIKTEX 2.6\MIKTEX\BIN;C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:\PROGRAM FILES\QUICKTIME\QTSYSTEM\;D:\MATLAB\BIN;D:\MATLAB\BIN\WIN32;.

OMNETPP_IMAGE_PATH=G:\OMNETPP-4.0\IMAGES

Actually, there is no interconection between the original examples and the imported Ieee80216, because of that I don't understand why this error occur and how to find it.

I hope that someone of you can help me to solve this problem.

I thank you for your responses in advance.

best regards,

Vitali Anselm


Alfonso Ariza

unread,
Mar 30, 2009, 3:47:19 AM3/30/09
to omne...@omnetpp.org
Please, send me the code and configurations files.


_______________________________________________
Omnetpp-l mailing list
Omne...@omnetpp.org
http://lists.omnetpp.org/mailman/listinfo/omnetpp-l

Andras Varga

unread,
Mar 30, 2009, 7:16:14 AM3/30/09
to omne...@omnetpp.org
I just had a similar problem; it is not always easy to find where that
global simtime_t variable is. You might search where the value (2e-005,
0.00002 etc) occurs in the sources. If that doesn't help, put a breakpoint
into the

void SimTime::initError(double d)

function, src/sim/simtime.cc#60 -- this function is what raises the
exception. When breakpoint is hit, the debugger might be able to display
which variable the "this" pointer corresponds to in the program.

Regards
Andras

________________________________________
From: omnetpp-...@omnetpp.org [mailto:omnetpp-...@omnetpp.org]
On Behalf Of Alfonso Ariza
Sent: Monday, March 30, 2009 9:47 AM
To: omne...@omnetpp.org
Subject: Re: [Omnetpp-l] Problem with global simtime variable in INET

Alfonso Ariza

unread,
Mar 30, 2009, 10:42:04 AM3/30/09
to omne...@omnetpp.org
I have found a problem in the code. In the file Ieee80216Const.h
const simtime_t ST = 20E-6;
const simtime_t SIFS = 10E-6;
const simtime_t DIFS = 2*ST + SIFS;
const simtime_t MAX_PROPAGATION_DELAY = 2E-6;  // 300 meters at the speed of light
 
Must be
 
const_simtime_t ST = 20E-6;
const_simtime_t SIFS = 10E-6;
const_simtime_t DIFS = 2*ST + SIFS;
const_simtime_t MAX_PROPAGATION_DELAY = 2E-6;  // 300 meters at the speed of light
 
 
 

Sent: Sunday, March 29, 2009 1:23 PM
Subject: [Omnetpp-l] Problem with global simtime variable in INET

Vitali Anselm

unread,
Mar 31, 2009, 4:06:09 AM3/31/09
to omne...@omnetpp.org
Hello,

I changed the lines in the file Ieee80216Const.h as you said, but it didn't
help unfortunately. Then I tried to find other matches to value "20E-6" and
there are several files, which also contain this value. These are:
Ieee80211-->mac-->Ieee80211Consts.h, Ieee80211-->mac-->Ieee80211gMac.cc,
mf80211-->macLayer-->Consts80211.h .
I tried to change the declaration variables, but then some errors occur
within the functions.
Could you take a look at these files and tell me, how to make changes? It
would be very kind.

Thanks a lot for your help.

regards,

Vitali Anselm


> Message: 1
> Date: Mon, 30 Mar 2009 16:42:04 +0200
> From: "Alfonso Ariza" <aari...@hotmail.com>
> Subject: Re: [Omnetpp-l] Problem with global simtime variable in INET
> To: <omne...@omnetpp.org>
> Message-ID: <COL113-DS24B53453C...@phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"

_______________________________________________

Vitali Anselm

unread,
Mar 31, 2009, 4:48:57 AM3/31/09
to omne...@omnetpp.org
Hello,

I have compiled all, after changing the file Ieee80216Const.h and tried to
run the "handover" example from wireless directory and to my surprise there
is now another error :) Somehow, no one of the ned files in the src/
directory has a correct package declaration. Every ned file contain now
errors like : declared package "inet.applications.ethernet" does not match
expected package "ethernet" EtherAppCli.ned INET/src/applications/ethernet
line 18 NED Consistency Problem

But I didn't change anything in the ned files! It seems to be a magic
generating new types of errors every time :)

Some advices for it?

regards,

Vitali


_______________________________________________________________________

Vitali Anselm

unread,
Mar 31, 2009, 5:08:36 AM3/31/09
to omne...@omnetpp.org
Hello,

sorry for spaming the mailinglist... The last problem with the ned files is
solved. I had to "Clean Up NED files". I did the job.
Now the "handover" example runs withoot problems, but the net80211_aodv
opens the TkEnv and throws an error:

Error in module (cCompoundModule) Net80211_aodv.host[0] (id=3):
Submodule mobility: no module type named "inet.mobility.NullMobilty" found
that implements module interface
BasicMobility (not in the loaded NED files?), at
G:\inetmanet\src\node\adhoc\MobileManetRoutingHost.ned:109.

In this ned file there is the following entry on the line 109:
mobility: <mobilityType> like BasicMobility {
parameters:
@display("p=149,307");
}

Has it something to do with "like" which should not be used in 4.0 anymore?

regards,

Vitali

____________________________________________________________

Andras Varga

unread,
Apr 1, 2009, 3:26:16 AM4/1/09
to omne...@omnetpp.org
> Now the "handover" example runs withoot problems, but the net80211_aodv
> opens the TkEnv and throws an error:
>
> Error in module (cCompoundModule) Net80211_aodv.host[0] (id=3):
> Submodule mobility: no module type named "inet.mobility.NullMobilty" found
> that implements module interface BasicMobility (not in the loaded NED
> files?), at G:\inetmanet\src\node\adhoc\MobileManetRoutingHost.ned:109.
>
> In this ned file there is the following entry on the line 109:
> mobility: <mobilityType> like BasicMobility {
> parameters:
> @display("p=149,307");
> }

You probably set mobilityType="NullMobilty" in omnetpp.ini (btw, there's a
"i" missing -- maybe that's the problem?). This means OMNeT++ will look for
a module which looks like

simple NullMobilty like BasicMobility {
...
}

and obviously could not find it.

http://omnetpp.org/doc/omnetpp40/manual/usman.html#sec133 and
http://omnetpp.org/doc/omnetpp40/manual/usman.html#sec136, "Name resolution
with 'like'"



> Has it something to do with "like" which should not be used in 4.0
> anymore?

Where did you hear that? It's complete misinformation. "like" **IS**
supported. See the manual.

Regards
Andras

cem akpolat

unread,
Apr 1, 2009, 10:08:20 AM4/1/09
to omne...@omnetpp.org
Hi,
how did you realize handover example, this is your module or the Mobility Fr. include it?
 
Thanks,
 
Cem Akpolat

2009/3/31 Vitali Anselm <Vitali...@web.de>



--
CEM AKPOLAT

Vitali Anselm

unread,
Apr 2, 2009, 3:23:50 AM4/2/09
to omne...@omnetpp.org

Hello Cem,

No, it is not my own module, but the existing module of INETMANET framework,
which can be found in examples/wireless/handover directory.


> Message: 6
> Date: Wed, 1 Apr 2009 17:08:20 +0300
> From: cem akpolat <akpol...@gmail.com>


> Subject: Re: [Omnetpp-l] Problem with global simtime variable in INET
> To: omne...@omnetpp.org
> Message-ID:

> <a6880ae60904010708j784...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"

> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.omnetpp.org/pipermail/omnetpp-l/attachments/20090401/7539fc1d/attachment.html
>
> ------------------------------


>
> _______________________________________________
> Omnetpp-l mailing list
> Omne...@omnetpp.org
> http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
>
>

> End of Omnetpp-l Digest, Vol 10, Issue 3
> ****************************************
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 3981 (20090401) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com

Rudolf Hornig

unread,
Apr 2, 2009, 6:33:41 AM4/2/09
to omne...@omnetpp.org
On Tue, Mar 31, 2009 at 10:48 AM, Vitali Anselm <Vitali...@web.de> wrote:
Hello,

I have compiled all, after changing the file Ieee80216Const.h  and tried to
run the "handover" example from wireless directory and to my surprise there
is now another error :)  Somehow, no one of the ned files in the src/
directory has a correct package declaration. Every ned file contain now
errors like : declared package "inet.applications.ethernet" does not match
expected package "ethernet" EtherAppCli.ned INET/src/applications/ethernet
line 18 NED Consistency Problem

What are your NED folders? they should be "src" and "examples" ONLY.
You can check it in the project properties dialog or directly looking into the
.nedfolders file

(I'm guessing from the error message that you have src/applications in it...)
 

cem akpolat

unread,
Apr 3, 2009, 3:43:41 AM4/3/09
to omne...@omnetpp.org
Thanks Vitali

2009/4/2 Vitali Anselm <Vitali...@web.de>



--
CEM AKPOLAT
Reply all
Reply to author
Forward
0 new messages