/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 9 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 = 7357
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0808.2-0751_daily_bin1575
RA = 122.065, Dec = -7.8556
tmin = 647568001, tmax = 647827201
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='225166', job_status='RUN', time_executed='2021-08-29 07:32:07.001405', time_epoch_executed='1630247527.0' WHERE source_name='4FGL J0808.2-0751' and cadence='daily' and bin_id='1575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225166

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225166/ft1_4FGL_J0808.2-0751_daily_bin1575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225166/ft2_4FGL_J0808.2-0751_daily_bin1575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225166/ft1_4FGL_J0808.2-0751_daily_bin1575.fits outfile=/scratch/kocevski/225166/ft1_filteredMKT_4FGL_J0808.2-0751_daily_bin1575.fits ra=122.065 dec=-7.8556 rad=12.0 tmin=647568001.0 tmax=647827201.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 7.30
user 3.21
sys 4.03

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/225166/ft2_4FGL_J0808.2-0751_daily_bin1575.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/225166/ft1_filteredMKT_4FGL_J0808.2-0751_daily_bin1575.fits evtable="EVENTS" outfile="/scratch/kocevski/225166/ft1_filtered_4FGL_J0808.2-0751_daily_bin1575.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.44
user 0.33
sys 4.08

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225166/ft1_filtered_4FGL_J0808.2-0751_daily_bin1575.fits" evtable="EVENTS" scfile=/scratch/kocevski/225166/ft2_4FGL_J0808.2-0751_daily_bin1575.fits sctable="SC_DATA" outfile=/scratch/kocevski/225166/ltcube_647568001_647827201_4FGL_J0808.2-0751_daily_bin1575.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/225166/ft2_4FGL_J0808.2-0751_daily_bin1575.fits
.....................!
real 16.22
user 11.48
sys 4.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225166/ft1_filtered_4FGL_J0808.2-0751_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/225166/ft2_4FGL_J0808.2-0751_daily_bin1575.fits sctable="SC_DATA" expcube=/scratch/kocevski/225166/ltcube_647568001_647827201_4FGL_J0808.2-0751_daily_bin1575.fits outfile=/scratch/kocevski/225166/expmap_647568001_647827201_4FGL_J0808.2-0751_daily_bin1575.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/225166/ltcube_647568001_647827201_4FGL_J0808.2-0751_daily_bin1575.fits
.....................!
real 196.49
user 185.71
sys 10.23

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/225166/ft1_filtered_4FGL_J0808.2-0751_daily_bin1575.fits scfile=/scratch/kocevski/225166/ft2_4FGL_J0808.2-0751_daily_bin1575.fits outfile=/scratch/kocevski/225166/cmap_647568001_647827201_4FGL_J0808.2-0751_daily_bin1575.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.38
user 0.36
sys 3.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225166/ft1_filtered_4FGL_J0808.2-0751_daily_bin1575.fits scfile=/scratch/kocevski/225166/ft2_4FGL_J0808.2-0751_daily_bin1575.fits outfile=/scratch/kocevski/225166/cmap_HighResolution_647568001_647827201_4FGL_J0808.2-0751_daily_bin1575.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.39
user 0.36
sys 4.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/225166/ft1_filtered_4FGL_J0808.2-0751_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/225166/ft2_4FGL_J0808.2-0751_daily_bin1575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/225166/Model_4FGL_J0808.2-0751_daily_bin1575.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/225166/ft1_filtered_4FGL_J0808.2-0751_daily_bin1575.fits.....................!
real 148.06
user 141.25
sys 6.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/225166/ft1_filtered_4FGL_J0808.2-0751_daily_bin1575.fits', '/scratch/kocevski/225166/ft2_4FGL_J0808.2-0751_daily_bin1575.fits', expMap='/scratch/kocevski/225166/expmap_647568001_647827201_4FGL_J0808.2-0751_daily_bin1575.fits', expCube='/scratch/kocevski/225166/ltcube_647568001_647827201_4FGL_J0808.2-0751_daily_bin1575.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/225166/Model_4FGL_J0808.2-0751_daily_bin1575.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/225166/ft1_filtered_4FGL_J0808.2-0751_daily_bin1575.fits
Spacecraft file(s): /scratch/kocevski/225166/ft2_4FGL_J0808.2-0751_daily_bin1575.fits
Exposure map: /scratch/kocevski/225166/expmap_647568001_647827201_4FGL_J0808.2-0751_daily_bin1575.fits
Exposure cube: /scratch/kocevski/225166/ltcube_647568001_647827201_4FGL_J0808.2-0751_daily_bin1575.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/225166/Model_4FGL_J0808.2-0751_daily_bin1575.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) = 10861.3139538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7107       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.196       1.0000         .10000E-03   10000.    
     3 'norm      '    5.1248       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .24538E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.592       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1313       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0689       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3184       1.0000         .10000E-03   10000.    
    16 'norm      '    4.5118       1.0000         .10000E-03   10000.    
    17 'norm      '    23.124       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7915       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7272       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1773       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0092       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=   10861.23     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     1907 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7104        1.2636       -.23782E-07   -.71059E-04
   2  Prefactor     28.196        15.688       -.21260E-06    .62908E-06
   3  norm          5.1248        2.5892       -.23097E-07   -.80970E-05
   4  Prefactor     .10000E-03    8.1529        .30811E-06** at limit **
   5  norm          .10000E-03    5.6667       -.80642E-07** at limit **
   6  norm          .10000E-03    4.6783        .20011E-07** at limit **
   7  norm          .10000E-03    1.5402        .44460E-09** at limit **
   8  Prefactor     .10000E-03    6.2953       -.34666E-06** at limit **
   9  norm          .10000E-03    4.6946        .64088E-07** at limit **
  10  norm          .10000E-03    .81183       -.10248E-07** at limit **
  11  Prefactor     .10000E-03    2.6229        .97629E-08** at limit **
  12  norm          12.592        1.9445       -.37934E-08    .70466E-04
  13  norm          2.1313        2.4939        .11582E-05    .13901E-04
  14  Prefactor     5.0683        8.3197        .17281E-06   -.17994E-03
  15  Prefactor     2.3183        2.8576       -.13984E-05   -.62002E-04
  16  norm          4.5115        15.833       -.20514E-06   -.73609E-06
  17  norm          23.125        15.083        .37478E-07    .40131E-05
  18  Prefactor     6.7864        21.881       -.10384E-04   -.13376E-05
  19  norm          1.7267        1.9121        .75136E-07   -.62889E-03
  20  Normalizat    1.1772        .19534        .10756E-05   -.12472E-04
  21  Prefactor     1.0093        .79029E-01   -.65731E-07    .73835E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.71044
  Prefactor  = 28.1961
  norm       = 5.12484
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.5917
  norm       = 2.13126
  Prefactor  = 5.06828
  Prefactor  = 2.31829
  norm       = 4.51155
  norm       = 23.1246
  Prefactor  = 6.78638
  norm       = 1.7267
  Normalizat = 1.17725
  Prefactor  = 1.00926
 **********
 **   18 **HESSE 
 **********

 FCN=   10861.23     FROM HESSE     STATUS=OK           323 CALLS     2230 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7104        1.2628        .94247E-04   -1.5446    
   2  Prefactor     28.196        15.720        .75448E-04   -1.4645    
   3  norm          5.1248        2.5893        .11551E-03   -1.5255    
   4  Prefactor     .10000E-03    8.1563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    34.210        .48321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.7099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5794        .25252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.7117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .81639        .91653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6353        .16478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.592        1.9446        .53969E-04   -1.4998    
  13  norm          2.1313        2.4915        .17324E-03   -1.5416    
  14  Prefactor     5.0683        8.4731        .89295E-03   -1.5258    
  15  Prefactor     2.3183        2.8503        .19055E-03   -1.5403    
  16  norm          4.5115        15.767        .18954E-03   -1.5283    
  17  norm          23.125        15.123        .83298E-04   -1.4746    
  18  Prefactor     6.7864        21.893        .15396E-03   -1.5187    
  19  norm          1.7267        6.6830        .15975E-02   -1.5445    
  20  Normalizat    1.1772        .21469        .40638E-03   -.87309    
  21  Prefactor     1.0093        .86782E-01    .17510E-03   -.92421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00219e-09
Minuit parameter uncertainties:
  1  1.26282
  2  15.7221
  3  2.58934
  4  1.60975e-06
  5  0.000100032
  6  2.67969e-06
  7  8.6414e-07
  8  7.17821e-06
  9  8.38407e-06
  10  5.64765e-07
  11  9.6225e-07
  12  1.94463
  13  2.49158
  14  8.47514
  15  2.85046
  16  15.7818
  17  15.126
  18  21.9189
  19  6.68591
  20  0.214849
  21  0.086794
Done.

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

Extracting fit parameters...

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  1.259e+01  1.945e+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:  1.009e+00  8.679e-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.177e+00  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 128.91
Ra Dec: 122.065 -7.856
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 4.69e-07 +/- 7.24e-08
Energy Flux (Fixed Index): 2.08e-04 +/- 3.21e-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) = 10861.2289592
delta logL = 0.000337721861797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10861.2288577
delta logL = 0.000439236069724

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10861.23     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      194 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.576        2.0140        .48063E-08    .94259E-04
   2  alpha         2.1163        .12068       -.80936E-07   -.13316E-04
   3  Normalizat    1.1762        .18878       -.69001E-07    .23199E-05
   4  Prefactor     1.0095        .76017E-01    .26612E-07   -.21624E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5764
  alpha      = 2.11632
  Normalizat = 1.1762
  Prefactor  = 1.00947
 **********
 **   18 **HESSE 
 **********

 FCN=   10861.23     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.576        1.9905        .53901E-04   -1.4999    
   2  alpha         2.1163        .14910        .56601E-03   -.15408    
   3  Normalizat    1.1762        .20742        .40652E-03   -.87342    
   4  Prefactor     1.0095        .82423E-01    .17509E-03   -.92415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77538e-12
Minuit parameter uncertainties:
  1  1.99047
  2  0.149195
  3  0.207564
  4  0.0824334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225166': 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) = 10861.2288577
delta logL = 0.000439236071543

Extracting fit parameters...

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  1.258e+01  1.990e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.116e+00  1.492e-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:  1.009e+00  8.243e-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.176e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 128.53
Ra Dec: 122.065 -7.856
Photon Index (Free Index): 2.12 +/- 0.15
Photon Flux (Free Index): 4.70e-07 +/- 8.42e-08
Energy Flux (Free Index): 2.07e-04 +/- 4.02e-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/225166/cmap_HighResolution_647568001_647827201_4FGL_J0808.2-0751_daily_bin1575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.69e-07', energy_flux2='2.07e-04', photon_flux_error='7.24e-08', dlogl='4.39e-04', energy_flux='2.08e-04', photon_flux2='4.70e-07', job_status='DONE', time_completed='2021-08-29 07:45:16.237433', photon_index_error2='0.15', photon_index2='2.12', ts='128.91', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='4.02e-05', EG='1.18', time_epoch_completed='1630248316.24', return_code='0', job_id='225166', GAL2='1.01', EG2='1.18', return_code2='0', energy_flux_error='3.21e-05', photon_flux_error2='8.42e-08', ts2='128.53', photon_index='2.11' WHERE bin_id='1575' AND source_name='4FGL J0808.2-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:45:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 225166: <4FGL_J0808.2-0751_daily_bin1575> in cluster <slac> Done

Job <4FGL_J0808.2-0751_daily_bin1575> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Aug 29 07:30:41 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:30:43 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:30:43 2021
Terminated at Sun Aug 29 07:45:17 2021
Results reported at Sun Aug 29 07:45:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0808.2-0751_daily_bin1575 122.065 -7.8556 647568001 647827201 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 :                                   846.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            876 sec.

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

