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


Performing analysis on: 4FGL_J1338.9+1153_weekly_bin919
RA = 204.732, Dec = 11.8956
tmin = 794793601, tmax = 795398401
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='23581946', job_status='RUN', time_executed='2026-03-17 00:57:43.766304', time_epoch_executed='1773734263.77' WHERE source_name='4FGL J1338.9+1153' and cadence='weekly' and bin_id='919'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/23581946

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

Retrieving the FT1 file...

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

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

Retrieving 104 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/23581946/ft1_4FGL_J1338.9+1153_weekly_bin919.fits


Retrieving the FT1 file...

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

Retrieving 104 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/23581946/ft2_4FGL_J1338.9+1153_weekly_bin919.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/23581946/ft1_4FGL_J1338.9+1153_weekly_bin919.fits outfile=/lscratch/kocevski/23581946/ft1_filteredMKT_4FGL_J1338.9+1153_weekly_bin919.fits ra=204.732 dec=11.8956 rad=12.0 tmin=794793601.0 tmax=795398401.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.83
user 4.10
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/23581946/ft2_4FGL_J1338.9+1153_weekly_bin919.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/23581946/ft2_4FGL_J1338.9+1153_weekly_bin919.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/23581946/ft1_filteredMKT_4FGL_J1338.9+1153_weekly_bin919.fits evtable="EVENTS" outfile="/lscratch/kocevski/23581946/ft1_filtered_4FGL_J1338.9+1153_weekly_bin919.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.82
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 1431

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/23581946/ft1_filtered_4FGL_J1338.9+1153_weekly_bin919.fits" evtable="EVENTS" scfile=/lscratch/kocevski/23581946/ft2_4FGL_J1338.9+1153_weekly_bin919.fits sctable="SC_DATA" outfile=/lscratch/kocevski/23581946/ltcube_794793601_795398401_4FGL_J1338.9+1153_weekly_bin919.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/23581946/ft2_4FGL_J1338.9+1153_weekly_bin919.fits
.....................!
real 16.39
user 15.31
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/23581946/ft1_filtered_4FGL_J1338.9+1153_weekly_bin919.fits evtable="EVENTS" scfile=/lscratch/kocevski/23581946/ft2_4FGL_J1338.9+1153_weekly_bin919.fits sctable="SC_DATA" expcube=/lscratch/kocevski/23581946/ltcube_794793601_795398401_4FGL_J1338.9+1153_weekly_bin919.fits outfile=/lscratch/kocevski/23581946/expmap_794793601_795398401_4FGL_J1338.9+1153_weekly_bin919.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/23581946/ltcube_794793601_795398401_4FGL_J1338.9+1153_weekly_bin919.fits
.....................!
real 61.88
user 57.32
sys 3.48

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

Setting source of interest to:
4FGL J1338.9+1153 @ 204.732 11.8956

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/23581946/ft1_filtered_4FGL_J1338.9+1153_weekly_bin919.fits scfile=/lscratch/kocevski/23581946/ft2_4FGL_J1338.9+1153_weekly_bin919.fits outfile=/lscratch/kocevski/23581946/cmap_794793601_795398401_4FGL_J1338.9+1153_weekly_bin919.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.732 yref=11.8956 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 2.15
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/23581946/ft1_filtered_4FGL_J1338.9+1153_weekly_bin919.fits scfile=/lscratch/kocevski/23581946/ft2_4FGL_J1338.9+1153_weekly_bin919.fits outfile=/lscratch/kocevski/23581946/cmap_HighResolution_794793601_795398401_4FGL_J1338.9+1153_weekly_bin919.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.732 yref=11.8956 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 2.44
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/23581946/ft1_filtered_4FGL_J1338.9+1153_weekly_bin919.fits evtable="EVENTS" scfile=/lscratch/kocevski/23581946/ft2_4FGL_J1338.9+1153_weekly_bin919.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/23581946/Model_4FGL_J1338.9+1153_weekly_bin919.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/23581946/ft1_filtered_4FGL_J1338.9+1153_weekly_bin919.fits.....................!
real 41.33
user 37.18
sys 0.67

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/23581946/ft1_filtered_4FGL_J1338.9+1153_weekly_bin919.fits', '/lscratch/kocevski/23581946/ft2_4FGL_J1338.9+1153_weekly_bin919.fits', expMap='/lscratch/kocevski/23581946/expmap_794793601_795398401_4FGL_J1338.9+1153_weekly_bin919.fits', expCube='/lscratch/kocevski/23581946/ltcube_794793601_795398401_4FGL_J1338.9+1153_weekly_bin919.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/23581946/Model_4FGL_J1338.9+1153_weekly_bin919.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.9+1153'

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  8.644e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
310        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/23581946/ft1_filtered_4FGL_J1338.9+1153_weekly_bin919.fits
Spacecraft file(s): /lscratch/kocevski/23581946/ft2_4FGL_J1338.9+1153_weekly_bin919.fits
Exposure map: /lscratch/kocevski/23581946/expmap_794793601_795398401_4FGL_J1338.9+1153_weekly_bin919.fits
Exposure cube: /lscratch/kocevski/23581946/ltcube_794793601_795398401_4FGL_J1338.9+1153_weekly_bin919.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/23581946/Model_4FGL_J1338.9+1153_weekly_bin919.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) = 16080.851522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6692       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.058       1.0000          .0000       .10000E+07
     3 'norm      '    9.6000       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6604       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.451       1.0000          .0000       .10000E+07
     6 'norm      '    .28787       1.0000          .0000       .10000E+07
     7 'Prefactor '    22.253       1.0000          .0000       .10000E+07
     8 'Prefactor '    .97700E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    32.252       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.4014       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.3731       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7609       1.0000          .0000       .10000E+07
    13 'Prefactor '    .73855       1.0000          .0000       .10000E+07
    14 'Prefactor '    148.19       1.0000          .0000       .10000E+07
    15 'Prefactor '    .26202E-04   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2116       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88209       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16080.84     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     1226 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6911        7.0172        .10200E-06   -.14906E-01
   2  Prefactor     10.025        8.8071       -.66341E-07   -.22364E-01
   3  norm          9.6720        5.5088       -.15705E-07   -.18687E-01
   4  Prefactor     2.6504        3.6015       -.50273E-07   -.17494E-02
   5  Prefactor     11.438        4.2924       -.46656E-07    .80147E-03
   6  norm          .21826        23.468       -.46927E-06** at limit **
   7  Prefactor     21.780        18.972        .10720E-06   -.35273E-01
   8  Prefactor      .0000        .37222       -.21547E-07** at limit **
   9  Prefactor     32.062        12.134       -.39828E-07    .31745E-02
  10  Prefactor     2.4043        1.9721       -.75100E-07   -.67768E-02
  11  Prefactor     6.3227        6.1655       -.16486E-07    .20699E-02
  12  Prefactor     6.7304        6.0658        .24937E-07   -.46802E-01
  13  Prefactor     .74234        3.9557        .15239E-06    .31648E-01
  14  Prefactor     148.19        10.948       -.19920E-07   -.27698    
  15  Prefactor      .0000        7.1389       -.19638E-06** at limit **
  16  Normalizat    1.2120        .15448        .12374E-05    .16214E-03
  17  Prefactor     .88216        .11595       -.45595E-06    .12287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.69106
  Prefactor  = 10.0248
  norm       = 9.67196
  Prefactor  = 2.65043
  Prefactor  = 11.4377
  norm       = 0.218264
  Prefactor  = 21.7798
  Prefactor  = 0
  Prefactor  = 32.0623
  Prefactor  = 2.40433
  Prefactor  = 6.32272
  Prefactor  = 6.73043
  Prefactor  = 0.742337
  Prefactor  = 148.195
  Prefactor  = 0
  Normalizat = 1.21205
  Prefactor  = 0.882157
 **********
 **   18 **HESSE 
 **********

 FCN=   16080.84     FROM HESSE     STATUS=OK           267 CALLS     1493 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6911        7.9237        .42165E-03   -1.5660    
   2  Prefactor     10.025        10.696        .31571E-03   -1.5645    
   3  norm          9.6720        6.2644        .32319E-03   -1.5646    
   4  Prefactor     2.6504        3.6163        .62465E-03   -1.5675    
   5  Prefactor     11.438        11.436        .29580E-03   -1.5640    
   6  norm          .21826        4.0724        .78695E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.780        20.134        .21204E-03   -1.5615    
   8  Prefactor      .0000        .37197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.062        16.223        .17611E-03   -1.5595    
  10  Prefactor     2.4043        1.9712        .66049E-03   -1.5677    
  11  Prefactor     6.3227        6.1825        .39735E-03   -1.5658    
  12  Prefactor     6.7304        8.7035        .38565E-03   -1.5656    
  13  Prefactor     .74234        5.0098        .57633E-03   -1.5691    
  14  Prefactor     148.19        27.305        .82152E-04   -1.5464    
  15  Prefactor      .0000        7.0103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2120        .12917        .59152E-01   -.86231    
  17  Prefactor     .88216        .96055E-01    .44776E-01   -.96767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62046e-07
Minuit parameter uncertainties:
  1  7.9237
  2  10.6959
  3  6.26442
  4  3.61635
  5  11.4362
  6  1.88559
  7  20.1344
  8  2.14748e-06
  9  16.2233
  10  1.97122
  11  6.18251
  12  8.70355
  13  3.85691
  14  27.3052
  15  1.62632e-05
  16  0.129206
  17  0.0960737
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  2.178e+01  2.013e+01  0.000e+00  1.000e+06 ( 1.000e-14)
310        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  8.822e-01  9.607e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.212e+00  1.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.93
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 1.23e-08 +/- 1.14e-08
Energy Flux (Fixed Index): 7.83e-06 +/- 7.24e-06

TS (Fixed Index): 3.93
Ra Dec: 204.732 11.896
Photon Flux Upper Limit: 4.31941959588e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00324897126419 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/23581946/likelihoodResults_794793601_795398401_4FGL_J1338.9+1153_weekly_bin919.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): 0
logL (Free Index) = 16080.5768989
delta logL = 0.267245920235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16080.5535737
delta logL = 0.290571115636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.991       1.0000          .0000       .10000E+07
     2 'Index     '    1.5680       1.0000          .0000       10.000    
     3 'Normalizat'    1.2178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88058       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+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=   16080.55     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      246 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.002        25.649        .77007E-05   -.25452E-03
   2  Index         1.5687        .57908        .13913E-01    .63443E-05
   3  Normalizat    1.2179        .14716        .26104E-03   -.77956E-04
   4  Prefactor     .88045        .11499        .23426E-03    .55130E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.0017
  Index      = 1.56867
  Normalizat = 1.21792
  Prefactor  = 0.880448
 **********
 **   18 **HESSE 
 **********

 FCN=   16080.55     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.002        25.760        .15401E-05   -1.5604    
   2  Index         1.5687        .58180        .55651E-03   -.75634    
   3  Normalizat    1.2179        .14732        .10442E-04   -.86051    
   4  Prefactor     .88045        .11512        .93705E-05   -.96828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42962e-11
Minuit parameter uncertainties:
  1  25.7602
  2  0.58431
  3  0.147372
  4  0.115152
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) = 16080.5535724
delta logL = 0.290572398457

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  2.700e+01  2.576e+01  0.000e+00  1.000e+06 ( 1.000e-14)
310        Index:  1.569e+00  5.843e-01  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  8.804e-01  1.152e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.218e+00  1.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.51
Ra Dec: 204.732 11.896
Photon Index (Free Index): 1.57 +/- 0.58
Photon Flux (Free Index): 6.33e-09 +/- 8.70e-09
Energy Flux (Free Index): 1.59e-05 +/- 2.14e-05

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/23581946/cmap_HighResolution_794793601_795398401_4FGL_J1338.9+1153_weekly_bin919.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-03', comment='SUCCESS', photon_flux='1.23e-08', energy_flux2='1.59e-05', photon_flux_error='1.14e-08', dlogl='2.91e-01', energy_flux='7.83e-06', photon_flux2='6.33e-09', job_status='DONE', time_completed='2026-03-17 01:04:39.813258', photon_index_error2='0.58', photon_index2='1.57', ts='3.93', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='4.32e-08', energy_flux_error2='2.14e-05', EG='1.21', time_epoch_completed='1773734679.81', return_code='0', job_id='23581946', GAL2='0.88', EG2='1.22', return_code2='0', energy_flux_error='7.24e-06', photon_flux_error2='8.70e-09', ts2='4.51', photon_index='2.04' WHERE bin_id='919' AND source_name='4FGL J1338.9+1153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 17 01:04:40 PDT 2026

