Error generating events from imported MG4 models

Asked by Daniel Duffty on 2011-08-31

I am working on generating events from a custom model file in MadGvent 5.
Originally I was working in MG4, so that is what version both the proc cards and model files are in.
The bin/newprocess command works, and generates the correct diagrams for my event.
When I try to use the bin/generate_events command, the program quickly exits and reaches the following error:

httsxx.F: In subroutine `httsxx':
httsxx.F:24:
         include "dimension.inc"
         ^
Unable to open INCLUDE file `dimension.inc' at (^)
httsxx.F:25:
         double complex tc1(DIM),htts(DIM),sc(DIM),tc2(DIM)
                            ^
Invalid declaration of or reference to symbol `dim' at (^) [initially seen at (^)]
httsxx.F:1:
         subroutine httsxx(tc1,tc2,sc,g1,g2,mass,width,htts)
                           1
httsxx.F:36: (continued):
         htts(2) = sc(2) + tc2(17) + tc1(17)
         2
Invalid declaration of or reference to symbol `tc1' at (2) [initially seen at (1)]
httsxx.F:1:
         subroutine httsxx(tc1,tc2,sc,g1,g2,mass,width,htts)
                               1
httsxx.F:36: (continued):
         htts(2) = sc(2) + tc2(17) + tc1(17)
         2
Invalid declaration of or reference to symbol `tc2' at (2) [initially seen at (1)]
httsxx.F:1:
         subroutine httsxx(tc1,tc2,sc,g1,g2,mass,width,htts)
                                   1
httsxx.F:36: (continued):
         htts(2) = sc(2) + tc2(17) + tc1(17)
         2
Invalid declaration of or reference to symbol `sc' at (2) [initially seen at (1)]
httsxx.F:1:
         subroutine httsxx(tc1,tc2,sc,g1,g2,mass,width,htts)
                                                       1
httsxx.F:36: (continued):
         htts(2) = sc(2) + tc2(17) + tc1(17)
         2
Invalid declaration of or reference to symbol `htts' at (2) [initially seen at (1)]
make[1]: *** [httsxx.o] Error 1
make: *** [../lib/libdhelas.a] Error 2
Error make all in Source not successful

Since this happened the first time, I generated events in a direct copy of the template folder with no problems, but reached the same issue when attempting to generate events with the template's proc card but looking at the sm_v4 instead of sm.

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
2011-09-22
Last query:
2011-09-22
Last reply:
2011-09-21

This is a pure compiler problem.
(I don't now why it occur sometimes and not always)

So the solution is to use gfortran instead.
The way to do is currently:

after the output command, you quit mg5
then you go to the directory and launch
./bin/change_compiler.py gfortran
after that you can launch
./bin/generate_events as usual

Daniel Duffty (dduffty) said : #2

After using this command, I tried to generate events again. Again, the program had an error when generating events, but this time different from before. This is importing a model I have generated numerous events, including this exact process, using madgraph 4.

Cleaning directories
Cleaning SubProcesses.
Cleaning directories
../lib//libmodel.a(lha_reading.o): In function `lh_readin__':
lha_reading.f:(.text+0x81): undefined reference to `s_rsfe'
lha_reading.f:(.text+0x9c): undefined reference to `do_fio'
lha_reading.f:(.text+0xa5): undefined reference to `e_rsfe'
lha_reading.f:(.text+0xd4): undefined reference to `s_copy'
lha_reading.f:(.text+0x107): undefined reference to `s_cmp'
lha_reading.f:(.text+0x126): undefined reference to `i_indx'
lha_reading.f:(.text+0x146): undefined reference to `i_indx'
lha_reading.f:(.text+0x176): undefined reference to `s_copy'
lha_reading.f:(.text+0x1b6): undefined reference to `s_cmp'
lha_reading.f:(.text+0x1df): undefined reference to `i_indx'
lha_reading.f:(.text+0x1ff): undefined reference to `i_indx'
lha_reading.f:(.text+0x22a): undefined reference to `s_rsli'
lha_reading.f:(.text+0x250): undefined reference to `do_lio'
lha_reading.f:(.text+0x276): undefined reference to `do_lio'
lha_reading.f:(.text+0x280): undefined reference to `e_rsli'
lha_reading.f:(.text+0x2aa): undefined reference to `s_copy'
lha_reading.f:(.text+0x2da): undefined reference to `s_rsfe'
lha_reading.f:(.text+0x2f5): undefined reference to `do_fio'
lha_reading.f:(.text+0x2fe): undefined reference to `e_rsfe'
lha_reading.f:(.text+0x331): undefined reference to `s_copy'
lha_reading.f:(.text+0x375): undefined reference to `f_back'
lha_reading.f:(.text+0x3ac): undefined reference to `s_cmp'
lha_reading.f:(.text+0x3da): undefined reference to `i_indx'
lha_reading.f:(.text+0x3fa): undefined reference to `i_indx'
lha_reading.f:(.text+0x41e): undefined reference to `s_cmp'
lha_reading.f:(.text+0x43e): undefined reference to `s_rsli'
lha_reading.f:(.text+0x464): undefined reference to `do_lio'
lha_reading.f:(.text+0x482): undefined reference to `do_lio'
lha_reading.f:(.text+0x4a8): undefined reference to `do_lio'
lha_reading.f:(.text+0x4b2): undefined reference to `e_rsli'
lha_reading.f:(.text+0x4d5): undefined reference to `s_cmp'
lha_reading.f:(.text+0x52f): undefined reference to `s_cmp'
lha_reading.f:(.text+0x580): undefined reference to `s_copy'
lha_reading.f:(.text+0x5a2): undefined reference to `s_rsli'
lha_reading.f:(.text+0x5c8): undefined reference to `do_lio'
lha_reading.f:(.text+0x5ee): undefined reference to `do_lio'
lha_reading.f:(.text+0x5f8): undefined reference to `e_rsli'
lha_reading.f:(.text+0x617): undefined reference to `s_rsli'
lha_reading.f:(.text+0x63d): undefined reference to `do_lio'
lha_reading.f:(.text+0x663): undefined reference to `do_lio'
lha_reading.f:(.text+0x66d): undefined reference to `e_rsli'
lha_reading.f:(.text+0x696): undefined reference to `s_copy'
lha_reading.f:(.text+0x6d2): undefined reference to `s_copy'
lha_reading.f:(.text+0x8b0): undefined reference to `s_copy'
lha_reading.f:(.text+0x9d4): undefined reference to `s_copy'
lha_reading.f:(.text+0xc42): undefined reference to `s_copy'
../lib//libmodel.a(lha_reading.o):lha_reading.f:(.text+0xe8d): more undefined references to `s_copy' follow
../lib//libmodel.a(lha_reading.o): In function `lh_readin__':
lha_reading.f:(.text+0x10dc): undefined reference to `s_cmp'
lha_reading.f:(.text+0x10f7): undefined reference to `s_copy'
../lib//libmodel.a(lha_reading.o): In function `set_it__':
lha_reading.f:(.text+0x1191): undefined reference to `s_cmp'
../lib//libmodel.a(lha_reading.o): In function `case_trap__':
lha_reading.f:(.text+0x124c): undefined reference to `s_copy'
../lib//libmodel.a(lha_reading.o): In function `open_file_mdl__':
lha_reading.f:(.text+0x12a5): undefined reference to `s_copy'
lha_reading.f:(.text+0x12c1): undefined reference to `i_indx'
lha_reading.f:(.text+0x12e7): undefined reference to `s_copy'
lha_reading.f:(.text+0x1306): undefined reference to `f_open'
lha_reading.f:(.text+0x1328): undefined reference to `i_indx'
lha_reading.f:(.text+0x1382): undefined reference to `s_cat'
lha_reading.f:(.text+0x13cb): undefined reference to `f_open'
lha_reading.f:(.text+0x13e9): undefined reference to `s_wsle'
lha_reading.f:(.text+0x1407): undefined reference to `do_lio'
lha_reading.f:(.text+0x1425): undefined reference to `do_lio'
lha_reading.f:(.text+0x142f): undefined reference to `e_wsle'
lha_reading.f:(.text+0x147a): undefined reference to `s_cat'
lha_reading.f:(.text+0x1493): undefined reference to `s_wsle'
lha_reading.f:(.text+0x14b1): undefined reference to `do_lio'
lha_reading.f:(.text+0x14cd): undefined reference to `do_lio'
lha_reading.f:(.text+0x14eb): undefined reference to `do_lio'
lha_reading.f:(.text+0x14f5): undefined reference to `e_wsle'
lha_reading.f:(.text+0x1509): undefined reference to `s_stop'
../lib//libmodel.a(lha_reading.o): In function `no_spaces__':
lha_reading.f:(.text+0x1593): undefined reference to `s_cmp'
lha_reading.f:(.text+0x15bf): undefined reference to `s_copy'
lha_reading.f:(.text+0x15e0): undefined reference to `s_copy'
../lib//libmodel.a(WPWIDTH.o): In function `wpwidthf_':
WPWIDTH.f:(.text+0x18): undefined reference to `s_wsle'
WPWIDTH.f:(.text+0x36): undefined reference to `do_lio'
WPWIDTH.f:(.text+0x40): undefined reference to `e_wsle'
WPWIDTH.f:(.text+0x4da): undefined reference to `s_wsle'
WPWIDTH.f:(.text+0x4f8): undefined reference to `do_lio'
WPWIDTH.f:(.text+0x502): undefined reference to `e_wsle'
WPWIDTH.f:(.text+0x51e): undefined reference to `s_wsle'
WPWIDTH.f:(.text+0x53c): undefined reference to `do_lio'
WPWIDTH.f:(.text+0x546): undefined reference to `e_wsle'
WPWIDTH.f:(.text+0x642): undefined reference to `s_wsle'
WPWIDTH.f:(.text+0x660): undefined reference to `do_lio'
WPWIDTH.f:(.text+0x66a): undefined reference to `e_wsle'
WPWIDTH.f:(.text+0x68f): undefined reference to `s_wsle'
WPWIDTH.f:(.text+0x6ad): undefined reference to `do_lio'
WPWIDTH.f:(.text+0x6b7): undefined reference to `e_wsle'
WPWIDTH.f:(.text+0xc4b): undefined reference to `s_wsle'
WPWIDTH.f:(.text+0xc69): undefined reference to `do_lio'
WPWIDTH.f:(.text+0xc73): undefined reference to `e_wsle'
../lib//libmodel.a(READMODEL.o): In function `readmodelf_':
READMODEL.f:(.text+0x44): undefined reference to `s_wsle'
READMODEL.f:(.text+0x62): undefined reference to `do_lio'
READMODEL.f:(.text+0x6c): undefined reference to `e_wsle'
READMODEL.f:(.text+0x85): undefined reference to `f_open'
READMODEL.f:(.text+0x105): undefined reference to `s_cat'
READMODEL.f:(.text+0x11b): undefined reference to `f_open'
READMODEL.f:(.text+0x16d): undefined reference to `s_cat'
READMODEL.f:(.text+0x183): undefined reference to `f_open'
READMODEL.f:(.text+0x1cc): undefined reference to `s_cat'
READMODEL.f:(.text+0x1e2): undefined reference to `f_open'
READMODEL.f:(.text+0x203): undefined reference to `s_rsfe'
READMODEL.f:(.text+0x21e): undefined reference to `do_fio'
READMODEL.f:(.text+0x227): undefined reference to `e_rsfe'
READMODEL.f:(.text+0x25e): undefined reference to `i_indx'
READMODEL.f:(.text+0x283): undefined reference to `i_indx'
READMODEL.f:(.text+0x2ad): undefined reference to `i_indx'
READMODEL.f:(.text+0x2ce): undefined reference to `s_copy'
READMODEL.f:(.text+0x2ef): undefined reference to `s_cmp'
READMODEL.f:(.text+0x352): undefined reference to `s_cmp'
READMODEL.f:(.text+0x3a0): undefined reference to `s_cmp'
READMODEL.f:(.text+0x3f2): undefined reference to `s_cmp'
READMODEL.f:(.text+0x43a): undefined reference to `s_cmp'
../lib//libmodel.a(READMODEL.o):READMODEL.f:(.text+0x457): more undefined references to `s_cmp' follow
../lib//libmodel.a(READMODEL.o): In function `readmodelf_':
READMODEL.f:(.text+0x48a): undefined reference to `s_rsli'
READMODEL.f:(.text+0x4b0): undefined reference to `do_lio'
READMODEL.f:(.text+0x4ba): undefined reference to `e_rsli'
READMODEL.f:(.text+0x506): undefined reference to `s_rsli'
READMODEL.f:(.text+0x52c): undefined reference to `do_lio'
READMODEL.f:(.text+0x536): undefined reference to `e_rsli'
READMODEL.f:(.text+0x579): undefined reference to `s_rsli'
READMODEL.f:(.text+0x5a6): undefined reference to `do_lio'
READMODEL.f:(.text+0x5b0): undefined reference to `e_rsli'
READMODEL.f:(.text+0x5df): undefined reference to `s_rsli'
READMODEL.f:(.text+0x5ff): undefined reference to `do_lio'
READMODEL.f:(.text+0x609): undefined reference to `e_rsli'
READMODEL.f:(.text+0x64c): undefined reference to `s_rsli'
READMODEL.f:(.text+0x679): undefined reference to `do_lio'
READMODEL.f:(.text+0x683): undefined reference to `e_rsli'
READMODEL.f:(.text+0x6b2): undefined reference to `s_rsli'
READMODEL.f:(.text+0x6d2): undefined reference to `do_lio'
READMODEL.f:(.text+0x6dc): undefined reference to `e_rsli'
READMODEL.f:(.text+0x71f): undefined reference to `s_rsli'
READMODEL.f:(.text+0x74c): undefined reference to `do_lio'
READMODEL.f:(.text+0x756): undefined reference to `e_rsli'
READMODEL.f:(.text+0x785): undefined reference to `s_rsli'
READMODEL.f:(.text+0x7a5): undefined reference to `do_lio'
READMODEL.f:(.text+0x7af): undefined reference to `e_rsli'
READMODEL.f:(.text+0x7d4): undefined reference to `s_wsle'
READMODEL.f:(.text+0x7f2): undefined reference to `do_lio'
READMODEL.f:(.text+0x7fc): undefined reference to `e_wsle'
READMODEL.f:(.text+0x80d): undefined reference to `s_wsle'
READMODEL.f:(.text+0x82b): undefined reference to `do_lio'
READMODEL.f:(.text+0x835): undefined reference to `e_wsle'
READMODEL.f:(.text+0x84e): undefined reference to `f_clos'
../lib//libmodel.a(CONVERTMODEL.o): In function `convertmodelf_':
CONVERTMODEL.f:(.text+0xf): undefined reference to `s_wsle'
CONVERTMODEL.f:(.text+0x2d): undefined reference to `do_lio'
CONVERTMODEL.f:(.text+0x37): undefined reference to `e_wsle'
CONVERTMODEL.f:(.text+0x100): undefined reference to `z_exp'
CONVERTMODEL.f:(.text+0x9fb): undefined reference to `s_wsle'
CONVERTMODEL.f:(.text+0xa19): undefined reference to `do_lio'
CONVERTMODEL.f:(.text+0xa23): undefined reference to `e_wsle'
collect2: ld returned 1 exit status
make: *** [../bin/combine_events] Error 1
Error make ../bin/combine_events in Source not successful

Hi,

This type of error message are typical when some of the files are compiled with gfortran and some other with g77.

It looks like that your model makefile was not modified correctly maybe because it was set to use f77 and not g77.
So could you check which compiler is use in the following makefile:
Source/MODEL/makefile

Then change it by gfortran.
and remove all the .o files
and then re-compile everything.

Tell me if this is not solving your trouble.

Cheers,

Olivier

Daniel Duffty (dduffty) said : #4

Thanks Olivier Mattelaer, that solved my question.