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


Performing analysis on: 4FGL_J1102.6+5251_weekly_bin927
RA = 165.673, Dec = 52.8569
tmin = 799632001, tmax = 800236801
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='26506102', job_status='RUN', time_executed='2026-05-12 01:53:21.250636', time_epoch_executed='1778576001.25' WHERE source_name='4FGL J1102.6+5251' and cadence='weekly' and bin_id='927'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26506102

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26506102/ft1_4FGL_J1102.6+5251_weekly_bin927.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26506102/ft2_4FGL_J1102.6+5251_weekly_bin927.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26506102/ft1_4FGL_J1102.6+5251_weekly_bin927.fits outfile=/lscratch/kocevski/26506102/ft1_filteredMKT_4FGL_J1102.6+5251_weekly_bin927.fits ra=165.673 dec=52.8569 rad=12.0 tmin=799632001.0 tmax=800236801.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 3.95
user 3.44
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26506102/ft2_4FGL_J1102.6+5251_weekly_bin927.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26506102/ft2_4FGL_J1102.6+5251_weekly_bin927.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/26506102/ft1_filteredMKT_4FGL_J1102.6+5251_weekly_bin927.fits evtable="EVENTS" outfile="/lscratch/kocevski/26506102/ft1_filtered_4FGL_J1102.6+5251_weekly_bin927.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.66
user 0.23
sys 0.12

Number of photons that the gtmktime cut: 2359

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26506102/ft1_filtered_4FGL_J1102.6+5251_weekly_bin927.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26506102/ft2_4FGL_J1102.6+5251_weekly_bin927.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26506102/ltcube_799632001_800236801_4FGL_J1102.6+5251_weekly_bin927.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/26506102/ft2_4FGL_J1102.6+5251_weekly_bin927.fits
.....................!
real 19.92
user 19.20
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26506102/ft1_filtered_4FGL_J1102.6+5251_weekly_bin927.fits evtable="EVENTS" scfile=/lscratch/kocevski/26506102/ft2_4FGL_J1102.6+5251_weekly_bin927.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26506102/ltcube_799632001_800236801_4FGL_J1102.6+5251_weekly_bin927.fits outfile=/lscratch/kocevski/26506102/expmap_799632001_800236801_4FGL_J1102.6+5251_weekly_bin927.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/26506102/ltcube_799632001_800236801_4FGL_J1102.6+5251_weekly_bin927.fits
.....................!
real 72.20
user 67.67
sys 3.96

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

Setting source of interest to:
4FGL J1102.6+5251 @ 165.673 52.8569

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26506102/ft1_filtered_4FGL_J1102.6+5251_weekly_bin927.fits scfile=/lscratch/kocevski/26506102/ft2_4FGL_J1102.6+5251_weekly_bin927.fits outfile=/lscratch/kocevski/26506102/cmap_799632001_800236801_4FGL_J1102.6+5251_weekly_bin927.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=165.673 yref=52.8569 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.79
user 0.25
sys 0.10

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26506102/ft1_filtered_4FGL_J1102.6+5251_weekly_bin927.fits scfile=/lscratch/kocevski/26506102/ft2_4FGL_J1102.6+5251_weekly_bin927.fits outfile=/lscratch/kocevski/26506102/cmap_HighResolution_799632001_800236801_4FGL_J1102.6+5251_weekly_bin927.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=165.673 yref=52.8569 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.88
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26506102/ft1_filtered_4FGL_J1102.6+5251_weekly_bin927.fits evtable="EVENTS" scfile=/lscratch/kocevski/26506102/ft2_4FGL_J1102.6+5251_weekly_bin927.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26506102/Model_4FGL_J1102.6+5251_weekly_bin927.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/26506102/ft1_filtered_4FGL_J1102.6+5251_weekly_bin927.fits.....................!
real 80.07
user 78.17
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26506102/ft1_filtered_4FGL_J1102.6+5251_weekly_bin927.fits', '/lscratch/kocevski/26506102/ft2_4FGL_J1102.6+5251_weekly_bin927.fits', expMap='/lscratch/kocevski/26506102/expmap_799632001_800236801_4FGL_J1102.6+5251_weekly_bin927.fits', expCube='/lscratch/kocevski/26506102/ltcube_799632001_800236801_4FGL_J1102.6+5251_weekly_bin927.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26506102/Model_4FGL_J1102.6+5251_weekly_bin927.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1102.6+5251'

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  9.377e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
395        Index:  2.669e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
396        Scale:  5.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26506102/ft1_filtered_4FGL_J1102.6+5251_weekly_bin927.fits
Spacecraft file(s): /lscratch/kocevski/26506102/ft2_4FGL_J1102.6+5251_weekly_bin927.fits
Exposure map: /lscratch/kocevski/26506102/expmap_799632001_800236801_4FGL_J1102.6+5251_weekly_bin927.fits
Exposure cube: /lscratch/kocevski/26506102/ltcube_799632001_800236801_4FGL_J1102.6+5251_weekly_bin927.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26506102/Model_4FGL_J1102.6+5251_weekly_bin927.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 25677.5165015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87697E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.5169       1.0000          .0000       .10000E+07
     3 'norm      '    .81312       1.0000          .0000       .10000E+07
     4 'norm      '    25.797       1.0000          .0000       .10000E+07
     5 'Prefactor '    .72720E-08   1.0000          .0000       .10000E+07
     6 'norm      '    2.6035       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.1596       1.0000          .0000       .10000E+07
     8 'norm      '    17.730       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.9870       1.0000          .0000       .10000E+07
    10 'norm      '    1.3815       1.0000          .0000       .10000E+07
    11 'norm      '    1.2811       1.0000          .0000       .10000E+07
    12 'Prefactor '    10.974       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.1014       1.0000          .0000       .10000E+07
    14 'norm      '    .93653       1.0000          .0000       .10000E+07
    15 'Prefactor '    56.627       1.0000          .0000       .10000E+07
    16 'Prefactor '    .83977E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .15129E-03   1.0000          .0000       .10000E+07
    18 'norm      '    13.191       1.0000          .0000       .10000E+07
    19 'Prefactor '    .47277       1.0000          .0000       .10000E+07
    20 'Prefactor '    19.824       1.0000          .0000       .10000E+07
    21 'norm      '    .24020E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.3443       1.0000          .0000       .10000E+07
    23 'norm      '    .31392       1.0000          .0000       .10000E+07
    24 'Prefactor '    16.079       1.0000          .0000       .10000E+07
    25 'Prefactor '    .59164E-02   1.0000          .0000       .10000E+07
    26 'norm      '    .45123E-01   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0350       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0697       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25675.02     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1505 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61062E-09    2.4065       -.21225E-06** at limit **
   2  Prefactor     4.7298        3.4412        .15602E-06   -.40175E-01
   3  norm          .81299        .22150        .24399E-07   -.56686E-03
   4  norm          25.705        8.2913       -.74929E-07    .11149E-01
   5  Prefactor     .27089E-07    5.0322       -.35537E-07** at limit **
   6  norm          2.6053        1.0408        .60959E-09   -.18721E-02
   7  Prefactor     7.2423        5.1405       -.17134E-06    .56055E-01
   8  norm          17.684        3.0920        .27958E-07   -.24547E-01
   9  Prefactor     6.8547        7.8002        .19542E-06    .12715E-01
  10  norm          1.3929        1.0381       -.85166E-07   -.65080E-03
  11  norm          1.2815        .67707       -.39787E-07   -.16389E-02
  12  Prefactor     13.842        38.517        .43480E-06    .62921E-03
  13  Prefactor     10.050        21.928        .28355E-06    .95070E-02
  14  norm          .92819        .78051       -.23988E-07   -.10924E-02
  15  Prefactor     56.399        4.2319       -.34847E-07    .10511    
  16  Prefactor     .44409E-09    2.4176        .19790E-06** at limit **
  17  Prefactor     .88818E-08    8.3407       -.97006E-07** at limit **
  18  norm          13.434        11.413       -.27678E-06   -.45796E-01
  19  Prefactor     .47861        1.7709        .18622E-06   -.32856E-05
  20  Prefactor     19.695        2.9985        .30908E-07    .53293E-01
  21  norm          .44409E-09    2.2446        .11369E-06** at limit **
  22  Prefactor     1.3443        1.1982       -.11701E-07   -.27394E-03
  23  norm          .31824        2.3912       -.10898E-05   -.42591E-03
  24  Prefactor     16.137        3.7504        .58088E-07    .71671E-02
  25  Prefactor     .24980E-06    36.612       -.26123E-06** at limit **
  26  norm          .45885E-01    1.3218        .24417E-06** at limit **
  27  Normalizat    1.0350        .92125E-01   -.14455E-05   -.65359E-04
  28  Prefactor     1.0690        .11874       -.17206E-05   -.61679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.10623e-10
  Prefactor  = 4.72985
  norm       = 0.812992
  norm       = 25.7048
  Prefactor  = 2.70894e-08
  norm       = 2.60529
  Prefactor  = 7.24226
  norm       = 17.6844
  Prefactor  = 6.8547
  norm       = 1.39293
  norm       = 1.28152
  Prefactor  = 13.8415
  Prefactor  = 10.0497
  norm       = 0.928194
  Prefactor  = 56.3994
  Prefactor  = 4.44089e-10
  Prefactor  = 8.88178e-09
  norm       = 13.4337
  Prefactor  = 0.478611
  Prefactor  = 19.6954
  norm       = 4.44089e-10
  Prefactor  = 1.34427
  norm       = 0.318245
  Prefactor  = 16.137
  Prefactor  = 2.498e-07
  norm       = 0.0458853
  Normalizat = 1.03496
  Prefactor  = 1.06896
 **********
 **   18 **HESSE 
 **********

 FCN=   25675.02     FROM HESSE     STATUS=OK           607 CALLS     2112 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61062E-09    2.4003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7298        15.300        .47347E-03   -1.5664    
   3  norm          .81299        .22536        .51962E-03   -1.5690    
   4  norm          25.705        8.3348        .19692E-03   -1.5607    
   5  Prefactor     .27089E-07    5.1204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.6053        1.0415        .63199E-04   -1.5676    
   7  Prefactor     7.2423        14.264        .37465E-03   -1.5654    
   8  norm          17.684        9.5310        .23759E-03   -1.5624    
   9  Prefactor     6.8547        9.1083        .37929E-03   -1.5656    
  10  norm          1.3929        1.1122        .92554E-03   -1.5684    
  11  norm          1.2815        .68567        .98016E-03   -1.5685    
  12  Prefactor     13.842        40.153        .30219E-03   -1.5634    
  13  Prefactor     10.050        33.743        .35201E-03   -1.5645    
  14  norm          .92819        .78907        .43266E-03   -1.5689    
  15  Prefactor     56.399        29.410        .13290E-03   -1.5558    
  16  Prefactor     .44409E-09    2.4245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .88818E-08    8.4650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.434        12.517        .27553E-03   -1.5635    
  19  Prefactor     .47861        1.8005        .81498E-03   -1.5694    
  20  Prefactor     19.695        11.130        .22467E-03   -1.5619    
  21  norm          .44409E-09    2.2384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.3443        1.2747        .94431E-03   -1.5685    
  23  norm          .31824        .82516        .65099E-02   -1.5719    
  24  Prefactor     16.137        8.9831        .24951E-03   -1.5628    
  25  Prefactor     .24980E-06    1.4391        .61808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .45885E-01    .28822        .28914E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0350        .81690E-01    .41696E-01   -.91868    
  28  Prefactor     1.0690        .10117        .65181E-01   -.90465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.53235e-06
Minuit parameter uncertainties:
  1  7.50649e-05
  2  15.3004
  3  0.225365
  4  8.33483
  5  0.000744564
  6  1.04145
  7  14.2641
  8  9.53103
  9  9.10834
  10  1.11219
  11  0.685675
  12  40.1534
  13  33.7437
  14  0.789072
  15  29.4103
  16  6.47974e-05
  17  0.000547595
  18  12.5174
  19  1.80048
  20  11.1301
  21  6.38103e-05
  22  1.2747
  23  0.825159
  24  8.98313
  25  0.00119911
  26  0.23
  27  0.0816997
  28  0.101184
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  5.640e+01  2.941e+01  0.000e+00  1.000e+06 ( 1.000e-13)
395        Index:  2.669e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
396        Scale:  5.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  1.069e+00  1.012e-01  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  1.035e+00  8.170e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.27
Ra Dec: 165.673 52.857
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 3.41e-08 +/- 1.78e-08
Energy Flux (Fixed Index): 8.43e-06 +/- 4.39e-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): 102
logL (Free Index) = 25673.9873452
delta logL = 1.03176096245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 25673.9698992
delta logL = 1.04920695684

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0584       1.0000          .0000       .10000E+07
     2 'Index     '    4.4259       1.0000          .0000       10.000    
     3 'Normalizat'    .99257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1152       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   25673.97     FROM MIGRAD    STATUS=FAILED       108 CALLS      324 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0213        74.107        .66554E-04    .56905E-02
   2  Index         4.4293        3.5315        .72322E-02    .20706E-02
   3  Normalizat    .99255        .73952E-01    .22696E-03   -.20037E-06
   4  Prefactor     1.1153        .97372E-01    .28324E-03    .11239E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   25673.97     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      405 TOTAL
                     EDM=   .76E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0213        74.107        .26910E-04    .56905E-02
   2  Index         4.4293        3.5315        .13115E-02    .20706E-02
   3  Normalizat    .99255        .73952E-01    .17663E-03   -.20037E-06
   4  Prefactor     1.1153        .97372E-01    .20083E-03    .11239E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   25673.97     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      437 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0213        75.454        .13311E-04    .21523E-03
   2  Index         4.4293        3.5570        .14464E-02    .82684E-04
   3  Normalizat    .99255        .90523E-01    .90784E-05   -.20037E-06
   4  Prefactor     1.1153        .11884        .11330E-04    .80275E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.02131
  Index      = 4.42933
  Normalizat = 0.992552
  Prefactor  = 1.11527
 **********
 **   18 **HESSE 
 **********

 FCN=   25673.97     FROM HESSE     STATUS=OK            27 CALLS      464 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0213        54.046        .26621E-05   -1.5648    
   2  Index         4.4293        3.1061        .28929E-03   -.11438    
   3  Normalizat    .99255        .94923E-01    .90784E-05   -.93280    
   4  Prefactor     1.1153        .12374        .22659E-05   -.88980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85156e-12
Minuit parameter uncertainties:
  1  44.1625
  2  3.35558
  3  0.0949387
  4  0.123776
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) = 25673.9698951
delta logL = 1.04921102751

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  9.021e+00  4.416e+01  0.000e+00  1.000e+06 ( 1.000e-13)
395        Index:  4.429e+00  3.356e+00  0.000e+00  1.000e+01 (-1.000e+00)
396        Scale:  5.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  1.115e+00  1.238e-01  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  9.926e-01  9.494e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.78
Ra Dec: 165.673 52.857
Photon Index (Free Index): 4.43 +/- 3.36
Photon Flux (Free Index): 5.60e-08 +/- 2.39e-08
Energy Flux (Free Index): 7.89e-06 +/- 4.91e-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/26506102/cmap_HighResolution_799632001_800236801_4FGL_J1102.6+5251_weekly_bin927.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.41e-08', energy_flux2='7.89e-06', photon_flux_error='1.78e-08', dlogl='1.05e+00', energy_flux='8.43e-06', photon_flux2='5.60e-08', job_status='DONE', time_completed='2026-05-12 02:08:57.347008', photon_index_error2='3.36', photon_index2='4.43', ts='5.27', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='4.91e-06', EG='1.03', time_epoch_completed='1778576937.35', return_code='0', job_id='26506102', GAL2='1.12', EG2='0.99', return_code2='0', energy_flux_error='4.39e-06', photon_flux_error2='2.39e-08', ts2='7.78', photon_index='2.67' WHERE bin_id='927' AND source_name='4FGL J1102.6+5251' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 12 02:08:57 PDT 2026

