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


Performing analysis on: 4FGL_J1016.0+0512_weekly_bin829
RA = 154.009, Dec = 5.2089
tmin = 740361601, tmax = 740966401
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='51180017', job_status='RUN', time_executed='2024-06-25 00:55:44.293894', time_epoch_executed='1719302144.29' WHERE source_name='4FGL J1016.0+0512' and cadence='weekly' and bin_id='829'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/51180017

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/51180017/ft1_4FGL_J1016.0+0512_weekly_bin829.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/51180017/ft2_4FGL_J1016.0+0512_weekly_bin829.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/51180017/ft1_4FGL_J1016.0+0512_weekly_bin829.fits outfile=/lscratch/kocevski/51180017/ft1_filteredMKT_4FGL_J1016.0+0512_weekly_bin829.fits ra=154.009 dec=5.2089 rad=12.0 tmin=740361601.0 tmax=740966401.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 4.35
user 2.79
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/51180017/ft2_4FGL_J1016.0+0512_weekly_bin829.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/51180017/ft2_4FGL_J1016.0+0512_weekly_bin829.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/51180017/ft1_filteredMKT_4FGL_J1016.0+0512_weekly_bin829.fits evtable="EVENTS" outfile="/lscratch/kocevski/51180017/ft1_filtered_4FGL_J1016.0+0512_weekly_bin829.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 1.77
user 0.18
sys 0.15

Number of photons that the gtmktime cut: 1603

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/51180017/ft1_filtered_4FGL_J1016.0+0512_weekly_bin829.fits" evtable="EVENTS" scfile=/lscratch/kocevski/51180017/ft2_4FGL_J1016.0+0512_weekly_bin829.fits sctable="SC_DATA" outfile=/lscratch/kocevski/51180017/ltcube_740361601_740966401_4FGL_J1016.0+0512_weekly_bin829.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/51180017/ft2_4FGL_J1016.0+0512_weekly_bin829.fits
.....................!
real 17.17
user 15.73
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/51180017/ft1_filtered_4FGL_J1016.0+0512_weekly_bin829.fits evtable="EVENTS" scfile=/lscratch/kocevski/51180017/ft2_4FGL_J1016.0+0512_weekly_bin829.fits sctable="SC_DATA" expcube=/lscratch/kocevski/51180017/ltcube_740361601_740966401_4FGL_J1016.0+0512_weekly_bin829.fits outfile=/lscratch/kocevski/51180017/expmap_740361601_740966401_4FGL_J1016.0+0512_weekly_bin829.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/51180017/ltcube_740361601_740966401_4FGL_J1016.0+0512_weekly_bin829.fits
.....................!
real 60.67
user 55.42
sys 3.55

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

Setting source of interest to:
4FGL J1016.0+0512 @ 154.009 5.2089

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/51180017/ft1_filtered_4FGL_J1016.0+0512_weekly_bin829.fits scfile=/lscratch/kocevski/51180017/ft2_4FGL_J1016.0+0512_weekly_bin829.fits outfile=/lscratch/kocevski/51180017/cmap_740361601_740966401_4FGL_J1016.0+0512_weekly_bin829.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=154.009 yref=5.2089 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.41
user 0.19
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/51180017/ft1_filtered_4FGL_J1016.0+0512_weekly_bin829.fits scfile=/lscratch/kocevski/51180017/ft2_4FGL_J1016.0+0512_weekly_bin829.fits outfile=/lscratch/kocevski/51180017/cmap_HighResolution_740361601_740966401_4FGL_J1016.0+0512_weekly_bin829.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=154.009 yref=5.2089 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.51
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/51180017/ft1_filtered_4FGL_J1016.0+0512_weekly_bin829.fits evtable="EVENTS" scfile=/lscratch/kocevski/51180017/ft2_4FGL_J1016.0+0512_weekly_bin829.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/51180017/Model_4FGL_J1016.0+0512_weekly_bin829.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/51180017/ft1_filtered_4FGL_J1016.0+0512_weekly_bin829.fits.....................!
real 49.94
user 47.97
sys 0.69

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/51180017/ft1_filtered_4FGL_J1016.0+0512_weekly_bin829.fits', '/lscratch/kocevski/51180017/ft2_4FGL_J1016.0+0512_weekly_bin829.fits', expMap='/lscratch/kocevski/51180017/expmap_740361601_740966401_4FGL_J1016.0+0512_weekly_bin829.fits', expCube='/lscratch/kocevski/51180017/ltcube_740361601_740966401_4FGL_J1016.0+0512_weekly_bin829.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/51180017/Model_4FGL_J1016.0+0512_weekly_bin829.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1016.0+0512'

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.181e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/51180017/ft1_filtered_4FGL_J1016.0+0512_weekly_bin829.fits
Spacecraft file(s): /lscratch/kocevski/51180017/ft2_4FGL_J1016.0+0512_weekly_bin829.fits
Exposure map: /lscratch/kocevski/51180017/expmap_740361601_740966401_4FGL_J1016.0+0512_weekly_bin829.fits
Exposure cube: /lscratch/kocevski/51180017/ltcube_740361601_740966401_4FGL_J1016.0+0512_weekly_bin829.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/51180017/Model_4FGL_J1016.0+0512_weekly_bin829.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) = 17708.8165466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12490E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .34361E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.7506       1.0000          .0000       .10000E+07
     4 'Prefactor '    .67496E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .16106E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .19712E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .35678E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .49699       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.7392       1.0000          .0000       .10000E+07
    10 'norm      '    2.0277       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20933E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .90288       1.0000          .0000       .10000E+07
    13 'Prefactor '    .33272       1.0000          .0000       .10000E+07
    14 'norm      '    .72313       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.1524       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .98729       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17708.72     FROM MIGRAD    STATUS=CONVERGED    128 CALLS      973 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.5870        .11263E-07** at limit **
   2  norm           .0000        .33565       -.43455E-07** at limit **
   3  Prefactor     5.7470        5.2336        .50597E-08    .22850E-02
   4  Prefactor      .0000        5.6410        .45085E-10** at limit **
   5  Prefactor     .33307E-09    14.734        .76153E-07** at limit **
   6  Prefactor      .0000        1.2938        .19147E-07** at limit **
   7  Prefactor     .10336E-06    36.936       -.21378E-06** at limit **
   8  Prefactor     .94702E-07    179.91       -.24924E-06** at limit **
   9  Prefactor     9.8724        5.0077        .10945E-06   -.45668E-01
  10  norm          2.0275        .79215       -.51297E-08   -.37295E-03
  11  Prefactor      .0000        1.9098       -.44379E-07** at limit **
  12  Prefactor     .90212        1.6308       -.35010E-08    .36700E-02
  13  Prefactor     .34164        7.8333       -.31405E-06   -.12300E-01
  14  norm          .72301        .26740        .68730E-08    .65539E-02
  15  Normalizat    1.1526        .12755        .12274E-05    .10677E-03
  16  Prefactor     .98721        .10830       -.55891E-06    .10481E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0
  Prefactor  = 5.74702
  Prefactor  = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  Prefactor  = 1.03362e-07
  Prefactor  = 9.4702e-08
  Prefactor  = 9.87239
  norm       = 2.02748
  Prefactor  = 0
  Prefactor  = 0.902118
  Prefactor  = 0.341643
  norm       = 0.723014
  Normalizat = 1.15262
  Prefactor  = 0.987213
 **********
 **   18 **HESSE 
 **********

 FCN=   17708.72     FROM HESSE     STATUS=OK           261 CALLS     1234 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .39716        .27523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .99066E-01    .22086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.7470        5.2933        .41860E-03   -1.5660    
   4  Prefactor      .0000        5.6492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .33307E-09    14.803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.2931        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10336E-06    9.2665        .16165E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .94702E-07    20.328        .13222E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.8724        8.9562        .32086E-03   -1.5645    
  10  norm          2.0275        .79354        .72628E-03   -1.5679    
  11  Prefactor      .0000        1.8976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .90212        1.6801        .45562E-03   -1.5689    
  13  Prefactor     .34164        2.3171        .60052E-02   -1.5696    
  14  norm          .72301        .27250        .58850E-03   -1.5691    
  15  Normalizat    1.1526        .11006        .55912E-01   -.88080    
  16  Prefactor     .98721        .90759E-01    .46108E-01   -.93157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87686e-08
Minuit parameter uncertainties:
  1  3.27014e-06
  2  8.12294e-07
  3  5.29333
  4  2.49528e-05
  5  0.000135868
  6  5.73786e-06
  7  0.00195731
  8  0.00277492
  9  8.95617
  10  0.79354
  11  7.02889e-06
  12  1.6801
  13  1.77946
  14  0.272502
  15  0.11008
  16  0.0907734
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  0.000e+00  5.738e-06  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  9.872e-01  9.077e-02  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.153e+00  1.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 2.10621533077e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00160752341574 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/51180017/likelihoodResults_740361601_740966401_4FGL_J1016.0+0512_weekly_bin829.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) = 17708.7232708
delta logL = -0.000663666836772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17708.7226084
delta logL = -1.26167287817e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18102E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.0016       1.0000          .0000       10.000    
     3 'Normalizat'    1.1528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98707       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   17708.72     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      240 TOTAL
                     EDM=   .31E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .86695        .42118E-03** at limit **
   2  Index         2.6362        1.9219        .51952E-05     .0000    
   3  Normalizat    1.1526        1.1251       -.34760E-05    .41117E-04
   4  Prefactor     .98721        1.3271        .30283E-05   -.21177E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.63622
  Normalizat = 1.15262
  Prefactor  = 0.987213
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17708.72     FROM HESSE     STATUS=FAILED         9 CALLS      249 TOTAL
                     EDM=   .31E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .86695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .78613        2.0868        .51952E-05   -.49242    
   3  Normalizat    1.1526        1.1251       -.34760E-05   -.88080    
   4  Prefactor     .98721        1.3271        .30283E-05   -.93157    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.10086e-12
Minuit parameter uncertainties:
  1  1.90509e-07
  2  1.98872
  3  1.14997
  4  1.37526
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) = 17708.7226071
delta logL = 0.0

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  0.000e+00  1.905e-07  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.636e+00  1.989e+00  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  9.872e-01  1.375e+00  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.153e+00  1.150e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 154.009 5.209

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/51180017/cmap_HighResolution_740361601_740966401_4FGL_J1016.0+0512_weekly_bin829.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-03', job_status='DONE', photon_flux_upper_limit='2.11e-08', time_completed='2024-06-25 01:11:11.222991', job_id='51180017', GAL2='0.99', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1719303071.22', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='829' AND source_name='4FGL J1016.0+0512' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 25 01:11:12 PDT 2024

