"RuntimeError: can't start new thread" appears when I use the script to generate data.

Asked by Zongyang LU

Dear madgraph developer:
I try to use scripts to generate many cases with different parameters. But every time after running for a long time, an error will occur:
Command "import /home/usr/usr/madgraph/madgraph.sh" interrupted in sub-command:
"launch" with error:
RuntimeError : can't start new thread
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in 'MG5_debug'.
Please attach this file to your report.
Madgraph.sh is my script, and the content is
import model mixing
define q = u d c s b
define q~ = u~ d~ c~ s~ b~
generate mu+ mu- > q q~
output mumuToqqdifferentEtaAndMZp2
launch mumuToqqdifferentEtaAndMZp2
launch
set MZp = 1000
set WZp = 20.
set ebeam1 = 500
set ebeam2 = 500
set eta = 0.01
launch
set MZp = 1000
set WZp = 20.
set ebeam1 = 500
set ebeam2 = 500
set eta = 0.0148982
launch
set MZp = 1000
set WZp = 20.
set ebeam1 = 500
set ebeam2 = 500
set eta = 0.0197964
... ...

I don't know how to solve this problem.
                                                                                    LU

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Zongyang LU (zongyang) said :
#1
Revision history for this message
Zongyang LU (zongyang) said :
#2
Revision history for this message
Zongyang LU (zongyang) said :
#3
Revision history for this message
Zongyang LU (zongyang) said :
#4
Revision history for this message
Zongyang LU (zongyang) said :
#5
Revision history for this message
Zongyang LU (zongyang) said :
#6
Revision history for this message
Zongyang LU (zongyang) said :
#7
Revision history for this message
Zongyang LU (zongyang) said :
#8
Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#9

Did you try 2.9.14?
It should reduce the thread pressure.
another method that typically reduce thread pressure is

import model mixing
define q = u d c s b
define q~ = u~ d~ c~ s~ b~
generate mu+ mu- > q q~
output mumuToqqdifferentEtaAndMZp2
launch mumuToqqdifferentEtaAndMZp2
launch
set MZp = 1000
set WZp = 20.
set ebeam1 = 500
set ebeam2 = 500
set eta = scan:[0.01,0.0148982,0.0197964,...]

Revision history for this message
Zongyang LU (zongyang) said :
#10

Thanks Olivier Mattelaer, that solved my question.

Revision history for this message
Zongyang LU (zongyang) said :
#11

Thanks Olivier Mattelaer,I will try to use the method you provided in the following run.