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


Performing analysis on: 4FGL_J1117.0+2013_weekly_bin906
RA = 169.271, Dec = 20.2294
tmin = 786931201, tmax = 787536001
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='17378451', job_status='RUN', time_executed='2025-12-16 02:15:21.923958', time_epoch_executed='1765880121.92' WHERE source_name='4FGL J1117.0+2013' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17378451

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17378451/ft1_4FGL_J1117.0+2013_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17378451/ft2_4FGL_J1117.0+2013_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17378451/ft1_4FGL_J1117.0+2013_weekly_bin906.fits outfile=/lscratch/kocevski/17378451/ft1_filteredMKT_4FGL_J1117.0+2013_weekly_bin906.fits ra=169.271 dec=20.2294 rad=12.0 tmin=786931201.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.58
user 4.50
sys 0.40

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17378451/ft2_4FGL_J1117.0+2013_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17378451/ft2_4FGL_J1117.0+2013_weekly_bin906.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/17378451/ft1_filteredMKT_4FGL_J1117.0+2013_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17378451/ft1_filtered_4FGL_J1117.0+2013_weekly_bin906.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.91
user 0.18
sys 0.15

Number of photons that the gtmktime cut: 1394

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17378451/ft1_filtered_4FGL_J1117.0+2013_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17378451/ft2_4FGL_J1117.0+2013_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17378451/ltcube_786931201_787536001_4FGL_J1117.0+2013_weekly_bin906.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/17378451/ft2_4FGL_J1117.0+2013_weekly_bin906.fits
.....................!
real 16.98
user 15.87
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17378451/ft1_filtered_4FGL_J1117.0+2013_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378451/ft2_4FGL_J1117.0+2013_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17378451/ltcube_786931201_787536001_4FGL_J1117.0+2013_weekly_bin906.fits outfile=/lscratch/kocevski/17378451/expmap_786931201_787536001_4FGL_J1117.0+2013_weekly_bin906.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/17378451/ltcube_786931201_787536001_4FGL_J1117.0+2013_weekly_bin906.fits
.....................!
real 61.47
user 56.94
sys 3.67

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

Setting source of interest to:
4FGL J1117.0+2013 @ 169.271 20.2294

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17378451/ft1_filtered_4FGL_J1117.0+2013_weekly_bin906.fits scfile=/lscratch/kocevski/17378451/ft2_4FGL_J1117.0+2013_weekly_bin906.fits outfile=/lscratch/kocevski/17378451/cmap_786931201_787536001_4FGL_J1117.0+2013_weekly_bin906.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=169.271 yref=20.2294 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.91
user 0.21
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17378451/ft1_filtered_4FGL_J1117.0+2013_weekly_bin906.fits scfile=/lscratch/kocevski/17378451/ft2_4FGL_J1117.0+2013_weekly_bin906.fits outfile=/lscratch/kocevski/17378451/cmap_HighResolution_786931201_787536001_4FGL_J1117.0+2013_weekly_bin906.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=169.271 yref=20.2294 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.06
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17378451/ft1_filtered_4FGL_J1117.0+2013_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378451/ft2_4FGL_J1117.0+2013_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17378451/Model_4FGL_J1117.0+2013_weekly_bin906.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/17378451/ft1_filtered_4FGL_J1117.0+2013_weekly_bin906.fits.....................!
real 46.26
user 43.99
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17378451/ft1_filtered_4FGL_J1117.0+2013_weekly_bin906.fits', '/lscratch/kocevski/17378451/ft2_4FGL_J1117.0+2013_weekly_bin906.fits', expMap='/lscratch/kocevski/17378451/expmap_786931201_787536001_4FGL_J1117.0+2013_weekly_bin906.fits', expCube='/lscratch/kocevski/17378451/ltcube_786931201_787536001_4FGL_J1117.0+2013_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17378451/Model_4FGL_J1117.0+2013_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1117.0+2013'

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  3.413e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17378451/ft1_filtered_4FGL_J1117.0+2013_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17378451/ft2_4FGL_J1117.0+2013_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17378451/expmap_786931201_787536001_4FGL_J1117.0+2013_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17378451/ltcube_786931201_787536001_4FGL_J1117.0+2013_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17378451/Model_4FGL_J1117.0+2013_weekly_bin906.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) = 15705.7784462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.784       1.0000          .0000       .10000E+07
     2 'Prefactor '    .29450E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    38.842       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.4709       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.4045       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.8930       1.0000          .0000       .10000E+07
     7 'Prefactor '    .16602       1.0000          .0000       .10000E+07
     8 'norm      '    2.1261       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9691       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.7929       1.0000          .0000       .10000E+07
    11 'norm      '    .29810E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.6925       1.0000          .0000       .10000E+07
    13 'Prefactor '    11.393       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.6083       1.0000          .0000       .10000E+07
    15 'Prefactor '    10.720       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.9830       1.0000          .0000       .10000E+07
    17 'Prefactor '    .90247       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.3248       1.0000          .0000       .10000E+07
    19 'Normalizat'    .83811       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0181       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15705.64     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     1202 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.751        6.0836        .33782E-07    .40865E-02
   2  Prefactor      .0000        1.9376        .37004E-07** at limit **
   3  Prefactor     38.849        1.9849       -.11637E-07    .94498E-01
   4  Prefactor     3.4852        5.5964       -.81946E-07   -.10296E-01
   5  Prefactor     4.4041        5.0783       -.16497E-06    .43920E-02
   6  Prefactor     2.8945        2.5152       -.45486E-06   -.47483E-02
   7  Prefactor     .10579        120.04       -.49943E-05** at limit **
   8  norm          2.1250        .85856       -.16142E-08   -.12831E-02
   9  Prefactor     2.9682        1.7565        .97574E-07    .10628E-02
  10  Prefactor     9.7846        4.4481       -.29357E-07   -.15102E-01
  11  norm          .27756E-09    8.4576        .27306E-06** at limit **
  12  Prefactor     5.6929        4.6488        .72148E-06    .22609E-01
  13  Prefactor     11.282        8.1998       -.84048E-06   -.38284E-01
  14  Prefactor     1.6473        3.1814        .93062E-06   -.17726E-01
  15  Prefactor     10.679        5.3863        .38497E-06   -.54814E-01
  16  Prefactor     1.9808        2.7620       -.16078E-06   -.10860E-03
  17  Prefactor     .90279        .86437       -.10794E-06    .65457E-03
  18  Prefactor     3.3231        2.2209       -.35075E-06    .49722E-03
  19  Normalizat    .83849        .12932        .28769E-05   -.29553E-05
  20  Prefactor     1.0180        .12999       -.43644E-05    .10456E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.7513
  Prefactor  = 0
  Prefactor  = 38.8486
  Prefactor  = 3.48522
  Prefactor  = 4.40414
  Prefactor  = 2.89455
  Prefactor  = 0.105785
  norm       = 2.12499
  Prefactor  = 2.96825
  Prefactor  = 9.78455
  norm       = 2.77556e-10
  Prefactor  = 5.69285
  Prefactor  = 11.282
  Prefactor  = 1.64732
  Prefactor  = 10.6786
  Prefactor  = 1.98076
  Prefactor  = 0.902787
  Prefactor  = 3.3231
  Normalizat = 0.838491
  Prefactor  = 1.018
 **********
 **   18 **HESSE 
 **********

 FCN=   15705.64     FROM HESSE     STATUS=OK           349 CALLS     1551 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.751        6.1896        .18975E-03   -1.5603    
   2  Prefactor      .0000        1.8913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.849        6.4615        .16047E-03   -1.5583    
   4  Prefactor     3.4852        5.9922        .54254E-03   -1.5671    
   5  Prefactor     4.4041        5.2191        .47963E-03   -1.5666    
   6  Prefactor     2.8945        5.6808        .59720E-03   -1.5674    
   7  Prefactor     .10579        4.8291        .89860E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1250        .86695        .70690E-03   -1.5679    
   9  Prefactor     2.9682        1.8296        .58901E-03   -1.5674    
  10  Prefactor     9.7846        4.5867        .31997E-03   -1.5645    
  11  norm          .27756E-09    8.3930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6929        5.3789        .42077E-03   -1.5660    
  13  Prefactor     11.282        9.3228        .29656E-03   -1.5641    
  14  Prefactor     1.6473        7.4429        .83508E-03   -1.5682    
  15  Prefactor     10.679        10.984        .30575E-03   -1.5643    
  16  Prefactor     1.9808        2.7811        .73567E-03   -1.5680    
  17  Prefactor     .90279        .88256        .45590E-03   -1.5689    
  18  Prefactor     3.3231        2.2334        .55489E-03   -1.5672    
  19  Normalizat    .83849        .11723        .44106E-01   -.98656    
  20  Prefactor     1.0180        .11426        .42330E-01   -.92132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29965e-07
Minuit parameter uncertainties:
  1  6.18961
  2  2.62384e-06
  3  6.46145
  4  5.99217
  5  5.21914
  6  5.68085
  7  1.42948
  8  0.866948
  9  1.8296
  10  4.58669
  11  9.25587e-05
  12  5.37886
  13  9.32283
  14  7.00314
  15  10.9842
  16  2.78115
  17  0.882561
  18  2.23342
  19  0.117267
  20  0.11429
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  9.785e+00  4.587e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.018e+00  1.143e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.385e-01  1.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.32
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 3.29e-08 +/- 1.54e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.19e-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) = 15705.3121225
delta logL = 0.329317474054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15705.3081853
delta logL = 0.333254671625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9046       1.0000          .0000       .10000E+07
     2 'Index     '    2.3267       1.0000          .0000       10.000    
     3 'Normalizat'    .81781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0301       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+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=   15705.31     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      314 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9039        7.0480        .13411E-04   -.12546E-03
   2  Index         2.3269        .63363        .59815E-02    .63360E-04
   3  Normalizat    .81776        .12842        .26984E-03    .74993E-05
   4  Prefactor     1.0301        .13172        .25515E-03    .13456E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.90386
  Index      = 2.32688
  Normalizat = 0.817757
  Prefactor  = 1.03014
 **********
 **   18 **HESSE 
 **********

 FCN=   15705.31     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .41E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9039        5.5996        .53643E-06   -1.5655    
   2  Index         2.3269        .50328        .23926E-03   -.56406    
   3  Normalizat    .81776        .12702        .10794E-04   -.99413    
   4  Prefactor     1.0301        .13105        .10206E-04   -.91732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08685e-13
Minuit parameter uncertainties:
  1  5.59959
  2  0.50448
  3  0.127062
  4  0.131086
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) = 15705.3081849
delta logL = 0.333255053905

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  6.904e+00  5.600e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.327e+00  5.045e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.030e+00  1.311e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.178e-01  1.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.99
Ra Dec: 169.271 20.229
Photon Index (Free Index): 2.33 +/- 0.50
Photon Flux (Free Index): 4.99e-08 +/- 2.99e-08
Energy Flux (Free Index): 1.81e-05 +/- 9.87e-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/17378451/cmap_HighResolution_786931201_787536001_4FGL_J1117.0+2013_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.29e-08', energy_flux2='1.81e-05', photon_flux_error='1.54e-08', dlogl='3.33e-01', energy_flux='2.53e-05', photon_flux2='4.99e-08', job_status='DONE', time_completed='2025-12-16 02:26:55.156130', photon_index_error2='0.50', photon_index2='2.33', ts='9.32', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='9.87e-06', EG='0.84', time_epoch_completed='1765880815.16', return_code='0', job_id='17378451', GAL2='1.03', EG2='0.82', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='2.99e-08', ts2='9.99', photon_index='1.96' WHERE bin_id='906' AND source_name='4FGL J1117.0+2013' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:26:55 PST 2025

