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


Performing analysis on: 4FGL_J1008.0+0620_weekly_bin821
RA = 152.014, Dec = 6.3475
tmin = 735523201, tmax = 736128001
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='45351879', job_status='RUN', time_executed='2024-04-30 02:42:13.991003', time_epoch_executed='1714470133.99' WHERE source_name='4FGL J1008.0+0620' and cadence='weekly' and bin_id='821'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/45351879

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/45351879/ft1_4FGL_J1008.0+0620_weekly_bin821.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/45351879/ft2_4FGL_J1008.0+0620_weekly_bin821.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/45351879/ft1_4FGL_J1008.0+0620_weekly_bin821.fits outfile=/lscratch/kocevski/45351879/ft1_filteredMKT_4FGL_J1008.0+0620_weekly_bin821.fits ra=152.014 dec=6.3475 rad=12.0 tmin=735523201.0 tmax=736128001.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 5.37
user 4.08
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/45351879/ft2_4FGL_J1008.0+0620_weekly_bin821.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/45351879/ft1_filteredMKT_4FGL_J1008.0+0620_weekly_bin821.fits evtable="EVENTS" outfile="/lscratch/kocevski/45351879/ft1_filtered_4FGL_J1008.0+0620_weekly_bin821.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.36
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 1108

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

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/45351879/ft1_filtered_4FGL_J1008.0+0620_weekly_bin821.fits evtable="EVENTS" scfile=/lscratch/kocevski/45351879/ft2_4FGL_J1008.0+0620_weekly_bin821.fits sctable="SC_DATA" expcube=/lscratch/kocevski/45351879/ltcube_735523201_736128001_4FGL_J1008.0+0620_weekly_bin821.fits outfile=/lscratch/kocevski/45351879/expmap_735523201_736128001_4FGL_J1008.0+0620_weekly_bin821.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/45351879/ltcube_735523201_736128001_4FGL_J1008.0+0620_weekly_bin821.fits
.....................!
real 60.44
user 55.53
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/45351879/ft1_filtered_4FGL_J1008.0+0620_weekly_bin821.fits scfile=/lscratch/kocevski/45351879/ft2_4FGL_J1008.0+0620_weekly_bin821.fits outfile=/lscratch/kocevski/45351879/cmap_735523201_736128001_4FGL_J1008.0+0620_weekly_bin821.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.37
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/45351879/ft1_filtered_4FGL_J1008.0+0620_weekly_bin821.fits scfile=/lscratch/kocevski/45351879/ft2_4FGL_J1008.0+0620_weekly_bin821.fits outfile=/lscratch/kocevski/45351879/cmap_HighResolution_735523201_736128001_4FGL_J1008.0+0620_weekly_bin821.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 1.39
user 0.21
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/45351879/ft1_filtered_4FGL_J1008.0+0620_weekly_bin821.fits', '/lscratch/kocevski/45351879/ft2_4FGL_J1008.0+0620_weekly_bin821.fits', expMap='/lscratch/kocevski/45351879/expmap_735523201_736128001_4FGL_J1008.0+0620_weekly_bin821.fits', expCube='/lscratch/kocevski/45351879/ltcube_735523201_736128001_4FGL_J1008.0+0620_weekly_bin821.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/45351879/Model_4FGL_J1008.0+0620_weekly_bin821.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/45351879/ft1_filtered_4FGL_J1008.0+0620_weekly_bin821.fits
Spacecraft file(s): /lscratch/kocevski/45351879/ft2_4FGL_J1008.0+0620_weekly_bin821.fits
Exposure map: /lscratch/kocevski/45351879/expmap_735523201_736128001_4FGL_J1008.0+0620_weekly_bin821.fits
Exposure cube: /lscratch/kocevski/45351879/ltcube_735523201_736128001_4FGL_J1008.0+0620_weekly_bin821.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/45351879/Model_4FGL_J1008.0+0620_weekly_bin821.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) = 12453.3729286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44409E-08   1.0000          .0000       .10000E+07
     2 'norm      '    .11435E-07   1.0000          .0000       .10000E+07
     3 'norm      '    .22782       1.0000          .0000       .10000E+07
     4 'Prefactor '    .59724E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .28688E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .38488E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    14.929       1.0000          .0000       .10000E+07
     8 'Prefactor '    .33600E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .63809E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.8308       1.0000          .0000       .10000E+07
    11 'norm      '    3.2944       1.0000          .0000       .10000E+07
    12 'Prefactor '    .59661E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .55561E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.8718       1.0000          .0000       .10000E+07
    15 'Normalizat'    .81782       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0489       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=   12453.35     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1219 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.2033        .13596E-06** at limit **
   2  norm           .0000        .54326       -.73609E-07** at limit **
   3  norm          .22791        .28932        .55155E-08** at limit **
   4  Prefactor      .0000        1.4779       -.10842E-06** at limit **
   5  Prefactor     .55511E-10    8.4696       -.13547E-06** at limit **
   6  Prefactor     .55511E-10    14.317       -.41178E-06** at limit **
   7  Prefactor     14.992        8.5226        .29946E-06    .56882E-03
   8  Prefactor      .0000        18.558       -.63771E-06** at limit **
   9  Prefactor     .49960E-09    74.115        .31323E-06** at limit **
  10  Prefactor     3.8306        13.348        .85461E-06    .20170E-03
  11  norm          3.2939        1.0518        .56120E-08   -.51198E-02
  12  Prefactor      .0000        1.4805        .56406E-07** at limit **
  13  Prefactor      .0000        1.0844        .17012E-07** at limit **
  14  Prefactor     2.8683        5.5249       -.40580E-08   -.10325E-02
  15  Normalizat    .81767        .13218        .73888E-06   -.12115E-04
  16  Prefactor     1.0490        .11586       -.65771E-06   -.29504E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  norm       = 0.227905
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 14.9923
  Prefactor  = 0
  Prefactor  = 4.996e-10
  Prefactor  = 3.83057
  norm       = 3.29387
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.86826
  Normalizat = 0.817668
  Prefactor  = 1.049
 **********
 **   18 **HESSE 
 **********

 FCN=   12453.35     FROM HESSE     STATUS=OK           231 CALLS     1450 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.1424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .52426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .22791        .31740        .11300E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.4790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    8.5170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    14.406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.992        8.6421        .25896E-03   -1.5631    
   8  Prefactor      .0000        18.481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .49960E-09    74.234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8306        13.572        .51541E-03   -1.5669    
  11  norm          3.2939        1.0544        .55756E-03   -1.5672    
  12  Prefactor      .0000        1.4790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        1.0810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8683        5.5512        .59955E-03   -1.5674    
  15  Normalizat    .81767        .11456        .43842E-01   -.99417    
  16  Prefactor     1.0490        .99830E-01    .39973E-01   -.91114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17985e-07
Minuit parameter uncertainties:
  1  2.05475e-06
  2  3.25459e-06
  3  0.317398
  4  2.1713e-07
  5  3.43068e-05
  6  4.5476e-05
  7  8.64208
  8  3.28279e-05
  9  0.000378809
  10  13.572
  11  1.05436
  12  2.25373e-06
  13  1.51019e-06
  14  5.55121
  15  0.114595
  16  0.0998482
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  0.000e+00  2.171e-07  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:  1.049e+00  9.985e-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:  8.177e-01  1.146e-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.06627783499e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00157307391252 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/45351879/likelihoodResults_735523201_736128001_4FGL_J1008.0+0620_weekly_bin821.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) = 12453.3505473
delta logL = -0.00230506499793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12453.3482423
delta logL = -1.06327206595e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16931E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.5381       1.0000          .0000       10.000    
     3 'Normalizat'    .81770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0490       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=   12453.35     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      266 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.0584        .42118E-03** at limit **
   2  Index         2.6356        1.2762        .18324E-05     .0000    
   3  Normalizat    .81767        1.1560       -.33079E-05   -.30918E-04
   4  Prefactor     1.0490        1.1924        .17167E-05   -.55151E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.63555
  Normalizat = 0.817668
  Prefactor  = 1.049
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12453.35     FROM HESSE     STATUS=FAILED         9 CALLS      275 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.0584        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .78572        1.9512        .18324E-05   -.49257    
   3  Normalizat    .81767        1.1560       -.33079E-05   -.99417    
   4  Prefactor     1.0490        1.1924        .17167E-05   -.91114    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.50245e-12
Minuit parameter uncertainties:
  1  3.81354e-06
  2  1.29475
  3  1.19391
  4  1.22475
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) = 12453.3482422
delta logL = 0.0

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  0.000e+00  3.814e-06  0.000e+00  1.000e+06 ( 1.000e-13)
201        Index:  2.636e+00  1.295e+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:  1.049e+00  1.225e+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:  8.177e-01  1.194e+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/45351879/cmap_HighResolution_735523201_736128001_4FGL_J1008.0+0620_weekly_bin821.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-03', job_status='DONE', photon_flux_upper_limit='2.07e-08', time_completed='2024-04-30 02:51:04.286644', job_id='45351879', GAL2='1.05', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1714470664.29', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='821' AND source_name='4FGL J1008.0+0620' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 30 02:51:04 PDT 2024

