/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 1 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0808.2-0751_daily_bin307
RA = 122.065, Dec = -7.8556
tmin = 318902401, tmax = 319161601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='217240', job_status='RUN', time_executed='2021-08-29 07:02:07.643801', time_epoch_executed='1630245727.64' WHERE source_name='4FGL J0808.2-0751' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217240

Creating custom pfile directory:
/scratch/kocevski/217240/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=318902401.0 && nMetStart<319161601.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=318902401.0 && nMetStart<319161601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217240/ft1_4FGL_J0808.2-0751_daily_bin307.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=318902401.0 && nMetStart<319161601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217240/ft2_4FGL_J0808.2-0751_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217240/ft1_4FGL_J0808.2-0751_daily_bin307.fits outfile=/scratch/kocevski/217240/ft1_filteredMKT_4FGL_J0808.2-0751_daily_bin307.fits ra=122.065 dec=-7.8556 rad=12.0 tmin=318902401.0 tmax=319161601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 8.18
user 3.17
sys 4.86

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/217240/ft2_4FGL_J0808.2-0751_daily_bin307.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217240/ft2_4FGL_J0808.2-0751_daily_bin307.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/217240/ft1_filteredMKT_4FGL_J0808.2-0751_daily_bin307.fits evtable="EVENTS" outfile="/scratch/kocevski/217240/ft1_filtered_4FGL_J0808.2-0751_daily_bin307.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 4.95
user 0.32
sys 4.52

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217240/ft1_filtered_4FGL_J0808.2-0751_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/217240/ft2_4FGL_J0808.2-0751_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/217240/ltcube_318902401_319161601_4FGL_J0808.2-0751_daily_bin307.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/217240/ft2_4FGL_J0808.2-0751_daily_bin307.fits
.....................!
real 16.62
user 11.72
sys 4.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217240/ft1_filtered_4FGL_J0808.2-0751_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/217240/ft2_4FGL_J0808.2-0751_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/217240/ltcube_318902401_319161601_4FGL_J0808.2-0751_daily_bin307.fits outfile=/scratch/kocevski/217240/expmap_318902401_319161601_4FGL_J0808.2-0751_daily_bin307.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/217240/ltcube_318902401_319161601_4FGL_J0808.2-0751_daily_bin307.fits
.....................!
real 196.43
user 185.05
sys 10.83

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J0808.2-0751 @ 122.065 -7.8556

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/217240/ft1_filtered_4FGL_J0808.2-0751_daily_bin307.fits scfile=/scratch/kocevski/217240/ft2_4FGL_J0808.2-0751_daily_bin307.fits outfile=/scratch/kocevski/217240/cmap_318902401_319161601_4FGL_J0808.2-0751_daily_bin307.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=122.065 yref=-7.8556 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 4.82
user 0.37
sys 4.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217240/ft1_filtered_4FGL_J0808.2-0751_daily_bin307.fits scfile=/scratch/kocevski/217240/ft2_4FGL_J0808.2-0751_daily_bin307.fits outfile=/scratch/kocevski/217240/cmap_HighResolution_318902401_319161601_4FGL_J0808.2-0751_daily_bin307.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=122.065 yref=-7.8556 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 4.86
user 0.37
sys 4.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217240/ft1_filtered_4FGL_J0808.2-0751_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/217240/ft2_4FGL_J0808.2-0751_daily_bin307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217240/Model_4FGL_J0808.2-0751_daily_bin307.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/217240/ft1_filtered_4FGL_J0808.2-0751_daily_bin307.fits.....................!
real 112.11
user 105.39
sys 6.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217240/ft1_filtered_4FGL_J0808.2-0751_daily_bin307.fits', '/scratch/kocevski/217240/ft2_4FGL_J0808.2-0751_daily_bin307.fits', expMap='/scratch/kocevski/217240/expmap_318902401_319161601_4FGL_J0808.2-0751_daily_bin307.fits', expCube='/scratch/kocevski/217240/ltcube_318902401_319161601_4FGL_J0808.2-0751_daily_bin307.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217240/Model_4FGL_J0808.2-0751_daily_bin307.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0808.2-0751'

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  2.268e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.112e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  8.329e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.205e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/217240/ft1_filtered_4FGL_J0808.2-0751_daily_bin307.fits
Spacecraft file(s): /scratch/kocevski/217240/ft2_4FGL_J0808.2-0751_daily_bin307.fits
Exposure map: /scratch/kocevski/217240/expmap_318902401_319161601_4FGL_J0808.2-0751_daily_bin307.fits
Exposure cube: /scratch/kocevski/217240/ltcube_318902401_319161601_4FGL_J0808.2-0751_daily_bin307.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217240/Model_4FGL_J0808.2-0751_daily_bin307.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7936.0210303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7935.94506984

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.867       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .97036E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .24230       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    31.984       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.128       1.0000         .10000E-03   10000.    
    10 'norm      '    4.9629       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1659       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8298       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.932       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.489       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4012       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85801       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7935.945     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     1936 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.866        2.6292       -.38529E-07    .48026E-04
   2  Prefactor     .10002E-03    10.712       -.50254E-06** at limit **
   3  norm          .24251        1.4240       -.91541E-06   -.71787E-03
   4  Prefactor     .10000E-03    14.218       -.70763E-05** at limit **
   5  norm          31.982        21.920        .29418E-05    .13812E-04
   6  norm          .10000E-03    7.2593       -.14602E-07** at limit **
   7  norm          .10000E-03    .70592        .17031E-07** at limit **
   8  Prefactor     .10000E-03    2.5419       -.13939E-07** at limit **
   9  norm          15.128        13.032       -.80284E-06   -.11451E-05
  10  norm          4.9628        2.8859       -.17422E-07   -.17299E-04
  11  Prefactor     .10000E-03    11.666       -.77672E-06** at limit **
  12  norm          2.1660        1.4000        .18382E-06   -.26066E-03
  13  norm          5.8292        5.2038        .12682E-05   -.23040E-03
  14  Prefactor     22.934        14.088       -.42164E-05    .83497E-06
  15  Prefactor     .10000E-03    1.7634        .12134E-07** at limit **
  16  norm          17.489        17.391        .21023E-06    .13314E-04
  17  norm          .10000E-03    4.3509        .10160E-07** at limit **
  18  Prefactor     .10000E-03    13.648        .77319E-05** at limit **
  19  norm          .10000E-03    20.717        .20039E-06** at limit **
  20  Normalizat    1.4011        .21849        .42006E-06    .79925E-04
  21  Prefactor     .85806        .89564E-01    .40152E-06    .17238E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.8661
  Prefactor  = 0.000100022
  norm       = 0.242513
  Prefactor  = 0.0001
  norm       = 31.9818
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.1285
  norm       = 4.96282
  Prefactor  = 0.0001
  norm       = 2.16596
  norm       = 5.82923
  Prefactor  = 22.9338
  Prefactor  = 0.0001
  norm       = 17.4891
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.40112
  Prefactor  = 0.858056
 **********
 **   18 **HESSE 
 **********

 FCN=   7935.945     FROM HESSE     STATUS=OK           327 CALLS     2263 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.866        2.6531        .56693E-04   -1.4937    
   2  Prefactor     .10002E-03    11.735        .85172E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .24251        3.1925        .20834E-02   -1.5609    
   4  Prefactor     .10000E-03    14.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          31.982        21.919        .70851E-04   -1.4576    
   6  norm          .10000E-03    7.2944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .70624        .73094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5441        .13870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.128        13.045        .10298E-03   -1.4930    
  10  norm          4.9628        2.8834        .11026E-03   -1.5262    
  11  Prefactor     .10000E-03    11.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1660        1.3878        .79121E-04   -1.5414    
  13  norm          5.8292        5.1754        .16633E-03   -1.5225    
  14  Prefactor     22.934        14.063        .83646E-04   -1.4750    
  15  Prefactor     .10000E-03    1.7664        .11552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.489        17.388        .95771E-04   -1.4871    
  17  norm          .10000E-03    4.3544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    21.251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4011        .23802        .37428E-03   -.80596    
  21  Prefactor     .85806        .98352E-01    .18699E-03   -.97623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9633e-10
Minuit parameter uncertainties:
  1  2.65309
  2  0.00102779
  3  1.75955
  4  1.9331e-06
  5  21.925
  6  5.31452e-06
  7  2.8038e-07
  8  1.13568e-07
  9  13.0472
  10  2.8835
  11  0.000130706
  12  1.38781
  13  5.17581
  14  14.0653
  15  5.18653e-06
  16  17.3935
  17  1.48696e-06
  18  1.16668e-06
  19  1.90266e-05
  20  0.238211
  21  0.0983723
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7935.94505263

Extracting fit parameters...

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  2.166e+00  1.388e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.112e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  8.329e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.205e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  8.581e-01  9.837e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.401e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.25
Ra Dec: 122.065 -7.856
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 8.07e-08 +/- 5.17e-08
Energy Flux (Fixed Index): 3.57e-05 +/- 2.29e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7935.93957937
delta logL = 0.0054732659155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7935.93939604
delta logL = 0.00565658998676

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1469       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1649       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85852       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7935.939     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1470        36.490        .70310E-02    .75919E-04
   2  alpha         2.1649        3.2084        .38793        .13941E-04
   3  Normalizat    1.3987        .13065        .84599E-01    .16735E-03
   4  Prefactor     .85851        .60311E-01    .44474E-01    .39222E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.14699
  alpha      = 2.16493
  Normalizat = 1.39869
  Prefactor  = 0.858513
 **********
 **   18 **HESSE 
 **********

 FCN=   7935.939     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1470        1.3650        .78341E-04   -1.5415    
   2  alpha         2.1649        .50180        .14469E-01   -.13443    
   3  Normalizat    1.3987        .22898        .37451E-03   -.80666    
   4  Prefactor     .85851        .92256E-01    .18694E-03   -.97606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.41335e-11
Minuit parameter uncertainties:
  1  1.36498
  2  0.505295
  3  0.22915
  4  0.0922731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217240': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7935.93939603
delta logL = 0.00565660406573

Extracting fit parameters...

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  2.147e+00  1.365e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.165e+00  5.053e-01  0.000e+00  5.000e+00 ( 1.000e+00)
277         beta:  8.329e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.205e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  8.585e-01  9.227e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.399e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.27
Ra Dec: 122.065 -7.856
Photon Index (Free Index): 2.16 +/- 0.51
Photon Flux (Free Index): 8.40e-08 +/- 5.94e-08
Energy Flux (Free Index): 3.45e-05 +/- 2.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/217240/cmap_HighResolution_318902401_319161601_4FGL_J0808.2-0751_daily_bin307.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/217240

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.07e-08', energy_flux2='3.45e-05', photon_flux_error='5.17e-08', dlogl='5.66e-03', energy_flux='3.57e-05', photon_flux2='8.40e-08', job_status='DONE', time_completed='2021-08-29 07:13:19.294594', photon_index_error2='0.51', photon_index2='2.16', ts='4.25', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.45e-05', EG='1.40', time_epoch_completed='1630246399.29', return_code='0', job_id='217240', GAL2='0.86', EG2='1.40', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='5.94e-08', ts2='4.27', photon_index='2.11' WHERE bin_id='307' AND source_name='4FGL J0808.2-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:13:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 217240: <4FGL_J0808.2-0751_daily_bin307> in cluster <slac> Done

Job <4FGL_J0808.2-0751_daily_bin307> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 07:00:46 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:00:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 07:00:48 2021
Terminated at Sun Aug 29 07:13:20 2021
Results reported at Sun Aug 29 07:13:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0808.2-0751_daily_bin307 122.065 -7.8556 318902401 319161601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0808.2-0751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   738.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             320.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            754 sec.

The output (if any) is above this job summary.

