INETMANET Traci tests not working.

605 views
Skip to first unread message

Alvaro Torres Cortes

unread,
Nov 9, 2011, 7:40:21 AM11/9/11
to omnetpp
Hello everyone, I'm a mew student wich is going to use Omnet++ +
Inetmanet + Traci for some simulations.

As a first step I've been trying to run the tests and exmples of
traci.

Examples are outdated, so I had to change the net files and the
sumo.cfg files, but they ran in sumo 0.13.1 whitout any problem.

But the test case does not work at all.

When I right-click on omnetpp.ini -> Run simulation it appears the
following error:

<!> Error: Network `highway1' not found, check .ini and .ned files.

Is the same error that appears in the traci branch of sommer.

I've also noticed that the traci branch of sommer has some extra files
(wich does not appear in the master INETMANET branch) and I think they
are required for a correct work of the test.

"polys.poly.xml" and "tls.tls.xml"

Thanks in advance.

Christoph Sommer

unread,
Nov 9, 2011, 7:44:37 AM11/9/11
to omn...@googlegroups.com
Dear Alvaro,

Alvaro Torres Cortes wrote:
> it appears the following error:
>
> <!> Error: Network `highway1' not found, check .ini and .ned files.
>
> Is the same error that appears in the traci branch of sommer.

This sounds interesting. Is this error present in either inet-sommer or
mixim-sommer?

If so, could you please provide further information on how to reproduce it?


Cheers,

Christoph

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

listasdecorreo

unread,
Nov 9, 2011, 10:43:22 AM11/9/11
to omn...@googlegroups.com
Hello Christoph,

Yes, the error is present in inet-sommer

The system I'm using is the following:
Ubuntu 11.10 x64
Sumo 0.13.1
Omnet++ 4.1

And the steps I've made are the following:

1_ Import inet-sommer, traci branch.
In Omnet's Project Explorer, right click -> Import -> Git

2_ After auto build, select the project and hit Ctrl + B

3_ I've tested launching sumo in two ways.
Launch Sumo only (sumo -c sumo.sumo.cfg --remote-port 9999)
or using sumo-launchd (sumo_launchd.py -vv)

4_ Again in Omnet,
go to tests/traci
select omnetpp.ini
Right click and "Run as" -> "Omnet++ simulation"

And thats when the error cames out. At the end of the message is the
full error.
---------------------------------------------------

Ok, examining the command line I've noticed that the tests directory
wasn't included in the NED directories, so i added it.

But now another set of errors appear All of them are NED consistency
Problem in several folders. (At the end Error 2)
I've managed to find a workaround, that is to place a new packages.ned
in tests folder. And only including the tests/traci folder to the NED
folders (instead of the whole tests folder).

Now I think that the tests are working correctly.

--
Passed: (commandSetSpeed) vehicle is driving
Passed: (commandSetSpeed) vehicle has stopped
Passed: (commandSetSpeed) vehicle is driving
Passed: (commandSetSpeed) vehicle has stopped
Passed: (commandSetSpeed) vehicle is driving
Passed: (commandSetSpeed) vehicle has stopped
--

Thanks for your attention and also for the Traci implementation.


Alvaro.


Error 1, for not including directory in NED folders.
-------------------------------------------------------------------------------------------------------


<!> Error: Network `highway1' not found, check .ini and .ned files.

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/alvaro/omnetpp-4.1/bin/opp_run -r 0 -n
/home/alvaro/GRC-Investigacion/OMNETpp-Workspace/inet-sommer/examples:/home/alvaro/GRC-Investigacion/OMNETpp-Workspace/inet-sommer/src
-l /home/alvaro/GRC-Investigacion/OMNETpp-Workspace/inet-sommer/src/inet
/home/alvaro/GRC-Investigacion/OMNETpp-Workspace/inet-sommer/tests/traci/omnetpp.ini

Working directory:
/home/alvaro/GRC-Investigacion/OMNETpp-Workspace/inet-sommer/tests/traci

LD_LIBRARY_PATH=/home/alvaro/omnetpp-4.1/lib::/home/alvaro/GRC-Investigacion/OMNETpp-Workspace/inet-sommer/src:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64
PATH=/home/alvaro/omnetpp-4.1/bin::/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
OMNETPP_IMAGE_PATH=/home/alvaro/omnetpp-4.1/images
---------------------------------------------------------------------------------------------------------

Error 2.
-------------------------------------------------------
Description Resource Path Location Type
'datarate': undefined parameter DLLTest.ned
/inet-sommer/tests/dlltest line 26 NED Consistency Problem
'datarate': undefined parameter DLLTest.ned
/inet-sommer/tests/dlltest line 33 NED Consistency Problem
'delay': undefined parameter DLLTest.ned
/inet-sommer/tests/dlltest line 25 NED Consistency Problem
'delay': undefined parameter DLLTest.ned
/inet-sommer/tests/dlltest line 32 NED Consistency Problem
'FlatNetworkConfigurator': no such module type DLLTest.ned
/inet-sommer/tests/dlltest line 41 NED Consistency Problem
'Router': no such module type DLLTest.ned
/inet-sommer/tests/dlltest line 42 NED Consistency Problem
'Router': no such module type DLLTest.ned
/inet-sommer/tests/dlltest line 43 NED Consistency Problem
'Router': no such module type DLLTest.ned
/inet-sommer/tests/dlltest line 44 NED Consistency Problem
'StandardHost': no such module type DLLTest.ned
/inet-sommer/tests/dlltest line 45 NED Consistency Problem
'StandardHost': no such module type DLLTest.ned
/inet-sommer/tests/dlltest line 48 NED Consistency Problem
'TCP': no such module type TcpTest.ned
/inet-sommer/tests/newtcp line 13 NED Consistency Problem
'TCP': no such module type TcpTest.ned
/inet-sommer/tests/newtcp line 17 NED Consistency Problem
'TCP': no such module type TcpTest.ned
/inet-sommer/tests/newtcp line 51 NED Consistency Problem
'TCP': no such module type TcpTest.ned
/inet-sommer/tests/newtcp line 55 NED Consistency Problem
declared package "" does not match expected package "dlltest"
DLLTest.ned /inet-sommer/tests/dlltest line 1 NED Consistency
Problem
declared package "" does not match expected package "dlltest"
SomeUDPApp.ned /inet-sommer/tests/dlltest line 1 NED
Consistency Problem
declared package "" does not match expected package "newtcp"
TCPTester.ned /inet-sommer/tests/newtcp line 1 NED Consistency
Problem
declared package "" does not match expected package "newtcp"
TcpTest.ned /inet-sommer/tests/newtcp line 1 NED Consistency
Problem
declared package "" does not match expected package "newtcp"
TcpTestClient.ned /inet-sommer/tests/newtcp line 1 NED
Consistency Problem
declared package "inet.tests.traci" does not match expected package
"traci" Car.ned /inet-sommer/tests/traci line 19 NED
Consistency Problem
declared package "inet.tests.traci" does not match expected package
"traci" Highway.ned /inet-sommer/tests/traci line 19 NED
Consistency Problem
declared package "inet.tests.traci" does not match expected package
"traci" package.ned /inet-sommer/tests/traci line 1 NED
Consistency Problem
no such component: 'DatarateChannel' DLLTest.ned
/inet-sommer/tests/dlltest line 23 NED Consistency Problem
no such component: 'DatarateChannel' DLLTest.ned
/inet-sommer/tests/dlltest line 30 NED Consistency Problem
no such interface: 'TCPApp' TcpTestClient.ned
/inet-sommer/tests/newtcp line 24 NED Consistency Problem
no such interface: 'UDPApp' SomeUDPApp.ned
/inet-sommer/tests/dlltest line 25 NED Consistency Problem
wrong destination gate: submodule 'cli' has no gate named 'in'
DLLTest.ned /inet-sommer/tests/dlltest line 54 NED Consistency
Problem
wrong destination gate: submodule 'r1' has no gate named 'in'
DLLTest.ned /inet-sommer/tests/dlltest line 53 NED Consistency
Problem
wrong destination gate: submodule 'r1' has no gate named 'in'
DLLTest.ned /inet-sommer/tests/dlltest line 58 NED Consistency
Problem
wrong destination gate: submodule 'r2' has no gate named 'in'
DLLTest.ned /inet-sommer/tests/dlltest line 57 NED Consistency
Problem
wrong destination gate: submodule 'r2' has no gate named 'in'
DLLTest.ned /inet-sommer/tests/dlltest line 61 NED Consistency
Problem
wrong destination gate: submodule 'r3' has no gate named 'in'
DLLTest.ned /inet-sommer/tests/dlltest line 60 NED Consistency
Problem
wrong destination gate: submodule 'r3' has no gate named 'in'
DLLTest.ned /inet-sommer/tests/dlltest line 64 NED Consistency
Problem
wrong destination gate: submodule 'srv' has no gate named 'in'
DLLTest.ned /inet-sommer/tests/dlltest line 63 NED Consistency
Problem
wrong destination gate: submodule 'tcpcli' has no gate named
'from_appl' TcpTest.ned /inet-sommer/tests/newtcp line 30
NED Consistency Problem
wrong destination gate: submodule 'tcpcli' has no gate named
'from_appl' TcpTest.ned /inet-sommer/tests/newtcp line 68
NED Consistency Problem
wrong destination gate: submodule 'tcpcli' has no gate named 'ipIn'
TcpTest.ned /inet-sommer/tests/newtcp line 36 NED Consistency
Problem
wrong destination gate: submodule 'tcpcli' has no gate named 'ipIn'
TcpTest.ned /inet-sommer/tests/newtcp line 74 NED Consistency
Problem
wrong destination gate: submodule 'tcpsrv' has no gate named
'from_appl' TcpTest.ned /inet-sommer/tests/newtcp line 32
NED Consistency Problem
wrong destination gate: submodule 'tcpsrv' has no gate named
'from_appl' TcpTest.ned /inet-sommer/tests/newtcp line 70
NED Consistency Problem
wrong destination gate: submodule 'tcpsrv' has no gate named 'ipIn'
TcpTest.ned /inet-sommer/tests/newtcp line 37 NED Consistency
Problem
wrong destination gate: submodule 'tcpsrv' has no gate named 'ipIn'
TcpTest.ned /inet-sommer/tests/newtcp line 75 NED Consistency
Problem
wrong source gate: submodule 'cli' has no gate named 'out'
DLLTest.ned /inet-sommer/tests/dlltest line 53 NED Consistency
Problem
wrong source gate: submodule 'r1' has no gate named 'out'
DLLTest.ned /inet-sommer/tests/dlltest line 54 NED Consistency
Problem
wrong source gate: submodule 'r1' has no gate named 'out'
DLLTest.ned /inet-sommer/tests/dlltest line 57 NED Consistency
Problem
wrong source gate: submodule 'r2' has no gate named 'out'
DLLTest.ned /inet-sommer/tests/dlltest line 58 NED Consistency
Problem
wrong source gate: submodule 'r2' has no gate named 'out'
DLLTest.ned /inet-sommer/tests/dlltest line 60 NED Consistency
Problem
wrong source gate: submodule 'r3' has no gate named 'out'
DLLTest.ned /inet-sommer/tests/dlltest line 61 NED Consistency
Problem
wrong source gate: submodule 'r3' has no gate named 'out'
DLLTest.ned /inet-sommer/tests/dlltest line 63 NED Consistency
Problem
wrong source gate: submodule 'srv' has no gate named 'out'
DLLTest.ned /inet-sommer/tests/dlltest line 64 NED Consistency
Problem
wrong source gate: submodule 'tcpcli' has no gate named 'appOut'
TcpTest.ned /inet-sommer/tests/newtcp line 31 NED Consistency
Problem
wrong source gate: submodule 'tcpcli' has no gate named 'appOut'
TcpTest.ned /inet-sommer/tests/newtcp line 69 NED Consistency
Problem
wrong source gate: submodule 'tcpcli' has no gate named 'ipOut'
TcpTest.ned /inet-sommer/tests/newtcp line 35 NED Consistency
Problem
wrong source gate: submodule 'tcpcli' has no gate named 'ipOut'
TcpTest.ned /inet-sommer/tests/newtcp line 73 NED Consistency
Problem
wrong source gate: submodule 'tcpsrv' has no gate named 'appOut'
TcpTest.ned /inet-sommer/tests/newtcp line 33 NED Consistency
Problem
wrong source gate: submodule 'tcpsrv' has no gate named 'appOut'
TcpTest.ned /inet-sommer/tests/newtcp line 71 NED Consistency
Problem
wrong source gate: submodule 'tcpsrv' has no gate named 'ipOut'
TcpTest.ned /inet-sommer/tests/newtcp line 38 NED Consistency
Problem
wrong source gate: submodule 'tcpsrv' has no gate named 'ipOut'
TcpTest.ned /inet-sommer/tests/newtcp line 76 NED Consistency
Problem
--------------------------------------------------------

El 09/11/11 13:44, Christoph Sommer escribi�:

Christoph Sommer

unread,
Nov 9, 2011, 12:24:09 PM11/9/11
to omn...@googlegroups.com
Dear Alvaro,

listasdecorreo wrote:
> I've noticed that the tests directory wasn't included in the NED
> directories, so i added it.
> But now another set of errors appear

[...]
> including the tests/traci folder to the NED folders [...] I think that the tests are working correctly.

Ah. That explains the problem. It seems like the INET Framework is not
prepared for running the automated tests from the OMNeT++ IDE.

Using the 'run' shell script in the tests/traci folder, however, should
work as intended: it executes automated tests for all commands mentioned
on the Veins website <http://veins.car2x.org/documentation/modules/>,
yielding:

% ./run


> Passed: (commandSetSpeed) vehicle is driving
> Passed: (commandSetSpeed) vehicle has stopped

> Passed: (commandChangeRoute, 9999) vehicle avoided 42
> Passed: (commandChangeRoute, 9999) vehicle avoided 43
> Passed: (commandChangeRoute, 9999) vehicle took 44
> Passed: (commandChangeRoute, -1) vehicle took 42
> Passed: (commandChangeRoute, -1) vehicle avoided 43
> Passed: (commandChangeRoute, -1) vehicle avoided 44
> Passed: (commandDistanceRequest, air)
> Passed: (commandDistanceRequest, driving)
> Passed: (commandStopNode) vehicle is at 43
> Passed: (commandStopNode) vehicle is stopped
> Passed: (commandSetTrafficLightProgram) vehicle is at 31
> Passed: (commandSetTrafficLightProgram) vehicle is stopped
> Passed: (commandSetTrafficLightPhaseIndex) vehicle is at 31
> Passed: (commandSetTrafficLightPhaseIndex) vehicle is stopped
> Passed: (commandGetPolygonIds) number is 1
> Passed: (commandGetPolygonIds) id is correct
> Passed: (commandGetPolygonTypeId) typeId is correct
> Passed: (commandGetPolygonShape) shape x coordinate is correct
> Passed: (commandGetPolygonShape) shape y coordinate is correct
> Passed: (commandGetPolygonShape) shape x coordinate is correct
> Passed: (commandGetPolygonShape) shape y coordinate is correct
> Passed: (commandSetPolygonShape) shape x coordinate was changed
> Passed: (commandSetPolygonShape) shape y coordinate was changed
> Passed: (commandAddVehicle) command reports success
> Passed: (commandAddVehicle) vehicle now driving
> Passed: (commandAddVehicle) vehicle driving at speed

Susana Rodriguez

unread,
Apr 24, 2015, 3:23:33 PM4/24/15
to omn...@googlegroups.com, christop...@uibk.ac.at
I had the same problem with my own tests. 
It was generating this error in the IDE every time I runned my test script on the command line 

Description Resource Path Location Type
declared package "" does not match expected package "vanets.test.work.MetricsTests" package.ned /vanets/test/work/MetricsTests line 1 NED Consistency Problem
declared package "" does not match expected package "vanets.test.work.MetricsTests" test.ned /vanets/test/work/MetricsTests line 1 NED Consistency Problem

I was able to fix by also adding the appropriate package.ned files. 
However, since the work folder is generated every time, it overwrites the package.ned files I added. 
I could resolve this by adding those files in my script after work folder is generated, but this seems a hacky solution. 
Do you think this is a proper solution, or is the new version of OMNET++ IDE (4.6) capable of resolving this. 

Let me know . 
Thank you
Reply all
Reply to author
Forward
0 new messages