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


Performing analysis on: 4FGL_J1017.8+0715_weekly_bin908
RA = 154.473, Dec = 7.2638
tmin = 788140801, tmax = 788745601
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='18158111', job_status='RUN', time_executed='2025-12-30 01:14:44.123987', time_epoch_executed='1767086084.12' WHERE source_name='4FGL J1017.8+0715' and cadence='weekly' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18158111

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18158111/ft1_4FGL_J1017.8+0715_weekly_bin908.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18158111/ft2_4FGL_J1017.8+0715_weekly_bin908.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18158111/ft1_4FGL_J1017.8+0715_weekly_bin908.fits outfile=/lscratch/kocevski/18158111/ft1_filteredMKT_4FGL_J1017.8+0715_weekly_bin908.fits ra=154.473 dec=7.2638 rad=12.0 tmin=788140801.0 tmax=788745601.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.53
user 3.94
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18158111/ft2_4FGL_J1017.8+0715_weekly_bin908.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18158111/ft2_4FGL_J1017.8+0715_weekly_bin908.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/18158111/ft1_filteredMKT_4FGL_J1017.8+0715_weekly_bin908.fits evtable="EVENTS" outfile="/lscratch/kocevski/18158111/ft1_filtered_4FGL_J1017.8+0715_weekly_bin908.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.71
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 1217

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18158111/ft1_filtered_4FGL_J1017.8+0715_weekly_bin908.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18158111/ft2_4FGL_J1017.8+0715_weekly_bin908.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18158111/ltcube_788140801_788745601_4FGL_J1017.8+0715_weekly_bin908.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/18158111/ft2_4FGL_J1017.8+0715_weekly_bin908.fits
.....................!
real 17.11
user 16.37
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18158111/ft1_filtered_4FGL_J1017.8+0715_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18158111/ft2_4FGL_J1017.8+0715_weekly_bin908.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18158111/ltcube_788140801_788745601_4FGL_J1017.8+0715_weekly_bin908.fits outfile=/lscratch/kocevski/18158111/expmap_788140801_788745601_4FGL_J1017.8+0715_weekly_bin908.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/18158111/ltcube_788140801_788745601_4FGL_J1017.8+0715_weekly_bin908.fits
.....................!
real 64.59
user 60.01
sys 3.85

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

Setting source of interest to:
4FGL J1017.8+0715 @ 154.473 7.2638

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18158111/ft1_filtered_4FGL_J1017.8+0715_weekly_bin908.fits scfile=/lscratch/kocevski/18158111/ft2_4FGL_J1017.8+0715_weekly_bin908.fits outfile=/lscratch/kocevski/18158111/cmap_788140801_788745601_4FGL_J1017.8+0715_weekly_bin908.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.473 yref=7.2638 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.84
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18158111/ft1_filtered_4FGL_J1017.8+0715_weekly_bin908.fits scfile=/lscratch/kocevski/18158111/ft2_4FGL_J1017.8+0715_weekly_bin908.fits outfile=/lscratch/kocevski/18158111/cmap_HighResolution_788140801_788745601_4FGL_J1017.8+0715_weekly_bin908.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.473 yref=7.2638 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.68
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18158111/ft1_filtered_4FGL_J1017.8+0715_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18158111/ft2_4FGL_J1017.8+0715_weekly_bin908.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18158111/Model_4FGL_J1017.8+0715_weekly_bin908.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/18158111/ft1_filtered_4FGL_J1017.8+0715_weekly_bin908.fits.....................!
real 44.13
user 42.49
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18158111/ft1_filtered_4FGL_J1017.8+0715_weekly_bin908.fits', '/lscratch/kocevski/18158111/ft2_4FGL_J1017.8+0715_weekly_bin908.fits', expMap='/lscratch/kocevski/18158111/expmap_788140801_788745601_4FGL_J1017.8+0715_weekly_bin908.fits', expCube='/lscratch/kocevski/18158111/ltcube_788140801_788745601_4FGL_J1017.8+0715_weekly_bin908.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18158111/Model_4FGL_J1017.8+0715_weekly_bin908.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1017.8+0715'

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.924e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18158111/ft1_filtered_4FGL_J1017.8+0715_weekly_bin908.fits
Spacecraft file(s): /lscratch/kocevski/18158111/ft2_4FGL_J1017.8+0715_weekly_bin908.fits
Exposure map: /lscratch/kocevski/18158111/expmap_788140801_788745601_4FGL_J1017.8+0715_weekly_bin908.fits
Exposure cube: /lscratch/kocevski/18158111/ltcube_788140801_788745601_4FGL_J1017.8+0715_weekly_bin908.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18158111/Model_4FGL_J1017.8+0715_weekly_bin908.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) = 13677.0544413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42204       1.0000          .0000       .10000E+07
     2 'norm      '    .60997       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.2599       1.0000          .0000       .10000E+07
     4 'Prefactor '    .60577E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .88472E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17515E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    71.352       1.0000          .0000       .10000E+07
     8 'Prefactor '    11.932       1.0000          .0000       .10000E+07
     9 'Prefactor '    14.984       1.0000          .0000       .10000E+07
    10 'Prefactor '    .44581E-04   1.0000          .0000       .10000E+07
    11 'norm      '    2.7887       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.6389       1.0000          .0000       .10000E+07
    13 'Prefactor '    .18237       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.1919       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.8498       1.0000          .0000       .10000E+07
    16 'norm      '    .39904       1.0000          .0000       .10000E+07
    17 'Prefactor '    .95377E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2630       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .67605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13677.04     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1414 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42226        .71018       -.97385E-09    .15952E-02
   2  norm          .61007        .37411        .13767E-07    .45411E-02
   3  Prefactor     7.2085        7.3079       -.34965E-06   -.43677E-03
   4  Prefactor     .17253E-06    7.4339        .26164E-06** at limit **
   5  Prefactor     .19373E-06    11.416        .38784E-06** at limit **
   6  Prefactor     .49960E-09    3.5995        .99606E-07** at limit **
   7  Prefactor     71.383        2.2937       -.25508E-08   -.17974E-01
   8  Prefactor     11.176        22.534       -.18931E-06    .17049E-01
   9  Prefactor     15.217        11.119       -.18227E-06    .89418E-01
  10  Prefactor     .27756E-09    3.1877       -.15763E-07** at limit **
  11  norm          2.7885        .98888        .58654E-07   -.46142E-02
  12  Prefactor     4.6403        2.9958        .26083E-08    .47429E-03
  13  Prefactor     .19485        3.9429        .14320E-06** at limit **
  14  Prefactor     2.2213        4.1396        .11015E-06    .32046E-04
  15  Prefactor     5.8237        4.7499        .88786E-08    .75869E-03
  16  norm          .39895        .25613       -.55269E-07    .15073E-01
  17  Prefactor     .42333E-06    6.9688       -.10228E-06** at limit **
  18  Normalizat    1.2631        .13992       -.19568E-05    .26112E-03
  19  Prefactor     .67605        .11274       -.17694E-05    .24832E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.422259
  norm       = 0.610068
  Prefactor  = 7.20846
  Prefactor  = 1.72529e-07
  Prefactor  = 1.93734e-07
  Prefactor  = 4.996e-10
  Prefactor  = 71.383
  Prefactor  = 11.1757
  Prefactor  = 15.2168
  Prefactor  = 2.77556e-10
  norm       = 2.7885
  Prefactor  = 4.64029
  Prefactor  = 0.194851
  Prefactor  = 2.22135
  Prefactor  = 5.82369
  norm       = 0.39895
  Prefactor  = 4.23328e-07
  Normalizat = 1.26309
  Prefactor  = 0.676053
 **********
 **   18 **HESSE 
 **********

 FCN=   13677.04     FROM HESSE     STATUS=OK           318 CALLS     1732 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42226        .72427        .86976E-03   -1.5695    
   2  norm          .61007        .38023        .68340E-03   -1.5692    
   3  Prefactor     7.2085        7.4294        .37203E-03   -1.5654    
   4  Prefactor     .17253E-06    8.0698        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .19373E-06    12.154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .49960E-09    3.5859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     71.383        35.772        .11839E-03   -1.5539    
   8  Prefactor     11.176        23.355        .28976E-03   -1.5641    
   9  Prefactor     15.217        18.400        .25848E-03   -1.5630    
  10  Prefactor     .27756E-09    3.1780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7885        .99441        .60903E-03   -1.5675    
  12  Prefactor     4.6403        2.9974        .46705E-03   -1.5665    
  13  Prefactor     .19485        .71759        .55597E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2213        4.1362        .69485E-03   -1.5678    
  15  Prefactor     5.8237        4.7886        .41499E-03   -1.5660    
  16  norm          .39895        .26010        .89598E-03   -1.5695    
  17  Prefactor     .42333E-06    8.5035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2631        .12146        .51217E-01   -.84675    
  19  Prefactor     .67605        .96605E-01    .42082E-01   -1.0447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32398e-06
Minuit parameter uncertainties:
  1  0.724269
  2  0.380234
  3  7.4294
  4  0.00235984
  5  0.00306898
  6  8.52139e-05
  7  35.7718
  8  23.3553
  9  18.4002
  10  5.83149e-05
  11  0.994412
  12  2.99738
  13  0.717593
  14  4.13618
  15  4.7886
  16  0.260102
  17  0.00379473
  18  0.121483
  19  0.0966284
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.138e+01  3.577e+01  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  6.761e-01  9.663e-02  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.263e+00  1.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.23
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 6.04e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 7.10e-06

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) = 13676.811748
delta logL = 0.228978316783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13676.8115024
delta logL = 0.229223920382

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.565       1.0000          .0000       .10000E+07
     2 'Index     '    2.4427       1.0000          .0000       10.000    
     3 'Normalizat'    1.2763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66822       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+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=   13676.81     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      317 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.523        43.460        .43760E-05   -.22447E-03
   2  Index         2.4422        .42012        .89399E-02    .42889E-04
   3  Normalizat    1.2764        .13564        .22545E-03   -.57485E-05
   4  Prefactor     .66821        .11225        .25254E-03    .19807E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.5231
  Index      = 2.44215
  Normalizat = 1.27637
  Prefactor  = 0.668211
 **********
 **   18 **HESSE 
 **********

 FCN=   13676.81     FROM HESSE     STATUS=OK            25 CALLS      342 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.523        43.023        .87519E-06   -1.5525    
   2  Index         2.4422        .41560        .35760E-03   -.53701    
   3  Normalizat    1.2764        .13575        .90182E-05   -.84275    
   4  Prefactor     .66821        .11232        .10102E-04   -1.0479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20987e-11
Minuit parameter uncertainties:
  1  43.023
  2  0.416255
  3  0.135783
  4  0.112362
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) = 13676.8115008
delta logL = 0.229225573297

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  8.352e+01  4.302e+01  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.442e+00  4.163e-01  0.000e+00  1.000e+01 (-1.000e+00)
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  6.682e-01  1.124e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.276e+00  1.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.67
Ra Dec: 154.473 7.264
Photon Index (Free Index): 2.44 +/- 0.42
Photon Flux (Free Index): 4.99e-08 +/- 3.07e-08
Energy Flux (Free Index): 1.55e-05 +/- 8.14e-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/18158111/cmap_HighResolution_788140801_788745601_4FGL_J1017.8+0715_weekly_bin908.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.04e-08', energy_flux2='1.55e-05', photon_flux_error='3.02e-08', dlogl='2.29e-01', energy_flux='1.42e-05', photon_flux2='4.99e-08', job_status='DONE', time_completed='2025-12-30 01:23:59.662712', photon_index_error2='0.42', photon_index2='2.44', ts='8.23', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='8.14e-06', EG='1.26', time_epoch_completed='1767086639.66', return_code='0', job_id='18158111', GAL2='0.67', EG2='1.28', return_code2='0', energy_flux_error='7.10e-06', photon_flux_error2='3.07e-08', ts2='8.67', photon_index='2.73' WHERE bin_id='908' AND source_name='4FGL J1017.8+0715' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 30 01:23:59 PST 2025

