 **********
 **   18 **HESSE 
 **********

 FCN=   4853.829     FROM HESSE     STATUS=OK           402 CALLS     2231 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0868        2.2131        .27304E-02   -1.5687    
   2  Prefactor      .0000        6.8453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     123.68        152.09        .91296E-04   -1.5486    
   4  Prefactor     .16653E-09    7.1477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.315        43.819        .15777E-03   -1.5581    
   6  norm          .55511E-10    .88096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5517        1.0799        .63885E-03   -1.5676    
   8  Prefactor     .11102E-09    20.508        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.0700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8626        6.8673        .74831E-03   -1.5681    
  11  Prefactor     .51126E-07    8.6552        .47422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0610        26.013        .12829E-02   -1.5687    
  13  norm          .33065        .59948        .14111E-02   -1.5696    
  14  norm          .72944        1.0389        .58371E-03   -1.5691    
  15  Prefactor     42.511        72.489        .15025E-03   -1.5578    
  16  Prefactor     3.7107        2.9565        .52393E-03   -1.5669    
  17  norm          1.0814        26.703        .12496E-02   -1.5687    
  18  Prefactor     .22204E-09    11.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .13916        .31572        .12108E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.624        8.5088        .27029E-03   -1.5634    
  21  Normalizat    1.0315        .18450        .42125E-01   -.91981    
  22  Prefactor     .82656        .18028        .44072E-01   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13508e-06
Minuit parameter uncertainties:
  1  2.21312
  2  2.45619e-05
  3  152.092
  4  7.34428e-05
  5  43.8195
  6  1.50324e-05
  7  1.07986
  8  9.67292e-05
  9  7.95221e-06
  10  6.86733
  11  0.0013306
  12  10.5072
  13  0.599477
  14  1.03892
  15  72.4906
  16  2.95653
  17  10.7476
  18  0.000103454
  19  0.315725
  20  8.5088
  21  0.184617
  22  0.180406
outfile=/lscratch/kocevski/36149171/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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/36149171/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
.....................!
real 8.83
user 8.12
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36149171/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36149171/ft2_4FGL_J0338.9-2848_daily_bin2199.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36149171/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149171/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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/36149171/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
.....................!
real 73.96
user 68.66
sys 4.26

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
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0338.9-2848 @ 54.7447 -28.8009

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36149171/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits scfile=/lscratch/kocevski/36149171/ft2_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149171/cmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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=54.7447 yref=-28.8009 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.87
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36149171/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits scfile=/lscratch/kocevski/36149171/ft2_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149171/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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=54.7447 yref=-28.8009 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.89
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36149171/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36149171/ft2_4FGL_J0338.9-2848_daily_bin2199.fiDone.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.110e-10  9.673e-05  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.745 -28.801
Photon Flux Upper Limit: 4.802870268e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00358445213687 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36148961/likelihoodResults_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.85254126
delta logL = -0.0232738055856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4853.8292679
delta logL = -4.48015271104e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      233 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .27036        .23576E-02** at limit **
   2  Index         3.9847        1.8199       -.59801E-04     .0000    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.66171E-05
   4  Prefactor     .82656        1.1744        .86536E-06   -.58019E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.9847
  Normalizat = 1.03155
  Prefactor  = 0.82656
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .27036        .23576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7239        2.3336       -.59801E-04   -.20448    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.91981    
   4  Prefactor     .82656        1.1744        .86536E-06   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.35732e-13
Minuit parameter uncertainties:
  1  4.8878e-07
  2  1.86467
  3  1.27169
  4  1.21331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 4853.82926746
delta logL = 9.54969436862e-11

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  0.000e+00  4.888e-07  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  3.985e+00  1.865e+00  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.213e+00  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.272e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.745 -28.801

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36148961/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2026-08-28 02:57:33.866920', job_id='36148961', GAL2='0.83', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1787911053.87', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2199' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 02:57:34 PDT 2026

/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)
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.110e-10  9.673e-05  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.745 -28.801
Photon Flux Upper Limit: 4.802870268e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00358445213687 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36148998/likelihoodResults_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.85254126
delta logL = -0.0232738055856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4853.8292679
delta logL = -4.48015271104e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      233 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .27036        .23576E-02** at limit **
   2  Index         3.9847        1.8199       -.59801E-04     .0000    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.66171E-05
   4  Prefactor     .82656        1.1744        .86536E-06   -.58019E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.9847
  Normalizat = 1.03155
  Prefactor  = 0.82656
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .27036        .23576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7239        2.3336       -.59801E-04   -.20448    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.91981    
   4  Prefactor     .82656        1.1744        .86536E-06   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.35732e-13
Minuit parameter uncertainties:
  1  4.8878e-07
  2  1.86467
  3  1.27169
  4  1.21331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 4853.82926746
delta logL = 9.54969436862e-11

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  0.000e+00  4.888e-07  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  3.985e+00  1.865e+00  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.213e+00  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.272e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.745 -28.801

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36148998/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2026-08-28 02:57:41.894241', job_id='36148998', GAL2='0.83', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1787911061.89', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2199' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 02:57:42 PDT 2026


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

ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/36149057/Model_4FGL_J0338.9-2848_daily_bin2199.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/36149057/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits.....................!
real 47.58
user 45.67
sys 0.77

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36149057/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits', '/lscratch/kocevski/36149057/ft2_4FGL_J0338.9-2848_daily_bin2199.fits', expMap='/lscratch/kocevski/36149057/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', expCube='/lscratch/kocevski/36149057/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36149057/Model_4FGL_J0338.9-2848_daily_bin2199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0338.9-2848'

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  7.603e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36149057/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits
Spacecraft file(s): /lscratch/kocevski/36149057/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure map: /lscratch/kocevski/36149057/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure cube: /lscratch/kocevski/36149057/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36149057/Model_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.83220947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0866       1.0000          .0000       .10000E+07
     2 'Prefactor '    .48244E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    119.99       1.0000          .0000       .10000E+07
     4 'Prefactor '    .59974E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    40.181       1.0000          .0000       .10000E+07
     6 'norm      '    .96642E-05   1.0000          .0000       .10000E+07
     7 'norm      '    2.5522       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24888E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14195E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9258       1.0000          .0000       .10000E+07
    11 'Prefactor '    .85355E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0190       1.0000          .0000       .10000E+07
    13 'norm      '    .32982       1.0000          .0000       .10000E+07
    14 'norm      '    .72917       1.0000          .0000       .10000E+07
    15 'Prefactor '    44.307       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.7115       1.0000          .0000       .10000E+07
    17 'norm      '    1.0308       1.0000          .0000       .10000E+07
    18 'Prefactor '    .70008E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .13876       1.0000          .0000       .10000E+07
    20 'norm      '    13.707       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0304       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82733       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1829 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0868        1.7936       -.17657E-06   -.43790E-03
   2  Prefactor      .0000        6.8671        .41014E-06** at limit **
   3  Prefactor     123.68        152.11        .14837E-05    .25877E-03
   4  Prefactor     .16653E-09    7.1785       -.18802E-05** at limit **
   5  Prefactor     40.315        43.818       -.32802E-05    .48008E-03
   6  norm          .55511E-10    .88008        .98764E-06** at limit **
   7  norm          2.5517        1.0798        .22000E-06   -.78016E-02
   8  Prefactor     .11102E-09    20.425       -.29460E-05** at limit **
   9  Prefactor      .0000        1.0675        .64791E-06** at limit **
  10  Prefactor     1.8626        4.8860       -.14053E-05    .53704E-02
  11  Prefactor     .51126E-07    95.497        .12790E-04** at limit **
  12  Prefactor     1.0610        25.988        .41955E-05   -.29159E-03
  13  norm          .33065        .49131       -.18625E-06    .95763E-02
  14  norm          .72944        1.0223       -.10920E-06    .69328E-02
  15  Prefactor     42.511        72.366        .14148E-05    .36974E-04
  16  Prefactor     3.7107        2.9487       -.98501E-07    .26530E-02
  17  norm          1.0814        28.139        .56582E-05    .29068E-02
  18  Prefactor     .22204E-09    11.275       -.78684E-05** at limit **
  19  norm          .13916        .31604        .34930E-06** at limit **
  20  norm          13.624        8.3683       -.92999E-06   -.82750E-03
  21  Normalizat    1.0315        .20860       -.53729E-05    .40629E-03
  22  Prefactor     .82656        .20491       -.15768E-04    .34047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08676
  Prefactor  = 0
  Prefactor  = 123.678
  Prefactor  = 1.66533e-10
  Prefactor  = 40.3148
  norm       = 5.55112e-11
  norm       = 2.55173
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 1.86259
  Prefactor  = 5.11258e-08
  Prefactor  = 1.06103
  norm       = 0.330653
  norm       = 0.729436
  Prefactor  = 42.5106
  Prefactor  = 3.7107
  norm       = 1.08141
  Prefactor  = 2.22045e-10
  norm       = 0.139156
  norm       = 13.624
  Normalizat = 1.03155
  Prefactor  = 0.82656
outfile=/lscratch/kocevski/36149306/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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/36149306/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
.....................!
real 8.98
user 8.24
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36149306/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36149306/ft2_4FGL_J0338.9-2848_daily_bin2199.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36149306/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149306/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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/36149306/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
.....................!
real 73.76
user 68.43
sys 4.25

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
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0338.9-2848 @ 54.7447 -28.8009

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36149306/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits scfile=/lscratch/kocevski/36149306/ft2_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149306/cmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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=54.7447 yref=-28.8009 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.84
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36149306/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits scfile=/lscratch/kocevski/36149306/ft2_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149306/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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=54.7447 yref=-28.8009 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.87
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36149306/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36149306/ft2_4FGL_J0338.9-2848_daily_bin2199.fi **********
 **   18 **HESSE 
 **********

 FCN=   4853.829     FROM HESSE     STATUS=OK           402 CALLS     2231 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0868        2.2131        .27304E-02   -1.5687    
   2  Prefactor      .0000        6.8453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     123.68        152.09        .91296E-04   -1.5486    
   4  Prefactor     .16653E-09    7.1477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.315        43.819        .15777E-03   -1.5581    
   6  norm          .55511E-10    .88096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5517        1.0799        .63885E-03   -1.5676    
   8  Prefactor     .11102E-09    20.508        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.0700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8626        6.8673        .74831E-03   -1.5681    
  11  Prefactor     .51126E-07    8.6552        .47422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0610        26.013        .12829E-02   -1.5687    
  13  norm          .33065        .59948        .14111E-02   -1.5696    
  14  norm          .72944        1.0389        .58371E-03   -1.5691    
  15  Prefactor     42.511        72.489        .15025E-03   -1.5578    
  16  Prefactor     3.7107        2.9565        .52393E-03   -1.5669    
  17  norm          1.0814        26.703        .12496E-02   -1.5687    
  18  Prefactor     .22204E-09    11.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .13916        .31572        .12108E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.624        8.5088        .27029E-03   -1.5634    
  21  Normalizat    1.0315        .18450        .42125E-01   -.91981    
  22  Prefactor     .82656        .18028        .44072E-01   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13508e-06
Minuit parameter uncertainties:
  1  2.21312
  2  2.45619e-05
  3  152.092
  4  7.34428e-05
  5  43.8195
  6  1.50324e-05
  7  1.07986
  8  9.67292e-05
  9  7.95221e-06
  10  6.86733
  11  0.0013306
  12  10.5072
  13  0.599477
  14  1.03892
  15  72.4906
  16  2.95653
  17  10.7476
  18  0.000103454
  19  0.315725
  20  8.5088
  21  0.184617
  22  0.180406
outfile=/lscratch/kocevski/36149337/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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/36149337/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
.....................!
real 8.31
user 7.70
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36149337/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36149337/ft2_4FGL_J0338.9-2848_daily_bin2199.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36149337/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149337/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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/36149337/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
.....................!
real 69.73
user 65.03
sys 3.84

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
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0338.9-2848 @ 54.7447 -28.8009

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36149337/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits scfile=/lscratch/kocevski/36149337/ft2_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149337/cmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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=54.7447 yref=-28.8009 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.26
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36149337/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits scfile=/lscratch/kocevski/36149337/ft2_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149337/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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=54.7447 yref=-28.8009 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.81
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36149337/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36149337/ft2_4FGL_J0338.9-2848_daily_bin2199.finumber of points = 7582
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0338.9-2848_daily_bin2199
RA = 54.7447, Dec = -28.8009
tmin = 809308801, tmax = 809568001
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='36149443', job_status='RUN', time_executed='2026-08-28 02:57:07.290551', time_epoch_executed='1787911027.29' WHERE source_name='4FGL J0338.9-2848' and cadence='daily' and bin_id='2199'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36149443

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36149443/ft1_4FGL_J0338.9-2848_daily_bin2199.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36149443/ft2_4FGL_J0338.9-2848_daily_bin2199.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36149443/ft1_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149443/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin2199.fits ra=54.7447 dec=-28.8009 rad=12.0 tmin=809308801.0 tmax=809568001.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.55
user 2.91
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36149443/ft2_4FGL_J0338.9-2848_daily_bin2199.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36149443/ft2_4FGL_J0338.9-2848_daily_bin2199.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/36149443/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" outfile="/lscratch/kocevski/36149443/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.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.76
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 431

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36149443/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36149443/ft2_4FGL_J0338.9-2848_daily_bin2199.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36149334/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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/36149334/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
.....................!
real 8.90
user 8.10
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36149334/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36149334/ft2_4FGL_J0338.9-2848_daily_bin2199.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36149334/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149334/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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/36149334/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
.....................!
real 72.97
user 67.72
sys 4.26

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
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0338.9-2848 @ 54.7447 -28.8009

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36149334/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits scfile=/lscratch/kocevski/36149334/ft2_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149334/cmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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=54.7447 yref=-28.8009 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.77
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36149334/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits scfile=/lscratch/kocevski/36149334/ft2_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149334/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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=54.7447 yref=-28.8009 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.81
user 0.22
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36149334/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36149334/ft2_4FGL_J0338.9-2848_daily_bin2199.fiDone.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.110e-10  9.673e-05  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.745 -28.801
Photon Flux Upper Limit: 4.802870268e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00358445213687 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36149057/likelihoodResults_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.85254126
delta logL = -0.0232738055856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4853.8292679
delta logL = -4.48015271104e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      233 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .27036        .23576E-02** at limit **
   2  Index         3.9847        1.8199       -.59801E-04     .0000    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.66171E-05
   4  Prefactor     .82656        1.1744        .86536E-06   -.58019E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.9847
  Normalizat = 1.03155
  Prefactor  = 0.82656
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .27036        .23576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7239        2.3336       -.59801E-04   -.20448    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.91981    
   4  Prefactor     .82656        1.1744        .86536E-06   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.35732e-13
Minuit parameter uncertainties:
  1  4.8878e-07
  2  1.86467
  3  1.27169
  4  1.21331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 4853.82926746
delta logL = 9.54969436862e-11

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  0.000e+00  4.888e-07  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  3.985e+00  1.865e+00  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.213e+00  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.272e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.745 -28.801

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36149057/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2026-08-28 02:58:46.872646', job_id='36149057', GAL2='0.83', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1787911126.87', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2199' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 02:58:47 PDT 2026

ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/36149110/Model_4FGL_J0338.9-2848_daily_bin2199.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/36149110/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits.....................!
real 44.82
user 42.64
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36149110/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits', '/lscratch/kocevski/36149110/ft2_4FGL_J0338.9-2848_daily_bin2199.fits', expMap='/lscratch/kocevski/36149110/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', expCube='/lscratch/kocevski/36149110/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36149110/Model_4FGL_J0338.9-2848_daily_bin2199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0338.9-2848'

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  7.603e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36149110/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits
Spacecraft file(s): /lscratch/kocevski/36149110/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure map: /lscratch/kocevski/36149110/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure cube: /lscratch/kocevski/36149110/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36149110/Model_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.83220947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0866       1.0000          .0000       .10000E+07
     2 'Prefactor '    .48244E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    119.99       1.0000          .0000       .10000E+07
     4 'Prefactor '    .59974E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    40.181       1.0000          .0000       .10000E+07
     6 'norm      '    .96642E-05   1.0000          .0000       .10000E+07
     7 'norm      '    2.5522       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24888E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14195E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9258       1.0000          .0000       .10000E+07
    11 'Prefactor '    .85355E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0190       1.0000          .0000       .10000E+07
    13 'norm      '    .32982       1.0000          .0000       .10000E+07
    14 'norm      '    .72917       1.0000          .0000       .10000E+07
    15 'Prefactor '    44.307       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.7115       1.0000          .0000       .10000E+07
    17 'norm      '    1.0308       1.0000          .0000       .10000E+07
    18 'Prefactor '    .70008E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .13876       1.0000          .0000       .10000E+07
    20 'norm      '    13.707       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0304       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82733       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1829 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0868        1.7936       -.17657E-06   -.43790E-03
   2  Prefactor      .0000        6.8671        .41014E-06** at limit **
   3  Prefactor     123.68        152.11        .14837E-05    .25877E-03
   4  Prefactor     .16653E-09    7.1785       -.18802E-05** at limit **
   5  Prefactor     40.315        43.818       -.32802E-05    .48008E-03
   6  norm          .55511E-10    .88008        .98764E-06** at limit **
   7  norm          2.5517        1.0798        .22000E-06   -.78016E-02
   8  Prefactor     .11102E-09    20.425       -.29460E-05** at limit **
   9  Prefactor      .0000        1.0675        .64791E-06** at limit **
  10  Prefactor     1.8626        4.8860       -.14053E-05    .53704E-02
  11  Prefactor     .51126E-07    95.497        .12790E-04** at limit **
  12  Prefactor     1.0610        25.988        .41955E-05   -.29159E-03
  13  norm          .33065        .49131       -.18625E-06    .95763E-02
  14  norm          .72944        1.0223       -.10920E-06    .69328E-02
  15  Prefactor     42.511        72.366        .14148E-05    .36974E-04
  16  Prefactor     3.7107        2.9487       -.98501E-07    .26530E-02
  17  norm          1.0814        28.139        .56582E-05    .29068E-02
  18  Prefactor     .22204E-09    11.275       -.78684E-05** at limit **
  19  norm          .13916        .31604        .34930E-06** at limit **
  20  norm          13.624        8.3683       -.92999E-06   -.82750E-03
  21  Normalizat    1.0315        .20860       -.53729E-05    .40629E-03
  22  Prefactor     .82656        .20491       -.15768E-04    .34047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08676
  Prefactor  = 0
  Prefactor  = 123.678
  Prefactor  = 1.66533e-10
  Prefactor  = 40.3148
  norm       = 5.55112e-11
  norm       = 2.55173
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 1.86259
  Prefactor  = 5.11258e-08
  Prefactor  = 1.06103
  norm       = 0.330653
  norm       = 0.729436
  Prefactor  = 42.5106
  Prefactor  = 3.7107
  norm       = 1.08141
  Prefactor  = 2.22045e-10
  norm       = 0.139156
  norm       = 13.624
  Normalizat = 1.03155
  Prefactor  = 0.82656
number of points = 7582
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0338.9-2848_daily_bin2199
RA = 54.7447, Dec = -28.8009
tmin = 809308801, tmax = 809568001
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='36149473', job_status='RUN', time_executed='2026-08-28 02:57:22.710892', time_epoch_executed='1787911042.71' WHERE source_name='4FGL J0338.9-2848' and cadence='daily' and bin_id='2199'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36149473

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36149473/ft1_4FGL_J0338.9-2848_daily_bin2199.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36149473/ft2_4FGL_J0338.9-2848_daily_bin2199.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36149473/ft1_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149473/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin2199.fits ra=54.7447 dec=-28.8009 rad=12.0 tmin=809308801.0 tmax=809568001.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.68
user 3.03
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36149473/ft2_4FGL_J0338.9-2848_daily_bin2199.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36149473/ft2_4FGL_J0338.9-2848_daily_bin2199.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/36149473/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" outfile="/lscratch/kocevski/36149473/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.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.86
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 431

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36149473/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36149473/ft2_4FGL_J0338.9-2848_daily_bin2199.fits sctable="SC_DATA"  **********
 **   18 **HESSE 
 **********

 FCN=   4853.829     FROM HESSE     STATUS=OK           402 CALLS     2231 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0868        2.2131        .27304E-02   -1.5687    
   2  Prefactor      .0000        6.8453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     123.68        152.09        .91296E-04   -1.5486    
   4  Prefactor     .16653E-09    7.1477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.315        43.819        .15777E-03   -1.5581    
   6  norm          .55511E-10    .88096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5517        1.0799        .63885E-03   -1.5676    
   8  Prefactor     .11102E-09    20.508        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.0700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8626        6.8673        .74831E-03   -1.5681    
  11  Prefactor     .51126E-07    8.6552        .47422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0610        26.013        .12829E-02   -1.5687    
  13  norm          .33065        .59948        .14111E-02   -1.5696    
  14  norm          .72944        1.0389        .58371E-03   -1.5691    
  15  Prefactor     42.511        72.489        .15025E-03   -1.5578    
  16  Prefactor     3.7107        2.9565        .52393E-03   -1.5669    
  17  norm          1.0814        26.703        .12496E-02   -1.5687    
  18  Prefactor     .22204E-09    11.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .13916        .31572        .12108E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.624        8.5088        .27029E-03   -1.5634    
  21  Normalizat    1.0315        .18450        .42125E-01   -.91981    
  22  Prefactor     .82656        .18028        .44072E-01   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13508e-06
Minuit parameter uncertainties:
  1  2.21312
  2  2.45619e-05
  3  152.092
  4  7.34428e-05
  5  43.8195
  6  1.50324e-05
  7  1.07986
  8  9.67292e-05
  9  7.95221e-06
  10  6.86733
  11  0.0013306
  12  10.5072
  13  0.599477
  14  1.03892
  15  72.4906
  16  2.95653
  17  10.7476
  18  0.000103454
  19  0.315725
  20  8.5088
  21  0.184617
  22  0.180406
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/36149171/Model_4FGL_J0338.9-2848_daily_bin2199.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/36149171/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits.....................!
real 44.62
user 43.02
sys 0.67

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36149171/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits', '/lscratch/kocevski/36149171/ft2_4FGL_J0338.9-2848_daily_bin2199.fits', expMap='/lscratch/kocevski/36149171/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', expCube='/lscratch/kocevski/36149171/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36149171/Model_4FGL_J0338.9-2848_daily_bin2199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0338.9-2848'

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  7.603e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36149171/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits
Spacecraft file(s): /lscratch/kocevski/36149171/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure map: /lscratch/kocevski/36149171/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure cube: /lscratch/kocevski/36149171/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36149171/Model_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.83220947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0866       1.0000          .0000       .10000E+07
     2 'Prefactor '    .48244E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    119.99       1.0000          .0000       .10000E+07
     4 'Prefactor '    .59974E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    40.181       1.0000          .0000       .10000E+07
     6 'norm      '    .96642E-05   1.0000          .0000       .10000E+07
     7 'norm      '    2.5522       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24888E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14195E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9258       1.0000          .0000       .10000E+07
    11 'Prefactor '    .85355E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0190       1.0000          .0000       .10000E+07
    13 'norm      '    .32982       1.0000          .0000       .10000E+07
    14 'norm      '    .72917       1.0000          .0000       .10000E+07
    15 'Prefactor '    44.307       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.7115       1.0000          .0000       .10000E+07
    17 'norm      '    1.0308       1.0000          .0000       .10000E+07
    18 'Prefactor '    .70008E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .13876       1.0000          .0000       .10000E+07
    20 'norm      '    13.707       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0304       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82733       1.0000          .0000   Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.110e-10  9.673e-05  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.745 -28.801
Photon Flux Upper Limit: 4.802870268e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00358445213687 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36149110/likelihoodResults_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.85254126
delta logL = -0.0232738055856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4853.8292679
delta logL = -4.48015271104e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      233 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .27036        .23576E-02** at limit **
   2  Index         3.9847        1.8199       -.59801E-04     .0000    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.66171E-05
   4  Prefactor     .82656        1.1744        .86536E-06   -.58019E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.9847
  Normalizat = 1.03155
  Prefactor  = 0.82656
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .27036        .23576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7239        2.3336       -.59801E-04   -.20448    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.91981    
   4  Prefactor     .82656        1.1744        .86536E-06   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.35732e-13
Minuit parameter uncertainties:
  1  4.8878e-07
  2  1.86467
  3  1.27169
  4  1.21331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 4853.82926746
delta logL = 9.54969436862e-11

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  0.000e+00  4.888e-07  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  3.985e+00  1.865e+00  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.213e+00  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.272e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.745 -28.801

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36149110/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2026-08-28 02:59:19.953618', job_id='36149110', GAL2='0.83', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1787911159.95', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2199' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 02:59:20 PDT 2026

    10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1829 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0868        1.7936       -.17657E-06   -.43790E-03
   2  Prefactor      .0000        6.8671        .41014E-06** at limit **
   3  Prefactor     123.68        152.11        .14837E-05    .25877E-03
   4  Prefactor     .16653E-09    7.1785       -.18802E-05** at limit **
   5  Prefactor     40.315        43.818       -.32802E-05    .48008E-03
   6  norm          .55511E-10    .88008        .98764E-06** at limit **
   7  norm          2.5517        1.0798        .22000E-06   -.78016E-02
   8  Prefactor     .11102E-09    20.425       -.29460E-05** at limit **
   9  Prefactor      .0000        1.0675        .64791E-06** at limit **
  10  Prefactor     1.8626        4.8860       -.14053E-05    .53704E-02
  11  Prefactor     .51126E-07    95.497        .12790E-04** at limit **
  12  Prefactor     1.0610        25.988        .41955E-05   -.29159E-03
  13  norm          .33065        .49131       -.18625E-06    .95763E-02
  14  norm          .72944        1.0223       -.10920E-06    .69328E-02
  15  Prefactor     42.511        72.366        .14148E-05    .36974E-04
  16  Prefactor     3.7107        2.9487       -.98501E-07    .26530E-02
  17  norm          1.0814        28.139        .56582E-05    .29068E-02
  18  Prefactor     .22204E-09    11.275       -.78684E-05** at limit **
  19  norm          .13916        .31604        .34930E-06** at limit **
  20  norm          13.624        8.3683       -.92999E-06   -.82750E-03
  21  Normalizat    1.0315        .20860       -.53729E-05    .40629E-03
  22  Prefactor     .82656        .20491       -.15768E-04    .34047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08676
  Prefactor  = 0
  Prefactor  = 123.678
  Prefactor  = 1.66533e-10
  Prefactor  = 40.3148
  norm       = 5.55112e-11
  norm       = 2.55173
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 1.86259
  Prefactor  = 5.11258e-08
  Prefactor  = 1.06103
  norm       = 0.330653
  norm       = 0.729436
  Prefactor  = 42.5106
  Prefactor  = 3.7107
  norm       = 1.08141
  Prefactor  = 2.22045e-10
  norm       = 0.139156
  norm       = 13.624
  Normalizat = 1.03155
  Prefactor  = 0.82656
number of points = 7582
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0338.9-2848_daily_bin2199
RA = 54.7447, Dec = -28.8009
tmin = 809308801, tmax = 809568001
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='36149517', job_status='RUN', time_executed='2026-08-28 02:57:44.702370', time_epoch_executed='1787911064.7' WHERE source_name='4FGL J0338.9-2848' and cadence='daily' and bin_id='2199'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36149517

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36149517/ft1_4FGL_J0338.9-2848_daily_bin2199.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36149517/ft2_4FGL_J0338.9-2848_daily_bin2199.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36149517/ft1_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149517/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin2199.fits ra=54.7447 dec=-28.8009 rad=12.0 tmin=809308801.0 tmax=809568001.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.73
user 3.07
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36149517/ft2_4FGL_J0338.9-2848_daily_bin2199.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36149517/ft2_4FGL_J0338.9-2848_daily_bin2199.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/36149517/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" outfile="/lscratch/kocevski/36149517/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.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.74
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 431

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36149517/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36149517/ft2_4FGL_J0338.9-2848_daily_bin2199.fits sctable="SC_DATA" o **********
 **   18 **HESSE 
 **********

 FCN=   4853.829     FROM HESSE     STATUS=OK           402 CALLS     2231 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0868        2.2131        .27304E-02   -1.5687    
   2  Prefactor      .0000        6.8453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     123.68        152.09        .91296E-04   -1.5486    
   4  Prefactor     .16653E-09    7.1477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.315        43.819        .15777E-03   -1.5581    
   6  norm          .55511E-10    .88096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5517        1.0799        .63885E-03   -1.5676    
   8  Prefactor     .11102E-09    20.508        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.0700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8626        6.8673        .74831E-03   -1.5681    
  11  Prefactor     .51126E-07    8.6552        .47422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0610        26.013        .12829E-02   -1.5687    
  13  norm          .33065        .59948        .14111E-02   -1.5696    
  14  norm          .72944        1.0389        .58371E-03   -1.5691    
  15  Prefactor     42.511        72.489        .15025E-03   -1.5578    
  16  Prefactor     3.7107        2.9565        .52393E-03   -1.5669    
  17  norm          1.0814        26.703        .12496E-02   -1.5687    
  18  Prefactor     .22204E-09    11.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .13916        .31572        .12108E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.624        8.5088        .27029E-03   -1.5634    
  21  Normalizat    1.0315        .18450        .42125E-01   -.91981    
  22  Prefactor     .82656        .18028        .44072E-01   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13508e-06
Minuit parameter uncertainties:
  1  2.21312
  2  2.45619e-05
  3  152.092
  4  7.34428e-05
  5  43.8195
  6  1.50324e-05
  7  1.07986
  8  9.67292e-05
  9  7.95221e-06
  10  6.86733
  11  0.0013306
  12  10.5072
  13  0.599477
  14  1.03892
  15  72.4906
  16  2.95653
  17  10.7476
  18  0.000103454
  19  0.315725
  20  8.5088
  21  0.184617
  22  0.180406
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.110e-10  9.673e-05  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.745 -28.801
Photon Flux Upper Limit: 4.802870268e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00358445213687 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36149171/likelihoodResults_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.85254126
delta logL = -0.0232738055856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4853.8292679
delta logL = -4.48015271104e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      233 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .27036        .23576E-02** at limit **
   2  Index         3.9847        1.8199       -.59801E-04     .0000    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.66171E-05
   4  Prefactor     .82656        1.1744        .86536E-06   -.58019E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.9847
  Normalizat = 1.03155
  Prefactor  = 0.82656
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .27036        .23576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7239        2.3336       -.59801E-04   -.20448    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.91981    
   4  Prefactor     .82656        1.1744        .86536E-06   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.35732e-13
Minuit parameter uncertainties:
  1  4.8878e-07
  2  1.86467
  3  1.27169
  4  1.21331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 4853.82926746
delta logL = 9.54969436862e-11

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  0.000e+00  4.888e-07  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  3.985e+00  1.865e+00  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.213e+00  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.272e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.745 -28.801

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36149171/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2026-08-28 02:59:48.773841', job_id='36149171', GAL2='0.83', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1787911188.77', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2199' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 02:59:49 PDT 2026

outfile=/lscratch/kocevski/36149443/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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/36149443/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
.....................!
real 8.65
user 7.98
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36149443/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36149443/ft2_4FGL_J0338.9-2848_daily_bin2199.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36149443/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149443/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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/36149443/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
.....................!
real 72.83
user 67.63
sys 4.21

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
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0338.9-2848 @ 54.7447 -28.8009

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36149443/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits scfile=/lscratch/kocevski/36149443/ft2_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149443/cmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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=54.7447 yref=-28.8009 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.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36149443/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits scfile=/lscratch/kocevski/36149443/ft2_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149443/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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=54.7447 yref=-28.8009 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.90
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36149443/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36149443/ft2_4FGL_J0338.9-2848_daily_bin2199.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36149306/Model_4FGL_J0338.9-2848_daily_bin2199.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/36149306/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits.....................!
real 44.73
user 43.11
sys 0.63

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36149306/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits', '/lscratch/kocevski/36149306/ft2_4FGL_J0338.9-2848_daily_bin2199.fits', expMap='/lscratch/kocevski/36149306/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', expCube='/lscratch/kocevski/36149306/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36149306/Model_4FGL_J0338.9-2848_daily_bin2199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0338.9-2848'

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  7.603e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36149306/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits
Spacecraft file(s): /lscratch/kocevski/36149306/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure map: /lscratch/kocevski/36149306/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure cube: /lscratch/kocevski/36149306/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36149306/Model_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.83220947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0866       1.0000          .0000       .10000E+07
     2 'Prefactor '    .48244E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    119.99       1.0000          .0000       .10000E+07
     4 'Prefactor '    .59974E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    40.181       1.0000          .0000       .10000E+07
     6 'norm      '    .96642E-05   1.0000          .0000       .10000E+07
     7 'norm      '    2.5522       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24888E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14195E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9258       1.0000          .0000       .10000E+07
    11 'Prefactor '    .85355E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0190       1.0000          .0000       .10000E+07
    13 'norm      '    .32982       1.0000          .0000       .10000E+07
    14 'norm      '    .72917       1.0000          .0000       .10000E+07
    15 'Prefactor '    44.307       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.7115       1.0000          .0000       .10000E+07
    17 'norm      '    1.0308       1.0000          .0000       .10000E+07
    18 'Prefactor '    .70008E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .13876       1.0000          .0000       .10000E+07
    20 'norm      '    13.707       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0304       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82733       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1829 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0868        1.7936       -.17657E-06   -.43790E-03
   2  Prefactor      .0000        6.8671        .41014E-06** at limit **
   3  Prefactor     123.68        152.11        .14837E-05    .25877E-03
   4  Prefactor     .16653E-09    7.1785       -.18802E-05** at limit **
   5  Prefactor     40.315        43.818       -.32802E-05    .48008E-03
   6  norm          .55511E-10    .88008        .98764E-06** at limit **
   7  norm          2.5517        1.0798        .22000E-06   -.78016E-02
   8  Prefactor     .11102E-09    20.425       -.29460E-05** at limit **
   9  Prefactor      .0000        1.0675        .64791E-06** at limit **
  10  Prefactor     1.8626        4.8860       -.14053E-05    .53704E-02
  11  Prefactor     .51126E-07    95.497        .12790E-04** at limit **
  12  Prefactor     1.0610        25.988        .41955E-05   -.29159E-03
  13  norm          .33065        .49131       -.18625E-06    .95763E-02
  14  norm          .72944        1.0223       -.10920E-06    .69328E-02
  15  Prefactor     42.511        72.366        .14148E-05    .36974E-04
  16  Prefactor     3.7107        2.9487       -.98501E-07    .26530E-02
  17  norm          1.0814        28.139        .56582E-05    .29068E-02
  18  Prefactor     .22204E-09    11.275       -.78684E-05** at limit **
  19  norm          .13916        .31604        .34930E-06** at limit **
  20  norm          13.624        8.3683       -.92999E-06   -.82750E-03
  21  Normalizat    1.0315        .20860       -.53729E-05    .40629E-03
  22  Prefactor     .82656        .20491       -.15768E-04    .34047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08676
  Prefactor  = 0
  Prefactor  = 123.678
  Prefactor  = 1.66533e-10
  Prefactor  = 40.3148
  norm       = 5.55112e-11
  norm       = 2.55173
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 1.86259
  Prefactor  = 5.11258e-08
  Prefactor  = 1.06103
  norm       = 0.330653
  norm       = 0.729436
  Prefactor  = 42.5106
  Prefactor  = 3.7107
  norm       = 1.08141
  Prefactor  = 2.22045e-10
  norm       = 0.139156
  norm       = 13.624
  Normalizat = 1.03155
  Prefactor  = 0.82656
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/36149337/Model_4FGL_J0338.9-2848_daily_bin2199.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/36149337/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits.....................!
real 44.20
user 42.34
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36149337/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits', '/lscratch/kocevski/36149337/ft2_4FGL_J0338.9-2848_daily_bin2199.fits', expMap='/lscratch/kocevski/36149337/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', expCube='/lscratch/kocevski/36149337/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36149337/Model_4FGL_J0338.9-2848_daily_bin2199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0338.9-2848'

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  7.603e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36149337/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits
Spacecraft file(s): /lscratch/kocevski/36149337/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure map: /lscratch/kocevski/36149337/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure cube: /lscratch/kocevski/36149337/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36149337/Model_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.83220947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0866       1.0000          .0000       .10000E+07
     2 'Prefactor '    .48244E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    119.99       1.0000          .0000       .10000E+07
     4 'Prefactor '    .59974E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    40.181       1.0000          .0000       .10000E+07
     6 'norm      '    .96642E-05   1.0000          .0000       .10000E+07
     7 'norm      '    2.5522       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24888E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14195E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9258       1.0000          .0000       .10000E+07
    11 'Prefactor '    .85355E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0190       1.0000          .0000       .10000E+07
    13 'norm      '    .32982       1.0000          .0000       .10000E+07
    14 'norm      '    .72917       1.0000          .0000       .10000E+07
    15 'Prefactor '    44.307       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.7115       1.0000          .0000       .10000E+07
    17 'norm      '    1.0308       1.0000          .0000       .10000E+07
    18 'Prefactor '    .70008E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .13876       1.0000          .0000       .10000E+07
    20 'norm      '    13.707       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0304       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82733       1.0000          .0000    **********
 **   18 **HESSE 
 **********

 FCN=   4853.829     FROM HESSE     STATUS=OK           402 CALLS     2231 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0868        2.2131        .27304E-02   -1.5687    
   2  Prefactor      .0000        6.8453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     123.68        152.09        .91296E-04   -1.5486    
   4  Prefactor     .16653E-09    7.1477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.315        43.819        .15777E-03   -1.5581    
   6  norm          .55511E-10    .88096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5517        1.0799        .63885E-03   -1.5676    
   8  Prefactor     .11102E-09    20.508        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.0700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8626        6.8673        .74831E-03   -1.5681    
  11  Prefactor     .51126E-07    8.6552        .47422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0610        26.013        .12829E-02   -1.5687    
  13  norm          .33065        .59948        .14111E-02   -1.5696    
  14  norm          .72944        1.0389        .58371E-03   -1.5691    
  15  Prefactor     42.511        72.489        .15025E-03   -1.5578    
  16  Prefactor     3.7107        2.9565        .52393E-03   -1.5669    
  17  norm          1.0814        26.703        .12496E-02   -1.5687    
  18  Prefactor     .22204E-09    11.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .13916        .31572        .12108E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.624        8.5088        .27029E-03   -1.5634    
  21  Normalizat    1.0315        .18450        .42125E-01   -.91981    
  22  Prefactor     .82656        .18028        .44072E-01   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13508e-06
Minuit parameter uncertainties:
  1  2.21312
  2  2.45619e-05
  3  152.092
  4  7.34428e-05
  5  43.8195
  6  1.50324e-05
  7  1.07986
  8  9.67292e-05
  9  7.95221e-06
  10  6.86733
  11  0.0013306
  12  10.5072
  13  0.599477
  14  1.03892
  15  72.4906
  16  2.95653
  17  10.7476
  18  0.000103454
  19  0.315725
  20  8.5088
  21  0.184617
  22  0.180406
    10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1829 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0868        1.7936       -.17657E-06   -.43790E-03
   2  Prefactor      .0000        6.8671        .41014E-06** at limit **
   3  Prefactor     123.68        152.11        .14837E-05    .25877E-03
   4  Prefactor     .16653E-09    7.1785       -.18802E-05** at limit **
   5  Prefactor     40.315        43.818       -.32802E-05    .48008E-03
   6  norm          .55511E-10    .88008        .98764E-06** at limit **
   7  norm          2.5517        1.0798        .22000E-06   -.78016E-02
   8  Prefactor     .11102E-09    20.425       -.29460E-05** at limit **
   9  Prefactor      .0000        1.0675        .64791E-06** at limit **
  10  Prefactor     1.8626        4.8860       -.14053E-05    .53704E-02
  11  Prefactor     .51126E-07    95.497        .12790E-04** at limit **
  12  Prefactor     1.0610        25.988        .41955E-05   -.29159E-03
  13  norm          .33065        .49131       -.18625E-06    .95763E-02
  14  norm          .72944        1.0223       -.10920E-06    .69328E-02
  15  Prefactor     42.511        72.366        .14148E-05    .36974E-04
  16  Prefactor     3.7107        2.9487       -.98501E-07    .26530E-02
  17  norm          1.0814        28.139        .56582E-05    .29068E-02
  18  Prefactor     .22204E-09    11.275       -.78684E-05** at limit **
  19  norm          .13916        .31604        .34930E-06** at limit **
  20  norm          13.624        8.3683       -.92999E-06   -.82750E-03
  21  Normalizat    1.0315        .20860       -.53729E-05    .40629E-03
  22  Prefactor     .82656        .20491       -.15768E-04    .34047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08676
  Prefactor  = 0
  Prefactor  = 123.678
  Prefactor  = 1.66533e-10
  Prefactor  = 40.3148
  norm       = 5.55112e-11
  norm       = 2.55173
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 1.86259
  Prefactor  = 5.11258e-08
  Prefactor  = 1.06103
  norm       = 0.330653
  norm       = 0.729436
  Prefactor  = 42.5106
  Prefactor  = 3.7107
  norm       = 1.08141
  Prefactor  = 2.22045e-10
  norm       = 0.139156
  norm       = 13.624
  Normalizat = 1.03155
  Prefactor  = 0.82656
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/36149334/Model_4FGL_J0338.9-2848_daily_bin2199.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/36149334/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits.....................!
real 44.98
user 42.85
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36149334/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits', '/lscratch/kocevski/36149334/ft2_4FGL_J0338.9-2848_daily_bin2199.fits', expMap='/lscratch/kocevski/36149334/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', expCube='/lscratch/kocevski/36149334/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36149334/Model_4FGL_J0338.9-2848_daily_bin2199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0338.9-2848'

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  7.603e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36149334/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits
Spacecraft file(s): /lscratch/kocevski/36149334/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure map: /lscratch/kocevski/36149334/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure cube: /lscratch/kocevski/36149334/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36149334/Model_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.83220947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0866       1.0000          .0000       .10000E+07
     2 'Prefactor '    .48244E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    119.99       1.0000          .0000       .10000E+07
     4 'Prefactor '    .59974E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    40.181       1.0000          .0000       .10000E+07
     6 'norm      '    .96642E-05   1.0000          .0000       .10000E+07
     7 'norm      '    2.5522       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24888E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14195E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9258       1.0000          .0000       .10000E+07
    11 'Prefactor '    .85355E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0190       1.0000          .0000       .10000E+07
    13 'norm      '    .32982       1.0000          .0000       .10000E+07
    14 'norm      '    .72917       1.0000          .0000       .10000E+07
    15 'Prefactor '    44.307       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.7115       1.0000          .0000       .10000E+07
    17 'norm      '    1.0308       1.0000          .0000       .10000E+07
    18 'Prefactor '    .70008E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .13876       1.0000          .0000       .10000E+07
    20 'norm      '    13.707       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0304       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82733       1.0000          .0000   outfile=/lscratch/kocevski/36149473/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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/36149473/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
.....................!
real 8.98
user 8.21
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36149473/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36149473/ft2_4FGL_J0338.9-2848_daily_bin2199.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36149473/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149473/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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/36149473/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
.....................!
real 73.37
user 68.30
sys 4.13

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
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0338.9-2848 @ 54.7447 -28.8009

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36149473/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits scfile=/lscratch/kocevski/36149473/ft2_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149473/cmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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=54.7447 yref=-28.8009 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.69
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36149473/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits scfile=/lscratch/kocevski/36149473/ft2_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149473/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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=54.7447 yref=-28.8009 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.65
user 0.22
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36149473/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36149473/ft2_4FGL_J0338.9-2848_daily_bin2199.fi    10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1829 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0868        1.7936       -.17657E-06   -.43790E-03
   2  Prefactor      .0000        6.8671        .41014E-06** at limit **
   3  Prefactor     123.68        152.11        .14837E-05    .25877E-03
   4  Prefactor     .16653E-09    7.1785       -.18802E-05** at limit **
   5  Prefactor     40.315        43.818       -.32802E-05    .48008E-03
   6  norm          .55511E-10    .88008        .98764E-06** at limit **
   7  norm          2.5517        1.0798        .22000E-06   -.78016E-02
   8  Prefactor     .11102E-09    20.425       -.29460E-05** at limit **
   9  Prefactor      .0000        1.0675        .64791E-06** at limit **
  10  Prefactor     1.8626        4.8860       -.14053E-05    .53704E-02
  11  Prefactor     .51126E-07    95.497        .12790E-04** at limit **
  12  Prefactor     1.0610        25.988        .41955E-05   -.29159E-03
  13  norm          .33065        .49131       -.18625E-06    .95763E-02
  14  norm          .72944        1.0223       -.10920E-06    .69328E-02
  15  Prefactor     42.511        72.366        .14148E-05    .36974E-04
  16  Prefactor     3.7107        2.9487       -.98501E-07    .26530E-02
  17  norm          1.0814        28.139        .56582E-05    .29068E-02
  18  Prefactor     .22204E-09    11.275       -.78684E-05** at limit **
  19  norm          .13916        .31604        .34930E-06** at limit **
  20  norm          13.624        8.3683       -.92999E-06   -.82750E-03
  21  Normalizat    1.0315        .20860       -.53729E-05    .40629E-03
  22  Prefactor     .82656        .20491       -.15768E-04    .34047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08676
  Prefactor  = 0
  Prefactor  = 123.678
  Prefactor  = 1.66533e-10
  Prefactor  = 40.3148
  norm       = 5.55112e-11
  norm       = 2.55173
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 1.86259
  Prefactor  = 5.11258e-08
  Prefactor  = 1.06103
  norm       = 0.330653
  norm       = 0.729436
  Prefactor  = 42.5106
  Prefactor  = 3.7107
  norm       = 1.08141
  Prefactor  = 2.22045e-10
  norm       = 0.139156
  norm       = 13.624
  Normalizat = 1.03155
  Prefactor  = 0.82656
 **********
 **   18 **HESSE 
 **********

 FCN=   4853.829     FROM HESSE     STATUS=OK           402 CALLS     2231 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0868        2.2131        .27304E-02   -1.5687    
   2  Prefactor      .0000        6.8453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     123.68        152.09        .91296E-04   -1.5486    
   4  Prefactor     .16653E-09    7.1477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.315        43.819        .15777E-03   -1.5581    
   6  norm          .55511E-10    .88096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5517        1.0799        .63885E-03   -1.5676    
   8  Prefactor     .11102E-09    20.508        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.0700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8626        6.8673        .74831E-03   -1.5681    
  11  Prefactor     .51126E-07    8.6552        .47422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0610        26.013        .12829E-02   -1.5687    
  13  norm          .33065        .59948        .14111E-02   -1.5696    
  14  norm          .72944        1.0389        .58371E-03   -1.5691    
  15  Prefactor     42.511        72.489        .15025E-03   -1.5578    
  16  Prefactor     3.7107        2.9565        .52393E-03   -1.5669    
  17  norm          1.0814        26.703        .12496E-02   -1.5687    
  18  Prefactor     .22204E-09    11.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .13916        .31572        .12108E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.624        8.5088        .27029E-03   -1.5634    
  21  Normalizat    1.0315        .18450        .42125E-01   -.91981    
  22  Prefactor     .82656        .18028        .44072E-01   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13508e-06
Minuit parameter uncertainties:
  1  2.21312
  2  2.45619e-05
  3  152.092
  4  7.34428e-05
  5  43.8195
  6  1.50324e-05
  7  1.07986
  8  9.67292e-05
  9  7.95221e-06
  10  6.86733
  11  0.0013306
  12  10.5072
  13  0.599477
  14  1.03892
  15  72.4906
  16  2.95653
  17  10.7476
  18  0.000103454
  19  0.315725
  20  8.5088
  21  0.184617
  22  0.180406
 **********
 **   18 **HESSE 
 **********

 FCN=   4853.829     FROM HESSE     STATUS=OK           402 CALLS     2231 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0868        2.2131        .27304E-02   -1.5687    
   2  Prefactor      .0000        6.8453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     123.68        152.09        .91296E-04   -1.5486    
   4  Prefactor     .16653E-09    7.1477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.315        43.819        .15777E-03   -1.5581    
   6  norm          .55511E-10    .88096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5517        1.0799        .63885E-03   -1.5676    
   8  Prefactor     .11102E-09    20.508        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.0700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8626        6.8673        .74831E-03   -1.5681    
  11  Prefactor     .51126E-07    8.6552        .47422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0610        26.013        .12829E-02   -1.5687    
  13  norm          .33065        .59948        .14111E-02   -1.5696    
  14  norm          .72944        1.0389        .58371E-03   -1.5691    
  15  Prefactor     42.511        72.489        .15025E-03   -1.5578    
  16  Prefactor     3.7107        2.9565        .52393E-03   -1.5669    
  17  norm          1.0814        26.703        .12496E-02   -1.5687    
  18  Prefactor     .22204E-09    11.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .13916        .31572        .12108E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.624        8.5088        .27029E-03   -1.5634    
  21  Normalizat    1.0315        .18450        .42125E-01   -.91981    
  22  Prefactor     .82656        .18028        .44072E-01   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13508e-06
Minuit parameter uncertainties:
  1  2.21312
  2  2.45619e-05
  3  152.092
  4  7.34428e-05
  5  43.8195
  6  1.50324e-05
  7  1.07986
  8  9.67292e-05
  9  7.95221e-06
  10  6.86733
  11  0.0013306
  12  10.5072
  13  0.599477
  14  1.03892
  15  72.4906
  16  2.95653
  17  10.7476
  18  0.000103454
  19  0.315725
  20  8.5088
  21  0.184617
  22  0.180406
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.110e-10  9.673e-05  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.745 -28.801
Photon Flux Upper Limit: 4.802870268e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00358445213687 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36149306/likelihoodResults_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.85254126
delta logL = -0.0232738055856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4853.8292679
delta logL = -4.48015271104e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      233 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .27036        .23576E-02** at limit **
   2  Index         3.9847        1.8199       -.59801E-04     .0000    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.66171E-05
   4  Prefactor     .82656        1.1744        .86536E-06   -.58019E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.9847
  Normalizat = 1.03155
  Prefactor  = 0.82656
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .27036        .23576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7239        2.3336       -.59801E-04   -.20448    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.91981    
   4  Prefactor     .82656        1.1744        .86536E-06   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.35732e-13
Minuit parameter uncertainties:
  1  4.8878e-07
  2  1.86467
  3  1.27169
  4  1.21331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 4853.82926746
delta logL = 9.54969436862e-11

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  0.000e+00  4.888e-07  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  3.985e+00  1.865e+00  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.213e+00  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.272e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.745 -28.801

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36149306/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2026-08-28 03:00:40.637722', job_id='36149306', GAL2='0.83', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1787911240.64', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2199' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 03:00:40 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.110e-10  9.673e-05  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.745 -28.801
Photon Flux Upper Limit: 4.802870268e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00358445213687 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36149337/likelihoodResults_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.85254126
delta logL = -0.0232738055856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4853.8292679
delta logL = -4.48015271104e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      233 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .27036        .23576E-02** at limit **
   2  Index         3.9847        1.8199       -.59801E-04     .0000    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.66171E-05
   4  Prefactor     .82656        1.1744        .86536E-06   -.58019E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.9847
  Normalizat = 1.03155
  Prefactor  = 0.82656
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .27036        .23576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7239        2.3336       -.59801E-04   -.20448    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.91981    
   4  Prefactor     .82656        1.1744        .86536E-06   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.35732e-13
Minuit parameter uncertainties:
  1  4.8878e-07
  2  1.86467
  3  1.27169
  4  1.21331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 4853.82926746
delta logL = 9.54969436862e-11

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  0.000e+00  4.888e-07  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  3.985e+00  1.865e+00  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.213e+00  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.272e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.745 -28.801

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36149337/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2026-08-28 03:00:50.150547', job_id='36149337', GAL2='0.83', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1787911250.15', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2199' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 03:00:50 PDT 2026

utfile=/lscratch/kocevski/36149517/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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/36149517/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
.....................!
real 9.07
user 8.32
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36149517/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36149517/ft2_4FGL_J0338.9-2848_daily_bin2199.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36149517/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149517/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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/36149517/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
.....................!
real 74.91
user 69.56
sys 4.32

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
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0338.9-2848 @ 54.7447 -28.8009

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36149517/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits scfile=/lscratch/kocevski/36149517/ft2_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149517/cmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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=54.7447 yref=-28.8009 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.76
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36149517/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits scfile=/lscratch/kocevski/36149517/ft2_4FGL_J0338.9-2848_daily_bin2199.fits outfile=/lscratch/kocevski/36149517/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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=54.7447 yref=-28.8009 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.76
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36149517/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36149517/ft2_4FGL_J0338.9-2848_daily_bin2199.fitDone.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.110e-10  9.673e-05  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.745 -28.801
Photon Flux Upper Limit: 4.802870268e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00358445213687 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36149334/likelihoodResults_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.85254126
delta logL = -0.0232738055856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4853.8292679
delta logL = -4.48015271104e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      233 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .27036        .23576E-02** at limit **
   2  Index         3.9847        1.8199       -.59801E-04     .0000    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.66171E-05
   4  Prefactor     .82656        1.1744        .86536E-06   -.58019E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.9847
  Normalizat = 1.03155
  Prefactor  = 0.82656
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .27036        .23576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7239        2.3336       -.59801E-04   -.20448    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.91981    
   4  Prefactor     .82656        1.1744        .86536E-06   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.35732e-13
Minuit parameter uncertainties:
  1  4.8878e-07
  2  1.86467
  3  1.27169
  4  1.21331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 4853.82926746
delta logL = 9.54969436862e-11

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  0.000e+00  4.888e-07  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  3.985e+00  1.865e+00  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.213e+00  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.272e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.745 -28.801

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36149334/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2026-08-28 03:00:57.246154', job_id='36149334', GAL2='0.83', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1787911257.25', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2199' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 03:00:57 PDT 2026

ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/36149443/Model_4FGL_J0338.9-2848_daily_bin2199.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/36149443/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits.....................!
real 45.34
user 43.21
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36149443/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits', '/lscratch/kocevski/36149443/ft2_4FGL_J0338.9-2848_daily_bin2199.fits', expMap='/lscratch/kocevski/36149443/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', expCube='/lscratch/kocevski/36149443/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36149443/Model_4FGL_J0338.9-2848_daily_bin2199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0338.9-2848'

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  7.603e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36149443/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits
Spacecraft file(s): /lscratch/kocevski/36149443/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure map: /lscratch/kocevski/36149443/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure cube: /lscratch/kocevski/36149443/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36149443/Model_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.83220947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0866       1.0000          .0000       .10000E+07
     2 'Prefactor '    .48244E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    119.99       1.0000          .0000       .10000E+07
     4 'Prefactor '    .59974E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    40.181       1.0000          .0000       .10000E+07
     6 'norm      '    .96642E-05   1.0000          .0000       .10000E+07
     7 'norm      '    2.5522       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24888E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14195E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9258       1.0000          .0000       .10000E+07
    11 'Prefactor '    .85355E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0190       1.0000          .0000       .10000E+07
    13 'norm      '    .32982       1.0000          .0000       .10000E+07
    14 'norm      '    .72917       1.0000          .0000       .10000E+07
    15 'Prefactor '    44.307       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.7115       1.0000          .0000       .10000E+07
    17 'norm      '    1.0308       1.0000          .0000       .10000E+07
    18 'Prefactor '    .70008E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .13876       1.0000          .0000       .10000E+07
    20 'norm      '    13.707       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0304       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82733       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1829 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0868        1.7936       -.17657E-06   -.43790E-03
   2  Prefactor      .0000        6.8671        .41014E-06** at limit **
   3  Prefactor     123.68        152.11        .14837E-05    .25877E-03
   4  Prefactor     .16653E-09    7.1785       -.18802E-05** at limit **
   5  Prefactor     40.315        43.818       -.32802E-05    .48008E-03
   6  norm          .55511E-10    .88008        .98764E-06** at limit **
   7  norm          2.5517        1.0798        .22000E-06   -.78016E-02
   8  Prefactor     .11102E-09    20.425       -.29460E-05** at limit **
   9  Prefactor      .0000        1.0675        .64791E-06** at limit **
  10  Prefactor     1.8626        4.8860       -.14053E-05    .53704E-02
  11  Prefactor     .51126E-07    95.497        .12790E-04** at limit **
  12  Prefactor     1.0610        25.988        .41955E-05   -.29159E-03
  13  norm          .33065        .49131       -.18625E-06    .95763E-02
  14  norm          .72944        1.0223       -.10920E-06    .69328E-02
  15  Prefactor     42.511        72.366        .14148E-05    .36974E-04
  16  Prefactor     3.7107        2.9487       -.98501E-07    .26530E-02
  17  norm          1.0814        28.139        .56582E-05    .29068E-02
  18  Prefactor     .22204E-09    11.275       -.78684E-05** at limit **
  19  norm          .13916        .31604        .34930E-06** at limit **
  20  norm          13.624        8.3683       -.92999E-06   -.82750E-03
  21  Normalizat    1.0315        .20860       -.53729E-05    .40629E-03
  22  Prefactor     .82656        .20491       -.15768E-04    .34047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08676
  Prefactor  = 0
  Prefactor  = 123.678
  Prefactor  = 1.66533e-10
  Prefactor  = 40.3148
  norm       = 5.55112e-11
  norm       = 2.55173
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 1.86259
  Prefactor  = 5.11258e-08
  Prefactor  = 1.06103
  norm       = 0.330653
  norm       = 0.729436
  Prefactor  = 42.5106
  Prefactor  = 3.7107
  norm       = 1.08141
  Prefactor  = 2.22045e-10
  norm       = 0.139156
  norm       = 13.624
  Normalizat = 1.03155
  Prefactor  = 0.82656
 **********
 **   18 **HESSE 
 **********

 FCN=   4853.829     FROM HESSE     STATUS=OK           402 CALLS     2231 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0868        2.2131        .27304E-02   -1.5687    
   2  Prefactor      .0000        6.8453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     123.68        152.09        .91296E-04   -1.5486    
   4  Prefactor     .16653E-09    7.1477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.315        43.819        .15777E-03   -1.5581    
   6  norm          .55511E-10    .88096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5517        1.0799        .63885E-03   -1.5676    
   8  Prefactor     .11102E-09    20.508        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.0700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8626        6.8673        .74831E-03   -1.5681    
  11  Prefactor     .51126E-07    8.6552        .47422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0610        26.013        .12829E-02   -1.5687    
  13  norm          .33065        .59948        .14111E-02   -1.5696    
  14  norm          .72944        1.0389        .58371E-03   -1.5691    
  15  Prefactor     42.511        72.489        .15025E-03   -1.5578    
  16  Prefactor     3.7107        2.9565        .52393E-03   -1.5669    
  17  norm          1.0814        26.703        .12496E-02   -1.5687    
  18  Prefactor     .22204E-09    11.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .13916        .31572        .12108E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.624        8.5088        .27029E-03   -1.5634    
  21  Normalizat    1.0315        .18450        .42125E-01   -.91981    
  22  Prefactor     .82656        .18028        .44072E-01   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13508e-06
Minuit parameter uncertainties:
  1  2.21312
  2  2.45619e-05
  3  152.092
  4  7.34428e-05
  5  43.8195
  6  1.50324e-05
  7  1.07986
  8  9.67292e-05
  9  7.95221e-06
  10  6.86733
  11  0.0013306
  12  10.5072
  13  0.599477
  14  1.03892
  15  72.4906
  16  2.95653
  17  10.7476
  18  0.000103454
  19  0.315725
  20  8.5088
  21  0.184617
  22  0.180406
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/36149473/Model_4FGL_J0338.9-2848_daily_bin2199.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/36149473/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits.....................!
real 45.40
user 43.51
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36149473/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits', '/lscratch/kocevski/36149473/ft2_4FGL_J0338.9-2848_daily_bin2199.fits', expMap='/lscratch/kocevski/36149473/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', expCube='/lscratch/kocevski/36149473/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36149473/Model_4FGL_J0338.9-2848_daily_bin2199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0338.9-2848'

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  7.603e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36149473/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits
Spacecraft file(s): /lscratch/kocevski/36149473/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure map: /lscratch/kocevski/36149473/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure cube: /lscratch/kocevski/36149473/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36149473/Model_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.83220947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0866       1.0000          .0000       .10000E+07
     2 'Prefactor '    .48244E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    119.99       1.0000          .0000       .10000E+07
     4 'Prefactor '    .59974E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    40.181       1.0000          .0000       .10000E+07
     6 'norm      '    .96642E-05   1.0000          .0000       .10000E+07
     7 'norm      '    2.5522       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24888E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14195E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9258       1.0000          .0000       .10000E+07
    11 'Prefactor '    .85355E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0190       1.0000          .0000       .10000E+07
    13 'norm      '    .32982       1.0000          .0000       .10000E+07
    14 'norm      '    .72917       1.0000          .0000       .10000E+07
    15 'Prefactor '    44.307       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.7115       1.0000          .0000       .10000E+07
    17 'norm      '    1.0308       1.0000          .0000       .10000E+07
    18 'Prefactor '    .70008E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .13876       1.0000          .0000       .10000E+07
    20 'norm      '    13.707       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0304       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82733       1.0000          .0000   Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.110e-10  9.673e-05  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.745 -28.801
Photon Flux Upper Limit: 4.802870268e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00358445213687 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36149443/likelihoodResults_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.85254126
delta logL = -0.0232738055856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4853.8292679
delta logL = -4.48015271104e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      233 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .27036        .23576E-02** at limit **
   2  Index         3.9847        1.8199       -.59801E-04     .0000    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.66171E-05
   4  Prefactor     .82656        1.1744        .86536E-06   -.58019E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.9847
  Normalizat = 1.03155
  Prefactor  = 0.82656
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .27036        .23576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7239        2.3336       -.59801E-04   -.20448    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.91981    
   4  Prefactor     .82656        1.1744        .86536E-06   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.35732e-13
Minuit parameter uncertainties:
  1  4.8878e-07
  2  1.86467
  3  1.27169
  4  1.21331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1829 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0868        1.7936       -.17657E-06   -.43790E-03
   2  Prefactor      .0000        6.8671        .41014E-06** at limit **
   3  Prefactor     123.68        152.11        .14837E-05    .25877E-03
   4  Prefactor     .16653E-09    7.1785       -.18802E-05** at limit **
   5  Prefactor     40.315        43.818       -.32802E-05    .48008E-03
   6  norm          .55511E-10    .88008        .98764E-06** at limit **
   7  norm          2.5517        1.0798        .22000E-06   -.78016E-02
   8  Prefactor     .11102E-09    20.425       -.29460E-05** at limit **
   9  Prefactor      .0000        1.0675        .64791E-06** at limit **
  10  Prefactor     1.8626        4.8860       -.14053E-05    .53704E-02
  11  Prefactor     .51126E-07    95.497        .12790E-04** at limit **
  12  Prefactor     1.0610        25.988        .41955E-05   -.29159E-03
  13  norm          .33065        .49131       -.18625E-06    .95763E-02
  14  norm          .72944        1.0223       -.10920E-06    .69328E-02
  15  Prefactor     42.511        72.366        .14148E-05    .36974E-04
  16  Prefactor     3.7107        2.9487       -.98501E-07    .26530E-02
  17  norm          1.0814        28.139        .56582E-05    .29068E-02
  18  Prefactor     .22204E-09    11.275       -.78684E-05** at limit **
  19  norm          .13916        .31604        .34930E-06** at limit **
  20  norm          13.624        8.3683       -.92999E-06   -.82750E-03
  21  Normalizat    1.0315        .20860       -.53729E-05    .40629E-03
  22  Prefactor     .82656        .20491       -.15768E-04    .34047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08676
  Prefactor  = 0
  Prefactor  = 123.678
  Prefactor  = 1.66533e-10
  Prefactor  = 40.3148
  norm       = 5.55112e-11
  norm       = 2.55173
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 1.86259
  Prefactor  = 5.11258e-08
  Prefactor  = 1.06103
  norm       = 0.330653
  norm       = 0.729436
  Prefactor  = 42.5106
  Prefactor  = 3.7107
  norm       = 1.08141
  Prefactor  = 2.22045e-10
  norm       = 0.139156
  norm       = 13.624
  Normalizat = 1.03155
  Prefactor  = 0.82656
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 4853.82926746
delta logL = 9.54969436862e-11

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  0.000e+00  4.888e-07  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  3.985e+00  1.865e+00  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.213e+00  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.272e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.745 -28.801

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36149443/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2026-08-28 03:02:20.318155', job_id='36149443', GAL2='0.83', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1787911340.32', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2199' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 03:02:20 PDT 2026

 **********
 **   18 **HESSE 
 **********

 FCN=   4853.829     FROM HESSE     STATUS=OK           402 CALLS     2231 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0868        2.2131        .27304E-02   -1.5687    
   2  Prefactor      .0000        6.8453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     123.68        152.09        .91296E-04   -1.5486    
   4  Prefactor     .16653E-09    7.1477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.315        43.819        .15777E-03   -1.5581    
   6  norm          .55511E-10    .88096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5517        1.0799        .63885E-03   -1.5676    
   8  Prefactor     .11102E-09    20.508        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.0700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8626        6.8673        .74831E-03   -1.5681    
  11  Prefactor     .51126E-07    8.6552        .47422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0610        26.013        .12829E-02   -1.5687    
  13  norm          .33065        .59948        .14111E-02   -1.5696    
  14  norm          .72944        1.0389        .58371E-03   -1.5691    
  15  Prefactor     42.511        72.489        .15025E-03   -1.5578    
  16  Prefactor     3.7107        2.9565        .52393E-03   -1.5669    
  17  norm          1.0814        26.703        .12496E-02   -1.5687    
  18  Prefactor     .22204E-09    11.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .13916        .31572        .12108E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.624        8.5088        .27029E-03   -1.5634    
  21  Normalizat    1.0315        .18450        .42125E-01   -.91981    
  22  Prefactor     .82656        .18028        .44072E-01   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13508e-06
Minuit parameter uncertainties:
  1  2.21312
  2  2.45619e-05
  3  152.092
  4  7.34428e-05
  5  43.8195
  6  1.50324e-05
  7  1.07986
  8  9.67292e-05
  9  7.95221e-06
  10  6.86733
  11  0.0013306
  12  10.5072
  13  0.599477
  14  1.03892
  15  72.4906
  16  2.95653
  17  10.7476
  18  0.000103454
  19  0.315725
  20  8.5088
  21  0.184617
  22  0.180406
s sctable="SC_DATA" srcmdl=/lscratch/kocevski/36149517/Model_4FGL_J0338.9-2848_daily_bin2199.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/36149517/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits.....................!
real 45.68
user 44.17
sys 0.84

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36149517/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits', '/lscratch/kocevski/36149517/ft2_4FGL_J0338.9-2848_daily_bin2199.fits', expMap='/lscratch/kocevski/36149517/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', expCube='/lscratch/kocevski/36149517/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36149517/Model_4FGL_J0338.9-2848_daily_bin2199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0338.9-2848'

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  7.603e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36149517/ft1_filtered_4FGL_J0338.9-2848_daily_bin2199.fits
Spacecraft file(s): /lscratch/kocevski/36149517/ft2_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure map: /lscratch/kocevski/36149517/expmap_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
Exposure cube: /lscratch/kocevski/36149517/ltcube_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36149517/Model_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.83220947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0866       1.0000          .0000       .10000E+07
     2 'Prefactor '    .48244E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    119.99       1.0000          .0000       .10000E+07
     4 'Prefactor '    .59974E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    40.181       1.0000          .0000       .10000E+07
     6 'norm      '    .96642E-05   1.0000          .0000       .10000E+07
     7 'norm      '    2.5522       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24888E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14195E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9258       1.0000          .0000       .10000E+07
    11 'Prefactor '    .85355E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0190       1.0000          .0000       .10000E+07
    13 'norm      '    .32982       1.0000          .0000       .10000E+07
    14 'norm      '    .72917       1.0000          .0000       .10000E+07
    15 'Prefactor '    44.307       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.7115       1.0000          .0000       .10000E+07
    17 'norm      '    1.0308       1.0000          .0000       .10000E+07
    18 'Prefactor '    .70008E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .13876       1.0000          .0000       .10000E+07
    20 'norm      '    13.707       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0304       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82733       1.0000          .0000    Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.110e-10  9.673e-05  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.745 -28.801
Photon Flux Upper Limit: 4.802870268e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00358445213687 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36149473/likelihoodResults_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.85254126
delta logL = -0.0232738055856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4853.8292679
delta logL = -4.48015271104e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      233 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .27036        .23576E-02** at limit **
   2  Index         3.9847        1.8199       -.59801E-04     .0000    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.66171E-05
   4  Prefactor     .82656        1.1744        .86536E-06   -.58019E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.9847
  Normalizat = 1.03155
  Prefactor  = 0.82656
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .27036        .23576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7239        2.3336       -.59801E-04   -.20448    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.91981    
   4  Prefactor     .82656        1.1744        .86536E-06   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.35732e-13
Minuit parameter uncertainties:
  1  4.8878e-07
  2  1.86467
  3  1.27169
  4  1.21331
   10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1829 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0868        1.7936       -.17657E-06   -.43790E-03
   2  Prefactor      .0000        6.8671        .41014E-06** at limit **
   3  Prefactor     123.68        152.11        .14837E-05    .25877E-03
   4  Prefactor     .16653E-09    7.1785       -.18802E-05** at limit **
   5  Prefactor     40.315        43.818       -.32802E-05    .48008E-03
   6  norm          .55511E-10    .88008        .98764E-06** at limit **
   7  norm          2.5517        1.0798        .22000E-06   -.78016E-02
   8  Prefactor     .11102E-09    20.425       -.29460E-05** at limit **
   9  Prefactor      .0000        1.0675        .64791E-06** at limit **
  10  Prefactor     1.8626        4.8860       -.14053E-05    .53704E-02
  11  Prefactor     .51126E-07    95.497        .12790E-04** at limit **
  12  Prefactor     1.0610        25.988        .41955E-05   -.29159E-03
  13  norm          .33065        .49131       -.18625E-06    .95763E-02
  14  norm          .72944        1.0223       -.10920E-06    .69328E-02
  15  Prefactor     42.511        72.366        .14148E-05    .36974E-04
  16  Prefactor     3.7107        2.9487       -.98501E-07    .26530E-02
  17  norm          1.0814        28.139        .56582E-05    .29068E-02
  18  Prefactor     .22204E-09    11.275       -.78684E-05** at limit **
  19  norm          .13916        .31604        .34930E-06** at limit **
  20  norm          13.624        8.3683       -.92999E-06   -.82750E-03
  21  Normalizat    1.0315        .20860       -.53729E-05    .40629E-03
  22  Prefactor     .82656        .20491       -.15768E-04    .34047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08676
  Prefactor  = 0
  Prefactor  = 123.678
  Prefactor  = 1.66533e-10
  Prefactor  = 40.3148
  norm       = 5.55112e-11
  norm       = 2.55173
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 1.86259
  Prefactor  = 5.11258e-08
  Prefactor  = 1.06103
  norm       = 0.330653
  norm       = 0.729436
  Prefactor  = 42.5106
  Prefactor  = 3.7107
  norm       = 1.08141
  Prefactor  = 2.22045e-10
  norm       = 0.139156
  norm       = 13.624
  Normalizat = 1.03155
  Prefactor  = 0.82656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 4853.82926746
delta logL = 9.54969436862e-11

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  0.000e+00  4.888e-07  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  3.985e+00  1.865e+00  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.213e+00  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.272e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.745 -28.801

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36149473/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2026-08-28 03:02:48.660292', job_id='36149473', GAL2='0.83', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1787911368.66', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2199' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 03:02:48 PDT 2026

 **********
 **   18 **HESSE 
 **********

 FCN=   4853.829     FROM HESSE     STATUS=OK           402 CALLS     2231 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0868        2.2131        .27304E-02   -1.5687    
   2  Prefactor      .0000        6.8453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     123.68        152.09        .91296E-04   -1.5486    
   4  Prefactor     .16653E-09    7.1477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.315        43.819        .15777E-03   -1.5581    
   6  norm          .55511E-10    .88096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5517        1.0799        .63885E-03   -1.5676    
   8  Prefactor     .11102E-09    20.508        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.0700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8626        6.8673        .74831E-03   -1.5681    
  11  Prefactor     .51126E-07    8.6552        .47422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0610        26.013        .12829E-02   -1.5687    
  13  norm          .33065        .59948        .14111E-02   -1.5696    
  14  norm          .72944        1.0389        .58371E-03   -1.5691    
  15  Prefactor     42.511        72.489        .15025E-03   -1.5578    
  16  Prefactor     3.7107        2.9565        .52393E-03   -1.5669    
  17  norm          1.0814        26.703        .12496E-02   -1.5687    
  18  Prefactor     .22204E-09    11.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .13916        .31572        .12108E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.624        8.5088        .27029E-03   -1.5634    
  21  Normalizat    1.0315        .18450        .42125E-01   -.91981    
  22  Prefactor     .82656        .18028        .44072E-01   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13508e-06
Minuit parameter uncertainties:
  1  2.21312
  2  2.45619e-05
  3  152.092
  4  7.34428e-05
  5  43.8195
  6  1.50324e-05
  7  1.07986
  8  9.67292e-05
  9  7.95221e-06
  10  6.86733
  11  0.0013306
  12  10.5072
  13  0.599477
  14  1.03892
  15  72.4906
  16  2.95653
  17  10.7476
  18  0.000103454
  19  0.315725
  20  8.5088
  21  0.184617
  22  0.180406
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.110e-10  9.673e-05  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.745 -28.801
Photon Flux Upper Limit: 4.802870268e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00358445213687 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36149517/likelihoodResults_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.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) = 4853.85254126
delta logL = -0.0232738055856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4853.8292679
delta logL = -4.48015271104e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      233 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .27036        .23576E-02** at limit **
   2  Index         3.9847        1.8199       -.59801E-04     .0000    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.66171E-05
   4  Prefactor     .82656        1.1744        .86536E-06   -.58019E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.9847
  Normalizat = 1.03155
  Prefactor  = 0.82656
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4853.829     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .27036        .23576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7239        2.3336       -.59801E-04   -.20448    
   3  Normalizat    1.0315        1.2346        .23639E-05   -.91981    
   4  Prefactor     .82656        1.1744        .86536E-06   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.35732e-13
Minuit parameter uncertainties:
  1  4.8878e-07
  2  1.86467
  3  1.27169
  4  1.21331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 4853.82926746
delta logL = 9.54969436862e-11

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  0.000e+00  4.888e-07  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  3.985e+00  1.865e+00  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.266e-01  1.213e+00  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.032e+00  1.272e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.745 -28.801

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36149517/cmap_HighResolution_809308801_809568001_4FGL_J0338.9-2848_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2026-08-28 03:03:15.127581', job_id='36149517', GAL2='0.83', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1787911395.13', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2199' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 03:03:15 PDT 2026

