Errors generating HTML and PDF reports

Asked by Cameron Voisey

Dear MA5 team,

I have been following the instructions given at https://madanalysis.irmp.ucl.ac.be/raw-attachment/wiki/tutorials/NormalMode-Tuto3.pdf. Specifically, I am running the following script with MA5_v1.5_patch1, having installed the .lhe sample files:

define mu = mu+ mu-
import samples/ttbar_*.lhe.gz
plot PT(mu)
reject PT(mu) < 40
plot PT(mu)
submit

When I run this I get the following output, with errors being produced when generating the HTML and PDF reports:

MA5: Platform: Linux 2.6.32-696.16.1.el6.x86_64 [Linux mode]
MA5: Reading user settings ...
MA5: Checking mandatory packages:
MA5: - Python [OK]
MA5: - GNU GCC g++ [OK]
MA5: - GNU Make [OK]
MA5: Checking optional packages devoted to data processing:
MA5: - Zlib [OK]
MA5: - Zlib [OK]
MA5: - FastJet [OK]
MA5: - Root [OK]
MA5: - Delphes [DISABLED]
MA5: - Delphes-MA5tune [DISABLED]
MA5: Checking optional packages devoted to histogramming:
MA5: - Root [OK]
MA5: - Matplotlib [DISABLED]
MA5: - pdflatex [OK]
MA5: - latex [OK]
MA5: Package used for graphical rendering: Root
MA5: Checking the MadAnalysis 5 core library:
MA5: => MadAnalysis libraries found.
MA5: => MadAnalysis test program works.
MA5: *************************************************************
MA5: Particle labels exported from madanalysis/input/particles_name_default.txt
MA5: => 87 particles successfully exported.
MA5: Multiparticle labels exported from madanalysis/input/multiparticles_default.txt
MA5: => Creation of the label 'invisible' (-> missing energy).
MA5: => Creation of the label 'hadronic' (-> jet energy).
MA5: => 8 multiparticles successfully exported.
MA5: Executing the commands from the script
MA5: /var/pcfst/r02/theory/voisey/madanalysis5/MyFirstExample.txt...
MA5: ma5>define mu = mu+ mu-
MA5: ma5>import samples/ttbar_*.lhe.gz
MA5: -> Storing the file 'ttbar_sl_1.lhe.gz' in the dataset 'defaultset'.
MA5: -> Storing the file 'ttbar_fh.lhe.gz' in the dataset 'defaultset'.
MA5: -> Storing the file 'ttbar_sl_2.lhe.gz' in the dataset 'defaultset'.
MA5: ma5>plot PT(mu)
MA5: ma5>reject PT(mu) < 40
MA5: ma5>plot PT(mu)
MA5: ma5>submit
MA5: Creating folder 'ANALYSIS_2'...
MA5: Copying 'SampleAnalyzer' source files...
MA5: Inserting your selection into 'SampleAnalyzer'...
MA5: Writing the list of datasets...
MA5: Writing the command line history...
MA5: Creating Makefiles...
MA5: Compiling 'SampleAnalyzer'...
MA5: Linking 'SampleAnalyzer'...
MA5: Running 'SampleAnalyzer' over dataset 'defaultset'...
MA5: *******************************************************
    * SampleAnalyzer for MadAnalysis 5 - Welcome.
    * Initializing all components
      - version: 1.5 (2016/12/30)
      - general: everything is default.
      - extracting the list of event samples...
      - analyzer 'MadAnalysis5job'
    * Running over files ...
    * 1/3 /var/pcfst/r02/theory/voisey/madanalysis5/samples/ttbar_sl_1.lhe.gz
        => file size: 391.24 ko
        => sample format: LHE file produced by MadGraph5.
        => progress: [===================================]
        => total number of events: 1000 ( analyzed: 1000 ; skipped: 0 )
    * 2/3 /var/pcfst/r02/theory/voisey/madanalysis5/samples/ttbar_fh.lhe.gz
        => file size: 389.05 ko
        => sample format: LHE file produced by MadGraph5.
        => progress: [===================================]
        => total number of events: 1000 ( analyzed: 1000 ; skipped: 0 )
    * 3/3 /var/pcfst/r02/theory/voisey/madanalysis5/samples/ttbar_sl_2.lhe.gz
        => file size: 391.26 ko
        => sample format: LHE file produced by MadGraph5.
        => progress: [===================================]
        => total number of events: 1000 ( analyzed: 1000 ; skipped: 0 )
    * Finalizing all components ...
    * Total number of processed events: 3000.
    * Goodbye.
MA5: *******************************************************
MA5: Checking SampleAnalyzer output...
MA5: Extracting data from the output files...
MA5: Preparing data for the reports ...
MA5: Generating all plots ...
MA5: Generating the HMTL report ...
MA5-ERROR: The file "/var/pcfst/r02/theory/voisey/madanalysis5/ANALYSIS_2/HTML/selection_0.png" seems to be empty.
MA5-ERROR: The file "/var/pcfst/r02/theory/voisey/madanalysis5/ANALYSIS_2/HTML/selection_1.png" seems to be empty.
MA5: -> To open this HTML report, please type 'open'.
MA5: Generating the PDF report ...
MA5-ERROR: PDF file cannot be produced
MA5-ERROR: Please have a look to the log file /var/pcfst/r02/theory/voisey/madanalysis5/ANALYSIS_2/PDF/latex2.log
MA5: -> To open this PDF report, please type 'open ANALYSIS_2/PDF'.
MA5: Generating the DVI report ...
MA5: Well done! Elapsed time = 4 seconds

I am using conda with the following versions installed:
Python: 2.7.14
Root: 5.34
GCC: 4.8.5

Do you know what could be causing these errors?

Thanks in advance for your help,
Cameron

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Cameron Voisey
Solved:
Last query:
Last reply:
Revision history for this message
Benjamin Fuks (fuks) said :
#1

Hi Cameron,

Do you mind trying with v1.6 beta to check whether the problem persists?

Regards,

Benjamin

> On 11 Dec 2017, at 24:22 , Cameron Voisey <email address hidden> wrote:
>
> New question #661556 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/661556
>
> Dear MA5 team,
>
> I have been following the instructions given at https://madanalysis.irmp.ucl.ac.be/raw-attachment/wiki/tutorials/NormalMode-Tuto3.pdf. Specifically, I am running the following script with MA5_v1.5_patch1, having installed the .lhe sample files:
>
> define mu = mu+ mu-
> import samples/ttbar_*.lhe.gz
> plot PT(mu)
> reject PT(mu) < 40
> plot PT(mu)
> submit
>
> When I run this I get the following output, with errors being produced when generating the HTML and PDF reports:
>
> MA5: Platform: Linux 2.6.32-696.16.1.el6.x86_64 [Linux mode]
> MA5: Reading user settings ...
> MA5: Checking mandatory packages:
> MA5: - Python [OK]
> MA5: - GNU GCC g++ [OK]
> MA5: - GNU Make [OK]
> MA5: Checking optional packages devoted to data processing:
> MA5: - Zlib [OK]
> MA5: - Zlib [OK]
> MA5: - FastJet [OK]
> MA5: - Root [OK]
> MA5: - Delphes [DISABLED]
> MA5: - Delphes-MA5tune [DISABLED]
> MA5: Checking optional packages devoted to histogramming:
> MA5: - Root [OK]
> MA5: - Matplotlib [DISABLED]
> MA5: - pdflatex [OK]
> MA5: - latex [OK]
> MA5: Package used for graphical rendering: Root
> MA5: Checking the MadAnalysis 5 core library:
> MA5: => MadAnalysis libraries found.
> MA5: => MadAnalysis test program works.
> MA5: *************************************************************
> MA5: Particle labels exported from madanalysis/input/particles_name_default.txt
> MA5: => 87 particles successfully exported.
> MA5: Multiparticle labels exported from madanalysis/input/multiparticles_default.txt
> MA5: => Creation of the label 'invisible' (-> missing energy).
> MA5: => Creation of the label 'hadronic' (-> jet energy).
> MA5: => 8 multiparticles successfully exported.
> MA5: Executing the commands from the script
> MA5: /var/pcfst/r02/theory/voisey/madanalysis5/MyFirstExample.txt...
> MA5: ma5>define mu = mu+ mu-
> MA5: ma5>import samples/ttbar_*.lhe.gz
> MA5: -> Storing the file 'ttbar_sl_1.lhe.gz' in the dataset 'defaultset'.
> MA5: -> Storing the file 'ttbar_fh.lhe.gz' in the dataset 'defaultset'.
> MA5: -> Storing the file 'ttbar_sl_2.lhe.gz' in the dataset 'defaultset'.
> MA5: ma5>plot PT(mu)
> MA5: ma5>reject PT(mu) < 40
> MA5: ma5>plot PT(mu)
> MA5: ma5>submit
> MA5: Creating folder 'ANALYSIS_2'...
> MA5: Copying 'SampleAnalyzer' source files...
> MA5: Inserting your selection into 'SampleAnalyzer'...
> MA5: Writing the list of datasets...
> MA5: Writing the command line history...
> MA5: Creating Makefiles...
> MA5: Compiling 'SampleAnalyzer'...
> MA5: Linking 'SampleAnalyzer'...
> MA5: Running 'SampleAnalyzer' over dataset 'defaultset'...
> MA5: *******************************************************
> * SampleAnalyzer for MadAnalysis 5 - Welcome.
> * Initializing all components
> - version: 1.5 (2016/12/30)
> - general: everything is default.
> - extracting the list of event samples...
> - analyzer 'MadAnalysis5job'
> * Running over files ...
> * 1/3 /var/pcfst/r02/theory/voisey/madanalysis5/samples/ttbar_sl_1.lhe.gz
> => file size: 391.24 ko
> => sample format: LHE file produced by MadGraph5.
> => progress: [===================================]
> => total number of events: 1000 ( analyzed: 1000 ; skipped: 0 )
> * 2/3 /var/pcfst/r02/theory/voisey/madanalysis5/samples/ttbar_fh.lhe.gz
> => file size: 389.05 ko
> => sample format: LHE file produced by MadGraph5.
> => progress: [===================================]
> => total number of events: 1000 ( analyzed: 1000 ; skipped: 0 )
> * 3/3 /var/pcfst/r02/theory/voisey/madanalysis5/samples/ttbar_sl_2.lhe.gz
> => file size: 391.26 ko
> => sample format: LHE file produced by MadGraph5.
> => progress: [===================================]
> => total number of events: 1000 ( analyzed: 1000 ; skipped: 0 )
> * Finalizing all components ...
> * Total number of processed events: 3000.
> * Goodbye.
> MA5: *******************************************************
> MA5: Checking SampleAnalyzer output...
> MA5: Extracting data from the output files...
> MA5: Preparing data for the reports ...
> MA5: Generating all plots ...
> MA5: Generating the HMTL report ...
> MA5-ERROR: The file "/var/pcfst/r02/theory/voisey/madanalysis5/ANALYSIS_2/HTML/selection_0.png" seems to be empty.
> MA5-ERROR: The file "/var/pcfst/r02/theory/voisey/madanalysis5/ANALYSIS_2/HTML/selection_1.png" seems to be empty.
> MA5: -> To open this HTML report, please type 'open'.
> MA5: Generating the PDF report ...
> MA5-ERROR: PDF file cannot be produced
> MA5-ERROR: Please have a look to the log file /var/pcfst/r02/theory/voisey/madanalysis5/ANALYSIS_2/PDF/latex2.log
> MA5: -> To open this PDF report, please type 'open ANALYSIS_2/PDF'.
> MA5: Generating the DVI report ...
> MA5: Well done! Elapsed time = 4 seconds
>
>
> I am using conda with the following versions installed:
> Python: 2.7.14
> Root: 5.34
> GCC: 4.8.5
>
> Do you know what could be causing these errors?
>
> Thanks in advance for your help,
> Cameron
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Cameron Voisey (cameron.voisey) said :
#2

Hi Benjamin,

I just tried the same thing with v1.6 beta and unfortunately I've still got the same problem.

Regards,
Cameron

Revision history for this message
Benjamin Fuks (fuks) said :
#3

Hi Cameron,

Do you mind sharing your output directory?

Regards,

Benjamin

> On 11 Dec 2017, at 23:42 , Cameron Voisey <email address hidden> wrote:
>
> Question #661556 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/661556
>
> Status: Answered => Open
>
> Cameron Voisey is still having a problem:
> Hi Benjamin,
>
> I just tried the same thing with v1.6 beta and unfortunately I've still
> got the same problem.
>
> Regards,
> Cameron
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Cameron Voisey (cameron.voisey) said :
#4

Hi Benjamin,

Not at all. This is Output/_defaultset/MadAnalysis5job.saf:

https://drive.google.com/open?id=1vmcIvflCjWFnK9RwtEAKwzWwptJQ9PGB

Regards,
Cameron

Revision history for this message
Benjamin Fuks (fuks) said :
#5

Hi,

Can you please semd me the version 1.6 output instead. I however think the issue may be related to matplotlib/root. I would need the logfiles too.

Thanks in advance.

Cheers,

Benjamin

> On 12 Dec 2017, at 01:32 , Cameron Voisey <email address hidden> wrote:
>
> Question #661556 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/661556
>
> Status: Answered => Open
>
> Cameron Voisey is still having a problem:
> Hi Benjamin,
>
> Not at all. This is Output/_defaultset/MadAnalysis5job.saf:
>
> https://drive.google.com/open?id=1vmcIvflCjWFnK9RwtEAKwzWwptJQ9PGB
>
> Regards,
> Cameron
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Cameron Voisey (cameron.voisey) said :
#6

Hi,

I have now managed to solve my problem. You were right that it was related to root. In launch_root.log in the v1.6 output folder there was the following warning: "libpng warning: Application built with libpng-1.2.49 but running with 1.6.32", so I tried rebuilding root and now everything is working.

Thanks very much for your help.

Cheers,
Cameron