OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000586OMNeT++command line toolspublic2012-08-28 08:342013-04-05 10:11
x86WindowsXP, 2008 Server
0000586: scavetool Error Message: 'Bad file number' when converting more than 314 files to CSV
I'd like to use the scavetool in OMNeT++ 4.1 and 4.2.2, respectively. I made a simulation study with a big amount of runs and result files (about 10.000 .sca and .vec files). As I found the scavetool only supports an unsual number of 314
files when converting to CSV. In case I would like to convert more than 314 files in one single shot by using the input file name *.vec, I get the following error message:

Bad file number.

Is this the intended behaviour of scavetool and if, why only 314 files are supported?

Is there any fast and easy opportunity to convert an almost infinite amount (depending on the hardware) of .vec and .sca data to CSV for evaluation in MATLAB?
This behaviour appears for both OMNeT++ 4.2.2 and 4.1
No tags attached.
Issue History
2012-08-28 08:34sebastianNew Issue
2012-08-28 10:51andrasNote Added: 0000762
2012-08-28 10:51andrasAssigned To => tomi
2012-08-28 10:58sebastianNote Added: 0000763
2013-04-05 10:11sebastianNote Added: 0000798

2012-08-28 10:51   
This is certainly not the intended behavior. Probably an OS limit on the number of open files.

What was the command line you used? (Was that the scalar or the vector files causing the error?)

As a workaround, maybe you could try converting the files in smaller batches.
2012-08-28 10:58   
I used the following command:
scavetool scalar -p "(module(**.node[0].net) AND name(\"Number of used Timeslots\")) OR (module(**.node[1].appl) AND name(\"Number of received bits\"))" -O throughput.csv -F csv *.sca

However, the same happened to the vector files.

I would like to have the scalar output of the values given above within one single file. With this it would be easy to calculate the mean and what ever you want for the data.

Yes, what I did was to write an shell script which convert each(!) .vec and .sca into a .csv. This takes a long time (still running) and I have thousands of files.
2013-04-05 10:11   
Hey folks,

could you please tell me if you are still working on this issue and when to expect a fix for this? I know there are many bugs but I guess a simulation tool without a data export to interpret the results is quite unusable :P