local variable 'jobstatus' referenced before assignment

Asked by Patricia Rebello Teles

Dear authors

I am trying to run MG5_aMC_v2_1_0 in a PBS cluster but, although jobs are submitted and done, at combine_events step it returns the error msg

Command "combine_events " interrupted with error:
UnboundLocalError : [Fail 5 times]
  local variable 'jobstatus' referenced before assignment
Please report this bug on https://bugs.launchpad.net/madgraph5

Below you can see that LHE files are written

sfichet@UV00000191-P000:~/MG5_aMC_v2_1_0/teste/Events> ls
events.lhe unweighted_events.lhe

At mg5_configuration.txt I have

#! Default Running mode
#! 0: single machine/ 1: cluster / 2: multicore
 run_mode = 1

#! Cluster Type [pbs|sge|condor|lsf|ge|slurm] Use for cluster run only
#! And cluster queue
 cluster_type = pbs
 cluster_queue = long

#! Path to a node directory to avoid direct writting on the central disk
#! Note that condor cluster avoid direct writting by default (therefore this
#! options didn't modify condor cluster)
 cluster_temp_path = /tmp/sfichet

also if I use cluster_temp_path = None the error is the same.

Any hint to fix it?

Thank you in advance. Patricia

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Patricia Rebello Teles
Solved:
Last query:
Last reply:
Revision history for this message
Patricia Rebello Teles (athenafma) said :
#1

At run_01_tag_1_debug.log

combine_events
Traceback (most recent call last):
  File "/storage/home/sfichet/MG5_aMC_v2_1_0/teste/bin/internal/extended_cmd.py"
, line 872, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/storage/home/sfichet/MG5_aMC_v2_1_0/teste/bin/internal/extended_cmd.py"
, line 865, in onecmd_orig
    return func(arg, **opt)
  File "/storage/home/sfichet/MG5_aMC_v2_1_0/teste/bin/internal/madevent_interfa
ce.py", line 2691, in do_combine_events
    required_output=[pjoin(self.me_dir,'SubProcesses', 'combine.log')])
  File "/storage/home/sfichet/MG5_aMC_v2_1_0/teste/bin/internal/cluster.py", lin
e 51, in deco_f_interupt
    return f(self, *args, **opt)
  File "/storage/home/sfichet/MG5_aMC_v2_1_0/teste/bin/internal/cluster.py", lin
e 329, in launch_and_wait
    status = self.control_one_job(id)
  File "/storage/home/sfichet/MG5_aMC_v2_1_0/teste/bin/internal/misc.py", line 1
99, in deco_f_retry
    raise error.__class__, '[Fail %i times] \n %s ' % (i+1, error)
UnboundLocalError: [Fail 5 times]
 local variable 'jobstatus' referenced before assignment

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

Could you try with 2.1.1, they were some feedback from user concerning this cluster and I have implemented the modification they suggested ( We don't have any PBS cluster to test).

Cheers,

Olivier

Revision history for this message
Patricia Rebello Teles (athenafma) said :
#3

Thank you very much Olivier. 2.1.1 works well at PBS.
Cheers Patricia