/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)
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.809     FROM HESSE     STATUS=OK           392 CALLS     2189 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5418        2.3409        .64035E-03   -1.5676    
   2  Prefactor     .13323E-08    13.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     181.04        205.46        .75217E-04   -1.5439    
   4  Prefactor     .55511E-10    10.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.238        31.404        .20455E-03   -1.5609    
   6  norm          1.7699        2.0038        .78711E-03   -1.5681    
   7  norm          2.2907        .95817        .67811E-03   -1.5678    
   8  Prefactor     3.4764        116.94        .55893E-03   -1.5671    
   9  Prefactor     .53028        2.0108        .75486E-03   -1.5693    
  10  Prefactor     2.7012        3.7651        .61938E-03   -1.5675    
  11  Prefactor     .44376        3.4865        .84780E-03   -1.5695    
  12  Prefactor      .0000        10.577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2898        .72177        .97450E-03   -1.5685    
  14  norm           .0000        .68651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.070        54.077        .13716E-03   -1.5562    
  16  Prefactor      .0000        1.2396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        6.1134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.778        18.465        .24481E-03   -1.5626    
  19  norm          .38700        .23734        .66877E-03   -1.5696    
  20  norm          8.4665        5.5251        .34416E-03   -1.5650    
  21  Normalizat    1.1038        .15452        .37834E-01   -.89630    
  22  Prefactor     .77809        .15590        .43434E-01   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15017e-07
Minuit parameter uncertainties:
  1  2.34094
  2  0.000268764
  3  205.47
  4  4.10316e-05
  5  31.4044
  6  2.00379
  7  0.958174
  8  40.326
  9  2.01083
  10  3.76511
  11  2.48771
  12  2.7015e-05
  13  0.721774
  14  4.39145e-06
  15  54.0776
  16  3.86892e-06
  17  2.469e-05
  18  18.4652
  19  0.237337
  20  5.52509
  21  0.154583
  22  0.15599

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/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

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

 FCN=   7164.809     FROM HESSE     STATUS=OK           392 CALLS     2189 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5418        2.3409        .64035E-03   -1.5676    
   2  Prefactor     .13323E-08    13.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     181.04        205.46        .75217E-04   -1.5439    
   4  Prefactor     .55511E-10    10.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.238        31.404        .20455E-03   -1.5609    
   6  norm          1.7699        2.0038        .78711E-03   -1.5681    
   7  norm          2.2907        .95817        .67811E-03   -1.5678    
   8  Prefactor     3.4764        116.94        .55893E-03   -1.5671    
   9  Prefactor     .53028        2.0108        .75486E-03   -1.5693    
  10  Prefactor     2.7012        3.7651        .61938E-03   -1.5675    
  11  Prefactor     .44376        3.4865        .84780E-03   -1.5695    
  12  Prefactor      .0000        10.577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2898        .72177        .97450E-03   -1.5685    
  14  norm           .0000        .68651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.070        54.077        .13716E-03   -1.5562    
  16  Prefactor      .0000        1.2396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        6.1134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.778        18.465        .24481E-03   -1.5626    
  19  norm          .38700        .23734        .66877E-03   -1.5696    
  20  norm          8.4665        5.5251        .34416E-03   -1.5650    
  21  Normalizat    1.1038        .15452        .37834E-01   -.89630    
  22  Prefactor     .77809        .15590        .43434E-01   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15017e-07
Minuit parameter uncertainties:
  1  2.34094
  2  0.000268764
  3  205.47
  4  4.10316e-05
  5  31.4044
  6  2.00379
  7  0.958174
  8  40.326
  9  2.01083
  10  3.76511
  11  2.48771
  12  2.7015e-05
  13  0.721774
  14  4.39145e-06
  15  54.0776
  16  3.86892e-06
  17  2.469e-05
  18  18.4652
  19  0.237337
  20  5.52509
  21  0.154583
  22  0.15599
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  3.476e+00  4.033e+01  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:  7.781e-01  1.560e-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.104e+00  1.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/41212204/likelihoodResults_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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): 102
logL (Free Index) = 7164.71900751
delta logL = 0.089632685791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7164.70936541
delta logL = 0.099274784312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5836       1.0000          .0000       .10000E+07
     2 'Index     '    2.6972       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78485       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7164.709     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6094        1220.2        .93985E-04    .12934E-02
   2  Index         2.6962        6.6291        .11240E-01    .28123E-04
   3  Normalizat    1.0896        .15899        .22360E-03   -.62081E-04
   4  Prefactor     .78487        .16777        .27043E-03    .12847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60944
  Index      = 2.6962
  Normalizat = 1.08955
  Prefactor  = 0.784873
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.709     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6094        22.477        .18797E-04   -1.5665    
   2  Index         2.6962        1.6785        .44962E-03   -.47885    
   3  Normalizat    1.0896        .17055        .89439E-05   -.90088    
   4  Prefactor     .78487        .17536        .10817E-04   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38341e-10
Minuit parameter uncertainties:
  1  20.3577
  2  1.72137
  3  0.170633
  4  0.175485
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  3.476e+00  4.033e+01  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:  7.781e-01  1.560e-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.104e+00  1.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/41212211/likelihoodResults_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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): 102
logL (Free Index) = 7164.71900751
delta logL = 0.089632685791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7164.70936541
delta logL = 0.099274784312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5836       1.0000          .0000       .10000E+07
     2 'Index     '    2.6972       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78485       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7164.709     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6094        1220.2        .93985E-04    .12934E-02
   2  Index         2.6962        6.6291        .11240E-01    .28123E-04
   3  Normalizat    1.0896        .15899        .22360E-03   -.62081E-04
   4  Prefactor     .78487        .16777        .27043E-03    .12847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60944
  Index      = 2.6962
  Normalizat = 1.08955
  Prefactor  = 0.784873
outfile=/lscratch/kocevski/41212313/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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/41212313/ft2_4FGL_J0338.9-2848_daily_bin2216.fits
.....................!
real 8.90
user 8.36
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/41212313/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits evtable="EVENTS" scfile=/lscratch/kocevski/41212313/ft2_4FGL_J0338.9-2848_daily_bin2216.fits sctable="SC_DATA" expcube=/lscratch/kocevski/41212313/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits outfile=/lscratch/kocevski/41212313/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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/41212313/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
.....................!
real 71.13
user 66.60
sys 3.87

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/41212313/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits scfile=/lscratch/kocevski/41212313/ft2_4FGL_J0338.9-2848_daily_bin2216.fits outfile=/lscratch/kocevski/41212313/cmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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.48
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/41212313/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits scfile=/lscratch/kocevski/41212313/ft2_4FGL_J0338.9-2848_daily_bin2216.fits outfile=/lscratch/kocevski/41212313/cmap_HighResolution_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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.54
user 0.23
sys 0.13

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

 FCN=   7164.709     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6094        22.477        .18797E-04   -1.5665    
   2  Index         2.6962        1.6785        .44962E-03   -.47885    
   3  Normalizat    1.0896        .17055        .89439E-05   -.90088    
   4  Prefactor     .78487        .17536        .10817E-04   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38341e-10
Minuit parameter uncertainties:
  1  20.3577
  2  1.72137
  3  0.170633
  4  0.175485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7164.70936033
delta logL = 0.0992798728248

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  4.609e+00  2.036e+01  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  2.696e+00  1.721e+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:  7.849e-01  1.755e-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.090e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/41212204/cmap_HighResolution_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2026-10-18 02:56:43.087503', job_id='41212204', GAL2='0.78', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1792317403.09', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.93e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2216' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 18 02:56:43 PDT 2026

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7164.70936033
delta logL = 0.0992798728248

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  4.609e+00  2.036e+01  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  2.696e+00  1.721e+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:  7.849e-01  1.755e-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.090e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/41212211/cmap_HighResolution_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2026-10-18 02:56:44.087147', job_id='41212211', GAL2='0.78', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1792317404.09', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.93e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2216' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 18 02:56:44 PDT 2026

number of points = 7568
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0338.9-2848_daily_bin2216
RA = 54.7447, Dec = -28.8009
tmin = 813715201, tmax = 813974401
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='41212368', job_status='RUN', time_executed='2026-10-18 02:56:22.609714', time_epoch_executed='1792317382.61' WHERE source_name='4FGL J0338.9-2848' and cadence='daily' and bin_id='2216'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/41212368

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/41212368/ft1_4FGL_J0338.9-2848_daily_bin2216.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/41212368/ft2_4FGL_J0338.9-2848_daily_bin2216.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/41212368/ft1_4FGL_J0338.9-2848_daily_bin2216.fits outfile=/lscratch/kocevski/41212368/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin2216.fits ra=54.7447 dec=-28.8009 rad=12.0 tmin=813715201.0 tmax=813974401.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 1.63
user 1.36
sys 0.15

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

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

Number of photons that the gtmktime cut: 645

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/41212368/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits" evtable="EVENTS" scfile=/lscratch/kocevski/41212368/ft2_4FGL_J0338.9-2848_daily_bin2216.fits sctable="SC_DATA" ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/41212219/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212219/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits.....................!
real 61.19
user 59.63
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/41212219/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits', '/lscratch/kocevski/41212219/ft2_4FGL_J0338.9-2848_daily_bin2216.fits', expMap='/lscratch/kocevski/41212219/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', expCube='/lscratch/kocevski/41212219/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/41212219/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212219/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits
Spacecraft file(s): /lscratch/kocevski/41212219/ft2_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure map: /lscratch/kocevski/41212219/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure cube: /lscratch/kocevski/41212219/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/41212219/Model_4FGL_J0338.9-2848_daily_bin2216.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) = 7164.82788767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5412       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38879E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    176.79       1.0000          .0000       .10000E+07
     4 'Prefactor '    .87112E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    23.910       1.0000          .0000       .10000E+07
     6 'norm      '    1.7690       1.0000          .0000       .10000E+07
     7 'norm      '    2.2897       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.2791       1.0000          .0000       .10000E+07
     9 'Prefactor '    .53270       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7026       1.0000          .0000       .10000E+07
    11 'Prefactor '    .44194       1.0000          .0000       .10000E+07
    12 'Prefactor '    .84770E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.2904       1.0000          .0000       .10000E+07
    14 'norm      '    .39746E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    53.160       1.0000          .0000       .10000E+07
    16 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
    17 'norm      '    .82046E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    16.701       1.0000          .0000       .10000E+07
    19 'norm      '    .38672       1.0000          .0000       .10000E+07
    20 'norm      '    8.4722       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1042       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77831       1.0000          .0000   number of points = 7568
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0338.9-2848_daily_bin2216
RA = 54.7447, Dec = -28.8009
tmin = 813715201, tmax = 813974401
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='41212373', job_status='RUN', time_executed='2026-10-18 02:56:27.264034', time_epoch_executed='1792317387.26' WHERE source_name='4FGL J0338.9-2848' and cadence='daily' and bin_id='2216'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/41212373

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/41212373/ft1_4FGL_J0338.9-2848_daily_bin2216.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/41212373/ft2_4FGL_J0338.9-2848_daily_bin2216.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/41212373/ft1_4FGL_J0338.9-2848_daily_bin2216.fits outfile=/lscratch/kocevski/41212373/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin2216.fits ra=54.7447 dec=-28.8009 rad=12.0 tmin=813715201.0 tmax=813974401.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 1.66
user 1.37
sys 0.15

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

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

Number of photons that the gtmktime cut: 645

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/41212373/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits" evtable="EVENTS" scfile=/lscratch/kocevski/41212373/ft2_4FGL_J0338.9-2848_daily_bin2216.fits sctable="SC_DATA" Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  3.476e+00  4.033e+01  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:  7.781e-01  1.560e-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.104e+00  1.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/41212199/likelihoodResults_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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): 102
logL (Free Index) = 7164.71900751
delta logL = 0.089632685791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7164.70936541
delta logL = 0.099274784312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5836       1.0000          .0000       .10000E+07
     2 'Index     '    2.6972       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78485       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7164.709     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6094        1220.2        .93985E-04    .12934E-02
   2  Index         2.6962        6.6291        .11240E-01    .28123E-04
   3  Normalizat    1.0896        .15899        .22360E-03   -.62081E-04
   4  Prefactor     .78487        .16777        .27043E-03    .12847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60944
  Index      = 2.6962
  Normalizat = 1.08955
  Prefactor  = 0.784873
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.709     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6094        22.477        .18797E-04   -1.5665    
   2  Index         2.6962        1.6785        .44962E-03   -.47885    
   3  Normalizat    1.0896        .17055        .89439E-05   -.90088    
   4  Prefactor     .78487        .17536        .10817E-04   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38341e-10
Minuit parameter uncertainties:
  1  20.3577
  2  1.72137
  3  0.170633
  4  0.175485
fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/41212198/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212198/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits.....................!
real 70.57
user 69.07
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/41212198/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits', '/lscratch/kocevski/41212198/ft2_4FGL_J0338.9-2848_daily_bin2216.fits', expMap='/lscratch/kocevski/41212198/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', expCube='/lscratch/kocevski/41212198/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/41212198/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212198/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits
Spacecraft file(s): /lscratch/kocevski/41212198/ft2_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure map: /lscratch/kocevski/41212198/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure cube: /lscratch/kocevski/41212198/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/41212198/Model_4FGL_J0338.9-2848_daily_bin2216.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) = 7164.82788767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5412       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38879E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    176.79       1.0000          .0000       .10000E+07
     4 'Prefactor '    .87112E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    23.910       1.0000          .0000       .10000E+07
     6 'norm      '    1.7690       1.0000          .0000       .10000E+07
     7 'norm      '    2.2897       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.2791       1.0000          .0000       .10000E+07
     9 'Prefactor '    .53270       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7026       1.0000          .0000       .10000E+07
    11 'Prefactor '    .44194       1.0000          .0000       .10000E+07
    12 'Prefactor '    .84770E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.2904       1.0000          .0000       .10000E+07
    14 'norm      '    .39746E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    53.160       1.0000          .0000       .10000E+07
    16 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
    17 'norm      '    .82046E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    16.701       1.0000          .0000       .10000E+07
    19 'norm      '    .38672       1.0000          .0000       .10000E+07
    20 'norm      '    8.4722       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1042       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77831       1.0000          .0000 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7164.70936033
delta logL = 0.0992798728248

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  4.609e+00  2.036e+01  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  2.696e+00  1.721e+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:  7.849e-01  1.755e-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.090e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/41212199/cmap_HighResolution_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2026-10-18 02:56:54.940803', job_id='41212199', GAL2='0.78', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1792317414.94', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.93e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2216' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 18 02:56:55 PDT 2026

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7164.809     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1797 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5418        2.3465       -.37678E-06    .19703E-02
   2  Prefactor     .13323E-08    13.680       -.20455E-05** at limit **
   3  Prefactor     181.04        205.85        .69470E-06    .93212E-04
   4  Prefactor     .55511E-10    10.079        .54041E-06** at limit **
   5  Prefactor     24.238        31.311       -.46658E-05   -.28581E-03
   6  norm          1.7699        1.9831       -.17589E-06   -.34189E-02
   7  norm          2.2907        .95228       -.25601E-06    .76898E-02
   8  Prefactor     3.4764        117.00        .43459E-04    .82488E-03
   9  Prefactor     .53028        1.9857       -.17184E-05   -.56619E-02
  10  Prefactor     2.7012        3.6295       -.28436E-06   -.49232E-02
  11  Prefactor     .44376        3.2095       -.71445E-06   -.39128E-02
  12  Prefactor      .0000        10.611        .17279E-06** at limit **
  13  norm          1.2898        .70876       -.27220E-06    .16746E-01
  14  norm           .0000        .68808       -.67467E-06** at limit **
  15  Prefactor     53.070        54.120        .45108E-05    .10623E-02
  16  Prefactor      .0000        1.2459        .10384E-05** at limit **
  17  norm           .0000        6.1174        .68481E-06** at limit **
  18  Prefactor     16.778        18.480        .14028E-06   -.11251E-02
  19  norm          .38700        .23114       -.54764E-07   -.24210E-01
  20  norm          8.4665        5.5152       -.27198E-06    .79636E-03
  21  Normalizat    1.1038        .17491       -.56781E-05   -.55854E-03
  22  Prefactor     .77809        .17589        .45432E-05   -.27981E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54183
  Prefactor  = 1.33227e-09
  Prefactor  = 181.036
  Prefactor  = 5.55112e-11
  Prefactor  = 24.238
  norm       = 1.7699
  norm       = 2.29069
  Prefactor  = 3.47639
  Prefactor  = 0.530282
  Prefactor  = 2.70118
  Prefactor  = 0.44376
  Prefactor  = 0
  norm       = 1.28982
  norm       = 0
  Prefactor  = 53.07
  Prefactor  = 0
  norm       = 0
  Prefactor  = 16.778
  norm       = 0.387
  norm       = 8.46649
  Normalizat = 1.1038
  Prefactor  = 0.77809
      10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7164.809     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1797 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5418        2.3465       -.37678E-06    .19703E-02
   2  Prefactor     .13323E-08    13.680       -.20455E-05** at limit **
   3  Prefactor     181.04        205.85        .69470E-06    .93212E-04
   4  Prefactor     .55511E-10    10.079        .54041E-06** at limit **
   5  Prefactor     24.238        31.311       -.46658E-05   -.28581E-03
   6  norm          1.7699        1.9831       -.17589E-06   -.34189E-02
   7  norm          2.2907        .95228       -.25601E-06    .76898E-02
   8  Prefactor     3.4764        117.00        .43459E-04    .82488E-03
   9  Prefactor     .53028        1.9857       -.17184E-05   -.56619E-02
  10  Prefactor     2.7012        3.6295       -.28436E-06   -.49232E-02
  11  Prefactor     .44376        3.2095       -.71445E-06   -.39128E-02
  12  Prefactor      .0000        10.611        .17279E-06** at limit **
  13  norm          1.2898        .70876       -.27220E-06    .16746E-01
  14  norm           .0000        .68808       -.67467E-06** at limit **
  15  Prefactor     53.070        54.120        .45108E-05    .10623E-02
  16  Prefactor      .0000        1.2459        .10384E-05** at limit **
  17  norm           .0000        6.1174        .68481E-06** at limit **
  18  Prefactor     16.778        18.480        .14028E-06   -.11251E-02
  19  norm          .38700        .23114       -.54764E-07   -.24210E-01
  20  norm          8.4665        5.5152       -.27198E-06    .79636E-03
  21  Normalizat    1.1038        .17491       -.56781E-05   -.55854E-03
  22  Prefactor     .77809        .17589        .45432E-05   -.27981E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54183
  Prefactor  = 1.33227e-09
  Prefactor  = 181.036
  Prefactor  = 5.55112e-11
  Prefactor  = 24.238
  norm       = 1.7699
  norm       = 2.29069
  Prefactor  = 3.47639
  Prefactor  = 0.530282
  Prefactor  = 2.70118
  Prefactor  = 0.44376
  Prefactor  = 0
  norm       = 1.28982
  norm       = 0
  Prefactor  = 53.07
  Prefactor  = 0
  norm       = 0
  Prefactor  = 16.778
  norm       = 0.387
  norm       = 8.46649
  Normalizat = 1.1038
  Prefactor  = 0.77809
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.809     FROM HESSE     STATUS=OK           392 CALLS     2189 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5418        2.3409        .64035E-03   -1.5676    
   2  Prefactor     .13323E-08    13.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     181.04        205.46        .75217E-04   -1.5439    
   4  Prefactor     .55511E-10    10.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.238        31.404        .20455E-03   -1.5609    
   6  norm          1.7699        2.0038        .78711E-03   -1.5681    
   7  norm          2.2907        .95817        .67811E-03   -1.5678    
   8  Prefactor     3.4764        116.94        .55893E-03   -1.5671    
   9  Prefactor     .53028        2.0108        .75486E-03   -1.5693    
  10  Prefactor     2.7012        3.7651        .61938E-03   -1.5675    
  11  Prefactor     .44376        3.4865        .84780E-03   -1.5695    
  12  Prefactor      .0000        10.577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2898        .72177        .97450E-03   -1.5685    
  14  norm           .0000        .68651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.070        54.077        .13716E-03   -1.5562    
  16  Prefactor      .0000        1.2396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        6.1134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.778        18.465        .24481E-03   -1.5626    
  19  norm          .38700        .23734        .66877E-03   -1.5696    
  20  norm          8.4665        5.5251        .34416E-03   -1.5650    
  21  Normalizat    1.1038        .15452        .37834E-01   -.89630    
  22  Prefactor     .77809        .15590        .43434E-01   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15017e-07
Minuit parameter uncertainties:
  1  2.34094
  2  0.000268764
  3  205.47
  4  4.10316e-05
  5  31.4044
  6  2.00379
  7  0.958174
  8  40.326
  9  2.01083
  10  3.76511
  11  2.48771
  12  2.7015e-05
  13  0.721774
  14  4.39145e-06
  15  54.0776
  16  3.86892e-06
  17  2.469e-05
  18  18.4652
  19  0.237337
  20  5.52509
  21  0.154583
  22  0.15599
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.809     FROM HESSE     STATUS=OK           392 CALLS     2189 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5418        2.3409        .64035E-03   -1.5676    
   2  Prefactor     .13323E-08    13.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     181.04        205.46        .75217E-04   -1.5439    
   4  Prefactor     .55511E-10    10.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.238        31.404        .20455E-03   -1.5609    
   6  norm          1.7699        2.0038        .78711E-03   -1.5681    
   7  norm          2.2907        .95817        .67811E-03   -1.5678    
   8  Prefactor     3.4764        116.94        .55893E-03   -1.5671    
   9  Prefactor     .53028        2.0108        .75486E-03   -1.5693    
  10  Prefactor     2.7012        3.7651        .61938E-03   -1.5675    
  11  Prefactor     .44376        3.4865        .84780E-03   -1.5695    
  12  Prefactor      .0000        10.577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2898        .72177        .97450E-03   -1.5685    
  14  norm           .0000        .68651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.070        54.077        .13716E-03   -1.5562    
  16  Prefactor      .0000        1.2396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        6.1134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.778        18.465        .24481E-03   -1.5626    
  19  norm          .38700        .23734        .66877E-03   -1.5696    
  20  norm          8.4665        5.5251        .34416E-03   -1.5650    
  21  Normalizat    1.1038        .15452        .37834E-01   -.89630    
  22  Prefactor     .77809        .15590        .43434E-01   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15017e-07
Minuit parameter uncertainties:
  1  2.34094
  2  0.000268764
  3  205.47
  4  4.10316e-05
  5  31.4044
  6  2.00379
  7  0.958174
  8  40.326
  9  2.01083
  10  3.76511
  11  2.48771
  12  2.7015e-05
  13  0.721774
  14  4.39145e-06
  15  54.0776
  16  3.86892e-06
  17  2.469e-05
  18  18.4652
  19  0.237337
  20  5.52509
  21  0.154583
  22  0.15599
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/41212222/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212222/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits.....................!
real 69.92
user 68.65
sys 0.75

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/41212222/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits', '/lscratch/kocevski/41212222/ft2_4FGL_J0338.9-2848_daily_bin2216.fits', expMap='/lscratch/kocevski/41212222/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', expCube='/lscratch/kocevski/41212222/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/41212222/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212222/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits
Spacecraft file(s): /lscratch/kocevski/41212222/ft2_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure map: /lscratch/kocevski/41212222/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure cube: /lscratch/kocevski/41212222/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/41212222/Model_4FGL_J0338.9-2848_daily_bin2216.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) = 7164.82788767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5412       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38879E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    176.79       1.0000          .0000       .10000E+07
     4 'Prefactor '    .87112E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    23.910       1.0000          .0000       .10000E+07
     6 'norm      '    1.7690       1.0000          .0000       .10000E+07
     7 'norm      '    2.2897       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.2791       1.0000          .0000       .10000E+07
     9 'Prefactor '    .53270       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7026       1.0000          .0000       .10000E+07
    11 'Prefactor '    .44194       1.0000          .0000       .10000E+07
    12 'Prefactor '    .84770E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.2904       1.0000          .0000       .10000E+07
    14 'norm      '    .39746E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    53.160       1.0000          .0000       .10000E+07
    16 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
    17 'norm      '    .82046E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    16.701       1.0000          .0000       .10000E+07
    19 'norm      '    .38672       1.0000          .0000       .10000E+07
    20 'norm      '    8.4722       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1042       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77831       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=   7164.809     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1797 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5418        2.3465       -.37678E-06    .19703E-02
   2  Prefactor     .13323E-08    13.680       -.20455E-05** at limit **
   3  Prefactor     181.04        205.85        .69470E-06    .93212E-04
   4  Prefactor     .55511E-10    10.079        .54041E-06** at limit **
   5  Prefactor     24.238        31.311       -.46658E-05   -.28581E-03
   6  norm          1.7699        1.9831       -.17589E-06   -.34189E-02
   7  norm          2.2907        .95228       -.25601E-06    .76898E-02
   8  Prefactor     3.4764        117.00        .43459E-04    .82488E-03
   9  Prefactor     .53028        1.9857       -.17184E-05   -.56619E-02
  10  Prefactor     2.7012        3.6295       -.28436E-06   -.49232E-02
  11  Prefactor     .44376        3.2095       -.71445E-06   -.39128E-02
  12  Prefactor      .0000        10.611        .17279E-06** at limit **
  13  norm          1.2898        .70876       -.27220E-06    .16746E-01
  14  norm           .0000        .68808       -.67467E-06** at limit **
  15  Prefactor     53.070        54.120        .45108E-05    .10623E-02
  16  Prefactor      .0000        1.2459        .10384E-05** at limit **
  17  norm           .0000        6.1174        .68481E-06** at limit **
  18  Prefactor     16.778        18.480        .14028E-06   -.11251E-02
  19  norm          .38700        .23114       -.54764E-07   -.24210E-01
  20  norm          8.4665        5.5152       -.27198E-06    .79636E-03
  21  Normalizat    1.1038        .17491       -.56781E-05   -.55854E-03
  22  Prefactor     .77809        .17589        .45432E-05   -.27981E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54183
  Prefactor  = 1.33227e-09
  Prefactor  = 181.036
  Prefactor  = 5.55112e-11
  Prefactor  = 24.238
  norm       = 1.7699
  norm       = 2.29069
  Prefactor  = 3.47639
  Prefactor  = 0.530282
  Prefactor  = 2.70118
  Prefactor  = 0.44376
  Prefactor  = 0
  norm       = 1.28982
  norm       = 0
  Prefactor  = 53.07
  Prefactor  = 0
  norm       = 0
  Prefactor  = 16.778
  norm       = 0.387
  norm       = 8.46649
  Normalizat = 1.1038
  Prefactor  = 0.77809
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  3.476e+00  4.033e+01  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:  7.781e-01  1.560e-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.104e+00  1.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/41212219/likelihoodResults_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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): 102
logL (Free Index) = 7164.71900751
delta logL = 0.089632685791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7164.70936541
delta logL = 0.099274784312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5836       1.0000          .0000       .10000E+07
     2 'Index     '    2.6972       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78485       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7164.709     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6094        1220.2        .93985E-04    .12934E-02
   2  Index         2.6962        6.6291        .11240E-01    .28123E-04
   3  Normalizat    1.0896        .15899        .22360E-03   -.62081E-04
   4  Prefactor     .78487        .16777        .27043E-03    .12847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60944
  Index      = 2.6962
  Normalizat = 1.08955
  Prefactor  = 0.784873
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.709     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6094        22.477        .18797E-04   -1.5665    
   2  Index         2.6962        1.6785        .44962E-03   -.47885    
   3  Normalizat    1.0896        .17055        .89439E-05   -.90088    
   4  Prefactor     .78487        .17536        .10817E-04   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38341e-10
Minuit parameter uncertainties:
  1  20.3577
  2  1.72137
  3  0.170633
  4  0.175485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7164.70936033
delta logL = 0.0992798728248

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  4.609e+00  2.036e+01  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  2.696e+00  1.721e+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:  7.849e-01  1.755e-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.090e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/41212219/cmap_HighResolution_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2026-10-18 02:57:36.981466', job_id='41212219', GAL2='0.78', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1792317456.98', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.93e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2216' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 18 02:57:37 PDT 2026

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

 FCN=   7164.809     FROM HESSE     STATUS=OK           392 CALLS     2189 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5418        2.3409        .64035E-03   -1.5676    
   2  Prefactor     .13323E-08    13.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     181.04        205.46        .75217E-04   -1.5439    
   4  Prefactor     .55511E-10    10.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.238        31.404        .20455E-03   -1.5609    
   6  norm          1.7699        2.0038        .78711E-03   -1.5681    
   7  norm          2.2907        .95817        .67811E-03   -1.5678    
   8  Prefactor     3.4764        116.94        .55893E-03   -1.5671    
   9  Prefactor     .53028        2.0108        .75486E-03   -1.5693    
  10  Prefactor     2.7012        3.7651        .61938E-03   -1.5675    
  11  Prefactor     .44376        3.4865        .84780E-03   -1.5695    
  12  Prefactor      .0000        10.577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2898        .72177        .97450E-03   -1.5685    
  14  norm           .0000        .68651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.070        54.077        .13716E-03   -1.5562    
  16  Prefactor      .0000        1.2396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        6.1134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.778        18.465        .24481E-03   -1.5626    
  19  norm          .38700        .23734        .66877E-03   -1.5696    
  20  norm          8.4665        5.5251        .34416E-03   -1.5650    
  21  Normalizat    1.1038        .15452        .37834E-01   -.89630    
  22  Prefactor     .77809        .15590        .43434E-01   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15017e-07
Minuit parameter uncertainties:
  1  2.34094
  2  0.000268764
  3  205.47
  4  4.10316e-05
  5  31.4044
  6  2.00379
  7  0.958174
  8  40.326
  9  2.01083
  10  3.76511
  11  2.48771
  12  2.7015e-05
  13  0.721774
  14  4.39145e-06
  15  54.0776
  16  3.86892e-06
  17  2.469e-05
  18  18.4652
  19  0.237337
  20  5.52509
  21  0.154583
  22  0.15599
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  3.476e+00  4.033e+01  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:  7.781e-01  1.560e-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.104e+00  1.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/41212198/likelihoodResults_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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): 102
logL (Free Index) = 7164.71900751
delta logL = 0.089632685791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7164.70936541
delta logL = 0.099274784312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5836       1.0000          .0000       .10000E+07
     2 'Index     '    2.6972       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78485       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7164.709     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6094        1220.2        .93985E-04    .12934E-02
   2  Index         2.6962        6.6291        .11240E-01    .28123E-04
   3  Normalizat    1.0896        .15899        .22360E-03   -.62081E-04
   4  Prefactor     .78487        .16777        .27043E-03    .12847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60944
  Index      = 2.6962
  Normalizat = 1.08955
  Prefactor  = 0.784873
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.709     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6094        22.477        .18797E-04   -1.5665    
   2  Index         2.6962        1.6785        .44962E-03   -.47885    
   3  Normalizat    1.0896        .17055        .89439E-05   -.90088    
   4  Prefactor     .78487        .17536        .10817E-04   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38341e-10
Minuit parameter uncertainties:
  1  20.3577
  2  1.72137
  3  0.170633
  4  0.175485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7164.70936033
delta logL = 0.0992798728248

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  4.609e+00  2.036e+01  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  2.696e+00  1.721e+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:  7.849e-01  1.755e-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.090e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/41212198/cmap_HighResolution_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2026-10-18 02:57:51.205109', job_id='41212198', GAL2='0.78', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1792317471.21', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.93e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2216' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 18 02:57:51 PDT 2026

ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/41212282/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212282/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits.....................!
real 57.54
user 56.05
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/41212282/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits', '/lscratch/kocevski/41212282/ft2_4FGL_J0338.9-2848_daily_bin2216.fits', expMap='/lscratch/kocevski/41212282/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', expCube='/lscratch/kocevski/41212282/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/41212282/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212282/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits
Spacecraft file(s): /lscratch/kocevski/41212282/ft2_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure map: /lscratch/kocevski/41212282/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure cube: /lscratch/kocevski/41212282/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/41212282/Model_4FGL_J0338.9-2848_daily_bin2216.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) = 7164.82788767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5412       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38879E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    176.79       1.0000          .0000       .10000E+07
     4 'Prefactor '    .87112E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    23.910       1.0000          .0000       .10000E+07
     6 'norm      '    1.7690       1.0000          .0000       .10000E+07
     7 'norm      '    2.2897       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.2791       1.0000          .0000       .10000E+07
     9 'Prefactor '    .53270       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7026       1.0000          .0000       .10000E+07
    11 'Prefactor '    .44194       1.0000          .0000       .10000E+07
    12 'Prefactor '    .84770E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.2904       1.0000          .0000       .10000E+07
    14 'norm      '    .39746E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    53.160       1.0000          .0000       .10000E+07
    16 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
    17 'norm      '    .82046E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    16.701       1.0000          .0000       .10000E+07
    19 'norm      '    .38672       1.0000          .0000       .10000E+07
    20 'norm      '    8.4722       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1042       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77831       1.0000          .0000   outfile=/lscratch/kocevski/41212368/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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/41212368/ft2_4FGL_J0338.9-2848_daily_bin2216.fits
.....................!
real 7.97
user 7.59
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/41212368/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits evtable="EVENTS" scfile=/lscratch/kocevski/41212368/ft2_4FGL_J0338.9-2848_daily_bin2216.fits sctable="SC_DATA" expcube=/lscratch/kocevski/41212368/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits outfile=/lscratch/kocevski/41212368/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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/41212368/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
.....................!
real 63.83
user 59.84
sys 3.60

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/41212368/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits scfile=/lscratch/kocevski/41212368/ft2_4FGL_J0338.9-2848_daily_bin2216.fits outfile=/lscratch/kocevski/41212368/cmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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.53
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/41212368/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits scfile=/lscratch/kocevski/41212368/ft2_4FGL_J0338.9-2848_daily_bin2216.fits outfile=/lscratch/kocevski/41212368/cmap_HighResolution_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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.48
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/41212368/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits evtable="EVENTS" scfile=/lscratch/kocevski/41212368/ft2_4FGL_J0338.9-2848_daily_bin2216.fioutfile=/lscratch/kocevski/41212373/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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/41212373/ft2_4FGL_J0338.9-2848_daily_bin2216.fits
.....................!
real 7.85
user 7.53
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/41212373/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits evtable="EVENTS" scfile=/lscratch/kocevski/41212373/ft2_4FGL_J0338.9-2848_daily_bin2216.fits sctable="SC_DATA" expcube=/lscratch/kocevski/41212373/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits outfile=/lscratch/kocevski/41212373/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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/41212373/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
.....................!
real 63.81
user 59.71
sys 3.70

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/41212373/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits scfile=/lscratch/kocevski/41212373/ft2_4FGL_J0338.9-2848_daily_bin2216.fits outfile=/lscratch/kocevski/41212373/cmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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.46
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/41212373/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits scfile=/lscratch/kocevski/41212373/ft2_4FGL_J0338.9-2848_daily_bin2216.fits outfile=/lscratch/kocevski/41212373/cmap_HighResolution_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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.44
user 0.21
sys 0.13

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7164.809     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1797 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5418        2.3465       -.37678E-06    .19703E-02
   2  Prefactor     .13323E-08    13.680       -.20455E-05** at limit **
   3  Prefactor     181.04        205.85        .69470E-06    .93212E-04
   4  Prefactor     .55511E-10    10.079        .54041E-06** at limit **
   5  Prefactor     24.238        31.311       -.46658E-05   -.28581E-03
   6  norm          1.7699        1.9831       -.17589E-06   -.34189E-02
   7  norm          2.2907        .95228       -.25601E-06    .76898E-02
   8  Prefactor     3.4764        117.00        .43459E-04    .82488E-03
   9  Prefactor     .53028        1.9857       -.17184E-05   -.56619E-02
  10  Prefactor     2.7012        3.6295       -.28436E-06   -.49232E-02
  11  Prefactor     .44376        3.2095       -.71445E-06   -.39128E-02
  12  Prefactor      .0000        10.611        .17279E-06** at limit **
  13  norm          1.2898        .70876       -.27220E-06    .16746E-01
  14  norm           .0000        .68808       -.67467E-06** at limit **
  15  Prefactor     53.070        54.120        .45108E-05    .10623E-02
  16  Prefactor      .0000        1.2459        .10384E-05** at limit **
  17  norm           .0000        6.1174        .68481E-06** at limit **
  18  Prefactor     16.778        18.480        .14028E-06   -.11251E-02
  19  norm          .38700        .23114       -.54764E-07   -.24210E-01
  20  norm          8.4665        5.5152       -.27198E-06    .79636E-03
  21  Normalizat    1.1038        .17491       -.56781E-05   -.55854E-03
  22  Prefactor     .77809        .17589        .45432E-05   -.27981E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54183
  Prefactor  = 1.33227e-09
  Prefactor  = 181.036
  Prefactor  = 5.55112e-11
  Prefactor  = 24.238
  norm       = 1.7699
  norm       = 2.29069
  Prefactor  = 3.47639
  Prefactor  = 0.530282
  Prefactor  = 2.70118
  Prefactor  = 0.44376
  Prefactor  = 0
  norm       = 1.28982
  norm       = 0
  Prefactor  = 53.07
  Prefactor  = 0
  norm       = 0
  Prefactor  = 16.778
  norm       = 0.387
  norm       = 8.46649
  Normalizat = 1.1038
  Prefactor  = 0.77809
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  3.476e+00  4.033e+01  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:  7.781e-01  1.560e-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.104e+00  1.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/41212222/likelihoodResults_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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): 102
logL (Free Index) = 7164.71900751
delta logL = 0.089632685791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7164.70936541
delta logL = 0.099274784312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5836       1.0000          .0000       .10000E+07
     2 'Index     '    2.6972       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78485       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7164.709     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6094        1220.2        .93985E-04    .12934E-02
   2  Index         2.6962        6.6291        .11240E-01    .28123E-04
   3  Normalizat    1.0896        .15899        .22360E-03   -.62081E-04
   4  Prefactor     .78487        .16777        .27043E-03    .12847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60944
  Index      = 2.6962
  Normalizat = 1.08955
  Prefactor  = 0.784873
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.709     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6094        22.477        .18797E-04   -1.5665    
   2  Index         2.6962        1.6785        .44962E-03   -.47885    
   3  Normalizat    1.0896        .17055        .89439E-05   -.90088    
   4  Prefactor     .78487        .17536        .10817E-04   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38341e-10
Minuit parameter uncertainties:
  1  20.3577
  2  1.72137
  3  0.170633
  4  0.175485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7164.70936033
delta logL = 0.0992798728248

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  4.609e+00  2.036e+01  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  2.696e+00  1.721e+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:  7.849e-01  1.755e-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.090e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/41212222/cmap_HighResolution_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2026-10-18 02:58:13.263821', job_id='41212222', GAL2='0.78', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1792317493.26', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.93e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2216' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 18 02:58:13 PDT 2026

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

 FCN=   7164.809     FROM HESSE     STATUS=OK           392 CALLS     2189 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5418        2.3409        .64035E-03   -1.5676    
   2  Prefactor     .13323E-08    13.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     181.04        205.46        .75217E-04   -1.5439    
   4  Prefactor     .55511E-10    10.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.238        31.404        .20455E-03   -1.5609    
   6  norm          1.7699        2.0038        .78711E-03   -1.5681    
   7  norm          2.2907        .95817        .67811E-03   -1.5678    
   8  Prefactor     3.4764        116.94        .55893E-03   -1.5671    
   9  Prefactor     .53028        2.0108        .75486E-03   -1.5693    
  10  Prefactor     2.7012        3.7651        .61938E-03   -1.5675    
  11  Prefactor     .44376        3.4865        .84780E-03   -1.5695    
  12  Prefactor      .0000        10.577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2898        .72177        .97450E-03   -1.5685    
  14  norm           .0000        .68651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.070        54.077        .13716E-03   -1.5562    
  16  Prefactor      .0000        1.2396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        6.1134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.778        18.465        .24481E-03   -1.5626    
  19  norm          .38700        .23734        .66877E-03   -1.5696    
  20  norm          8.4665        5.5251        .34416E-03   -1.5650    
  21  Normalizat    1.1038        .15452        .37834E-01   -.89630    
  22  Prefactor     .77809        .15590        .43434E-01   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15017e-07
Minuit parameter uncertainties:
  1  2.34094
  2  0.000268764
  3  205.47
  4  4.10316e-05
  5  31.4044
  6  2.00379
  7  0.958174
  8  40.326
  9  2.01083
  10  3.76511
  11  2.48771
  12  2.7015e-05
  13  0.721774
  14  4.39145e-06
  15  54.0776
  16  3.86892e-06
  17  2.469e-05
  18  18.4652
  19  0.237337
  20  5.52509
  21  0.154583
  22  0.15599
its sctable="SC_DATA" srcmdl=/lscratch/kocevski/41212266/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212266/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits.....................!
real 68.09
user 66.70
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/41212266/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits', '/lscratch/kocevski/41212266/ft2_4FGL_J0338.9-2848_daily_bin2216.fits', expMap='/lscratch/kocevski/41212266/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', expCube='/lscratch/kocevski/41212266/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/41212266/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212266/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits
Spacecraft file(s): /lscratch/kocevski/41212266/ft2_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure map: /lscratch/kocevski/41212266/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure cube: /lscratch/kocevski/41212266/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/41212266/Model_4FGL_J0338.9-2848_daily_bin2216.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) = 7164.82788767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5412       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38879E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    176.79       1.0000          .0000       .10000E+07
     4 'Prefactor '    .87112E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    23.910       1.0000          .0000       .10000E+07
     6 'norm      '    1.7690       1.0000          .0000       .10000E+07
     7 'norm      '    2.2897       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.2791       1.0000          .0000       .10000E+07
     9 'Prefactor '    .53270       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7026       1.0000          .0000       .10000E+07
    11 'Prefactor '    .44194       1.0000          .0000       .10000E+07
    12 'Prefactor '    .84770E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.2904       1.0000          .0000       .10000E+07
    14 'norm      '    .39746E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    53.160       1.0000          .0000       .10000E+07
    16 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
    17 'norm      '    .82046E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    16.701       1.0000          .0000       .10000E+07
    19 'norm      '    .38672       1.0000          .0000       .10000E+07
    20 'norm      '    8.4722       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1042       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77831       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=   7164.809     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1797 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5418        2.3465       -.37678E-06    .19703E-02
   2  Prefactor     .13323E-08    13.680       -.20455E-05** at limit **
   3  Prefactor     181.04        205.85        .69470E-06    .93212E-04
   4  Prefactor     .55511E-10    10.079        .54041E-06** at limit **
   5  Prefactor     24.238        31.311       -.46658E-05   -.28581E-03
   6  norm          1.7699        1.9831       -.17589E-06   -.34189E-02
   7  norm          2.2907        .95228       -.25601E-06    .76898E-02
   8  Prefactor     3.4764        117.00        .43459E-04    .82488E-03
   9  Prefactor     .53028        1.9857       -.17184E-05   -.56619E-02
  10  Prefactor     2.7012        3.6295       -.28436E-06   -.49232E-02
  11  Prefactor     .44376        3.2095       -.71445E-06   -.39128E-02
  12  Prefactor      .0000        10.611        .17279E-06** at limit **
  13  norm          1.2898        .70876       -.27220E-06    .16746E-01
  14  norm           .0000        .68808       -.67467E-06** at limit **
  15  Prefactor     53.070        54.120        .45108E-05    .10623E-02
  16  Prefactor      .0000        1.2459        .10384E-05** at limit **
  17  norm           .0000        6.1174        .68481E-06** at limit **
  18  Prefactor     16.778        18.480        .14028E-06   -.11251E-02
  19  norm          .38700        .23114       -.54764E-07   -.24210E-01
  20  norm          8.4665        5.5152       -.27198E-06    .79636E-03
  21  Normalizat    1.1038        .17491       -.56781E-05   -.55854E-03
  22  Prefactor     .77809        .17589        .45432E-05   -.27981E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54183
  Prefactor  = 1.33227e-09
  Prefactor  = 181.036
  Prefactor  = 5.55112e-11
  Prefactor  = 24.238
  norm       = 1.7699
  norm       = 2.29069
  Prefactor  = 3.47639
  Prefactor  = 0.530282
  Prefactor  = 2.70118
  Prefactor  = 0.44376
  Prefactor  = 0
  norm       = 1.28982
  norm       = 0
  Prefactor  = 53.07
  Prefactor  = 0
  norm       = 0
  Prefactor  = 16.778
  norm       = 0.387
  norm       = 8.46649
  Normalizat = 1.1038
  Prefactor  = 0.77809
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  3.476e+00  4.033e+01  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:  7.781e-01  1.560e-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.104e+00  1.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/41212282/likelihoodResults_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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): 102
logL (Free Index) = 7164.71900751
delta logL = 0.089632685791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7164.70936541
delta logL = 0.099274784312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5836       1.0000          .0000       .10000E+07
     2 'Index     '    2.6972       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78485       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7164.709     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6094        1220.2        .93985E-04    .12934E-02
   2  Index         2.6962        6.6291        .11240E-01    .28123E-04
   3  Normalizat    1.0896        .15899        .22360E-03   -.62081E-04
   4  Prefactor     .78487        .16777        .27043E-03    .12847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60944
  Index      = 2.6962
  Normalizat = 1.08955
  Prefactor  = 0.784873
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.709     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6094        22.477        .18797E-04   -1.5665    
   2  Index         2.6962        1.6785        .44962E-03   -.47885    
   3  Normalizat    1.0896        .17055        .89439E-05   -.90088    
   4  Prefactor     .78487        .17536        .10817E-04   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38341e-10
Minuit parameter uncertainties:
  1  20.3577
  2  1.72137
  3  0.170633
  4  0.175485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7164.70936033
delta logL = 0.0992798728248

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  4.609e+00  2.036e+01  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  2.696e+00  1.721e+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:  7.849e-01  1.755e-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.090e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/41212282/cmap_HighResolution_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2026-10-18 02:58:43.635183', job_id='41212282', GAL2='0.78', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1792317523.64', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.93e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2216' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 18 02:58:43 PDT 2026

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

 FCN=   7164.809     FROM HESSE     STATUS=OK           392 CALLS     2189 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5418        2.3409        .64035E-03   -1.5676    
   2  Prefactor     .13323E-08    13.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     181.04        205.46        .75217E-04   -1.5439    
   4  Prefactor     .55511E-10    10.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.238        31.404        .20455E-03   -1.5609    
   6  norm          1.7699        2.0038        .78711E-03   -1.5681    
   7  norm          2.2907        .95817        .67811E-03   -1.5678    
   8  Prefactor     3.4764        116.94        .55893E-03   -1.5671    
   9  Prefactor     .53028        2.0108        .75486E-03   -1.5693    
  10  Prefactor     2.7012        3.7651        .61938E-03   -1.5675    
  11  Prefactor     .44376        3.4865        .84780E-03   -1.5695    
  12  Prefactor      .0000        10.577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2898        .72177        .97450E-03   -1.5685    
  14  norm           .0000        .68651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.070        54.077        .13716E-03   -1.5562    
  16  Prefactor      .0000        1.2396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        6.1134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.778        18.465        .24481E-03   -1.5626    
  19  norm          .38700        .23734        .66877E-03   -1.5696    
  20  norm          8.4665        5.5251        .34416E-03   -1.5650    
  21  Normalizat    1.1038        .15452        .37834E-01   -.89630    
  22  Prefactor     .77809        .15590        .43434E-01   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15017e-07
Minuit parameter uncertainties:
  1  2.34094
  2  0.000268764
  3  205.47
  4  4.10316e-05
  5  31.4044
  6  2.00379
  7  0.958174
  8  40.326
  9  2.01083
  10  3.76511
  11  2.48771
  12  2.7015e-05
  13  0.721774
  14  4.39145e-06
  15  54.0776
  16  3.86892e-06
  17  2.469e-05
  18  18.4652
  19  0.237337
  20  5.52509
  21  0.154583
  22  0.15599
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/41212313/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212313/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits.....................!
real 61.66
user 60.12
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/41212313/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits', '/lscratch/kocevski/41212313/ft2_4FGL_J0338.9-2848_daily_bin2216.fits', expMap='/lscratch/kocevski/41212313/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', expCube='/lscratch/kocevski/41212313/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/41212313/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212313/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits
Spacecraft file(s): /lscratch/kocevski/41212313/ft2_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure map: /lscratch/kocevski/41212313/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure cube: /lscratch/kocevski/41212313/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/41212313/Model_4FGL_J0338.9-2848_daily_bin2216.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) = 7164.82788767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5412       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38879E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    176.79       1.0000          .0000       .10000E+07
     4 'Prefactor '    .87112E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    23.910       1.0000          .0000       .10000E+07
     6 'norm      '    1.7690       1.0000          .0000       .10000E+07
     7 'norm      '    2.2897       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.2791       1.0000          .0000       .10000E+07
     9 'Prefactor '    .53270       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7026       1.0000          .0000       .10000E+07
    11 'Prefactor '    .44194       1.0000          .0000       .10000E+07
    12 'Prefactor '    .84770E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.2904       1.0000          .0000       .10000E+07
    14 'norm      '    .39746E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    53.160       1.0000          .0000       .10000E+07
    16 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
    17 'norm      '    .82046E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    16.701       1.0000          .0000       .10000E+07
    19 'norm      '    .38672       1.0000          .0000       .10000E+07
    20 'norm      '    8.4722       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1042       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77831       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=   7164.809     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1797 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5418        2.3465       -.37678E-06    .19703E-02
   2  Prefactor     .13323E-08    13.680       -.20455E-05** at limit **
   3  Prefactor     181.04        205.85        .69470E-06    .93212E-04
   4  Prefactor     .55511E-10    10.079        .54041E-06** at limit **
   5  Prefactor     24.238        31.311       -.46658E-05   -.28581E-03
   6  norm          1.7699        1.9831       -.17589E-06   -.34189E-02
   7  norm          2.2907        .95228       -.25601E-06    .76898E-02
   8  Prefactor     3.4764        117.00        .43459E-04    .82488E-03
   9  Prefactor     .53028        1.9857       -.17184E-05   -.56619E-02
  10  Prefactor     2.7012        3.6295       -.28436E-06   -.49232E-02
  11  Prefactor     .44376        3.2095       -.71445E-06   -.39128E-02
  12  Prefactor      .0000        10.611        .17279E-06** at limit **
  13  norm          1.2898        .70876       -.27220E-06    .16746E-01
  14  norm           .0000        .68808       -.67467E-06** at limit **
  15  Prefactor     53.070        54.120        .45108E-05    .10623E-02
  16  Prefactor      .0000        1.2459        .10384E-05** at limit **
  17  norm           .0000        6.1174        .68481E-06** at limit **
  18  Prefactor     16.778        18.480        .14028E-06   -.11251E-02
  19  norm          .38700        .23114       -.54764E-07   -.24210E-01
  20  norm          8.4665        5.5152       -.27198E-06    .79636E-03
  21  Normalizat    1.1038        .17491       -.56781E-05   -.55854E-03
  22  Prefactor     .77809        .17589        .45432E-05   -.27981E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54183
  Prefactor  = 1.33227e-09
  Prefactor  = 181.036
  Prefactor  = 5.55112e-11
  Prefactor  = 24.238
  norm       = 1.7699
  norm       = 2.29069
  Prefactor  = 3.47639
  Prefactor  = 0.530282
  Prefactor  = 2.70118
  Prefactor  = 0.44376
  Prefactor  = 0
  norm       = 1.28982
  norm       = 0
  Prefactor  = 53.07
  Prefactor  = 0
  norm       = 0
  Prefactor  = 16.778
  norm       = 0.387
  norm       = 8.46649
  Normalizat = 1.1038
  Prefactor  = 0.77809
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  3.476e+00  4.033e+01  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:  7.781e-01  1.560e-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.104e+00  1.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/41212266/likelihoodResults_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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): 102
logL (Free Index) = 7164.71900751
delta logL = 0.089632685791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7164.70936541
delta logL = 0.099274784312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5836       1.0000          .0000       .10000E+07
     2 'Index     '    2.6972       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78485       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7164.709     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6094        1220.2        .93985E-04    .12934E-02
   2  Index         2.6962        6.6291        .11240E-01    .28123E-04
   3  Normalizat    1.0896        .15899        .22360E-03   -.62081E-04
   4  Prefactor     .78487        .16777        .27043E-03    .12847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60944
  Index      = 2.6962
  Normalizat = 1.08955
  Prefactor  = 0.784873
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.709     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6094        22.477        .18797E-04   -1.5665    
   2  Index         2.6962        1.6785        .44962E-03   -.47885    
   3  Normalizat    1.0896        .17055        .89439E-05   -.90088    
   4  Prefactor     .78487        .17536        .10817E-04   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38341e-10
Minuit parameter uncertainties:
  1  20.3577
  2  1.72137
  3  0.170633
  4  0.175485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7164.70936033
delta logL = 0.0992798728248

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  4.609e+00  2.036e+01  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  2.696e+00  1.721e+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:  7.849e-01  1.755e-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.090e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/41212266/cmap_HighResolution_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2026-10-18 02:59:21.482056', job_id='41212266', GAL2='0.78', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1792317561.48', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.93e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2216' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 18 02:59:21 PDT 2026

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

 FCN=   7164.809     FROM HESSE     STATUS=OK           392 CALLS     2189 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5418        2.3409        .64035E-03   -1.5676    
   2  Prefactor     .13323E-08    13.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     181.04        205.46        .75217E-04   -1.5439    
   4  Prefactor     .55511E-10    10.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.238        31.404        .20455E-03   -1.5609    
   6  norm          1.7699        2.0038        .78711E-03   -1.5681    
   7  norm          2.2907        .95817        .67811E-03   -1.5678    
   8  Prefactor     3.4764        116.94        .55893E-03   -1.5671    
   9  Prefactor     .53028        2.0108        .75486E-03   -1.5693    
  10  Prefactor     2.7012        3.7651        .61938E-03   -1.5675    
  11  Prefactor     .44376        3.4865        .84780E-03   -1.5695    
  12  Prefactor      .0000        10.577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2898        .72177        .97450E-03   -1.5685    
  14  norm           .0000        .68651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.070        54.077        .13716E-03   -1.5562    
  16  Prefactor      .0000        1.2396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        6.1134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.778        18.465        .24481E-03   -1.5626    
  19  norm          .38700        .23734        .66877E-03   -1.5696    
  20  norm          8.4665        5.5251        .34416E-03   -1.5650    
  21  Normalizat    1.1038        .15452        .37834E-01   -.89630    
  22  Prefactor     .77809        .15590        .43434E-01   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15017e-07
Minuit parameter uncertainties:
  1  2.34094
  2  0.000268764
  3  205.47
  4  4.10316e-05
  5  31.4044
  6  2.00379
  7  0.958174
  8  40.326
  9  2.01083
  10  3.76511
  11  2.48771
  12  2.7015e-05
  13  0.721774
  14  4.39145e-06
  15  54.0776
  16  3.86892e-06
  17  2.469e-05
  18  18.4652
  19  0.237337
  20  5.52509
  21  0.154583
  22  0.15599
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  3.476e+00  4.033e+01  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:  7.781e-01  1.560e-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.104e+00  1.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/41212313/likelihoodResults_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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): 102
logL (Free Index) = 7164.71900751
delta logL = 0.089632685791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7164.70936541
delta logL = 0.099274784312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5836       1.0000          .0000       .10000E+07
     2 'Index     '    2.6972       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78485       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7164.709     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6094        1220.2        .93985E-04    .12934E-02
   2  Index         2.6962        6.6291        .11240E-01    .28123E-04
   3  Normalizat    1.0896        .15899        .22360E-03   -.62081E-04
   4  Prefactor     .78487        .16777        .27043E-03    .12847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60944
  Index      = 2.6962
  Normalizat = 1.08955
  Prefactor  = 0.784873
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.709     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6094        22.477        .18797E-04   -1.5665    
   2  Index         2.6962        1.6785        .44962E-03   -.47885    
   3  Normalizat    1.0896        .17055        .89439E-05   -.90088    
   4  Prefactor     .78487        .17536        .10817E-04   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38341e-10
Minuit parameter uncertainties:
  1  20.3577
  2  1.72137
  3  0.170633
  4  0.175485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7164.70936033
delta logL = 0.0992798728248

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  4.609e+00  2.036e+01  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  2.696e+00  1.721e+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:  7.849e-01  1.755e-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.090e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/41212313/cmap_HighResolution_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2026-10-18 02:59:52.870937', job_id='41212313', GAL2='0.78', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1792317592.87', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.93e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2216' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 18 02:59:53 PDT 2026

ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/41212368/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212368/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits.....................!
real 55.00
user 53.67
sys 0.88

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/41212368/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits', '/lscratch/kocevski/41212368/ft2_4FGL_J0338.9-2848_daily_bin2216.fits', expMap='/lscratch/kocevski/41212368/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', expCube='/lscratch/kocevski/41212368/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/41212368/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212368/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits
Spacecraft file(s): /lscratch/kocevski/41212368/ft2_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure map: /lscratch/kocevski/41212368/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure cube: /lscratch/kocevski/41212368/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/41212368/Model_4FGL_J0338.9-2848_daily_bin2216.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) = 7164.82788767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5412       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38879E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    176.79       1.0000          .0000       .10000E+07
     4 'Prefactor '    .87112E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    23.910       1.0000          .0000       .10000E+07
     6 'norm      '    1.7690       1.0000          .0000       .10000E+07
     7 'norm      '    2.2897       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.2791       1.0000          .0000       .10000E+07
     9 'Prefactor '    .53270       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7026       1.0000          .0000       .10000E+07
    11 'Prefactor '    .44194       1.0000          .0000       .10000E+07
    12 'Prefactor '    .84770E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.2904       1.0000          .0000       .10000E+07
    14 'norm      '    .39746E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    53.160       1.0000          .0000       .10000E+07
    16 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
    17 'norm      '    .82046E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    16.701       1.0000          .0000       .10000E+07
    19 'norm      '    .38672       1.0000          .0000       .10000E+07
    20 'norm      '    8.4722       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1042       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77831       1.0000          .0000   ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/41212373/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212373/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits.....................!
real 54.84
user 53.60
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/41212373/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits', '/lscratch/kocevski/41212373/ft2_4FGL_J0338.9-2848_daily_bin2216.fits', expMap='/lscratch/kocevski/41212373/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', expCube='/lscratch/kocevski/41212373/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/41212373/Model_4FGL_J0338.9-2848_daily_bin2216.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/41212373/ft1_filtered_4FGL_J0338.9-2848_daily_bin2216.fits
Spacecraft file(s): /lscratch/kocevski/41212373/ft2_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure map: /lscratch/kocevski/41212373/expmap_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
Exposure cube: /lscratch/kocevski/41212373/ltcube_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/41212373/Model_4FGL_J0338.9-2848_daily_bin2216.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) = 7164.82788767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5412       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38879E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    176.79       1.0000          .0000       .10000E+07
     4 'Prefactor '    .87112E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    23.910       1.0000          .0000       .10000E+07
     6 'norm      '    1.7690       1.0000          .0000       .10000E+07
     7 'norm      '    2.2897       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.2791       1.0000          .0000       .10000E+07
     9 'Prefactor '    .53270       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7026       1.0000          .0000       .10000E+07
    11 'Prefactor '    .44194       1.0000          .0000       .10000E+07
    12 'Prefactor '    .84770E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.2904       1.0000          .0000       .10000E+07
    14 'norm      '    .39746E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    53.160       1.0000          .0000       .10000E+07
    16 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
    17 'norm      '    .82046E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    16.701       1.0000          .0000       .10000E+07
    19 'norm      '    .38672       1.0000          .0000       .10000E+07
    20 'norm      '    8.4722       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1042       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77831       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=   7164.809     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1797 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5418        2.3465       -.37678E-06    .19703E-02
   2  Prefactor     .13323E-08    13.680       -.20455E-05** at limit **
   3  Prefactor     181.04        205.85        .69470E-06    .93212E-04
   4  Prefactor     .55511E-10    10.079        .54041E-06** at limit **
   5  Prefactor     24.238        31.311       -.46658E-05   -.28581E-03
   6  norm          1.7699        1.9831       -.17589E-06   -.34189E-02
   7  norm          2.2907        .95228       -.25601E-06    .76898E-02
   8  Prefactor     3.4764        117.00        .43459E-04    .82488E-03
   9  Prefactor     .53028        1.9857       -.17184E-05   -.56619E-02
  10  Prefactor     2.7012        3.6295       -.28436E-06   -.49232E-02
  11  Prefactor     .44376        3.2095       -.71445E-06   -.39128E-02
  12  Prefactor      .0000        10.611        .17279E-06** at limit **
  13  norm          1.2898        .70876       -.27220E-06    .16746E-01
  14  norm           .0000        .68808       -.67467E-06** at limit **
  15  Prefactor     53.070        54.120        .45108E-05    .10623E-02
  16  Prefactor      .0000        1.2459        .10384E-05** at limit **
  17  norm           .0000        6.1174        .68481E-06** at limit **
  18  Prefactor     16.778        18.480        .14028E-06   -.11251E-02
  19  norm          .38700        .23114       -.54764E-07   -.24210E-01
  20  norm          8.4665        5.5152       -.27198E-06    .79636E-03
  21  Normalizat    1.1038        .17491       -.56781E-05   -.55854E-03
  22  Prefactor     .77809        .17589        .45432E-05   -.27981E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54183
  Prefactor  = 1.33227e-09
  Prefactor  = 181.036
  Prefactor  = 5.55112e-11
  Prefactor  = 24.238
  norm       = 1.7699
  norm       = 2.29069
  Prefactor  = 3.47639
  Prefactor  = 0.530282
  Prefactor  = 2.70118
  Prefactor  = 0.44376
  Prefactor  = 0
  norm       = 1.28982
  norm       = 0
  Prefactor  = 53.07
  Prefactor  = 0
  norm       = 0
  Prefactor  = 16.778
  norm       = 0.387
  norm       = 8.46649
  Normalizat = 1.1038
  Prefactor  = 0.77809
    10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7164.809     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1797 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5418        2.3465       -.37678E-06    .19703E-02
   2  Prefactor     .13323E-08    13.680       -.20455E-05** at limit **
   3  Prefactor     181.04        205.85        .69470E-06    .93212E-04
   4  Prefactor     .55511E-10    10.079        .54041E-06** at limit **
   5  Prefactor     24.238        31.311       -.46658E-05   -.28581E-03
   6  norm          1.7699        1.9831       -.17589E-06   -.34189E-02
   7  norm          2.2907        .95228       -.25601E-06    .76898E-02
   8  Prefactor     3.4764        117.00        .43459E-04    .82488E-03
   9  Prefactor     .53028        1.9857       -.17184E-05   -.56619E-02
  10  Prefactor     2.7012        3.6295       -.28436E-06   -.49232E-02
  11  Prefactor     .44376        3.2095       -.71445E-06   -.39128E-02
  12  Prefactor      .0000        10.611        .17279E-06** at limit **
  13  norm          1.2898        .70876       -.27220E-06    .16746E-01
  14  norm           .0000        .68808       -.67467E-06** at limit **
  15  Prefactor     53.070        54.120        .45108E-05    .10623E-02
  16  Prefactor      .0000        1.2459        .10384E-05** at limit **
  17  norm           .0000        6.1174        .68481E-06** at limit **
  18  Prefactor     16.778        18.480        .14028E-06   -.11251E-02
  19  norm          .38700        .23114       -.54764E-07   -.24210E-01
  20  norm          8.4665        5.5152       -.27198E-06    .79636E-03
  21  Normalizat    1.1038        .17491       -.56781E-05   -.55854E-03
  22  Prefactor     .77809        .17589        .45432E-05   -.27981E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54183
  Prefactor  = 1.33227e-09
  Prefactor  = 181.036
  Prefactor  = 5.55112e-11
  Prefactor  = 24.238
  norm       = 1.7699
  norm       = 2.29069
  Prefactor  = 3.47639
  Prefactor  = 0.530282
  Prefactor  = 2.70118
  Prefactor  = 0.44376
  Prefactor  = 0
  norm       = 1.28982
  norm       = 0
  Prefactor  = 53.07
  Prefactor  = 0
  norm       = 0
  Prefactor  = 16.778
  norm       = 0.387
  norm       = 8.46649
  Normalizat = 1.1038
  Prefactor  = 0.77809
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.809     FROM HESSE     STATUS=OK           392 CALLS     2189 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5418        2.3409        .64035E-03   -1.5676    
   2  Prefactor     .13323E-08    13.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     181.04        205.46        .75217E-04   -1.5439    
   4  Prefactor     .55511E-10    10.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.238        31.404        .20455E-03   -1.5609    
   6  norm          1.7699        2.0038        .78711E-03   -1.5681    
   7  norm          2.2907        .95817        .67811E-03   -1.5678    
   8  Prefactor     3.4764        116.94        .55893E-03   -1.5671    
   9  Prefactor     .53028        2.0108        .75486E-03   -1.5693    
  10  Prefactor     2.7012        3.7651        .61938E-03   -1.5675    
  11  Prefactor     .44376        3.4865        .84780E-03   -1.5695    
  12  Prefactor      .0000        10.577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2898        .72177        .97450E-03   -1.5685    
  14  norm           .0000        .68651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.070        54.077        .13716E-03   -1.5562    
  16  Prefactor      .0000        1.2396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        6.1134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.778        18.465        .24481E-03   -1.5626    
  19  norm          .38700        .23734        .66877E-03   -1.5696    
  20  norm          8.4665        5.5251        .34416E-03   -1.5650    
  21  Normalizat    1.1038        .15452        .37834E-01   -.89630    
  22  Prefactor     .77809        .15590        .43434E-01   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15017e-07
Minuit parameter uncertainties:
  1  2.34094
  2  0.000268764
  3  205.47
  4  4.10316e-05
  5  31.4044
  6  2.00379
  7  0.958174
  8  40.326
  9  2.01083
  10  3.76511
  11  2.48771
  12  2.7015e-05
  13  0.721774
  14  4.39145e-06
  15  54.0776
  16  3.86892e-06
  17  2.469e-05
  18  18.4652
  19  0.237337
  20  5.52509
  21  0.154583
  22  0.15599
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.809     FROM HESSE     STATUS=OK           392 CALLS     2189 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5418        2.3409        .64035E-03   -1.5676    
   2  Prefactor     .13323E-08    13.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     181.04        205.46        .75217E-04   -1.5439    
   4  Prefactor     .55511E-10    10.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.238        31.404        .20455E-03   -1.5609    
   6  norm          1.7699        2.0038        .78711E-03   -1.5681    
   7  norm          2.2907        .95817        .67811E-03   -1.5678    
   8  Prefactor     3.4764        116.94        .55893E-03   -1.5671    
   9  Prefactor     .53028        2.0108        .75486E-03   -1.5693    
  10  Prefactor     2.7012        3.7651        .61938E-03   -1.5675    
  11  Prefactor     .44376        3.4865        .84780E-03   -1.5695    
  12  Prefactor      .0000        10.577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2898        .72177        .97450E-03   -1.5685    
  14  norm           .0000        .68651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.070        54.077        .13716E-03   -1.5562    
  16  Prefactor      .0000        1.2396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        6.1134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.778        18.465        .24481E-03   -1.5626    
  19  norm          .38700        .23734        .66877E-03   -1.5696    
  20  norm          8.4665        5.5251        .34416E-03   -1.5650    
  21  Normalizat    1.1038        .15452        .37834E-01   -.89630    
  22  Prefactor     .77809        .15590        .43434E-01   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15017e-07
Minuit parameter uncertainties:
  1  2.34094
  2  0.000268764
  3  205.47
  4  4.10316e-05
  5  31.4044
  6  2.00379
  7  0.958174
  8  40.326
  9  2.01083
  10  3.76511
  11  2.48771
  12  2.7015e-05
  13  0.721774
  14  4.39145e-06
  15  54.0776
  16  3.86892e-06
  17  2.469e-05
  18  18.4652
  19  0.237337
  20  5.52509
  21  0.154583
  22  0.15599
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  3.476e+00  4.033e+01  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:  7.781e-01  1.560e-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.104e+00  1.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/41212368/likelihoodResults_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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): 102
logL (Free Index) = 7164.71900751
delta logL = 0.089632685791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7164.70936541
delta logL = 0.099274784312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5836       1.0000          .0000       .10000E+07
     2 'Index     '    2.6972       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78485       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7164.709     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6094        1220.2        .93985E-04    .12934E-02
   2  Index         2.6962        6.6291        .11240E-01    .28123E-04
   3  Normalizat    1.0896        .15899        .22360E-03   -.62081E-04
   4  Prefactor     .78487        .16777        .27043E-03    .12847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60944
  Index      = 2.6962
  Normalizat = 1.08955
  Prefactor  = 0.784873
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.709     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6094        22.477        .18797E-04   -1.5665    
   2  Index         2.6962        1.6785        .44962E-03   -.47885    
   3  Normalizat    1.0896        .17055        .89439E-05   -.90088    
   4  Prefactor     .78487        .17536        .10817E-04   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38341e-10
Minuit parameter uncertainties:
  1  20.3577
  2  1.72137
  3  0.170633
  4  0.175485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7164.70936033
delta logL = 0.0992798728248

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  4.609e+00  2.036e+01  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  2.696e+00  1.721e+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:  7.849e-01  1.755e-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.090e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/41212368/cmap_HighResolution_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2026-10-18 03:00:47.866765', job_id='41212368', GAL2='0.78', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1792317647.87', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.93e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2216' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 18 03:00:47 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  3.476e+00  4.033e+01  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:  7.781e-01  1.560e-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.104e+00  1.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/41212373/likelihoodResults_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.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): 102
logL (Free Index) = 7164.71900751
delta logL = 0.089632685791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7164.70936541
delta logL = 0.099274784312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5836       1.0000          .0000       .10000E+07
     2 'Index     '    2.6972       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78485       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7164.709     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6094        1220.2        .93985E-04    .12934E-02
   2  Index         2.6962        6.6291        .11240E-01    .28123E-04
   3  Normalizat    1.0896        .15899        .22360E-03   -.62081E-04
   4  Prefactor     .78487        .16777        .27043E-03    .12847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60944
  Index      = 2.6962
  Normalizat = 1.08955
  Prefactor  = 0.784873
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.709     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6094        22.477        .18797E-04   -1.5665    
   2  Index         2.6962        1.6785        .44962E-03   -.47885    
   3  Normalizat    1.0896        .17055        .89439E-05   -.90088    
   4  Prefactor     .78487        .17536        .10817E-04   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38341e-10
Minuit parameter uncertainties:
  1  20.3577
  2  1.72137
  3  0.170633
  4  0.175485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7164.70936033
delta logL = 0.0992798728248

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  4.609e+00  2.036e+01  0.000e+00  1.000e+06 ( 1.000e-14)
259        Index:  2.696e+00  1.721e+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:  7.849e-01  1.755e-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.090e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/41212373/cmap_HighResolution_813715201_813974401_4FGL_J0338.9-2848_daily_bin2216.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2026-10-18 03:00:53.804202', job_id='41212373', GAL2='0.78', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1792317653.8', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.93e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2216' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 18 03:00:53 PDT 2026

