/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_J1338.0+6534_weekly_bin907
RA = 204.516, Dec = 65.5696
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='17774549', job_status='RUN', time_executed='2025-12-23 01:52:48.869164', time_epoch_executed='1766483568.87' WHERE source_name='4FGL J1338.0+6534' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17774549

Creating custom pfile directory:
/lscratch/kocevski/17774549/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/17774549/ft1_4FGL_J1338.0+6534_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/17774549/ft2_4FGL_J1338.0+6534_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17774549/ft1_4FGL_J1338.0+6534_weekly_bin907.fits outfile=/lscratch/kocevski/17774549/ft1_filteredMKT_4FGL_J1338.0+6534_weekly_bin907.fits ra=204.516 dec=65.5696 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 5.02
user 4.13
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17774549/ft2_4FGL_J1338.0+6534_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17774549/ft2_4FGL_J1338.0+6534_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/17774549/ft1_filteredMKT_4FGL_J1338.0+6534_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17774549/ft1_filtered_4FGL_J1338.0+6534_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.97
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1478

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17774549/ft1_filtered_4FGL_J1338.0+6534_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17774549/ft2_4FGL_J1338.0+6534_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17774549/ltcube_787536001_788140801_4FGL_J1338.0+6534_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/17774549/ft2_4FGL_J1338.0+6534_weekly_bin907.fits
.....................!
real 18.12
user 17.23
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17774549/ft1_filtered_4FGL_J1338.0+6534_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17774549/ft2_4FGL_J1338.0+6534_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17774549/ltcube_787536001_788140801_4FGL_J1338.0+6534_weekly_bin907.fits outfile=/lscratch/kocevski/17774549/expmap_787536001_788140801_4FGL_J1338.0+6534_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/17774549/ltcube_787536001_788140801_4FGL_J1338.0+6534_weekly_bin907.fits
.....................!
real 67.73
user 62.86
sys 4.07

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

Setting source of interest to:
4FGL J1338.0+6534 @ 204.516 65.5696

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17774549/ft1_filtered_4FGL_J1338.0+6534_weekly_bin907.fits scfile=/lscratch/kocevski/17774549/ft2_4FGL_J1338.0+6534_weekly_bin907.fits outfile=/lscratch/kocevski/17774549/cmap_787536001_788140801_4FGL_J1338.0+6534_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=204.516 yref=65.5696 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.78
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17774549/ft1_filtered_4FGL_J1338.0+6534_weekly_bin907.fits scfile=/lscratch/kocevski/17774549/ft2_4FGL_J1338.0+6534_weekly_bin907.fits outfile=/lscratch/kocevski/17774549/cmap_HighResolution_787536001_788140801_4FGL_J1338.0+6534_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=204.516 yref=65.5696 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.92
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17774549/ft1_filtered_4FGL_J1338.0+6534_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17774549/ft2_4FGL_J1338.0+6534_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17774549/Model_4FGL_J1338.0+6534_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/17774549/ft1_filtered_4FGL_J1338.0+6534_weekly_bin907.fits.....................!
real 49.65
user 48.01
sys 0.65

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17774549/ft1_filtered_4FGL_J1338.0+6534_weekly_bin907.fits', '/lscratch/kocevski/17774549/ft2_4FGL_J1338.0+6534_weekly_bin907.fits', expMap='/lscratch/kocevski/17774549/expmap_787536001_788140801_4FGL_J1338.0+6534_weekly_bin907.fits', expCube='/lscratch/kocevski/17774549/ltcube_787536001_788140801_4FGL_J1338.0+6534_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17774549/Model_4FGL_J1338.0+6534_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17774549/ft1_filtered_4FGL_J1338.0+6534_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17774549/ft2_4FGL_J1338.0+6534_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17774549/expmap_787536001_788140801_4FGL_J1338.0+6534_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17774549/ltcube_787536001_788140801_4FGL_J1338.0+6534_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17774549/Model_4FGL_J1338.0+6534_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) = 16153.3292409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1805       1.0000          .0000       .10000E+07
     2 'Prefactor '    .85593E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .23442E-02   1.0000          .0000       .10000E+07
     4 'norm      '    4.0796       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17247E-06   1.0000          .0000       .10000E+07
     6 'norm      '    4.7463       1.0000          .0000       .10000E+07
     7 'Prefactor '    .65085E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .24667E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.2622       1.0000          .0000       .10000E+07
    10 'Prefactor '    .62431E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    36.747       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.8763       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.7295       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.8418       1.0000          .0000       .10000E+07
    15 'norm      '    1.4077       1.0000          .0000       .10000E+07
    16 'Prefactor '    .75230E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .35166E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    37.554       1.0000          .0000       .10000E+07
    19 'Prefactor '    .21296E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .45665E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .16966       1.0000          .0000       .10000E+07
    22 'Normalizat'    .85881       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1315       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16153.32     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     1861 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1774        3.0348        .10654E-07    .16986E-02
   2  Prefactor     .38858E-09    3.4288       -.78560E-06** at limit **
   3  Prefactor     .10936E-07    5.2734       -.55865E-06** at limit **
   4  norm          4.0837        2.7235       -.93609E-07    .25034E-03
   5  Prefactor      .0000        1.3164       -.27317E-07** at limit **
   6  norm          4.7471        1.4070       -.77943E-08    .20283E-02
   7  Prefactor     .58148E-06    32.568       -.15257E-05** at limit **
   8  Prefactor     .11102E-09    3.9654        .33930E-06** at limit **
   9  Prefactor     3.4046        1.4146        .11667E-06   -.13212E-02
  10  Prefactor     .43371E-06    13.600       -.11603E-05** at limit **
  11  Prefactor     37.263        12.179        .98527E-06   -.16250    
  12  Prefactor     4.8789        2.6591       -.63811E-07    .19326E-02
  13  Prefactor     2.6701        7.2242       -.27586E-06    .57070E-03
  14  Prefactor     5.8434        5.1801        .13607E-05    .54276E-01
  15  norm          1.4055        1.4858       -.21856E-07    .24774E-02
  16  Prefactor     .88263E-08    6.1161        .78008E-06** at limit **
  17  Prefactor     .69578E-06    14.541        .78673E-06** at limit **
  18  Prefactor     37.547        1.6534        .72754E-07   -.81638E-02
  19  Prefactor      .0000        2.5435       -.22200E-06** at limit **
  20  Prefactor     .26090E-08    3.7994        .17937E-05** at limit **
  21  Prefactor     .67168E-08    1.5864        .91772E-06** at limit **
  22  Normalizat    .85840        .11165        .11948E-05    .12921E-03
  23  Prefactor     1.1319        .12992       -.17390E-05    .29346E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.17736
  Prefactor  = 3.88578e-10
  Prefactor  = 1.09357e-08
  norm       = 4.08372
  Prefactor  = 0
  norm       = 4.7471
  Prefactor  = 5.81479e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 3.40461
  Prefactor  = 4.33709e-07
  Prefactor  = 37.2629
  Prefactor  = 4.87889
  Prefactor  = 2.67011
  Prefactor  = 5.84336
  norm       = 1.40549
  Prefactor  = 8.82627e-09
  Prefactor  = 6.95777e-07
  Prefactor  = 37.5471
  Prefactor  = 0
  Prefactor  = 2.60902e-09
  Prefactor  = 6.71685e-09
  Normalizat = 0.858403
  Prefactor  = 1.13187
 **********
 **   18 **HESSE 
 **********

 FCN=   16153.32     FROM HESSE     STATUS=OK           418 CALLS     2279 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1774        3.0679        .10518E-02   -1.5686    
   2  Prefactor     .38858E-09    4.2224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10936E-07    5.4650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.0837        2.7339        .49892E-03   -1.5668    
   5  Prefactor      .0000        1.3116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.7471        1.4083        .46161E-03   -1.5664    
   7  Prefactor     .58148E-06    33.192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11102E-09    4.0716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4046        54.060        .56045E-03   -1.5671    
  10  Prefactor     .43371E-06    14.212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.263        32.422        .16498E-03   -1.5586    
  12  Prefactor     4.8789        2.6778        .45528E-03   -1.5664    
  13  Prefactor     2.6701        7.2979        .61609E-03   -1.5675    
  14  Prefactor     5.8434        8.2935        .41528E-03   -1.5660    
  15  norm          1.4055        1.4992        .91318E-03   -1.5684    
  16  Prefactor     .88263E-08    6.1862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .69578E-06    15.447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.547        21.879        .16320E-03   -1.5585    
  19  Prefactor      .0000        2.5489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .26090E-08    4.5096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .67168E-08    7.6086        .12343E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .85840        .94754E-01    .44373E-01   -.97938    
  23  Prefactor     1.1319        .10895        .53780E-01   -.88454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.79835e-07
Minuit parameter uncertainties:
  1  3.06795
  2  8.21043e-05
  3  0.000489018
  4  2.73387
  5  3.69239e-06
  6  1.40826
  7  0.00878636
  8  3.80404e-05
  9  27.1336
  10  0.00496548
  11  32.4218
  12  2.67777
  13  7.29792
  14  8.29352
  15  1.49923
  16  0.000467141
  17  0.00655672
  18  21.8793
  19  6.60976e-06
  20  0.000216507
  21  0.000452079
  22  0.0947719
  23  0.108969
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  4.879e+00  2.678e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  1.132e+00  1.090e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  8.584e-01  9.477e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.40
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 2.21e-08
Energy Flux (Fixed Index): 9.55e-06 +/- 5.24e-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) = 16153.3069559
delta logL = 0.00839348684531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16153.3012137
delta logL = 0.0141356975018

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2418       1.0000          .0000       .10000E+07
     2 'Index     '    2.6394       1.0000          .0000       10.000    
     3 'Normalizat'    .86089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1295       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+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.

 FCN=   16153.30     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      253 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2418        3.7356        .75110E-04   -.90223E-02
   2  Index         2.6394        .52207        .79490E-02    .32082E-04
   3  Normalizat    .86089        .11172        .22844E-03   -.10252E-04
   4  Prefactor     1.1295        .13039        .23799E-03    .16241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.24177
  Index      = 2.63941
  Normalizat = 0.860891
  Prefactor  = 1.12948
 **********
 **   18 **HESSE 
 **********

 FCN=   16153.30     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2418        3.4937        .30044E-05   -1.5662    
   2  Index         2.6394        .48814        .31796E-03   -.49169    
   3  Normalizat    .86089        .11182        .91377E-05   -.97848    
   4  Prefactor     1.1295        .13044        .95197E-05   -.88530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23767e-10
Minuit parameter uncertainties:
  1  3.49369
  2  0.489141
  3  0.111851
  4  0.130479
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) = 16153.3012137
delta logL = 0.0141356976783

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  5.242e+00  3.494e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.639e+00  4.891e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  1.129e+00  1.305e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  8.609e-01  1.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.41
Ra Dec: 204.516 65.570
Photon Index (Free Index): 2.64 +/- 0.49
Photon Flux (Free Index): 3.92e-08 +/- 2.28e-08
Energy Flux (Free Index): 9.91e-06 +/- 5.81e-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/17774549/cmap_HighResolution_787536001_788140801_4FGL_J1338.0+6534_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='9.91e-06', photon_flux_error='2.21e-08', dlogl='1.41e-02', energy_flux='9.55e-06', photon_flux2='3.92e-08', job_status='DONE', time_completed='2025-12-23 02:05:46.746425', photon_index_error2='0.49', photon_index2='2.64', ts='4.40', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='5.81e-06', EG='0.86', time_epoch_completed='1766484346.75', return_code='0', job_id='17774549', GAL2='1.13', EG2='0.86', return_code2='0', energy_flux_error='5.24e-06', photon_flux_error2='2.28e-08', ts2='4.41', photon_index='2.72' WHERE bin_id='907' AND source_name='4FGL J1338.0+6534' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 02:05:47 PST 2025

