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


Performing analysis on: 4FGL_J1016.0+0512_weekly_bin907
RA = 154.009, Dec = 5.2089
tmin = 787536001, tmax = 788140801
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='17773140', job_status='RUN', time_executed='2025-12-23 01:21:34.639269', time_epoch_executed='1766481694.64' WHERE source_name='4FGL J1016.0+0512' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17773140

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17773140/ft1_4FGL_J1016.0+0512_weekly_bin907.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17773140/ft2_4FGL_J1016.0+0512_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17773140/ft1_4FGL_J1016.0+0512_weekly_bin907.fits outfile=/lscratch/kocevski/17773140/ft1_filteredMKT_4FGL_J1016.0+0512_weekly_bin907.fits ra=154.009 dec=5.2089 rad=12.0 tmin=787536001.0 tmax=788140801.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.59
user 4.07
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17773140/ft2_4FGL_J1016.0+0512_weekly_bin907.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/17773140/ft1_filteredMKT_4FGL_J1016.0+0512_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17773140/ft1_filtered_4FGL_J1016.0+0512_weekly_bin907.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.48
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1484

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17773140/ft1_filtered_4FGL_J1016.0+0512_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17773140/ft2_4FGL_J1016.0+0512_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17773140/ltcube_787536001_788140801_4FGL_J1016.0+0512_weekly_bin907.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/17773140/ft2_4FGL_J1016.0+0512_weekly_bin907.fits
.....................!
real 17.15
user 16.66
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17773140/ft1_filtered_4FGL_J1016.0+0512_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17773140/ft2_4FGL_J1016.0+0512_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17773140/ltcube_787536001_788140801_4FGL_J1016.0+0512_weekly_bin907.fits outfile=/lscratch/kocevski/17773140/expmap_787536001_788140801_4FGL_J1016.0+0512_weekly_bin907.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/17773140/ltcube_787536001_788140801_4FGL_J1016.0+0512_weekly_bin907.fits
.....................!
real 64.64
user 60.42
sys 3.81

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/17773140/ft1_filtered_4FGL_J1016.0+0512_weekly_bin907.fits scfile=/lscratch/kocevski/17773140/ft2_4FGL_J1016.0+0512_weekly_bin907.fits outfile=/lscratch/kocevski/17773140/cmap_787536001_788140801_4FGL_J1016.0+0512_weekly_bin907.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 0.50
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17773140/ft1_filtered_4FGL_J1016.0+0512_weekly_bin907.fits scfile=/lscratch/kocevski/17773140/ft2_4FGL_J1016.0+0512_weekly_bin907.fits outfile=/lscratch/kocevski/17773140/cmap_HighResolution_787536001_788140801_4FGL_J1016.0+0512_weekly_bin907.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 0.57
user 0.22
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17773140/ft1_filtered_4FGL_J1016.0+0512_weekly_bin907.fits', '/lscratch/kocevski/17773140/ft2_4FGL_J1016.0+0512_weekly_bin907.fits', expMap='/lscratch/kocevski/17773140/expmap_787536001_788140801_4FGL_J1016.0+0512_weekly_bin907.fits', expCube='/lscratch/kocevski/17773140/ltcube_787536001_788140801_4FGL_J1016.0+0512_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17773140/Model_4FGL_J1016.0+0512_weekly_bin907.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/17773140/ft1_filtered_4FGL_J1016.0+0512_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17773140/ft2_4FGL_J1016.0+0512_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17773140/expmap_787536001_788140801_4FGL_J1016.0+0512_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17773140/ltcube_787536001_788140801_4FGL_J1016.0+0512_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17773140/Model_4FGL_J1016.0+0512_weekly_bin907.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) = 16606.6973575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16527       1.0000          .0000       .10000E+07
     2 'norm      '    .34696       1.0000          .0000       .10000E+07
     3 'Prefactor '    .75966E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .91943E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .12718E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    12.947       1.0000          .0000       .10000E+07
     7 'Prefactor '    .40362E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    15.429       1.0000          .0000       .10000E+07
     9 'Prefactor '    .21265E-01   1.0000          .0000       .10000E+07
    10 'norm      '    3.8612       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.0662       1.0000          .0000       .10000E+07
    12 'Prefactor '    .77560E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.6544       1.0000          .0000       .10000E+07
    14 'norm      '    .31654       1.0000          .0000       .10000E+07
    15 'Normalizat'    .94136       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0353       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=   16606.64     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1165 TOTAL
                     EDM=   .68E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16528        .38674        .17368E-07** at limit **
   2  norm          .34685        .28243        .16181E-08    .11926E-02
   3  Prefactor      .0000        8.6478       -.61230E-07** at limit **
   4  Prefactor      .0000        5.1677        .69178E-07** at limit **
   5  Prefactor      .0000        5.5567       -.14666E-06** at limit **
   6  Prefactor     13.079        10.985       -.92417E-07    .78425E-04
   7  Prefactor      .0000        10.104        .55948E-08** at limit **
   8  Prefactor     14.796        55.505       -.17020E-06    .23801E-04
   9  Prefactor      .0000        19.095        .95567E-08** at limit **
  10  norm          3.8610        .98309       -.10317E-09    .30111E-02
  11  Prefactor     1.0652        2.3660        .23347E-07   -.13354E-03
  12  Prefactor     .72222E-01    9.7480        .97041E-06** at limit **
  13  Prefactor     6.6628        4.4041        .41835E-08   -.84460E-04
  14  norm          .31638        .30578        .41341E-07   -.24405E-02
  15  Normalizat    .94148        .13041       -.12977E-05   -.24049E-05
  16  Prefactor     1.0353        .10961       -.79123E-07    .32326E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.165282
  norm       = 0.346848
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 13.0786
  Prefactor  = 0
  Prefactor  = 14.7963
  Prefactor  = 0
  norm       = 3.86096
  Prefactor  = 1.06517
  Prefactor  = 0.0722215
  Prefactor  = 6.6628
  norm       = 0.31638
  Normalizat = 0.941483
  Prefactor  = 1.03528
 **********
 **   18 **HESSE 
 **********

 FCN=   16606.64     FROM HESSE     STATUS=OK           253 CALLS     1418 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16528        .33898        .27952E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .34685        .30564        .13861E-02   -1.5696    
   3  Prefactor      .0000        8.5327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        5.1211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        5.5108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.079        11.163        .27813E-03   -1.5636    
   7  Prefactor      .0000        10.177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.796        70.576        .25472E-03   -1.5631    
   9  Prefactor      .0000        10.080        .10421E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8610        .97650        .51331E-03   -1.5669    
  11  Prefactor     1.0652        2.4114        .11802E-02   -1.5687    
  12  Prefactor     .72222E-01    .57652        .65446E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.6628        4.4574        .38876E-03   -1.5656    
  14  norm          .31638        .32056        .15612E-02   -1.5697    
  15  Normalizat    .94148        .11346        .45428E-01   -.95017    
  16  Prefactor     1.0353        .93934E-01    .40858E-01   -.91562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39348e-08
Minuit parameter uncertainties:
  1  0.33898
  2  0.305641
  3  6.86197e-06
  4  4.08558e-06
  5  6.78985e-06
  6  11.1629
  7  1.71209e-06
  8  64.6313
  9  2.6946e-06
  10  0.9765
  11  2.41139
  12  0.408105
  13  4.45736
  14  0.320557
  15  0.113493
  16  0.0939489
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.308e+01  1.116e+01  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:  1.035e+00  9.395e-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:  9.415e-01  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.06
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 4.25e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.56e-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) = 16606.4312932
delta logL = 0.208965105274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16606.4279797
delta logL = 0.212278622057

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.103       1.0000          .0000       .10000E+07
     2 'Index     '    2.4803       1.0000          .0000       10.000    
     3 'Normalizat'    .92626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0435       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16606.43     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      285 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.114        8.4403        .12600E-04    .14076E-03
   2  Index         2.4800        .45737        .62309E-02    .71144E-04
   3  Normalizat    .92624        .13000        .26485E-03    .16312E-04
   4  Prefactor     1.0435        .10974        .10752E-02   -.12942E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1136
  Index      = 2.48
  Normalizat = 0.926241
  Prefactor  = 1.04347
 **********
 **   18 **HESSE 
 **********

 FCN=   16606.43     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.114        7.4967        .50399E-06   -1.5644    
   2  Index         2.4800        .40581        .24924E-03   -.52822    
   3  Normalizat    .92624        .13015        .10594E-04   -.95544    
   4  Prefactor     1.0435        .10992        .43007E-04   -.91294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73349e-12
Minuit parameter uncertainties:
  1  7.49674
  2  0.406411
  3  0.130198
  4  0.10994
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) = 16606.4279787
delta logL = 0.212279605486

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.011e+01  7.497e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.480e+00  4.064e-01  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:  1.043e+00  1.099e-01  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:  9.262e-01  1.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.55
Ra Dec: 154.009 5.209
Photon Index (Free Index): 2.48 +/- 0.41
Photon Flux (Free Index): 5.42e-08 +/- 3.08e-08
Energy Flux (Free Index): 1.61e-05 +/- 8.62e-06

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/17773140/cmap_HighResolution_787536001_788140801_4FGL_J1016.0+0512_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.25e-08', energy_flux2='1.61e-05', photon_flux_error='3.62e-08', dlogl='2.12e-01', energy_flux='1.83e-05', photon_flux2='5.42e-08', job_status='DONE', time_completed='2025-12-23 01:30:45.039493', photon_index_error2='0.41', photon_index2='2.48', ts='5.06', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='8.62e-06', EG='0.94', time_epoch_completed='1766482245.04', return_code='0', job_id='17773140', GAL2='1.04', EG2='0.93', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='3.08e-08', ts2='5.55', photon_index='2.22' WHERE bin_id='907' AND source_name='4FGL J1016.0+0512' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 01:30:45 PST 2025

