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

 FCN=   5460.448     FROM HESSE     STATUS=OK           392 CALLS     2225 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.3893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1425        19.002        .35387E-03   -1.5651    
   3  Prefactor     93.003        201.13        .76761E-04   -1.5515    
   4  Prefactor     5.9844        16.479        .43081E-03   -1.5659    
   5  Prefactor     .29086E-05    18.603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.1770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0187        .72332        .11567E-02   -1.5688    
   8  Prefactor     .30531E-08    12.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1689        2.2345        .10936E-02   -1.5686    
  10  Prefactor     3.9020        3.9448        .50931E-03   -1.5668    
  11  Prefactor     .11102E-09    2.3823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .27756E-09    7.4704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .48007        .72423        .15087E-02   -1.5694    
  14  norm          .48899        1.0689        .20080E-02   -1.5694    
  15  Prefactor     .31086E-08    25.581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9788        3.1123        .58551E-03   -1.5673    
  17  norm          .27842E-05    19.331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0309        18.097        .44621E-03   -1.5663    
  19  norm          .31842        .28278        .75272E-03   -1.5697    
  20  norm          27.186        9.6444        .19113E-03   -1.5604    
  21  Normalizat    1.0755        .17794        .39122E-01   -.90541    
  22  Prefactor     .86800        .18318        .44535E-01   -.97268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6814e-07
Minuit parameter uncertainties:
  1  2.55403e-06
  2  19.0025
  3  201.142
  4  16.4789
  5  0.0147117
  6  4.8621e-06
  7  0.723319
  8  0.000392804
  9  2.23449
  10  3.94483
  11  2.90885e-05
  12  9.3097e-05
  13  0.724232
  14  1.06886
  15  0.000561819
  16  3.11232
  17  0.0146725
  18  18.0976
  19  0.282777
  20  9.6444
  21  0.178038
  22  0.183307
/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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

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

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

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

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.680e-01  1.833e-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.076e+00  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/31066470/likelihoodResults_804384001_804643201_4FGL_J0338.9-2848_daily_bin2180.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) = 5460.48602666
delta logL = -0.0378967067099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5460.44813
delta logL = -5.36929292139e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56194E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .76537       1.0000          .0000       10.000    
     3 'Normalizat'    1.0756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86796       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.

 FCN=   5460.448     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      228 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    .90084E-01    .42118E-03** at limit **
   2  Index         1.9905        7.1706        .43265        .78831E-10
   3  Normalizat    1.0755        .37802E-03    .39094E-01   -.32356E-03
   4  Prefactor     .86800        .40298E-03    .44595E-01   -.18050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 1.99047
  Normalizat = 1.07553
  Prefactor  = 0.868004
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.448     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      259 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    .29017        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9905        5.9820        .50000       -.64589    
   3  Normalizat    1.0755        .67811E-03    .22643E-03   -.90541    
   4  Prefactor     .86800        .72269E-03    .26438E-03   -.97268    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38901e-13
Minuit parameter uncertainties:
  1  1.90467e-05
  2  6652.35
  3  0.000678107
  4  0.000722689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5460.44812995
delta logL = 8.09450284578e-11

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.680e-01  7.227e-04  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.076e+00  6.781e-04  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-03', job_status='DONE', photon_flux_upper_limit='3.49e-08', time_completed='2026-07-08 16:12:17.072114', job_id='31066470', GAL2='0.87', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1783552337.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='8.09e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2180' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul  8 16:12:17 PDT 2026


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

ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/31066575/Model_4FGL_J0338.9-2848_daily_bin2180.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/31066575/ft1_filtered_4FGL_J0338.9-2848_daily_bin2180.fits.....................!
real 55.85
user 52.41
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61949E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.0170       1.0000          .0000       .10000E+07
     3 'Prefactor '    169.74       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.4346       1.0000          .0000       .10000E+07
     5 'Prefactor '    .80630E-06   1.0000          .0000       .10000E+07
     6 'norm      '    .12961E-05   1.0000          .0000       .10000E+07
     7 'norm      '    1.0217       1.0000          .0000       .10000E+07
     8 'Prefactor '    .83638E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.1351       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.9200       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15837E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .30909E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .48308       1.0000          .0000       .10000E+07
    14 'norm      '    .49152       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63086E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.0027       1.0000          .0000       .10000E+07
    17 'norm      '    .15679E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    5.0723       1.0000          .0000       .10000E+07
    19 'norm      '    .31899       1.0000          .0000       .10000E+07
    20 'norm      '    27.384       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0750       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86325       1.0000          .0000   ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/31066658/Model_4FGL_J0338.9-2848_daily_bin2180.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/31066658/ft1_filtered_4FGL_J0338.9-2848_daily_bin2180.fits.....................!
real 46.49
user 44.70
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61949E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.0170       1.0000          .0000       .10000E+07
     3 'Prefactor '    169.74       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.4346       1.0000          .0000       .10000E+07
     5 'Prefactor '    .80630E-06   1.0000          .0000       .10000E+07
     6 'norm      '    .12961E-05   1.0000          .0000       .10000E+07
     7 'norm      '    1.0217       1.0000          .0000       .10000E+07
     8 'Prefactor '    .83638E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.1351       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.9200       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15837E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .30909E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .48308       1.0000          .0000       .10000E+07
    14 'norm      '    .49152       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63086E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.0027       1.0000          .0000       .10000E+07
    17 'norm      '    .15679E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    5.0723       1.0000          .0000       .10000E+07
    19 'norm      '    .31899       1.0000          .0000       .10000E+07
    20 'norm      '    27.384       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0750       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86325       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=   5460.448     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1833 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.3940        .20581E-06** at limit **
   2  Prefactor     8.1425        9.9633       -.17217E-05   -.49872E-01
   3  Prefactor     93.003        200.21        .55936E-05   -.99897E-03
   4  Prefactor     5.9844        15.345       -.63816E-05   -.42321E-01
   5  Prefactor     .29086E-05    14.683        .10270E-04** at limit **
   6  norm           .0000        1.1839        .73913E-06** at limit **
   7  norm          1.0187        .71849        .47510E-06    .11735E-02
   8  Prefactor     .30531E-08    12.569       -.25521E-05** at limit **
   9  Prefactor     1.1689        2.1345        .12309E-05    .42421E-02
  10  Prefactor     3.9020        3.8860        .76220E-06    .83648E-03
  11  Prefactor     .11102E-09    2.3865        .62235E-06** at limit **
  12  Prefactor     .27756E-09    7.5112       -.26835E-05** at limit **
  13  norm          .48007        .63422       -.63000E-06   -.18014E-02
  14  norm          .48899        .84874        .30210E-06   -.72538E-02
  15  Prefactor     .31086E-08    25.543       -.88603E-05** at limit **
  16  Prefactor     2.9788        3.0667        .10434E-05    .49446E-02
  17  norm          .27842E-05    15.598        .11914E-05** at limit **
  18  Prefactor     5.0309        9.2482       -.11030E-05   -.62905E-01
  19  norm          .31842        .27028        .26320E-06   -.69337E-02
  20  norm          27.186        9.6163        .17098E-06   -.39441E-02
  21  Normalizat    1.0755        .20093        .17011E-04   -.50243E-04
  22  Prefactor     .86800        .20856       -.33275E-04   -.14859E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 8.14254
  Prefactor  = 93.003
  Prefactor  = 5.9844
  Prefactor  = 2.90862e-06
  norm       = 0
  norm       = 1.01871
  Prefactor  = 3.05311e-09
  Prefactor  = 1.16892
  Prefactor  = 3.90202
  Prefactor  = 1.11022e-10
  Prefactor  = 2.77556e-10
  norm       = 0.480075
  norm       = 0.488988
  Prefactor  = 3.10862e-09
  Prefactor  = 2.97883
  norm       = 2.78416e-06
  Prefactor  = 5.03095
  norm       = 0.318418
  norm       = 27.1861
  Normalizat = 1.07554
  Prefactor  = 0.868001
    10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5460.448     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1833 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.3940        .20581E-06** at limit **
   2  Prefactor     8.1425        9.9633       -.17217E-05   -.49872E-01
   3  Prefactor     93.003        200.21        .55936E-05   -.99897E-03
   4  Prefactor     5.9844        15.345       -.63816E-05   -.42321E-01
   5  Prefactor     .29086E-05    14.683        .10270E-04** at limit **
   6  norm           .0000        1.1839        .73913E-06** at limit **
   7  norm          1.0187        .71849        .47510E-06    .11735E-02
   8  Prefactor     .30531E-08    12.569       -.25521E-05** at limit **
   9  Prefactor     1.1689        2.1345        .12309E-05    .42421E-02
  10  Prefactor     3.9020        3.8860        .76220E-06    .83648E-03
  11  Prefactor     .11102E-09    2.3865        .62235E-06** at limit **
  12  Prefactor     .27756E-09    7.5112       -.26835E-05** at limit **
  13  norm          .48007        .63422       -.63000E-06   -.18014E-02
  14  norm          .48899        .84874        .30210E-06   -.72538E-02
  15  Prefactor     .31086E-08    25.543       -.88603E-05** at limit **
  16  Prefactor     2.9788        3.0667        .10434E-05    .49446E-02
  17  norm          .27842E-05    15.598        .11914E-05** at limit **
  18  Prefactor     5.0309        9.2482       -.11030E-05   -.62905E-01
  19  norm          .31842        .27028        .26320E-06   -.69337E-02
  20  norm          27.186        9.6163        .17098E-06   -.39441E-02
  21  Normalizat    1.0755        .20093        .17011E-04   -.50243E-04
  22  Prefactor     .86800        .20856       -.33275E-04   -.14859E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 8.14254
  Prefactor  = 93.003
  Prefactor  = 5.9844
  Prefactor  = 2.90862e-06
  norm       = 0
  norm       = 1.01871
  Prefactor  = 3.05311e-09
  Prefactor  = 1.16892
  Prefactor  = 3.90202
  Prefactor  = 1.11022e-10
  Prefactor  = 2.77556e-10
  norm       = 0.480075
  norm       = 0.488988
  Prefactor  = 3.10862e-09
  Prefactor  = 2.97883
  norm       = 2.78416e-06
  Prefactor  = 5.03095
  norm       = 0.318418
  norm       = 27.1861
  Normalizat = 1.07554
  Prefactor  = 0.868001
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/31066657/Model_4FGL_J0338.9-2848_daily_bin2180.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/31066657/ft1_filtered_4FGL_J0338.9-2848_daily_bin2180.fits.....................!
real 48.15
user 46.48
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61949E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.0170       1.0000          .0000       .10000E+07
     3 'Prefactor '    169.74       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.4346       1.0000          .0000       .10000E+07
     5 'Prefactor '    .80630E-06   1.0000          .0000       .10000E+07
     6 'norm      '    .12961E-05   1.0000          .0000       .10000E+07
     7 'norm      '    1.0217       1.0000          .0000       .10000E+07
     8 'Prefactor '    .83638E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.1351       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.9200       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15837E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .30909E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .48308       1.0000          .0000       .10000E+07
    14 'norm      '    .49152       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63086E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.0027       1.0000          .0000       .10000E+07
    17 'norm      '    .15679E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    5.0723       1.0000          .0000       .10000E+07
    19 'norm      '    .31899       1.0000          .0000       .10000E+07
    20 'norm      '    27.384       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0750       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86325       1.0000          .0000    **********
 **   18 **HESSE 
 **********

 FCN=   5460.448     FROM HESSE     STATUS=OK           392 CALLS     2225 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.3893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1425        19.002        .35387E-03   -1.5651    
   3  Prefactor     93.003        201.13        .76761E-04   -1.5515    
   4  Prefactor     5.9844        16.479        .43081E-03   -1.5659    
   5  Prefactor     .29086E-05    18.603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.1770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0187        .72332        .11567E-02   -1.5688    
   8  Prefactor     .30531E-08    12.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1689        2.2345        .10936E-02   -1.5686    
  10  Prefactor     3.9020        3.9448        .50931E-03   -1.5668    
  11  Prefactor     .11102E-09    2.3823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .27756E-09    7.4704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .48007        .72423        .15087E-02   -1.5694    
  14  norm          .48899        1.0689        .20080E-02   -1.5694    
  15  Prefactor     .31086E-08    25.581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9788        3.1123        .58551E-03   -1.5673    
  17  norm          .27842E-05    19.331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0309        18.097        .44621E-03   -1.5663    
  19  norm          .31842        .28278        .75272E-03   -1.5697    
  20  norm          27.186        9.6444        .19113E-03   -1.5604    
  21  Normalizat    1.0755        .17794        .39122E-01   -.90541    
  22  Prefactor     .86800        .18318        .44535E-01   -.97268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6814e-07
Minuit parameter uncertainties:
  1  2.55403e-06
  2  19.0025
  3  201.142
  4  16.4789
  5  0.0147117
  6  4.8621e-06
  7  0.723319
  8  0.000392804
  9  2.23449
  10  3.94483
  11  2.90885e-05
  12  9.3097e-05
  13  0.724232
  14  1.06886
  15  0.000561819
  16  3.11232
  17  0.0146725
  18  18.0976
  19  0.282777
  20  9.6444
  21  0.178038
  22  0.183307
    10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5460.448     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1833 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.3940        .20581E-06** at limit **
   2  Prefactor     8.1425        9.9633       -.17217E-05   -.49872E-01
   3  Prefactor     93.003        200.21        .55936E-05   -.99897E-03
   4  Prefactor     5.9844        15.345       -.63816E-05   -.42321E-01
   5  Prefactor     .29086E-05    14.683        .10270E-04** at limit **
   6  norm           .0000        1.1839        .73913E-06** at limit **
   7  norm          1.0187        .71849        .47510E-06    .11735E-02
   8  Prefactor     .30531E-08    12.569       -.25521E-05** at limit **
   9  Prefactor     1.1689        2.1345        .12309E-05    .42421E-02
  10  Prefactor     3.9020        3.8860        .76220E-06    .83648E-03
  11  Prefactor     .11102E-09    2.3865        .62235E-06** at limit **
  12  Prefactor     .27756E-09    7.5112       -.26835E-05** at limit **
  13  norm          .48007        .63422       -.63000E-06   -.18014E-02
  14  norm          .48899        .84874        .30210E-06   -.72538E-02
  15  Prefactor     .31086E-08    25.543       -.88603E-05** at limit **
  16  Prefactor     2.9788        3.0667        .10434E-05    .49446E-02
  17  norm          .27842E-05    15.598        .11914E-05** at limit **
  18  Prefactor     5.0309        9.2482       -.11030E-05   -.62905E-01
  19  norm          .31842        .27028        .26320E-06   -.69337E-02
  20  norm          27.186        9.6163        .17098E-06   -.39441E-02
  21  Normalizat    1.0755        .20093        .17011E-04   -.50243E-04
  22  Prefactor     .86800        .20856       -.33275E-04   -.14859E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 8.14254
  Prefactor  = 93.003
  Prefactor  = 5.9844
  Prefactor  = 2.90862e-06
  norm       = 0
  norm       = 1.01871
  Prefactor  = 3.05311e-09
  Prefactor  = 1.16892
  Prefactor  = 3.90202
  Prefactor  = 1.11022e-10
  Prefactor  = 2.77556e-10
  norm       = 0.480075
  norm       = 0.488988
  Prefactor  = 3.10862e-09
  Prefactor  = 2.97883
  norm       = 2.78416e-06
  Prefactor  = 5.03095
  norm       = 0.318418
  norm       = 27.1861
  Normalizat = 1.07554
  Prefactor  = 0.868001
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.448     FROM HESSE     STATUS=OK           392 CALLS     2225 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.3893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1425        19.002        .35387E-03   -1.5651    
   3  Prefactor     93.003        201.13        .76761E-04   -1.5515    
   4  Prefactor     5.9844        16.479        .43081E-03   -1.5659    
   5  Prefactor     .29086E-05    18.603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.1770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0187        .72332        .11567E-02   -1.5688    
   8  Prefactor     .30531E-08    12.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1689        2.2345        .10936E-02   -1.5686    
  10  Prefactor     3.9020        3.9448        .50931E-03   -1.5668    
  11  Prefactor     .11102E-09    2.3823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .27756E-09    7.4704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .48007        .72423        .15087E-02   -1.5694    
  14  norm          .48899        1.0689        .20080E-02   -1.5694    
  15  Prefactor     .31086E-08    25.581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9788        3.1123        .58551E-03   -1.5673    
  17  norm          .27842E-05    19.331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0309        18.097        .44621E-03   -1.5663    
  19  norm          .31842        .28278        .75272E-03   -1.5697    
  20  norm          27.186        9.6444        .19113E-03   -1.5604    
  21  Normalizat    1.0755        .17794        .39122E-01   -.90541    
  22  Prefactor     .86800        .18318        .44535E-01   -.97268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6814e-07
Minuit parameter uncertainties:
  1  2.55403e-06
  2  19.0025
  3  201.142
  4  16.4789
  5  0.0147117
  6  4.8621e-06
  7  0.723319
  8  0.000392804
  9  2.23449
  10  3.94483
  11  2.90885e-05
  12  9.3097e-05
  13  0.724232
  14  1.06886
  15  0.000561819
  16  3.11232
  17  0.0146725
  18  18.0976
  19  0.282777
  20  9.6444
  21  0.178038
  22  0.183307
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.448     FROM HESSE     STATUS=OK           392 CALLS     2225 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.3893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1425        19.002        .35387E-03   -1.5651    
   3  Prefactor     93.003        201.13        .76761E-04   -1.5515    
   4  Prefactor     5.9844        16.479        .43081E-03   -1.5659    
   5  Prefactor     .29086E-05    18.603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.1770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0187        .72332        .11567E-02   -1.5688    
   8  Prefactor     .30531E-08    12.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1689        2.2345        .10936E-02   -1.5686    
  10  Prefactor     3.9020        3.9448        .50931E-03   -1.5668    
  11  Prefactor     .11102E-09    2.3823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .27756E-09    7.4704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .48007        .72423        .15087E-02   -1.5694    
  14  norm          .48899        1.0689        .20080E-02   -1.5694    
  15  Prefactor     .31086E-08    25.581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9788        3.1123        .58551E-03   -1.5673    
  17  norm          .27842E-05    19.331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0309        18.097        .44621E-03   -1.5663    
  19  norm          .31842        .28278        .75272E-03   -1.5697    
  20  norm          27.186        9.6444        .19113E-03   -1.5604    
  21  Normalizat    1.0755        .17794        .39122E-01   -.90541    
  22  Prefactor     .86800        .18318        .44535E-01   -.97268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6814e-07
Minuit parameter uncertainties:
  1  2.55403e-06
  2  19.0025
  3  201.142
  4  16.4789
  5  0.0147117
  6  4.8621e-06
  7  0.723319
  8  0.000392804
  9  2.23449
  10  3.94483
  11  2.90885e-05
  12  9.3097e-05
  13  0.724232
  14  1.06886
  15  0.000561819
  16  3.11232
  17  0.0146725
  18  18.0976
  19  0.282777
  20  9.6444
  21  0.178038
  22  0.183307
number of points = 7669
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0338.9-2848_daily_bin2180
RA = 54.7447, Dec = -28.8009
tmin = 804384001, tmax = 804643201
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='31066816', job_status='RUN', time_executed='2026-07-08 16:12:19.488372', time_epoch_executed='1783552339.49' WHERE source_name='4FGL J0338.9-2848' and cadence='daily' and bin_id='2180'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31066816

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31066816/ft1_4FGL_J0338.9-2848_daily_bin2180.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31066816/ft2_4FGL_J0338.9-2848_daily_bin2180.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31066816/ft1_4FGL_J0338.9-2848_daily_bin2180.fits outfile=/lscratch/kocevski/31066816/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin2180.fits ra=54.7447 dec=-28.8009 rad=12.0 tmin=804384001.0 tmax=804643201.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 2.46
user 1.80
sys 0.15

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

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

Number of photons that the gtmktime cut: 495

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

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.680e-01  1.833e-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.076e+00  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/31066575/likelihoodResults_804384001_804643201_4FGL_J0338.9-2848_daily_bin2180.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) = 5460.48602666
delta logL = -0.0378967067099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5460.44813
delta logL = -5.36929292139e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56194E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .76537       1.0000          .0000       10.000    
     3 'Normalizat'    1.0756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86796       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.

 FCN=   5460.448     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      228 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    .90084E-01    .42118E-03** at limit **
   2  Index         1.9905        7.1706        .43265        .78831E-10
   3  Normalizat    1.0755        .37802E-03    .39094E-01   -.32356E-03
   4  Prefactor     .86800        .40298E-03    .44595E-01   -.18050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 1.99047
  Normalizat = 1.07553
  Prefactor  = 0.868004
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.448     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      259 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    .29017        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9905        5.9820        .50000       -.64589    
   3  Normalizat    1.0755        .67811E-03    .22643E-03   -.90541    
   4  Prefactor     .86800        .72269E-03    .26438E-03   -.97268    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38901e-13
Minuit parameter uncertainties:
  1  1.90467e-05
  2  6652.35
  3  0.000678107
  4  0.000722689
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.680e-01  1.833e-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.076e+00  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/31066658/likelihoodResults_804384001_804643201_4FGL_J0338.9-2848_daily_bin2180.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) = 5460.48602666
delta logL = -0.0378967067099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5460.44813
delta logL = -5.36929292139e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56194E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .76537       1.0000          .0000       10.000    
     3 'Normalizat'    1.0756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86796       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.

 FCN=   5460.448     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      228 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    .90084E-01    .42118E-03** at limit **
   2  Index         1.9905        7.1706        .43265        .78831E-10
   3  Normalizat    1.0755        .37802E-03    .39094E-01   -.32356E-03
   4  Prefactor     .86800        .40298E-03    .44595E-01   -.18050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 1.99047
  Normalizat = 1.07553
  Prefactor  = 0.868004
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.448     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      259 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    .29017        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9905        5.9820        .50000       -.64589    
   3  Normalizat    1.0755        .67811E-03    .22643E-03   -.90541    
   4  Prefactor     .86800        .72269E-03    .26438E-03   -.97268    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38901e-13
Minuit parameter uncertainties:
  1  1.90467e-05
  2  6652.35
  3  0.000678107
  4  0.000722689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5460.44812995
delta logL = 8.09450284578e-11

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.680e-01  7.227e-04  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.076e+00  6.781e-04  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-03', job_status='DONE', photon_flux_upper_limit='3.49e-08', time_completed='2026-07-08 16:13:59.180753', job_id='31066575', GAL2='0.87', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1783552439.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='8.09e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2180' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul  8 16:13:59 PDT 2026

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

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5460.44812995
delta logL = 8.09450284578e-11

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.680e-01  7.227e-04  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.076e+00  6.781e-04  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-03', job_status='DONE', photon_flux_upper_limit='3.49e-08', time_completed='2026-07-08 16:14:00.812838', job_id='31066658', GAL2='0.87', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1783552440.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='8.09e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2180' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul  8 16:14:01 PDT 2026

Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.680e-01  1.833e-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.076e+00  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/31066657/likelihoodResults_804384001_804643201_4FGL_J0338.9-2848_daily_bin2180.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) = 5460.48602666
delta logL = -0.0378967067099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5460.44813
delta logL = -5.36929292139e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56194E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .76537       1.0000          .0000       10.000    
     3 'Normalizat'    1.0756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86796       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.

 FCN=   5460.448     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      228 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    .90084E-01    .42118E-03** at limit **
   2  Index         1.9905        7.1706        .43265        .78831E-10
   3  Normalizat    1.0755        .37802E-03    .39094E-01   -.32356E-03
   4  Prefactor     .86800        .40298E-03    .44595E-01   -.18050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 1.99047
  Normalizat = 1.07553
  Prefactor  = 0.868004
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.448     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      259 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    .29017        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9905        5.9820        .50000       -.64589    
   3  Normalizat    1.0755        .67811E-03    .22643E-03   -.90541    
   4  Prefactor     .86800        .72269E-03    .26438E-03   -.97268    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38901e-13
Minuit parameter uncertainties:
  1  1.90467e-05
  2  6652.35
  3  0.000678107
  4  0.000722689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5460.44812995
delta logL = 8.09450284578e-11

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.680e-01  7.227e-04  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.076e+00  6.781e-04  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-03', job_status='DONE', photon_flux_upper_limit='3.49e-08', time_completed='2026-07-08 16:14:08.081704', job_id='31066657', GAL2='0.87', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1783552448.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='8.09e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2180' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul  8 16:14:08 PDT 2026

outfile=/lscratch/kocevski/31066816/ltcube_804384001_804643201_4FGL_J0338.9-2848_daily_bin2180.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/31066816/ft2_4FGL_J0338.9-2848_daily_bin2180.fits
.....................!
real 8.88
user 8.21
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31066816/ft1_filtered_4FGL_J0338.9-2848_daily_bin2180.fits evtable="EVENTS" scfile=/lscratch/kocevski/31066816/ft2_4FGL_J0338.9-2848_daily_bin2180.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31066816/ltcube_804384001_804643201_4FGL_J0338.9-2848_daily_bin2180.fits outfile=/lscratch/kocevski/31066816/expmap_804384001_804643201_4FGL_J0338.9-2848_daily_bin2180.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/31066816/ltcube_804384001_804643201_4FGL_J0338.9-2848_daily_bin2180.fits
.....................!
real 71.44
user 66.44
sys 4.22

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/31066816/ft1_filtered_4FGL_J0338.9-2848_daily_bin2180.fits scfile=/lscratch/kocevski/31066816/ft2_4FGL_J0338.9-2848_daily_bin2180.fits outfile=/lscratch/kocevski/31066816/cmap_804384001_804643201_4FGL_J0338.9-2848_daily_bin2180.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.59
user 0.22
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31066816/ft1_filtered_4FGL_J0338.9-2848_daily_bin2180.fits evtable="EVENTS" scfile=/lscratch/kocevski/31066816/ft2_4FGL_J0338.9-2848_daily_bin2180.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31066816/Model_4FGL_J0338.9-2848_daily_bin2180.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/31066816/ft1_filtered_4FGL_J0338.9-2848_daily_bin2180.fits.....................!
real 48.06
user 46.56
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61949E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.0170       1.0000          .0000       .10000E+07
     3 'Prefactor '    169.74       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.4346       1.0000          .0000       .10000E+07
     5 'Prefactor '    .80630E-06   1.0000          .0000       .10000E+07
     6 'norm      '    .12961E-05   1.0000          .0000       .10000E+07
     7 'norm      '    1.0217       1.0000          .0000       .10000E+07
     8 'Prefactor '    .83638E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.1351       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.9200       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15837E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .30909E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .48308       1.0000          .0000       .10000E+07
    14 'norm      '    .49152       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63086E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.0027       1.0000          .0000       .10000E+07
    17 'norm      '    .15679E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    5.0723       1.0000          .0000       .10000E+07
    19 'norm      '    .31899       1.0000          .0000       .10000E+07
    20 'norm      '    27.384       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0750       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86325       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=   5460.448     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1833 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.3940        .20581E-06** at limit **
   2  Prefactor     8.1425        9.9633       -.17217E-05   -.49872E-01
   3  Prefactor     93.003        200.21        .55936E-05   -.99897E-03
   4  Prefactor     5.9844        15.345       -.63816E-05   -.42321E-01
   5  Prefactor     .29086E-05    14.683        .10270E-04** at limit **
   6  norm           .0000        1.1839        .73913E-06** at limit **
   7  norm          1.0187        .71849        .47510E-06    .11735E-02
   8  Prefactor     .30531E-08    12.569       -.25521E-05** at limit **
   9  Prefactor     1.1689        2.1345        .12309E-05    .42421E-02
  10  Prefactor     3.9020        3.8860        .76220E-06    .83648E-03
  11  Prefactor     .11102E-09    2.3865        .62235E-06** at limit **
  12  Prefactor     .27756E-09    7.5112       -.26835E-05** at limit **
  13  norm          .48007        .63422       -.63000E-06   -.18014E-02
  14  norm          .48899        .84874        .30210E-06   -.72538E-02
  15  Prefactor     .31086E-08    25.543       -.88603E-05** at limit **
  16  Prefactor     2.9788        3.0667        .10434E-05    .49446E-02
  17  norm          .27842E-05    15.598        .11914E-05** at limit **
  18  Prefactor     5.0309        9.2482       -.11030E-05   -.62905E-01
  19  norm          .31842        .27028        .26320E-06   -.69337E-02
  20  norm          27.186        9.6163        .17098E-06   -.39441E-02
  21  Normalizat    1.0755        .20093        .17011E-04   -.50243E-04
  22  Prefactor     .86800        .20856       -.33275E-04   -.14859E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 8.14254
  Prefactor  = 93.003
  Prefactor  = 5.9844
  Prefactor  = 2.90862e-06
  norm       = 0
  norm       = 1.01871
  Prefactor  = 3.05311e-09
  Prefactor  = 1.16892
  Prefactor  = 3.90202
  Prefactor  = 1.11022e-10
  Prefactor  = 2.77556e-10
  norm       = 0.480075
  norm       = 0.488988
  Prefactor  = 3.10862e-09
  Prefactor  = 2.97883
  norm       = 2.78416e-06
  Prefactor  = 5.03095
  norm       = 0.318418
  norm       = 27.1861
  Normalizat = 1.07554
  Prefactor  = 0.868001
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.448     FROM HESSE     STATUS=OK           392 CALLS     2225 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.3893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1425        19.002        .35387E-03   -1.5651    
   3  Prefactor     93.003        201.13        .76761E-04   -1.5515    
   4  Prefactor     5.9844        16.479        .43081E-03   -1.5659    
   5  Prefactor     .29086E-05    18.603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.1770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0187        .72332        .11567E-02   -1.5688    
   8  Prefactor     .30531E-08    12.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1689        2.2345        .10936E-02   -1.5686    
  10  Prefactor     3.9020        3.9448        .50931E-03   -1.5668    
  11  Prefactor     .11102E-09    2.3823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .27756E-09    7.4704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .48007        .72423        .15087E-02   -1.5694    
  14  norm          .48899        1.0689        .20080E-02   -1.5694    
  15  Prefactor     .31086E-08    25.581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9788        3.1123        .58551E-03   -1.5673    
  17  norm          .27842E-05    19.331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0309        18.097        .44621E-03   -1.5663    
  19  norm          .31842        .28278        .75272E-03   -1.5697    
  20  norm          27.186        9.6444        .19113E-03   -1.5604    
  21  Normalizat    1.0755        .17794        .39122E-01   -.90541    
  22  Prefactor     .86800        .18318        .44535E-01   -.97268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6814e-07
Minuit parameter uncertainties:
  1  2.55403e-06
  2  19.0025
  3  201.142
  4  16.4789
  5  0.0147117
  6  4.8621e-06
  7  0.723319
  8  0.000392804
  9  2.23449
  10  3.94483
  11  2.90885e-05
  12  9.3097e-05
  13  0.724232
  14  1.06886
  15  0.000561819
  16  3.11232
  17  0.0146725
  18  18.0976
  19  0.282777
  20  9.6444
  21  0.178038
  22  0.183307
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.680e-01  1.833e-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.076e+00  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/31066816/likelihoodResults_804384001_804643201_4FGL_J0338.9-2848_daily_bin2180.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) = 5460.48602666
delta logL = -0.0378967067099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5460.44813
delta logL = -5.36929292139e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56194E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .76537       1.0000          .0000       10.000    
     3 'Normalizat'    1.0756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86796       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.

 FCN=   5460.448     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      228 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    .90084E-01    .42118E-03** at limit **
   2  Index         1.9905        7.1706        .43265        .78831E-10
   3  Normalizat    1.0755        .37802E-03    .39094E-01   -.32356E-03
   4  Prefactor     .86800        .40298E-03    .44595E-01   -.18050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 1.99047
  Normalizat = 1.07553
  Prefactor  = 0.868004
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.448     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      259 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    .29017        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9905        5.9820        .50000       -.64589    
   3  Normalizat    1.0755        .67811E-03    .22643E-03   -.90541    
   4  Prefactor     .86800        .72269E-03    .26438E-03   -.97268    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38901e-13
Minuit parameter uncertainties:
  1  1.90467e-05
  2  6652.35
  3  0.000678107
  4  0.000722689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5460.44812995
delta logL = 8.09450284578e-11

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.680e-01  7.227e-04  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.076e+00  6.781e-04  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-03', job_status='DONE', photon_flux_upper_limit='3.49e-08', time_completed='2026-07-08 16:17:56.096398', job_id='31066816', GAL2='0.87', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1783552676.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='8.09e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2180' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul  8 16:17:56 PDT 2026

