error during run

Asked by Juhi Dutta

Dear experts,

I am encountering this error sometimes while running the following process in Madgraph:

import model /scratch/juhi/workspace1/MG5_aMC_v2_6_2/models/GldGrv_UFO\
1
define cha = x1+ x1-
define fermions = l+ l- vl vl~ tau- tau+ u c d s u~ c~ s~ d~
generate p p > n2 cha, ( n2 > n1 fermions fermions, ( n1 > z grv, z > \
l+ l-)), ( cha > n1 fermions fermions, ( n1 > h01 grv, h01 > b b~ )) @\
1
output cn2_hz

generate_events -f
Traceback (most recent call last):
  File "/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/bin/internal/extended_cmd.py", line 1501, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/bin/internal/extended_cmd.py", line 1450, in onecmd_orig
    return func(arg, **opt)
  File "/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/bin/internal/madevent_interface.py", line 2467, in do_generate_events
    self.run_generate_events(switch_mode, args)
  File "/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/bin/internal/common_run_interface.py", line 6686, in new_fct
    original_fct(obj, *args, **opts)
  File "/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/bin/internal/madevent_interface.py", line 2509, in run_generate_events
    self.exec_cmd('refine %s' % nb_event, postcmd=False)
  File "/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/bin/internal/extended_cmd.py", line 1528, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/bin/internal/extended_cmd.py", line 1450, in onecmd_orig
    return func(arg, **opt)
  File "/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/bin/internal/madevent_interface.py", line 3474, in do_refine
    cross, error = self.make_make_all_html_results()
  File "/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/bin/internal/common_run_interface.py", line 689, in make_make_all_html_results
    return sum_html.make_all_html_results(self, folder_names, jobs)
  File "/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/bin/internal/sum_html.py", line 747, in make_all_html_results
    Presults = collect_result(cmd, folder_names=folder_names, jobs=jobs)
  File "/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/bin/internal/sum_html.py", line 728, in collect_result
    P_comb.add_results(os.path.basename(G), path, mfactors[G])
  File "/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/bin/internal/sum_html.py", line 412, in add_results
    oneresult.read_results(filepath)
  File "/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/bin/internal/sum_html.py", line 303, in read_results
    data = [secure_float(d) for d in line.split()]
  File "/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/bin/internal/sum_html.py", line 300, in secure_float
    return float(m.group(1))*10**(float(m.group(2)))
ValueError: could not convert string to float:

Could you please suggest how we can resolve this issue?

Thanks & Regards,

Juhi

Question information

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

Dear Juhi,

This part of the code is used when result are so small that fortran code are not able to format them correctly.
So this part of the code is expected to handle contribution cross-section from 1e-100 to 1e-999
so looks like you face a special case that I can not handle yet.

Can you run the following command:
cd /scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/SubProcesses
rm log.txt;for i in `ls -d P*`; do cd $i; head -n 1 G*/results.dat | grep -v results >> ../log.txt; cd ..; done;

and then send that file
/scratch/juhi/workspace1/MG5_aMC_v2_6_2/cn2_hz/SubProcesses/log.txt
by email (not via launchpad) to me.

Cheers,

Olivier

Revision history for this message
Juhi Dutta (dutta-juhi91) said :
#2

Hello,

I received this error:

head: cannot open `G*/results.dat' for reading: No such file or directory
head: cannot open `G*/results.dat' for reading: No such file or directory
head: cannot open `G*/results.dat' for reading: No such file or directory
head: cannot open `G*/results.dat' for reading: No such file or directory
head: cannot open `G*/results.dat' for reading: No such file or directory
head: cannot open `G*/results.dat' for reading: No such file or directory
head: cannot open `G*/results.dat' for reading: No such file or directory
head: cannot open `G*/results.dat' for reading: No such file or directory
head: cannot open `G*/results.dat' for reading: No such file or directory
head: cannot open `G*/results.dat' for reading: No such file or directory
head: cannot open `G*/results.dat' for reading: No such file or directory
head: cannot open `G*/results.dat' for reading: No such file or directory

Regards,

Juhi

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

and log.txt is empty?

Is it possible that you re-run inside that directory?
If yes, please rerun the above script after the next crash without that information I will not be able to provide a reliable patch.

Cheers,

Olivier

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#4

HI,

Thanks for the file.
So I do not see any formatting issue in that file. But some of the file have an hard crash information instead of the cross-section:
"end-code not correct 2"

I'm surprised that such error is not more explicit (it typically is) but ok.
In any case, you should now make a grep on the above message to find in which G directory this crash occurs.
and check the associated log file.
(in principle this code error is associated to a bash error but I can be wrong on that)

Cheers,

Olivier

Can you help with this problem?

Provide an answer of your own, or ask Juhi Dutta for more information if necessary.

To post a message you must log in.