/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_J1017.8+0715_weekly_bin907
RA = 154.473, Dec = 7.2638
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='17773141', job_status='RUN', time_executed='2025-12-23 01:21:33.988193', time_epoch_executed='1766481693.99' WHERE source_name='4FGL J1017.8+0715' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17773141

Creating custom pfile directory:
/lscratch/kocevski/17773141/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/17773141/ft1_4FGL_J1017.8+0715_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/17773141/ft2_4FGL_J1017.8+0715_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17773141/ft1_4FGL_J1017.8+0715_weekly_bin907.fits outfile=/lscratch/kocevski/17773141/ft1_filteredMKT_4FGL_J1017.8+0715_weekly_bin907.fits ra=154.473 dec=7.2638 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.53
user 4.07
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17773141/ft2_4FGL_J1017.8+0715_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/17773141/ft1_filteredMKT_4FGL_J1017.8+0715_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17773141/ft1_filtered_4FGL_J1017.8+0715_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.50
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1495

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17773141/ft1_filtered_4FGL_J1017.8+0715_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17773141/ft2_4FGL_J1017.8+0715_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17773141/ltcube_787536001_788140801_4FGL_J1017.8+0715_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/17773141/ft2_4FGL_J1017.8+0715_weekly_bin907.fits
.....................!
real 17.62
user 17.12
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17773141/ft1_filtered_4FGL_J1017.8+0715_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17773141/ft2_4FGL_J1017.8+0715_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17773141/ltcube_787536001_788140801_4FGL_J1017.8+0715_weekly_bin907.fits outfile=/lscratch/kocevski/17773141/expmap_787536001_788140801_4FGL_J1017.8+0715_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/17773141/ltcube_787536001_788140801_4FGL_J1017.8+0715_weekly_bin907.fits
.....................!
real 67.13
user 62.64
sys 3.92

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/17773141/ft1_filtered_4FGL_J1017.8+0715_weekly_bin907.fits scfile=/lscratch/kocevski/17773141/ft2_4FGL_J1017.8+0715_weekly_bin907.fits outfile=/lscratch/kocevski/17773141/cmap_787536001_788140801_4FGL_J1017.8+0715_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.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.43
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17773141/ft1_filtered_4FGL_J1017.8+0715_weekly_bin907.fits scfile=/lscratch/kocevski/17773141/ft2_4FGL_J1017.8+0715_weekly_bin907.fits outfile=/lscratch/kocevski/17773141/cmap_HighResolution_787536001_788140801_4FGL_J1017.8+0715_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.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.47
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17773141/ft1_filtered_4FGL_J1017.8+0715_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17773141/ft2_4FGL_J1017.8+0715_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17773141/Model_4FGL_J1017.8+0715_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/17773141/ft1_filtered_4FGL_J1017.8+0715_weekly_bin907.fits.....................!
real 50.11
user 48.82
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17773141/ft1_filtered_4FGL_J1017.8+0715_weekly_bin907.fits', '/lscratch/kocevski/17773141/ft2_4FGL_J1017.8+0715_weekly_bin907.fits', expMap='/lscratch/kocevski/17773141/expmap_787536001_788140801_4FGL_J1017.8+0715_weekly_bin907.fits', expCube='/lscratch/kocevski/17773141/ltcube_787536001_788140801_4FGL_J1017.8+0715_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17773141/Model_4FGL_J1017.8+0715_weekly_bin907.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/17773141/ft1_filtered_4FGL_J1017.8+0715_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17773141/ft2_4FGL_J1017.8+0715_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17773141/expmap_787536001_788140801_4FGL_J1017.8+0715_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17773141/ltcube_787536001_788140801_4FGL_J1017.8+0715_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17773141/Model_4FGL_J1017.8+0715_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) = 16769.2558308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13121       1.0000          .0000       .10000E+07
     2 'norm      '    .32879       1.0000          .0000       .10000E+07
     3 'Prefactor '    .63887E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .19424E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .32292E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    12.870       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15023E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    20.324       1.0000          .0000       .10000E+07
     9 'Prefactor '    10.737       1.0000          .0000       .10000E+07
    10 'Prefactor '    .49946E-01   1.0000          .0000       .10000E+07
    11 'norm      '    3.7727       1.0000          .0000       .10000E+07
    12 'Prefactor '    .95403       1.0000          .0000       .10000E+07
    13 'Prefactor '    .95201E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    10.854       1.0000          .0000       .10000E+07
    15 'Prefactor '    6.9380       1.0000          .0000       .10000E+07
    16 'norm      '    .14988E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    3.2200       1.0000          .0000       .10000E+07
    18 'Normalizat'    .96014       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0545       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=   16769.24     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1527 TOTAL
                     EDM=   .32E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13119        .37344       -.26231E-07** at limit **
   2  norm          .32872        .28269        .10671E-07    .53212E-03
   3  Prefactor      .0000        7.1238        .15618E-06** at limit **
   4  Prefactor      .0000        4.8132       -.87666E-07** at limit **
   5  Prefactor      .0000        6.7628        .60692E-07** at limit **
   6  Prefactor     12.795        10.810       -.37295E-07    .43422E-03
   7  Prefactor      .0000        9.8149       -.54973E-07** at limit **
   8  Prefactor     20.265        27.509       -.84131E-07   -.13251E-03
   9  Prefactor     11.619        66.146        .57829E-06    .67638E-04
  10  Prefactor     .55511E-10    20.198        .42756E-06** at limit **
  11  norm          3.7728        .96664       -.17990E-07   -.94462E-05
  12  Prefactor     .96396        2.3539        .51779E-07    .66765E-04
  13  Prefactor      .0000        19.496       -.39710E-06** at limit **
  14  Prefactor     10.854        4.7248       -.13943E-07   -.52874E-05
  15  Prefactor     6.9110        4.4244        .39751E-07    .24211E-03
  16  norm           .0000        .97950       -.65024E-07** at limit **
  17  Prefactor     3.2235        1.3053       -.22920E-08    .22199E-02
  18  Normalizat    .95991        .12976       -.57190E-06    .19632E-04
  19  Prefactor     1.0546        .11149        .89242E-06    .18031E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.131189
  norm       = 0.328717
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 12.7952
  Prefactor  = 0
  Prefactor  = 20.2651
  Prefactor  = 11.619
  Prefactor  = 5.55112e-11
  norm       = 3.77284
  Prefactor  = 0.963961
  Prefactor  = 0
  Prefactor  = 10.8542
  Prefactor  = 6.91097
  norm       = 0
  Prefactor  = 3.22348
  Normalizat = 0.959913
  Prefactor  = 1.05457
 **********
 **   18 **HESSE 
 **********

 FCN=   16769.24     FROM HESSE     STATUS=OK           326 CALLS     1853 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13119        .37466        .13157E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .32872        .30472        .14369E-02   -1.5696    
   3  Prefactor      .0000        7.0559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        4.8087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        6.7581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.795        11.128        .27896E-03   -1.5636    
   7  Prefactor      .0000        9.7990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.265        27.504        .22188E-03   -1.5618    
   9  Prefactor     11.619        89.271        .30551E-03   -1.5640    
  10  Prefactor     .55511E-10    9.4335        .10931E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.7728        .96856        .51951E-03   -1.5669    
  12  Prefactor     .96396        2.3594        .42131E-03   -1.5688    
  13  Prefactor      .0000        .95991        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.854        4.7285        .30386E-03   -1.5642    
  15  Prefactor     6.9110        4.5178        .38065E-03   -1.5655    
  16  norm           .0000        .99136E-01    .24923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.2235        15.446        .56430E-03   -1.5672    
  18  Normalizat    .95991        .11417        .45666E-01   -.94386    
  19  Prefactor     1.0546        .96291E-01    .39651E-01   -.90932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62349e-08
Minuit parameter uncertainties:
  1  0.374658
  2  0.304724
  3  5.25685e-06
  4  2.39547e-06
  5  2.53596e-06
  6  11.1276
  7  1.4412e-05
  8  27.5046
  9  64.4138
  10  4.43904e-05
  11  0.968561
  12  2.35938
  13  4.60976e-06
  14  4.72853
  15  4.51782
  16  4.07009e-08
  17  14.1124
  18  0.114196
  19  0.0963073
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  0.000e+00  1.441e-05  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:  1.055e+00  9.631e-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:  9.599e-01  1.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 3.61958987805e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0028548113133 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17773141/likelihoodResults_787536001_788140801_4FGL_J1017.8+0715_weekly_bin907.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) = 16769.2422506
delta logL = -0.000111710254714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16769.2421395
delta logL = -5.88148395764e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26047E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.4987       1.0000          .0000       10.000    
     3 'Normalizat'    .95981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0546       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=   16769.24     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      228 TOTAL
                     EDM=   .89E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.4542        .28896E-06** at limit **
   2  Index         2.7858        3.5948       -.14296E-04     .0000    
   3  Normalizat    .95991        .12415        .34124E-06   -.25754E-05
   4  Prefactor     1.0546        .10941        .10293E-05   -.12582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.78579
  Normalizat = 0.959913
  Prefactor  = 1.05457
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16769.24     FROM HESSE     STATUS=FAILED        11 CALLS      239 TOTAL
                     EDM=   .89E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.5174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .87906        2.0045       -.14296E-04   -.45877    
   3  Normalizat    .95991        1.2920        .34124E-06   -.94386    
   4  Prefactor     1.0546        1.1860        .10293E-05   -.90932    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.91435e-14
Minuit parameter uncertainties:
  1  3.75608e-06
  2  1.337
  3  1.33806
  4  1.21767
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) = 16769.2421389
delta logL = 0.0

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  0.000e+00  3.756e-06  0.000e+00  1.000e+06 ( 1.000e-13)
206        Index:  2.786e+00  1.337e+00  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:  1.055e+00  1.218e+00  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:  9.599e-01  1.338e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 154.473 7.264

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/17773141/cmap_HighResolution_787536001_788140801_4FGL_J1017.8+0715_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-03', job_status='DONE', photon_flux_upper_limit='3.62e-08', time_completed='2025-12-23 01:31:28.564383', job_id='17773141', GAL2='1.05', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1766482288.56', 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.73' WHERE bin_id='907' AND source_name='4FGL J1017.8+0715' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 01:31:28 PST 2025

