"OSError: [Errno 24] Too many open files" -- in a scan

Asked by Arnab Roy

Hi,
I am having a similar issue during a scan.
I am trying to generate p p > vl vl~ j NP<=1 with the SMEFTsim_general_MwScheme_UFO. The running script is like:

launch monojet1
set lambdasmeft 1000.0 # scale -GeV
set cdWRe12 scan:[-1,-0.5,0,0.5,1]
set clq1Re2212 scan:[-1,-0.5,0,0.5,1]
set nevents 10000
0
launch monojet1 -i

The error part of the output is:

INFO: Combining Events
[Errno 24] Too many open files: '/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/monojet1_scan_25_tag_1_debug.log'
Traceback (most recent call last):
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/common_run_interface.py", line 7795, in new_fct
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/madevent_interface.py", line 2621, in run_generate_events
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/extended_cmd.py", line 1575, in exec_cmd
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/extended_cmd.py", line 1495, in onecmd_orig
ln: failed to create symbolic link 'ME5_debug' File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/madevent_interface.py", line 3782, in do_combine_events
: File exists
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/lhe_parser.py", line 957, in add
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/lhe_parser.py", line 230, in __init__
  File "/home/user1/anaconda3/lib/python3.11/gzip.py", line 174, in __init__
OSError: [Errno 24] Too many open files: '/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/Events/monojet1_scan_25/partials21.lhe.gz'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/extended_cmd.py", line 1546, in onecmd
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/extended_cmd.py", line 1495, in onecmd_orig
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/extended_cmd.py", line 1181, in do_import
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/extended_cmd.py", line 1694, in import_command_file
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/extended_cmd.py", line 1575, in exec_cmd
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/extended_cmd.py", line 1495, in onecmd_orig
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/madevent_interface.py", line 2761, in do_launch
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/madevent_interface.py", line 2402, in do_generate_events
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/common_run_interface.py", line 7774, in new_fct
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/common_run_interface.py", line 7745, in __exit__
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/check_param_card.py", line 559, in write
OSError: [Errno 24] Too many open files: '/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/Cards/param_card.dat'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/./bin/madevent", line 189, in <module>
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/extended_cmd.py", line 1584, in run_cmd
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/extended_cmd.py", line 1573, in exec_cmd
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/extended_cmd.py", line 1548, in onecmd
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/extended_cmd.py", line 1524, in error_handling
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/madevent_interface.py", line 311, in nice_error_handling
  File "/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/bin/internal/extended_cmd.py", line 1318, in nice_error_handling
OSError: [Errno 24] Too many open files: '/home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/monojet1_scan_25_tag_1_debug.log'

However I am not finding any log file in this path /home/user1/work/MG5_aMC_v3.5.4/MG5_aMC_v3_5_4/monojet1/monojet1_scan_25_tag_1_debug.log.

If I reduce the scan, say,
set cdWRe12 scan:[-1]
set clq1Re2212 scan:[-1,-0.5]
then there is no error.

Could you please suggest what should I do?

With best regards,
Arnab.

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Arnab Roy
Solved:
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

My suggestion would be to use the Long Term Stable version which does not have that issue.

Or you can apply the following patch which will be include in 3.6.0:
https://github.com/mg5amcnlo/mg5amcnlo/commit/6adb6eb6274f54382f6596c68c0f72e3398a9e21

Cheers,

Olivier

Revision history for this message
Arnab Roy (arnabroyphy) said :
#2

Hi Olivier,
Thank you for the quick response. Yes, with a LTS version I am not having this issue anymore.

With best regards,
Arnab.