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


Performing analysis on: 4FGL_J0808.2-0751_daily_bin1232
RA = 122.065, Dec = -7.8556
tmin = 558662401, tmax = 558921601
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='222899', job_status='RUN', time_executed='2021-08-29 07:23:15.498069', time_epoch_executed='1630246995.5' WHERE source_name='4FGL J0808.2-0751' and cadence='daily' and bin_id='1232'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222899/ft1_4FGL_J0808.2-0751_daily_bin1232.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222899/ft2_4FGL_J0808.2-0751_daily_bin1232.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222899/ft1_4FGL_J0808.2-0751_daily_bin1232.fits outfile=/scratch/kocevski/222899/ft1_filteredMKT_4FGL_J0808.2-0751_daily_bin1232.fits ra=122.065 dec=-7.8556 rad=12.0 tmin=558662401.0 tmax=558921601.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 12.21
user 3.34
sys 8.83

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222899/ft1_filtered_4FGL_J0808.2-0751_daily_bin1232.fits" evtable="EVENTS" scfile=/scratch/kocevski/222899/ft2_4FGL_J0808.2-0751_daily_bin1232.fits sctable="SC_DATA" outfile=/scratch/kocevski/222899/ltcube_558662401_558921601_4FGL_J0808.2-0751_daily_bin1232.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/222899/ft2_4FGL_J0808.2-0751_daily_bin1232.fits
.....................!
real 21.52
user 11.42
sys 10.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222899/ft1_filtered_4FGL_J0808.2-0751_daily_bin1232.fits evtable="EVENTS" scfile=/scratch/kocevski/222899/ft2_4FGL_J0808.2-0751_daily_bin1232.fits sctable="SC_DATA" expcube=/scratch/kocevski/222899/ltcube_558662401_558921601_4FGL_J0808.2-0751_daily_bin1232.fits outfile=/scratch/kocevski/222899/expmap_558662401_558921601_4FGL_J0808.2-0751_daily_bin1232.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/222899/ltcube_558662401_558921601_4FGL_J0808.2-0751_daily_bin1232.fits
.....................!
real 200.66
user 185.00
sys 15.24

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/222899/ft1_filtered_4FGL_J0808.2-0751_daily_bin1232.fits scfile=/scratch/kocevski/222899/ft2_4FGL_J0808.2-0751_daily_bin1232.fits outfile=/scratch/kocevski/222899/cmap_558662401_558921601_4FGL_J0808.2-0751_daily_bin1232.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 10.58
user 0.38
sys 8.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222899/ft1_filtered_4FGL_J0808.2-0751_daily_bin1232.fits scfile=/scratch/kocevski/222899/ft2_4FGL_J0808.2-0751_daily_bin1232.fits outfile=/scratch/kocevski/222899/cmap_HighResolution_558662401_558921601_4FGL_J0808.2-0751_daily_bin1232.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 9.01
user 0.38
sys 8.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222899/ft1_filtered_4FGL_J0808.2-0751_daily_bin1232.fits evtable="EVENTS" scfile=/scratch/kocevski/222899/ft2_4FGL_J0808.2-0751_daily_bin1232.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222899/Model_4FGL_J0808.2-0751_daily_bin1232.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/222899/ft1_filtered_4FGL_J0808.2-0751_daily_bin1232.fits.....................!
real 109.57
user 95.88
sys 12.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5096       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.392       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7878       1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.577       1.0000         .10000E-03   10000.    
     5 'norm      '    38.193       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.7534       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5977       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.386       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9390       1.0000         .10000E-03   10000.    
    13 'norm      '    8.5108       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.0857       1.0000         .10000E-03   10000.    
    16 'norm      '    .10551E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    23.363       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.822       1.0000         .10000E-03   10000.    
    19 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .99198       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82010       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=   7360.211     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2198 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5088        1.5326       -.69851E-07   -.67929E-03
   2  Prefactor     31.389        18.417       -.72142E-06   -.80724E-05
   3  norm          3.7882        2.0160       -.12659E-06   -.16094E-03
   4  Prefactor     41.580        34.093        .35895E-05    .27286E-05
   5  norm          38.190        22.808       -.14695E-05   -.24738E-05
   6  norm          .10000E-03    3.9310       -.43500E-06** at limit **
   7  norm          .10000E-03    4.0985        .47151E-06** at limit **
   8  Prefactor     .10000E-03    3.1114       -.42000E-07** at limit **
   9  norm          7.7553        7.3841       -.50054E-06   -.68176E-04
  10  norm          1.5975        2.4774       -.41437E-06   -.83094E-03
  11  Prefactor     16.387        11.693       -.15599E-05   -.11617E-03
  12  norm          2.9394        1.5173        .35016E-07   -.41343E-03
  13  norm          8.5117        3.7694        .16490E-05    .55517E-05
  14  Prefactor     .10000E-03    9.7898        .43180E-05** at limit **
  15  Prefactor     8.0863        6.4427        .96936E-07   -.36453E-04
  16  norm          .10000E-03    56.605        .44752E-06** at limit **
  17  norm          23.368        14.421       -.20800E-05   -.68123E-05
  18  Prefactor     22.814        29.784       -.94334E-05    .86426E-05
  19  norm          .10000E-03    9.6344       -.36262E-05** at limit **
  20  Normalizat    .99165        .21119        .12673E-05   -.53148E-04
  21  Prefactor     .82024        .85938E-01    .14510E-06   -.25109E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50877
  Prefactor  = 31.3893
  norm       = 3.78816
  Prefactor  = 41.5804
  norm       = 38.1903
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.75527
  norm       = 1.59751
  Prefactor  = 16.3871
  norm       = 2.93937
  norm       = 8.51173
  Prefactor  = 0.0001
  Prefactor  = 8.08629
  norm       = 0.0001
  norm       = 23.3684
  Prefactor  = 22.8142
  norm       = 0.0001
  Normalizat = 0.99165
  Prefactor  = 0.820244
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.211     FROM HESSE     STATUS=OK           325 CALLS     2523 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5088        1.5331        .98987E-04   -1.5462    
   2  Prefactor     31.389        18.476        .71514E-04   -1.4587    
   3  norm          3.7882        2.0148        .85511E-04   -1.5319    
   4  Prefactor     41.580        34.097        .62169E-04   -1.4417    
   5  norm          38.190        22.839        .64854E-04   -1.4471    
   6  norm          .10000E-03    3.9349        .16612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.2421        .33892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1236        .14774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.7553        7.3956        .14401E-03   -1.5151    
  10  norm          1.5975        2.4555        .15740E-03   -1.5455    
  11  Prefactor     16.387        11.711        .98943E-04   -1.4898    
  12  norm          2.9394        1.5057        .69696E-04   -1.5365    
  13  norm          8.5117        3.7687        .10646E-03   -1.5124    
  14  Prefactor     .10000E-03    9.8664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.0863        6.4402        .14100E-03   -1.5139    
  16  norm          .10000E-03    57.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          23.368        14.476        .82871E-04   -1.4741    
  18  Prefactor     22.814        29.771        .83846E-04   -1.4752    
  19  norm          .10000E-03    9.6366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .99165        .22799        .38235E-03   -.93311    
  21  Prefactor     .82024        .93518E-01    .17149E-03   -.98986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4842e-10
Minuit parameter uncertainties:
  1  1.5331
  2  18.4794
  3  2.0148
  4  34.1132
  5  22.8438
  6  2.08154e-07
  7  2.87717e-06
  8  1.52085e-06
  9  7.39647
  10  2.45564
  11  11.7124
  12  1.5057
  13  3.76884
  14  1.92348e-05
  15  6.44071
  16  2.78511e-05
  17  14.4786
  18  29.7908
  19  3.0485e-05
  20  0.228219
  21  0.0935361
Done.

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

Extracting fit parameters...

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  2.939e+00  1.506e+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.202e-01  9.354e-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:  9.916e-01  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.49
Ra Dec: 122.065 -7.856
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 5.61e-08
Energy Flux (Fixed Index): 4.85e-05 +/- 2.48e-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) = 7360.15998867
delta logL = 0.0505598405944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7360.15889967
delta logL = 0.0516488431422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9104       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2370       1.0000          .0000       5.0000    
     3 'Normalizat'    .98313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82138       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=   7360.159     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9104        33.401        .59539E-02    .14639E-02
   2  alpha         2.2370        3.4386        .28939        .54247E-04
   3  Normalizat    .98312        .17818        .86659E-01    .59109E-04
   4  Prefactor     .82138        .90528E-01    .43995E-01   -.43442E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.91043
  alpha      = 2.23695
  Normalizat = 0.983123
  Prefactor  = 0.821382
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.159     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9104        1.4340        .67454E-04   -1.5367    
   2  alpha         2.2370        .39200        .11737E-01   -.10541    
   3  Normalizat    .98312        .20965        .38371E-03   -.93598    
   4  Prefactor     .82138        .86109E-01    .17136E-03   -.98945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1033e-10
Minuit parameter uncertainties:
  1  1.43397
  2  0.393641
  3  0.209828
  4  0.0861228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222899': 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) = 7360.15889967
delta logL = 0.0516488436351

Extracting fit parameters...

4FGL J0808.2-0751
   Spectrum: LogParabola
275         norm:  2.910e+00  1.434e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.237e+00  3.936e-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.214e-01  8.612e-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:  9.831e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.56
Ra Dec: 122.065 -7.856
Photon Index (Free Index): 2.24 +/- 0.39
Photon Flux (Free Index): 1.22e-07 +/- 6.89e-08
Energy Flux (Free Index): 4.57e-05 +/- 2.38e-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/222899/cmap_HighResolution_558662401_558921601_4FGL_J0808.2-0751_daily_bin1232.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='4.57e-05', photon_flux_error='5.61e-08', dlogl='5.16e-02', energy_flux='4.85e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-08-29 07:35:22.070214', photon_index_error2='0.39', photon_index2='2.24', ts='9.49', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='0.99', time_epoch_completed='1630247722.07', return_code='0', job_id='222899', GAL2='0.82', EG2='0.98', return_code2='0', energy_flux_error='2.48e-05', photon_flux_error2='6.89e-08', ts2='9.56', photon_index='2.11' WHERE bin_id='1232' AND source_name='4FGL J0808.2-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:35:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 222899: <4FGL_J0808.2-0751_daily_bin1232> in cluster <slac> Done

Job <4FGL_J0808.2-0751_daily_bin1232> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:20:41 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:20:44 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:20:44 2021
Terminated at Sun Aug 29 07:35:24 2021
Results reported at Sun Aug 29 07:35:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0808.2-0751_daily_bin1232 122.065 -7.8556 558662401 558921601 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 :                                   852.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            883 sec.

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

