Kamikaze reweighting compilation fails

Asked by senka duric

Dear all,
I am trying to use Kamikaze reweighting to reweight my NLO aTGC sample. I am using MG5_aMC_v2_3_3.
The NLO aTGC model is by Celine Degrande: EWdim6NLO. My process is NLO WZ with 0 and 1 jets:

set group_subprocesses False
import model EWdim6NLO-no_cmass_cwcbcwww
generate p p > w+ l+ l- QED=3 [QCD] @0
add process p p > w- l+ l- QED=3 [QCD] @1

I successfully generate events, but I get an error while compiling reweighting step. I run generate_events with reweighting ON:

 1 Perturbative order of the calculation: order=NLO
 2 Fixed order (no event generation and no MC@[N]LO matching): fixed_order=OFF
 3 Shower the generated events: shower=OFF
 4 Decay particles with the MadSpin module: madspin=OFF
 5 Add weights to the events based on changing model parameters: reweight=ON

 And my output:
==================================>
....
INFO: Updating the number of unweighted events per channel

      Intermediate results:
      Random seed: 34
      Total cross-section: 2.299e+00 +- 6.5e-03 pb
      Total abs(cross-section): 2.720e+00 +- 6.6e-03 pb

INFO: Generating events
...
INFO: Doing reweight
INFO: Idle: 0, Running: 0, Completed: 23 [ current time: 06h16 ]
INFO: Collecting events
INFO:
      Summary:
      Process p p > w+ l+ l- QED=3 [QCD] @0 ; p p > w- l+ l- QED=3 [QCD] @1
      Run at p-p collider (6500.0 + 6500.0 GeV)
      Total cross-section: 2.286e+00 +- 6.5e-03 pb
      Number of events generated: 1000
      Parton shower to be used: PYTHIA8
      Fraction of negative weights: 0.08
      Total running time : 6m 48s

INFO: The /nfs_scratch/senka/wz_0jets_EWdim6NLO_grsubFalse_VBnoDecay_NLO_cwcbcwww_MG233/Events/run_02/events.lhe.gz file has been generated.

INFO: Events generated
reweight -from_cards
INFO: Extracting the banner ...
WARNING: Remember that the reweighting is performed at Leading Order. NLO precision is not guarantee.
...
INFO: process: p p > w+ l+ l-
INFO: options: QED=3
INFO: Running Reweight
launch
INFO: detected model: EWdim6NLO-no_cmass_cwcbcwww. Loading...
INFO: generating the square matrix element for reweighting
INFO: generate p p > w+ l+ l- QED=3 @0 --no_warning=duplicate;define pert_QCD = -4 -3 -2 -1 1 2 3 4 21;add process p p > w+ l+ l- pert_QCD QED=3 @0 --no_warning=duplicate;add process p p > w- l+ l- QED=3 @1 --no_warning=duplicate;define pert_QCD = -4 -3 -2 -1 1 2 3 4 21;add process p p > w- l+ l- pert_QCD QED=3 @1 --no_warning=duplicate;
INFO: Done 16.53
set Dim6 1 6
INFO: modify param_card information BLOCK dim6 with id (1,) set to 6.0
set Dim6 2 0
INFO: modify param_card information BLOCK dim6 with id (2,) set to 0.0
set Dim6 3 0
INFO: modify param_card information BLOCK dim6 with id (3,) set to 0.0
Do you want to edit a card (press enter to bypass editing)?
  1 / param : param_card.dat
  9 / plot : plot_card.dat
 you can also
   - enter the path to a valid card or banner.
   - use the 'set' command to modify a parameter directly.
     The set option works only for param_card and run_card.
     Type 'help set' for more information on this command.
   - call an external program (ASperGE/MadWidth/...).
     Type 'help' for the list of available command
 [0, done, 1, param, 9, plot, enter path]
The answer to the previous question is not set in your input file
Use 0 value
INFO: starts to compute weight for events with the following modification to the param_card:
INFO: set param_card dim6 1 6.0 # orig: 4.0
set param_card dim6 2 0.0 # orig: 3.0
set param_card dim6 3 0.0 # orig: 15.0

INFO: Event nb 0 current time: 06h16
Command "launch " interrupted with error:
MadGraph5Error: A compilation Error occurs when trying to compile /nfs_scratch/senka/wz_0jets_EWdim6NLO_grsubFalse_VBnoDecay_NLO_cwcbcwww_MG233/rw_me/SubProcesses/P0_udx_wpepem.
The compilation fails with the following output message:
    touch __init__.py
    f2py -L../../lib/ -ldhelas -lmodel -c matrix.f -m matrix2py --fcompiler=gfortran
    Unknown vendor: "gfortran"
    running build
    running config_cc
    unifing config_cc, config, build_clib, build_ext, build commands --compiler options
    running config_fc
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
    running build_src
    build_src
    building extension "matrix2py" sources
    f2py options: []
    f2py:> /tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2pymodule.c
    creating /tmp/tmpWGXxcc
    creating /tmp/tmpWGXxcc/src.linux-x86_64-2.7
    Reading fortran codes...
     Reading file 'matrix.f' (format:fix,strict)
    Line #85 in matrix.f:" DATA (NHEL(I, 1),I=1,5) / 1,-1,-1, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 1),i=1,5)" is not supported. Skipping.
    Line #86 in matrix.f:" DATA (NHEL(I, 2),I=1,5) / 1,-1,-1, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 2),i=1,5)" is not supported. Skipping.
    Line #87 in matrix.f:" DATA (NHEL(I, 3),I=1,5) / 1,-1,-1,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 3),i=1,5)" is not supported. Skipping.
    Line #88 in matrix.f:" DATA (NHEL(I, 4),I=1,5) / 1,-1,-1,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 4),i=1,5)" is not supported. Skipping.
    Line #89 in matrix.f:" DATA (NHEL(I, 5),I=1,5) / 1,-1, 0, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 5),i=1,5)" is not supported. Skipping.
    Line #90 in matrix.f:" DATA (NHEL(I, 6),I=1,5) / 1,-1, 0, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 6),i=1,5)" is not supported. Skipping.
    Line #91 in matrix.f:" DATA (NHEL(I, 7),I=1,5) / 1,-1, 0,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 7),i=1,5)" is not supported. Skipping.
    Line #92 in matrix.f:" DATA (NHEL(I, 8),I=1,5) / 1,-1, 0,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 8),i=1,5)" is not supported. Skipping.
    Line #93 in matrix.f:" DATA (NHEL(I, 9),I=1,5) / 1,-1, 1, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 9),i=1,5)" is not supported. Skipping.
    Line #94 in matrix.f:" DATA (NHEL(I, 10),I=1,5) / 1,-1, 1, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 10),i=1,5)" is not supported. Skipping.
    Line #95 in matrix.f:" DATA (NHEL(I, 11),I=1,5) / 1,-1, 1,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 11),i=1,5)" is not supported. Skipping.
    Line #96 in matrix.f:" DATA (NHEL(I, 12),I=1,5) / 1,-1, 1,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 12),i=1,5)" is not supported. Skipping.
    Line #97 in matrix.f:" DATA (NHEL(I, 13),I=1,5) / 1, 1,-1, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 13),i=1,5)" is not supported. Skipping.
    Line #98 in matrix.f:" DATA (NHEL(I, 14),I=1,5) / 1, 1,-1, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 14),i=1,5)" is not supported. Skipping.
    Line #99 in matrix.f:" DATA (NHEL(I, 15),I=1,5) / 1, 1,-1,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 15),i=1,5)" is not supported. Skipping.
    Line #100 in matrix.f:" DATA (NHEL(I, 16),I=1,5) / 1, 1,-1,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 16),i=1,5)" is not supported. Skipping.
    Line #101 in matrix.f:" DATA (NHEL(I, 17),I=1,5) / 1, 1, 0, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 17),i=1,5)" is not supported. Skipping.
    Line #102 in matrix.f:" DATA (NHEL(I, 18),I=1,5) / 1, 1, 0, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 18),i=1,5)" is not supported. Skipping.
    Line #103 in matrix.f:" DATA (NHEL(I, 19),I=1,5) / 1, 1, 0,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 19),i=1,5)" is not supported. Skipping.
    Line #104 in matrix.f:" DATA (NHEL(I, 20),I=1,5) / 1, 1, 0,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 20),i=1,5)" is not supported. Skipping.
    Line #105 in matrix.f:" DATA (NHEL(I, 21),I=1,5) / 1, 1, 1, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 21),i=1,5)" is not supported. Skipping.
    Line #106 in matrix.f:" DATA (NHEL(I, 22),I=1,5) / 1, 1, 1, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 22),i=1,5)" is not supported. Skipping.
    Line #107 in matrix.f:" DATA (NHEL(I, 23),I=1,5) / 1, 1, 1,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 23),i=1,5)" is not supported. Skipping.
    Line #108 in matrix.f:" DATA (NHEL(I, 24),I=1,5) / 1, 1, 1,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 24),i=1,5)" is not supported. Skipping.
    Line #109 in matrix.f:" DATA (NHEL(I, 25),I=1,5) /-1,-1,-1, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 25),i=1,5)" is not supported. Skipping.
    Line #110 in matrix.f:" DATA (NHEL(I, 26),I=1,5) /-1,-1,-1, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 26),i=1,5)" is not supported. Skipping.
    Line #111 in matrix.f:" DATA (NHEL(I, 27),I=1,5) /-1,-1,-1,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 27),i=1,5)" is not supported. Skipping.
    Line #112 in matrix.f:" DATA (NHEL(I, 28),I=1,5) /-1,-1,-1,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 28),i=1,5)" is not supported. Skipping.
    Line #113 in matrix.f:" DATA (NHEL(I, 29),I=1,5) /-1,-1, 0, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 29),i=1,5)" is not supported. Skipping.
    Line #114 in matrix.f:" DATA (NHEL(I, 30),I=1,5) /-1,-1, 0, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 30),i=1,5)" is not supported. Skipping.
    Line #115 in matrix.f:" DATA (NHEL(I, 31),I=1,5) /-1,-1, 0,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 31),i=1,5)" is not supported. Skipping.
    Line #116 in matrix.f:" DATA (NHEL(I, 32),I=1,5) /-1,-1, 0,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 32),i=1,5)" is not supported. Skipping.
    Line #117 in matrix.f:" DATA (NHEL(I, 33),I=1,5) /-1,-1, 1, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 33),i=1,5)" is not supported. Skipping.
    Line #118 in matrix.f:" DATA (NHEL(I, 34),I=1,5) /-1,-1, 1, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 34),i=1,5)" is not supported. Skipping.
    Line #119 in matrix.f:" DATA (NHEL(I, 35),I=1,5) /-1,-1, 1,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 35),i=1,5)" is not supported. Skipping.
    Line #120 in matrix.f:" DATA (NHEL(I, 36),I=1,5) /-1,-1, 1,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 36),i=1,5)" is not supported. Skipping.
    Line #121 in matrix.f:" DATA (NHEL(I, 37),I=1,5) /-1, 1,-1, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 37),i=1,5)" is not supported. Skipping.
    Line #122 in matrix.f:" DATA (NHEL(I, 38),I=1,5) /-1, 1,-1, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 38),i=1,5)" is not supported. Skipping.
    Line #123 in matrix.f:" DATA (NHEL(I, 39),I=1,5) /-1, 1,-1,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 39),i=1,5)" is not supported. Skipping.
    Line #124 in matrix.f:" DATA (NHEL(I, 40),I=1,5) /-1, 1,-1,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 40),i=1,5)" is not supported. Skipping.
    Line #125 in matrix.f:" DATA (NHEL(I, 41),I=1,5) /-1, 1, 0, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 41),i=1,5)" is not supported. Skipping.
    Line #126 in matrix.f:" DATA (NHEL(I, 42),I=1,5) /-1, 1, 0, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 42),i=1,5)" is not supported. Skipping.
    Line #127 in matrix.f:" DATA (NHEL(I, 43),I=1,5) /-1, 1, 0,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 43),i=1,5)" is not supported. Skipping.
    Line #128 in matrix.f:" DATA (NHEL(I, 44),I=1,5) /-1, 1, 0,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 44),i=1,5)" is not supported. Skipping.
    Line #129 in matrix.f:" DATA (NHEL(I, 45),I=1,5) /-1, 1, 1, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 45),i=1,5)" is not supported. Skipping.
    Line #130 in matrix.f:" DATA (NHEL(I, 46),I=1,5) /-1, 1, 1, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 46),i=1,5)" is not supported. Skipping.
    Line #131 in matrix.f:" DATA (NHEL(I, 47),I=1,5) /-1, 1, 1,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 47),i=1,5)" is not supported. Skipping.
    Line #132 in matrix.f:" DATA (NHEL(I, 48),I=1,5) /-1, 1, 1,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 48),i=1,5)" is not supported. Skipping.
     Reading file 'coupl.inc' (format:fix)
    Line #216 in matrix.f:" DATA (CF(I, 1),I= 1, 1) / 3/"
     analyzeline: implied-DO list "(cf(i, 1),i= 1, 1)" is not supported. Skipping.
     Reading file 'coupl.inc' (format:fix)
    Line #299 in matrix.f:" CALL SETPARA(PATH) !first call to setup the paramaters "
     analyzeline: No name/args pattern found for line.
    Post-processing...
     Block: matrix2py
       Block: smatrixhel
       Block: smatrix
       Block: matrix
       Block: get_me
       Block: initialise
    Post-processing (stage 2)...
    Building modules...
     Building module "matrix2py"...
      Constructing wrapper function "smatrixhel"...
        ans = smatrixhel(p,hel)
      Constructing wrapper function "smatrix"...
        ans = smatrix(p)
      Creating wrapper for Fortran function "matrix"("matrix")...
      Constructing wrapper function "matrix"...
        matrix = matrix(p,nhel,ic)
      Constructing wrapper function "get_me"...
        ans = get_me(p,alphas,nhel)
      Constructing wrapper function "initialise"...
        initialise(path)
      Constructing COMMON block support for "heluserchoice"...
        userhel
      Constructing COMMON block support for "widths"...
        mdl_wz,mdl_wh,mdl_ww,mdl_wtau,mdl_wt
      Constructing COMMON block support for "rscale"...
        mu_r
      Constructing COMMON block support for "weak"...
        gal
      Constructing COMMON block support for "couplings"...
        gc_39,gc_133,gc_146,gc_150,gc_151,gc_153,gc_190,gc_191,gc_272,gc_278,gc_280,gc_3,gc_308,gc_4,gc_5,gc_6,gc_92
      Constructing COMMON block support for "strong"...
        g
      Constructing COMMON block support for "masses"...
        mdl_mh,mdl_mz,mdl_mt,mdl_mw,mdl_mb
     Wrote C/API module "matrix2py" to file "/tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2pymodule.c"
     Fortran 77 wrappers are saved to "/tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2py-f2pywrappers.f"
      adding '/tmp/tmpWGXxcc/src.linux-x86_64-2.7/fortranobject.c' to sources.
      adding '/tmp/tmpWGXxcc/src.linux-x86_64-2.7' to include_dirs.
    copying /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/py2-numpy/1.6.1-cms/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.c -> /tmp/tmpWGXxcc/src.linux-x86_64-2.7
    copying /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/py2-numpy/1.6.1-cms/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.h -> /tmp/tmpWGXxcc/src.linux-x86_64-2.7
      adding '/tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2py-f2pywrappers.f' to sources.
    build_src: building npy-pkg config files
    running build_ext
    customize UnixCCompiler
    customize UnixCCompiler using build_ext
    customize Gnu95FCompiler
    Found executable /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/gfortran
    customize Gnu95FCompiler using build_ext
    building 'matrix2py' extension
    compiling C sources
    C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

    creating /tmp/tmpWGXxcc/tmp
    creating /tmp/tmpWGXxcc/tmp/tmpWGXxcc
    creating /tmp/tmpWGXxcc/tmp/tmpWGXxcc/src.linux-x86_64-2.7
    compile options: '-I/tmp/tmpWGXxcc/src.linux-x86_64-2.7 -I/cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/py2-numpy/1.6.1-cms/lib/python2.7/site-packages/numpy/core/include -I/cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/python/2.7.6-cms/include/python2.7 -c'
    gcc: /tmp/tmpWGXxcc/src.linux-x86_64-2.7/fortranobject.c
    gcc: /tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2pymodule.c
    compiling Fortran sources
    Fortran f77 compiler: /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/gfortran -Wall -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
    Fortran f90 compiler: /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/gfortran -Wall -fno-second-underscore -fPIC -O3 -funroll-loops
    Fortran fix compiler: /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/gfortran -Wall -ffixed-form -fno-second-underscore -Wall -fno-second-underscore -fPIC -O3 -funroll-loops
    compile options: '-I/tmp/tmpWGXxcc/src.linux-x86_64-2.7 -I/cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/py2-numpy/1.6.1-cms/lib/python2.7/site-packages/numpy/core/include -I/cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/python/2.7.6-cms/include/python2.7 -c'
    gfortran:f77: matrix.f
    matrix.f:256.17:

            MATRIX = MATRIX+ZTEMP*DCONJG(JAMP(I))/DENOM(I)
                     1
    Warning: Possible change of value in conversion from COMPLEX(8) to REAL(8) at (1)
    gfortran:f77: /tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2py-f2pywrappers.f
    /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/gfortran -Wall -Wall -shared /tmp/tmpWGXxcc/tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2pymodule.o /tmp/tmpWGXxcc/tmp/tmpWGXxcc/src.linux-x86_64-2.7/fortranobject.o /tmp/tmpWGXxcc/matrix.o /tmp/tmpWGXxcc/tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2py-f2pywrappers.o -L../../lib/ -L. -ldhelas -lmodel -lpython2.7 -lgfortran -o ./matrix2py.so
    /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/../lib/gcc/x86_64-redhat-linux-gnu/4.9.1/../../../../x86_64-redhat-linux-gnu/bin/ld: cannot find -lpython2.7
    collect2: error: ld returned 1 exit status
    /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/../lib/gcc/x86_64-redhat-linux-gnu/4.9.1/../../../../x86_64-redhat-linux-gnu/bin/ld: cannot find -lpython2.7
    collect2: error: ld returned 1 exit status
    error: Command "/cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/gfortran -Wall -Wall -shared /tmp/tmpWGXxcc/tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2pymodule.o /tmp/tmpWGXxcc/tmp/tmpWGXxcc/src.linux-x86_64-2.7/fortranobject.o /tmp/tmpWGXxcc/matrix.o /tmp/tmpWGXxcc/tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2py-f2pywrappers.o -L../../lib/ -L. -ldhelas -lmodel -lpython2.7 -lgfortran -o ./matrix2py.so" failed with exit status 1
    make: *** [matrix2py.so] Error 1

<===============================

What is the solution to this compilation error in reweighting?

Also, could you please confirm that I am trying to run Kamikaze reweighting in a correct way?

I do not see the "keep_rwgt_info" parameter in my cards... Can you please point me to where this is set?

Thank you in advance!

Greetings,
Senka

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

Hi,

The error is the following:
> cannot find -lpython2.7

So looks like that you miss that library.
Do you have python-dev installed?

Cheers,

Olivier

> On Mar 30, 2016, at 14:12, senka duric <email address hidden> wrote:
>
> Question #289552 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/289552
>
> Description changed to:
> Dear all,
> I am trying to use Kamikaze reweighting to reweight my NLO aTGC sample. I am using MG5_aMC_v2_3_3.
> The NLO aTGC model is by Celine Degrande: EWdim6NLO. My process is NLO WZ with 0 and 1 jets:
>
> set group_subprocesses False
> import model EWdim6NLO-no_cmass_cwcbcwww
> generate p p > w+ l+ l- QED=3 [QCD] @0
> add process p p > w- l+ l- QED=3 [QCD] @1
>
> I successfully generate events, but I get an error while compiling
> reweighting step. I run generate_events with reweighting ON:
>
>
> 1 Perturbative order of the calculation: order=NLO
> 2 Fixed order (no event generation and no MC@[N]LO matching): fixed_order=OFF
> 3 Shower the generated events: shower=OFF
> 4 Decay particles with the MadSpin module: madspin=OFF
> 5 Add weights to the events based on changing model parameters: reweight=ON
>
>
> And my output:
> ==================================>
> ....
> INFO: Updating the number of unweighted events per channel
>
> Intermediate results:
> Random seed: 34
> Total cross-section: 2.299e+00 +- 6.5e-03 pb
> Total abs(cross-section): 2.720e+00 +- 6.6e-03 pb
>
>
> INFO: Generating events
> ...
> INFO: Doing reweight
> INFO: Idle: 0, Running: 0, Completed: 23 [ current time: 06h16 ]
> INFO: Collecting events
> INFO:
> Summary:
> Process p p > w+ l+ l- QED=3 [QCD] @0 ; p p > w- l+ l- QED=3 [QCD] @1
> Run at p-p collider (6500.0 + 6500.0 GeV)
> Total cross-section: 2.286e+00 +- 6.5e-03 pb
> Number of events generated: 1000
> Parton shower to be used: PYTHIA8
> Fraction of negative weights: 0.08
> Total running time : 6m 48s
>
> INFO: The /nfs_scratch/senka/wz_0jets_EWdim6NLO_grsubFalse_VBnoDecay_NLO_cwcbcwww_MG233/Events/run_02/events.lhe.gz file has been generated.
>
> INFO: Events generated
> reweight -from_cards
> INFO: Extracting the banner ...
> WARNING: Remember that the reweighting is performed at Leading Order. NLO precision is not guarantee.
> ...
> INFO: process: p p > w+ l+ l-
> INFO: options: QED=3
> INFO: Running Reweight
> launch
> INFO: detected model: EWdim6NLO-no_cmass_cwcbcwww. Loading...
> INFO: generating the square matrix element for reweighting
> INFO: generate p p > w+ l+ l- QED=3 @0 --no_warning=duplicate;define pert_QCD = -4 -3 -2 -1 1 2 3 4 21;add process p p > w+ l+ l- pert_QCD QED=3 @0 --no_warning=duplicate;add process p p > w- l+ l- QED=3 @1 --no_warning=duplicate;define pert_QCD = -4 -3 -2 -1 1 2 3 4 21;add process p p > w- l+ l- pert_QCD QED=3 @1 --no_warning=duplicate;
> INFO: Done 16.53
> set Dim6 1 6
> INFO: modify param_card information BLOCK dim6 with id (1,) set to 6.0
> set Dim6 2 0
> INFO: modify param_card information BLOCK dim6 with id (2,) set to 0.0
> set Dim6 3 0
> INFO: modify param_card information BLOCK dim6 with id (3,) set to 0.0
> Do you want to edit a card (press enter to bypass editing)?
> 1 / param : param_card.dat
> 9 / plot : plot_card.dat
> you can also
> - enter the path to a valid card or banner.
> - use the 'set' command to modify a parameter directly.
> The set option works only for param_card and run_card.
> Type 'help set' for more information on this command.
> - call an external program (ASperGE/MadWidth/...).
> Type 'help' for the list of available command
> [0, done, 1, param, 9, plot, enter path]
> The answer to the previous question is not set in your input file
> Use 0 value
> INFO: starts to compute weight for events with the following modification to the param_card:
> INFO: set param_card dim6 1 6.0 # orig: 4.0
> set param_card dim6 2 0.0 # orig: 3.0
> set param_card dim6 3 0.0 # orig: 15.0
>
> INFO: Event nb 0 current time: 06h16
> Command "launch " interrupted with error:
> MadGraph5Error: A compilation Error occurs when trying to compile /nfs_scratch/senka/wz_0jets_EWdim6NLO_grsubFalse_VBnoDecay_NLO_cwcbcwww_MG233/rw_me/SubProcesses/P0_udx_wpepem.
> The compilation fails with the following output message:
> touch __init__.py
> f2py -L../../lib/ -ldhelas -lmodel -c matrix.f -m matrix2py --fcompiler=gfortran
> Unknown vendor: "gfortran"
> running build
> running config_cc
> unifing config_cc, config, build_clib, build_ext, build commands --compiler options
> running config_fc
> unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
> running build_src
> build_src
> building extension "matrix2py" sources
> f2py options: []
> f2py:> /tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2pymodule.c
> creating /tmp/tmpWGXxcc
> creating /tmp/tmpWGXxcc/src.linux-x86_64-2.7
> Reading fortran codes...
> Reading file 'matrix.f' (format:fix,strict)
> Line #85 in matrix.f:" DATA (NHEL(I, 1),I=1,5) / 1,-1,-1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 1),i=1,5)" is not supported. Skipping.
> Line #86 in matrix.f:" DATA (NHEL(I, 2),I=1,5) / 1,-1,-1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 2),i=1,5)" is not supported. Skipping.
> Line #87 in matrix.f:" DATA (NHEL(I, 3),I=1,5) / 1,-1,-1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 3),i=1,5)" is not supported. Skipping.
> Line #88 in matrix.f:" DATA (NHEL(I, 4),I=1,5) / 1,-1,-1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 4),i=1,5)" is not supported. Skipping.
> Line #89 in matrix.f:" DATA (NHEL(I, 5),I=1,5) / 1,-1, 0, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 5),i=1,5)" is not supported. Skipping.
> Line #90 in matrix.f:" DATA (NHEL(I, 6),I=1,5) / 1,-1, 0, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 6),i=1,5)" is not supported. Skipping.
> Line #91 in matrix.f:" DATA (NHEL(I, 7),I=1,5) / 1,-1, 0,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 7),i=1,5)" is not supported. Skipping.
> Line #92 in matrix.f:" DATA (NHEL(I, 8),I=1,5) / 1,-1, 0,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 8),i=1,5)" is not supported. Skipping.
> Line #93 in matrix.f:" DATA (NHEL(I, 9),I=1,5) / 1,-1, 1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 9),i=1,5)" is not supported. Skipping.
> Line #94 in matrix.f:" DATA (NHEL(I, 10),I=1,5) / 1,-1, 1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 10),i=1,5)" is not supported. Skipping.
> Line #95 in matrix.f:" DATA (NHEL(I, 11),I=1,5) / 1,-1, 1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 11),i=1,5)" is not supported. Skipping.
> Line #96 in matrix.f:" DATA (NHEL(I, 12),I=1,5) / 1,-1, 1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 12),i=1,5)" is not supported. Skipping.
> Line #97 in matrix.f:" DATA (NHEL(I, 13),I=1,5) / 1, 1,-1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 13),i=1,5)" is not supported. Skipping.
> Line #98 in matrix.f:" DATA (NHEL(I, 14),I=1,5) / 1, 1,-1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 14),i=1,5)" is not supported. Skipping.
> Line #99 in matrix.f:" DATA (NHEL(I, 15),I=1,5) / 1, 1,-1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 15),i=1,5)" is not supported. Skipping.
> Line #100 in matrix.f:" DATA (NHEL(I, 16),I=1,5) / 1, 1,-1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 16),i=1,5)" is not supported. Skipping.
> Line #101 in matrix.f:" DATA (NHEL(I, 17),I=1,5) / 1, 1, 0, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 17),i=1,5)" is not supported. Skipping.
> Line #102 in matrix.f:" DATA (NHEL(I, 18),I=1,5) / 1, 1, 0, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 18),i=1,5)" is not supported. Skipping.
> Line #103 in matrix.f:" DATA (NHEL(I, 19),I=1,5) / 1, 1, 0,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 19),i=1,5)" is not supported. Skipping.
> Line #104 in matrix.f:" DATA (NHEL(I, 20),I=1,5) / 1, 1, 0,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 20),i=1,5)" is not supported. Skipping.
> Line #105 in matrix.f:" DATA (NHEL(I, 21),I=1,5) / 1, 1, 1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 21),i=1,5)" is not supported. Skipping.
> Line #106 in matrix.f:" DATA (NHEL(I, 22),I=1,5) / 1, 1, 1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 22),i=1,5)" is not supported. Skipping.
> Line #107 in matrix.f:" DATA (NHEL(I, 23),I=1,5) / 1, 1, 1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 23),i=1,5)" is not supported. Skipping.
> Line #108 in matrix.f:" DATA (NHEL(I, 24),I=1,5) / 1, 1, 1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 24),i=1,5)" is not supported. Skipping.
> Line #109 in matrix.f:" DATA (NHEL(I, 25),I=1,5) /-1,-1,-1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 25),i=1,5)" is not supported. Skipping.
> Line #110 in matrix.f:" DATA (NHEL(I, 26),I=1,5) /-1,-1,-1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 26),i=1,5)" is not supported. Skipping.
> Line #111 in matrix.f:" DATA (NHEL(I, 27),I=1,5) /-1,-1,-1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 27),i=1,5)" is not supported. Skipping.
> Line #112 in matrix.f:" DATA (NHEL(I, 28),I=1,5) /-1,-1,-1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 28),i=1,5)" is not supported. Skipping.
> Line #113 in matrix.f:" DATA (NHEL(I, 29),I=1,5) /-1,-1, 0, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 29),i=1,5)" is not supported. Skipping.
> Line #114 in matrix.f:" DATA (NHEL(I, 30),I=1,5) /-1,-1, 0, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 30),i=1,5)" is not supported. Skipping.
> Line #115 in matrix.f:" DATA (NHEL(I, 31),I=1,5) /-1,-1, 0,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 31),i=1,5)" is not supported. Skipping.
> Line #116 in matrix.f:" DATA (NHEL(I, 32),I=1,5) /-1,-1, 0,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 32),i=1,5)" is not supported. Skipping.
> Line #117 in matrix.f:" DATA (NHEL(I, 33),I=1,5) /-1,-1, 1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 33),i=1,5)" is not supported. Skipping.
> Line #118 in matrix.f:" DATA (NHEL(I, 34),I=1,5) /-1,-1, 1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 34),i=1,5)" is not supported. Skipping.
> Line #119 in matrix.f:" DATA (NHEL(I, 35),I=1,5) /-1,-1, 1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 35),i=1,5)" is not supported. Skipping.
> Line #120 in matrix.f:" DATA (NHEL(I, 36),I=1,5) /-1,-1, 1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 36),i=1,5)" is not supported. Skipping.
> Line #121 in matrix.f:" DATA (NHEL(I, 37),I=1,5) /-1, 1,-1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 37),i=1,5)" is not supported. Skipping.
> Line #122 in matrix.f:" DATA (NHEL(I, 38),I=1,5) /-1, 1,-1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 38),i=1,5)" is not supported. Skipping.
> Line #123 in matrix.f:" DATA (NHEL(I, 39),I=1,5) /-1, 1,-1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 39),i=1,5)" is not supported. Skipping.
> Line #124 in matrix.f:" DATA (NHEL(I, 40),I=1,5) /-1, 1,-1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 40),i=1,5)" is not supported. Skipping.
> Line #125 in matrix.f:" DATA (NHEL(I, 41),I=1,5) /-1, 1, 0, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 41),i=1,5)" is not supported. Skipping.
> Line #126 in matrix.f:" DATA (NHEL(I, 42),I=1,5) /-1, 1, 0, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 42),i=1,5)" is not supported. Skipping.
> Line #127 in matrix.f:" DATA (NHEL(I, 43),I=1,5) /-1, 1, 0,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 43),i=1,5)" is not supported. Skipping.
> Line #128 in matrix.f:" DATA (NHEL(I, 44),I=1,5) /-1, 1, 0,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 44),i=1,5)" is not supported. Skipping.
> Line #129 in matrix.f:" DATA (NHEL(I, 45),I=1,5) /-1, 1, 1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 45),i=1,5)" is not supported. Skipping.
> Line #130 in matrix.f:" DATA (NHEL(I, 46),I=1,5) /-1, 1, 1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 46),i=1,5)" is not supported. Skipping.
> Line #131 in matrix.f:" DATA (NHEL(I, 47),I=1,5) /-1, 1, 1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 47),i=1,5)" is not supported. Skipping.
> Line #132 in matrix.f:" DATA (NHEL(I, 48),I=1,5) /-1, 1, 1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 48),i=1,5)" is not supported. Skipping.
> Reading file 'coupl.inc' (format:fix)
> Line #216 in matrix.f:" DATA (CF(I, 1),I= 1, 1) / 3/"
> analyzeline: implied-DO list "(cf(i, 1),i= 1, 1)" is not supported. Skipping.
> Reading file 'coupl.inc' (format:fix)
> Line #299 in matrix.f:" CALL SETPARA(PATH) !first call to setup the paramaters "
> analyzeline: No name/args pattern found for line.
> Post-processing...
> Block: matrix2py
> Block: smatrixhel
> Block: smatrix
> Block: matrix
> Block: get_me
> Block: initialise
> Post-processing (stage 2)...
> Building modules...
> Building module "matrix2py"...
> Constructing wrapper function "smatrixhel"...
> ans = smatrixhel(p,hel)
> Constructing wrapper function "smatrix"...
> ans = smatrix(p)
> Creating wrapper for Fortran function "matrix"("matrix")...
> Constructing wrapper function "matrix"...
> matrix = matrix(p,nhel,ic)
> Constructing wrapper function "get_me"...
> ans = get_me(p,alphas,nhel)
> Constructing wrapper function "initialise"...
> initialise(path)
> Constructing COMMON block support for "heluserchoice"...
> userhel
> Constructing COMMON block support for "widths"...
> mdl_wz,mdl_wh,mdl_ww,mdl_wtau,mdl_wt
> Constructing COMMON block support for "rscale"...
> mu_r
> Constructing COMMON block support for "weak"...
> gal
> Constructing COMMON block support for "couplings"...
> gc_39,gc_133,gc_146,gc_150,gc_151,gc_153,gc_190,gc_191,gc_272,gc_278,gc_280,gc_3,gc_308,gc_4,gc_5,gc_6,gc_92
> Constructing COMMON block support for "strong"...
> g
> Constructing COMMON block support for "masses"...
> mdl_mh,mdl_mz,mdl_mt,mdl_mw,mdl_mb
> Wrote C/API module "matrix2py" to file "/tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2pymodule.c"
> Fortran 77 wrappers are saved to "/tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2py-f2pywrappers.f"
> adding '/tmp/tmpWGXxcc/src.linux-x86_64-2.7/fortranobject.c' to sources.
> adding '/tmp/tmpWGXxcc/src.linux-x86_64-2.7' to include_dirs.
> copying /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/py2-numpy/1.6.1-cms/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.c -> /tmp/tmpWGXxcc/src.linux-x86_64-2.7
> copying /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/py2-numpy/1.6.1-cms/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.h -> /tmp/tmpWGXxcc/src.linux-x86_64-2.7
> adding '/tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2py-f2pywrappers.f' to sources.
> build_src: building npy-pkg config files
> running build_ext
> customize UnixCCompiler
> customize UnixCCompiler using build_ext
> customize Gnu95FCompiler
> Found executable /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/gfortran
> customize Gnu95FCompiler using build_ext
> building 'matrix2py' extension
> compiling C sources
> C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
>
> creating /tmp/tmpWGXxcc/tmp
> creating /tmp/tmpWGXxcc/tmp/tmpWGXxcc
> creating /tmp/tmpWGXxcc/tmp/tmpWGXxcc/src.linux-x86_64-2.7
> compile options: '-I/tmp/tmpWGXxcc/src.linux-x86_64-2.7 -I/cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/py2-numpy/1.6.1-cms/lib/python2.7/site-packages/numpy/core/include -I/cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/python/2.7.6-cms/include/python2.7 -c'
> gcc: /tmp/tmpWGXxcc/src.linux-x86_64-2.7/fortranobject.c
> gcc: /tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2pymodule.c
> compiling Fortran sources
> Fortran f77 compiler: /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/gfortran -Wall -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
> Fortran f90 compiler: /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/gfortran -Wall -fno-second-underscore -fPIC -O3 -funroll-loops
> Fortran fix compiler: /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/gfortran -Wall -ffixed-form -fno-second-underscore -Wall -fno-second-underscore -fPIC -O3 -funroll-loops
> compile options: '-I/tmp/tmpWGXxcc/src.linux-x86_64-2.7 -I/cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/py2-numpy/1.6.1-cms/lib/python2.7/site-packages/numpy/core/include -I/cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/python/2.7.6-cms/include/python2.7 -c'
> gfortran:f77: matrix.f
> matrix.f:256.17:
>
> MATRIX = MATRIX+ZTEMP*DCONJG(JAMP(I))/DENOM(I)
> 1
> Warning: Possible change of value in conversion from COMPLEX(8) to REAL(8) at (1)
> gfortran:f77: /tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2py-f2pywrappers.f
> /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/gfortran -Wall -Wall -shared /tmp/tmpWGXxcc/tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2pymodule.o /tmp/tmpWGXxcc/tmp/tmpWGXxcc/src.linux-x86_64-2.7/fortranobject.o /tmp/tmpWGXxcc/matrix.o /tmp/tmpWGXxcc/tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2py-f2pywrappers.o -L../../lib/ -L. -ldhelas -lmodel -lpython2.7 -lgfortran -o ./matrix2py.so
> /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/../lib/gcc/x86_64-redhat-linux-gnu/4.9.1/../../../../x86_64-redhat-linux-gnu/bin/ld: cannot find -lpython2.7
> collect2: error: ld returned 1 exit status
> /cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/../lib/gcc/x86_64-redhat-linux-gnu/4.9.1/../../../../x86_64-redhat-linux-gnu/bin/ld: cannot find -lpython2.7
> collect2: error: ld returned 1 exit status
> error: Command "/cvmfs/cms.cern.ch/slc6_amd64_gcc491/external/gcc/4.9.1-cms/bin/gfortran -Wall -Wall -shared /tmp/tmpWGXxcc/tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2pymodule.o /tmp/tmpWGXxcc/tmp/tmpWGXxcc/src.linux-x86_64-2.7/fortranobject.o /tmp/tmpWGXxcc/matrix.o /tmp/tmpWGXxcc/tmp/tmpWGXxcc/src.linux-x86_64-2.7/matrix2py-f2pywrappers.o -L../../lib/ -L. -ldhelas -lmodel -lpython2.7 -lgfortran -o ./matrix2py.so" failed with exit status 1
> make: *** [matrix2py.so] Error 1
>
> <===============================
>
>
> What is the solution to this compilation error in reweighting?
>
> Also, could you please confirm that I am trying to run Kamikaze
> reweighting in a correct way?
>
> I do not see the "keep_rwgt_info" parameter in my cards... Can you
> please point me to where this is set?
>
> Thank you in advance!
>
> Greetings,
> Senka
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
senka duric (senka-duric) said :
#2

Hi Olivier,
this is fixed with properly setting LIBRARY_PATH. So now it is running.
Can you please comment on few more questions:

1) Could you please confirm that I am trying to run Kamikaze reweighting in a correct way?

2) In the instructions about the reweighting the "keep_rwgt_info" parameter is mentioned. Can you please point me to where this parameter is set? I do not see this parameter in the cards.. Is this parameter False by default (Kamikaze reweighting is the default)?

Greetings,
Senka

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

Hi,

> 1) Could you please confirm that I am trying to run Kamikaze reweighting
> in a correct way?
> 2) In the instructions about the reweighting the "keep_rwgt_info"
> parameter is mentioned. Can you please point me to where this parameter
> is set? I do not see this parameter in the cards.. Is this parameter
> False by default (Kamikaze reweighting is the default)?

In 2.3.3 only kamikaze re-weighting is available.
Therefore the parameter keep_rwgt_info is not present in the run_card.

Now I do not see your reweight_card but from the log this sounds reasonable.

Cheers,

Olivier

> On Mar 31, 2016, at 13:37, senka duric <email address hidden> wrote:
>
> Question #289552 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/289552
>
> Status: Answered => Open
>
> senka duric is still having a problem:
> Hi Olivier,
> this is fixed with properly setting LIBRARY_PATH. So now it is running.
> Can you please comment on few more questions:
>
> 1) Could you please confirm that I am trying to run Kamikaze reweighting
> in a correct way?
>
> 2) In the instructions about the reweighting the "keep_rwgt_info"
> parameter is mentioned. Can you please point me to where this parameter
> is set? I do not see this parameter in the cards.. Is this parameter
> False by default (Kamikaze reweighting is the default)?
>
> Greetings,
> Senka
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
senka duric (senka-duric) said :
#4

Hi Olivier,
in my reweight_card I just have a list of point:

launch
   set Dim6 1 5
   set Dim6 2 0
   set Dim6 3 0
launch
   set Dim6 1 0
   set Dim6 2 0
   set Dim6 3 100
launch
   set Dim6 1 0
   set Dim6 2 0
   set Dim6 3 0

and in my parameter file I have:

Block dim6
    1 3.000000e+00 # CWWWL2
    2 6.000000e+00 # CWL2
    3 1.500000e+02 # CBL2

Thank you!

Greetings,
Senka

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

That's good.

Cheers,

Olivier

Revision history for this message
James Keaveney (keaveney) said :
#6

Hi Senka, Olivier,
  Im having exactly the same problem. Could you tell me exactly what you did with LD_LIBRARY_PATH to fix
the issue? Just adding the path to the python2.7 libs didn't work for me.

Regards,
   James.

Revision history for this message
senka duric (senka-duric) said :
#7

Hi James,
I just did:

export LIBRARY_PATH=$LD_LIBRARY_PATH

Senka

Revision history for this message
James Keaveney (keaveney) said :
#8

Many thanks! That solved it,
   James.

Can you help with this problem?

Provide an answer of your own, or ask senka duric for more information if necessary.

To post a message you must log in.