/sdf/group/fermi/u/kocevski/software/conda/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)

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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/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 = 17492
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1008.0+0620_weekly_bin771
RA = 152.014, Dec = 6.3475
tmin = 705283201, tmax = 705888001
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='17489565', job_status='RUN', time_executed='2023-05-16 02:10:50.631233', time_epoch_executed='1684228250.63' WHERE source_name='4FGL J1008.0+0620' and cadence='weekly' and bin_id='771'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17489565

Creating custom pfile directory:
/lscratch/kocevski/17489565/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=705283201.0 && nMetStart<705888001.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=705283201.0 && nMetStart<705888001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17489565/ft1_4FGL_J1008.0+0620_weekly_bin771.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=705283201.0 && nMetStart<705888001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17489565/ft2_4FGL_J1008.0+0620_weekly_bin771.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17489565/ft1_4FGL_J1008.0+0620_weekly_bin771.fits outfile=/lscratch/kocevski/17489565/ft1_filteredMKT_4FGL_J1008.0+0620_weekly_bin771.fits ra=152.014 dec=6.3475 rad=12.0 tmin=705283201.0 tmax=705888001.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 3.29
user 3.02
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17489565/ft2_4FGL_J1008.0+0620_weekly_bin771.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17489565/ft2_4FGL_J1008.0+0620_weekly_bin771.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/17489565/ft1_filteredMKT_4FGL_J1008.0+0620_weekly_bin771.fits evtable="EVENTS" outfile="/lscratch/kocevski/17489565/ft1_filtered_4FGL_J1008.0+0620_weekly_bin771.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('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.37
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 1540

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17489565/ft1_filtered_4FGL_J1008.0+0620_weekly_bin771.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17489565/ft2_4FGL_J1008.0+0620_weekly_bin771.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17489565/ltcube_705283201_705888001_4FGL_J1008.0+0620_weekly_bin771.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 /lscratch/kocevski/17489565/ft2_4FGL_J1008.0+0620_weekly_bin771.fits
.....................!
real 17.92
user 17.52
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17489565/ft1_filtered_4FGL_J1008.0+0620_weekly_bin771.fits evtable="EVENTS" scfile=/lscratch/kocevski/17489565/ft2_4FGL_J1008.0+0620_weekly_bin771.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17489565/ltcube_705283201_705888001_4FGL_J1008.0+0620_weekly_bin771.fits outfile=/lscratch/kocevski/17489565/expmap_705283201_705888001_4FGL_J1008.0+0620_weekly_bin771.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 /lscratch/kocevski/17489565/ltcube_705283201_705888001_4FGL_J1008.0+0620_weekly_bin771.fits
.....................!
real 59.78
user 55.79
sys 3.57

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 151 point sources and 0 extended sources

Setting source of interest to:
4FGL J1008.0+0620 @ 152.014 6.3475

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17489565/ft1_filtered_4FGL_J1008.0+0620_weekly_bin771.fits scfile=/lscratch/kocevski/17489565/ft2_4FGL_J1008.0+0620_weekly_bin771.fits outfile=/lscratch/kocevski/17489565/cmap_705283201_705888001_4FGL_J1008.0+0620_weekly_bin771.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=152.014 yref=6.3475 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 0.36
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17489565/ft1_filtered_4FGL_J1008.0+0620_weekly_bin771.fits scfile=/lscratch/kocevski/17489565/ft2_4FGL_J1008.0+0620_weekly_bin771.fits outfile=/lscratch/kocevski/17489565/cmap_HighResolution_705283201_705888001_4FGL_J1008.0+0620_weekly_bin771.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=152.014 yref=6.3475 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 0.51
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17489565/ft1_filtered_4FGL_J1008.0+0620_weekly_bin771.fits evtable="EVENTS" scfile=/lscratch/kocevski/17489565/ft2_4FGL_J1008.0+0620_weekly_bin771.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17489565/Model_4FGL_J1008.0+0620_weekly_bin771.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...
/lscratch/kocevski/17489565/ft1_filtered_4FGL_J1008.0+0620_weekly_bin771.fits....................!
real 48.11
user 46.74
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17489565/ft1_filtered_4FGL_J1008.0+0620_weekly_bin771.fits', '/lscratch/kocevski/17489565/ft2_4FGL_J1008.0+0620_weekly_bin771.fits', expMap='/lscratch/kocevski/17489565/expmap_705283201_705888001_4FGL_J1008.0+0620_weekly_bin771.fits', expCube='/lscratch/kocevski/17489565/ltcube_705283201_705888001_4FGL_J1008.0+0620_weekly_bin771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17489565/Model_4FGL_J1008.0+0620_weekly_bin771.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1008.0+0620'

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  6.323e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
201        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17489565/ft1_filtered_4FGL_J1008.0+0620_weekly_bin771.fits
Spacecraft file(s): /lscratch/kocevski/17489565/ft2_4FGL_J1008.0+0620_weekly_bin771.fits
Exposure map: /lscratch/kocevski/17489565/expmap_705283201_705888001_4FGL_J1008.0+0620_weekly_bin771.fits
Exposure cube: /lscratch/kocevski/17489565/ltcube_705283201_705888001_4FGL_J1008.0+0620_weekly_bin771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17489565/Model_4FGL_J1008.0+0620_weekly_bin771.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) = 16954.3282059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50110E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .29131       1.0000          .0000       .10000E+07
     3 'norm      '    .38380E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .15635E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.9352       1.0000          .0000       .10000E+07
     6 'Prefactor '    21.513       1.0000          .0000       .10000E+07
     7 'Prefactor '    .23696E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.0494       1.0000          .0000       .10000E+07
     9 'Prefactor '    .92288E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .39428E-03   1.0000          .0000       .10000E+07
    11 'norm      '    3.2320       1.0000          .0000       .10000E+07
    12 'Prefactor '    .21029E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13517E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .12337E-02   1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0638       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .98685       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16954.29     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      928 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .66964       -.99829E-07** at limit **
   2  norm          .29045        .45807       -.24160E-07    .89743E-02
   3  norm          .55511E-10    .35309       -.46794E-07** at limit **
   4  Prefactor      .0000        3.9100       -.23467E-05** at limit **
   5  Prefactor     5.7161        12.673        .36670E-05   -.44895E-01
   6  Prefactor     21.798        13.518       -.20290E-05   -.81239E-01
   7  Prefactor      .0000        1.7329       -.49071E-06** at limit **
   8  Prefactor     .42016E-06    259.91       -.21093E-04** at limit **
   9  Prefactor     .26090E-08    5.7050        .11489E-05** at limit **
  10  Prefactor      .0000        2.0096       -.43280E-07** at limit **
  11  norm          3.2319        .93872       -.50228E-07    .38001E-01
  12  Prefactor      .0000        1.5003       -.36400E-06** at limit **
  13  Prefactor     .55511E-10    .47228        .53932E-07** at limit **
  14  Prefactor     .87153E-08    4.0822        .22972E-05** at limit **
  15  Normalizat    1.0645        .11992        .95928E-05    .59326E-03
  16  Prefactor     .98672        .10396        .33212E-05    .30459E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.290449
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 5.71613
  Prefactor  = 21.7979
  Prefactor  = 0
  Prefactor  = 4.20164e-07
  Prefactor  = 2.60902e-09
  Prefactor  = 0
  norm       = 3.2319
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 8.71525e-09
  Normalizat = 1.06449
  Prefactor  = 0.986721
 **********
 **   18 **HESSE 
 **********

 FCN=   16954.29     FROM HESSE     STATUS=OK           243 CALLS     1171 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .67138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .29045        .46199        .25084E-02   -1.5697    
   3  norm          .55511E-10    .74313E-01    .19609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.9139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.7161        18.412        .41195E-03   -1.5660    
   6  Prefactor     21.798        16.259        .21566E-03   -1.5615    
   7  Prefactor      .0000        1.7337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .42016E-06    10.378        .14956E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .26090E-08    5.7277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.0183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2319        .94391        .56319E-03   -1.5672    
  12  Prefactor      .0000        1.4975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    .47197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .87153E-08    4.0532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.0645        .10545        .39714E-01   -.90900    
  16  Prefactor     .98672        .89432E-01    .46103E-01   -.93173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72015e-07
Minuit parameter uncertainties:
  1  4.97353e-06
  2  0.461992
  3  3.42458e-06
  4  9.11375e-06
  5  18.4124
  6  16.2589
  7  9.30114e-06
  8  0.00417644
  9  0.00024553
  10  5.43364e-06
  11  0.943906
  12  4.00598e-06
  13  9.54497e-06
  14  0.000376388
  15  0.105471
  16  0.0894457
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  0.000e+00  9.114e-06  0.000e+00  1.000e+06 ( 1.000e-13)
201        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  9.867e-01  8.945e-02  0.000e+00  1.000e+01 ( 1.000e+00)
482        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
483        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  1.064e+00  1.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 152.014 6.348
Photon Flux Upper Limit: 2.77942978809e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00211600222258 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17489565/likelihoodResults_705283201_705888001_4FGL_J1008.0+0620_weekly_bin771.txt

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): 102
logL (Free Index) = 16954.2877638
delta logL = -0.000735782065021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16954.2870281
delta logL = -1.19001924759e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53235E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.3661       1.0000          .0000       10.000    
     3 'Normalizat'    1.0645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98672       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16954.29     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      232 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.9738        .42118E-03** at limit **
   2  Index         2.4893        1.3416        .43935E-04     .0000    
   3  Normalizat    1.0645        1.1862       -.16485E-04   -.68780E-04
   4  Prefactor     .98672        1.3266        .81989E-05   -.32486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.48926
  Normalizat = 1.06449
  Prefactor  = 0.986721
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16954.29     FROM HESSE     STATUS=FAILED         9 CALLS      241 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.9738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .69793        1.9152        .43935E-04   -.52608    
   3  Normalizat    1.0645        1.1862       -.16485E-04   -.90900    
   4  Prefactor     .98672        1.3266        .81989E-05   -.93173    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.97277e-11
Minuit parameter uncertainties:
  1  3.00914e-06
  2  1.36407
  3  1.21793
  4  1.37483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 16954.287028
delta logL = 6.54836185277e-11

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  0.000e+00  3.009e-06  0.000e+00  1.000e+06 ( 1.000e-13)
201        Index:  2.489e+00  1.364e+00  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  9.867e-01  1.375e+00  0.000e+00  1.000e+01 ( 1.000e+00)
482        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
483        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  1.064e+00  1.218e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 152.014 6.348

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 /lscratch/kocevski/17489565/cmap_HighResolution_705283201_705888001_4FGL_J1008.0+0620_weekly_bin771.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.12e-03', job_status='DONE', photon_flux_upper_limit='2.78e-08', time_completed='2023-05-16 02:16:12.044253', job_id='17489565', GAL2='0.99', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1684228572.04', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='771' AND source_name='4FGL J1008.0+0620' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 16 02:16:12 PDT 2023

