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

 FCN=   6596.130     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.961        4.4063        .86449E-05   -1.5628    
   2  Index         1.8179        .20318        .39668E-02   -.68986    
   3  Normalizat    .62434        .19169        .31438E-03   -1.0696    
   4  Prefactor     1.3730        .17818        .20451E-03   -.81163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15823e-12
Minuit parameter uncertainties:
  1  4.40632
  2  0.203273
  3  0.191898
  4  0.178256
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) = 6596.13023316
delta logL = 2.54706965632

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.596e+01  4.406e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  1.818e+00  2.033e-01  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.373e+00  1.783e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  6.243e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 57.11
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 1.82 +/- 0.20
Photon Flux (Free Index): 1.12e-07 +/- 3.70e-08
Energy Flux (Free Index): 1.27e-04 +/- 6.33e-05

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/31072508/cmap_HighResolution_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='1.27e-04', photon_flux_error='4.16e-08', dlogl='2.55e+00', energy_flux='5.90e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2026-07-08 18:44:21.568726', photon_index_error2='0.20', photon_index2='1.82', ts='51.98', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='6.33e-05', EG='0.57', time_epoch_completed='1783561461.57', return_code='0', job_id='31072508', GAL2='1.37', EG2='0.62', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='3.70e-08', ts2='57.11', photon_index='2.31' WHERE bin_id='2173' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul  8 18:44:21 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.206e+01  3.177e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.399e+00  1.574e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  5.741e-01  1.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 51.98
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 4.16e-08
Energy Flux (Fixed Index): 5.90e-05 +/- 1.55e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6596.52950021
delta logL = 2.14780260824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6596.13023324
delta logL = 2.54706957633

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6596.130     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.961        4.9287        .25044E-03    .13862E-02
   2  Index         1.8179        .21994        .92897E-01    .22668E-04
   3  Normalizat    .62434        .16740        .71027E-01    .47942E-04
   4  Prefactor     1.3730        .15506        .46266E-01   -.10187E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9608
  Index      = 1.81787
  Normalizat = 0.624345
  Prefactor  = 1.37296
 **********
 **   18 **HESSE 
 **********

 FCN=   6596.130     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.961        4.4063        .86449E-05   -1.5628    
   2  Index         1.8179        .20318        .39668E-02   -.68986    
   3  Normalizat    .62434        .19169        .31438E-03   -1.0696    
   4  Prefactor     1.3730        .17818        .20451E-03   -.81163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15823e-12
Minuit parameter uncertainties:
  1  4.40632
  2  0.203273
  3  0.191898
  4  0.178256
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) = 6596.13023316
delta logL = 2.54706965632

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.596e+01  4.406e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  1.818e+00  2.033e-01  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.373e+00  1.783e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  6.243e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 57.11
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 1.82 +/- 0.20
Photon Flux (Free Index): 1.12e-07 +/- 3.70e-08
Energy Flux (Free Index): 1.27e-04 +/- 6.33e-05

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/31072495/cmap_HighResolution_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='1.27e-04', photon_flux_error='4.16e-08', dlogl='2.55e+00', energy_flux='5.90e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2026-07-08 18:44:26.956812', photon_index_error2='0.20', photon_index2='1.82', ts='51.98', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='6.33e-05', EG='0.57', time_epoch_completed='1783561466.96', return_code='0', job_id='31072495', GAL2='1.37', EG2='0.62', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='3.70e-08', ts2='57.11', photon_index='2.31' WHERE bin_id='2173' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul  8 18:44:27 PDT 2026

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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

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

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

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

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

ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/31072593/Model_4FGL_J0401.9-2034_daily_bin2173.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/31072593/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.fits.....................!
real 62.55
user 60.76
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31072593/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.fits', '/lscratch/kocevski/31072593/ft2_4FGL_J0401.9-2034_daily_bin2173.fits', expMap='/lscratch/kocevski/31072593/expmap_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.fits', expCube='/lscratch/kocevski/31072593/ltcube_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31072593/Model_4FGL_J0401.9-2034_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0401.9-2034'

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.016e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31072593/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31072593/ft2_4FGL_J0401.9-2034_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31072593/expmap_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31072593/ltcube_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31072593/Model_4FGL_J0401.9-2034_daily_bin2173.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) = 6598.67978364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    89.024       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11121E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .83324E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .74662E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17056E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.0743       1.0000          .0000       .10000E+07
     7 'Prefactor '    .29037E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .38221E-05   1.0000          .0000       .10000E+07
     9 'norm      '    1.4870       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.5677       1.0000          .0000       .10000E+07
    11 'norm      '    .55341E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .55583E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    12.053       1.0000          .0000       .10000E+07
    14 'norm      '    .27051E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .22580E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.7205       1.0000          .0000       .10000E+07
    17 'Prefactor '    .57671E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    36.450       1.0000          .0000       .10000E+07
    19 'Prefactor '    .43824E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    27.811       1.0000          .0000       .10000E+07
    21 'Normalizat'    .57432       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3994       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6598.677     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1857 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.881        12.707        .34130E-08    .25011    
   2  Prefactor     .11102E-09    4.5766       -.79667E-07** at limit **
   3  Prefactor     .32802E-06    10.189        .16417E-06** at limit **
   4  Prefactor     .24425E-08    6.7650        .19207E-06** at limit **
   5  Prefactor     .11209E-04    69.166        .17644E-06** at limit **
   6  Prefactor     2.0752        1.7877       -.15230E-07   -.21596E-02
   7  Prefactor      .0000        1.1902        .25559E-08** at limit **
   8  Prefactor     .55511E-10    1.5818        .10343E-06** at limit **
   9  norm          1.4847        .69819        .52237E-08    .31208E-02
  10  Prefactor     9.5702        12.527        .93560E-07    .45844E-01
  11  norm           .0000        1.3469        .42344E-07** at limit **
  12  Prefactor     .89963E-05    72.860       -.10937E-06** at limit **
  13  Prefactor     12.057        3.1758       -.34183E-07   -.72080E-02
  14  norm          .61617E-08    6.0114        .21144E-07** at limit **
  15  Prefactor     .34972E-08    5.8514        .10216E-07** at limit **
  16  Prefactor     2.7282        6.6217        .62269E-08   -.41672E-03
  17  Prefactor     .11102E-09    2.4710        .11467E-06** at limit **
  18  Prefactor     36.359        16.016       -.42693E-07   -.76879E-03
  19  Prefactor     .33890E-06    9.6205        .27062E-06** at limit **
  20  Prefactor     28.518        19.680       -.40447E-07   -.57123E-01
  21  Normalizat    .57406        .19587        .20323E-05   -.51737E-04
  22  Prefactor     1.3995        .17975       -.15931E-05   -.17289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.8807
  Prefactor  = 1.11022e-10
  Prefactor  = 3.28015e-07
  Prefactor  = 2.44249e-09
  Prefactor  = 1.12091e-05
  Prefactor  = 2.07521
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 1.48473
  Prefactor  = 9.57015
  norm       = 0
  Prefactor  = 8.9963e-06
  Prefactor  = 12.0573
  norm       = 6.16174e-09
  Prefactor  = 3.4972e-09
  Prefactor  = 2.72818
  Prefactor  = 1.11022e-10
  Prefactor  = 36.3588
  Prefactor  = 3.38896e-07
  Prefactor  = 28.5181
  Normalizat = 0.574056
  Prefactor  = 1.39946
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.677     FROM HESSE     STATUS=OK           384 CALLS     2241 TOTAL
                     EDM=   .28E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.881        195.19        .10599E-03   -1.5519    
   2  Prefactor     .11102E-09    4.5386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .32802E-06    11.139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .24425E-08    6.7671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11209E-04    76.747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0752        1.8007        .71688E-03   -1.5679    
   7  Prefactor      .0000        1.1921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    1.5749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4847        .69752        .87915E-03   -1.5684    
  10  Prefactor     9.5702        17.159        .32374E-03   -1.5646    
  11  norm           .0000        1.2881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .89963E-05    75.833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.057        3.1771        .28829E-03   -1.5639    
  14  norm          .61617E-08    6.0124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .34972E-08    5.8610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7282        6.6496        .61718E-03   -1.5675    
  17  Prefactor     .11102E-09    2.4600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.359        20.241        .16565E-03   -1.5587    
  19  Prefactor     .33890E-06    10.632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.518        50.729        .18966E-03   -1.5601    
  21  Normalizat    .57406        .17498        .73827E-01   -1.0910    
  22  Prefactor     1.3995        .15730        .45893E-01   -.80396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77569e-05
Minuit parameter uncertainties:
  1  195.2
  2  4.69294e-05
  3  0.00382317
  4  0.000255926
  5  0.0586613
  6  1.80066
  7  1.99488e-07
  8  2.10496e-05
  9  0.69752
  10  17.1594
  11  7.81438e-06
  12  0.0522393
  13  3.17708
  14  0.00038468
  15  0.000286258
  16  6.64958
  17  2.96366e-05
  18  20.2409
  19  0.00379631
  20  50.7298
  21  0.175149
  22  0.157351
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.206e+01  3.177e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.399e+00  1.574e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  5.741e-01  1.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 51.98
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 4.16e-08
Energy Flux (Fixed Index): 5.90e-05 +/- 1.55e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6596.52950021
delta logL = 2.14780260824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6596.13023324
delta logL = 2.54706957633

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6596.130     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.961        4.9287        .25044E-03    .13862E-02
   2  Index         1.8179        .21994        .92897E-01    .22668E-04
   3  Normalizat    .62434        .16740        .71027E-01    .47942E-04
   4  Prefactor     1.3730        .15506        .46266E-01   -.10187E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9608
  Index      = 1.81787
  Normalizat = 0.624345
  Prefactor  = 1.37296
 **********
 **   18 **HESSE 
 **********

 FCN=   6596.130     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.961        4.4063        .86449E-05   -1.5628    
   2  Index         1.8179        .20318        .39668E-02   -.68986    
   3  Normalizat    .62434        .19169        .31438E-03   -1.0696    
   4  Prefactor     1.3730        .17818        .20451E-03   -.81163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15823e-12
Minuit parameter uncertainties:
  1  4.40632
  2  0.203273
  3  0.191898
  4  0.178256
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) = 6596.13023316
delta logL = 2.54706965632

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.596e+01  4.406e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  1.818e+00  2.033e-01  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.373e+00  1.783e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  6.243e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 57.11
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 1.82 +/- 0.20
Photon Flux (Free Index): 1.12e-07 +/- 3.70e-08
Energy Flux (Free Index): 1.27e-04 +/- 6.33e-05

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/31072593/cmap_HighResolution_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='1.27e-04', photon_flux_error='4.16e-08', dlogl='2.55e+00', energy_flux='5.90e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2026-07-08 18:45:27.073601', photon_index_error2='0.20', photon_index2='1.82', ts='51.98', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='6.33e-05', EG='0.57', time_epoch_completed='1783561527.07', return_code='0', job_id='31072593', GAL2='1.37', EG2='0.62', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='3.70e-08', ts2='57.11', photon_index='2.31' WHERE bin_id='2173' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul  8 18:45:27 PDT 2026

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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin2173
RA = 60.4867, Dec = -20.5804
tmin = 802569601, tmax = 802828801
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='31072770', job_status='RUN', time_executed='2026-07-08 18:44:38.614238', time_epoch_executed='1783561478.61' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='2173'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31072770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31072770/ft1_4FGL_J0401.9-2034_daily_bin2173.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31072770/ft2_4FGL_J0401.9-2034_daily_bin2173.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31072770/ft1_4FGL_J0401.9-2034_daily_bin2173.fits outfile=/lscratch/kocevski/31072770/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin2173.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=802569601.0 tmax=802828801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.29
user 2.79
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31072770/ft2_4FGL_J0401.9-2034_daily_bin2173.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31072770/ft2_4FGL_J0401.9-2034_daily_bin2173.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/31072770/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin2173.fits evtable="EVENTS" outfile="/lscratch/kocevski/31072770/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.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.62
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 605

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31072770/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31072770/ft2_4FGL_J0401.9-2034_daily_bin2173.fits sctable="SC_DATA" ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/31072596/Model_4FGL_J0401.9-2034_daily_bin2173.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/31072596/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.fits.....................!
real 62.46
user 60.53
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31072596/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.fits', '/lscratch/kocevski/31072596/ft2_4FGL_J0401.9-2034_daily_bin2173.fits', expMap='/lscratch/kocevski/31072596/expmap_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.fits', expCube='/lscratch/kocevski/31072596/ltcube_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31072596/Model_4FGL_J0401.9-2034_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0401.9-2034'

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.016e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31072596/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31072596/ft2_4FGL_J0401.9-2034_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31072596/expmap_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31072596/ltcube_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31072596/Model_4FGL_J0401.9-2034_daily_bin2173.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) = 6598.67978364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    89.024       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11121E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .83324E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .74662E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17056E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.0743       1.0000          .0000       .10000E+07
     7 'Prefactor '    .29037E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .38221E-05   1.0000          .0000       .10000E+07
     9 'norm      '    1.4870       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.5677       1.0000          .0000       .10000E+07
    11 'norm      '    .55341E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .55583E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    12.053       1.0000          .0000       .10000E+07
    14 'norm      '    .27051E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .22580E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.7205       1.0000          .0000       .10000E+07
    17 'Prefactor '    .57671E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    36.450       1.0000          .0000       .10000E+07
    19 'Prefactor '    .43824E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    27.811       1.0000          .0000       .10000E+07
    21 'Normalizat'    .57432       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3994       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6598.677     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1857 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.881        12.707        .34130E-08    .25011    
   2  Prefactor     .11102E-09    4.5766       -.79667E-07** at limit **
   3  Prefactor     .32802E-06    10.189        .16417E-06** at limit **
   4  Prefactor     .24425E-08    6.7650        .19207E-06** at limit **
   5  Prefactor     .11209E-04    69.166        .17644E-06** at limit **
   6  Prefactor     2.0752        1.7877       -.15230E-07   -.21596E-02
   7  Prefactor      .0000        1.1902        .25559E-08** at limit **
   8  Prefactor     .55511E-10    1.5818        .10343E-06** at limit **
   9  norm          1.4847        .69819        .52237E-08    .31208E-02
  10  Prefactor     9.5702        12.527        .93560E-07    .45844E-01
  11  norm           .0000        1.3469        .42344E-07** at limit **
  12  Prefactor     .89963E-05    72.860       -.10937E-06** at limit **
  13  Prefactor     12.057        3.1758       -.34183E-07   -.72080E-02
  14  norm          .61617E-08    6.0114        .21144E-07** at limit **
  15  Prefactor     .34972E-08    5.8514        .10216E-07** at limit **
  16  Prefactor     2.7282        6.6217        .62269E-08   -.41672E-03
  17  Prefactor     .11102E-09    2.4710        .11467E-06** at limit **
  18  Prefactor     36.359        16.016       -.42693E-07   -.76879E-03
  19  Prefactor     .33890E-06    9.6205        .27062E-06** at limit **
  20  Prefactor     28.518        19.680       -.40447E-07   -.57123E-01
  21  Normalizat    .57406        .19587        .20323E-05   -.51737E-04
  22  Prefactor     1.3995        .17975       -.15931E-05   -.17289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.8807
  Prefactor  = 1.11022e-10
  Prefactor  = 3.28015e-07
  Prefactor  = 2.44249e-09
  Prefactor  = 1.12091e-05
  Prefactor  = 2.07521
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 1.48473
  Prefactor  = 9.57015
  norm       = 0
  Prefactor  = 8.9963e-06
  Prefactor  = 12.0573
  norm       = 6.16174e-09
  Prefactor  = 3.4972e-09
  Prefactor  = 2.72818
  Prefactor  = 1.11022e-10
  Prefactor  = 36.3588
  Prefactor  = 3.38896e-07
  Prefactor  = 28.5181
  Normalizat = 0.574056
  Prefactor  = 1.39946
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.677     FROM HESSE     STATUS=OK           384 CALLS     2241 TOTAL
                     EDM=   .28E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.881        195.19        .10599E-03   -1.5519    
   2  Prefactor     .11102E-09    4.5386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .32802E-06    11.139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .24425E-08    6.7671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11209E-04    76.747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0752        1.8007        .71688E-03   -1.5679    
   7  Prefactor      .0000        1.1921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    1.5749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4847        .69752        .87915E-03   -1.5684    
  10  Prefactor     9.5702        17.159        .32374E-03   -1.5646    
  11  norm           .0000        1.2881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .89963E-05    75.833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.057        3.1771        .28829E-03   -1.5639    
  14  norm          .61617E-08    6.0124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .34972E-08    5.8610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7282        6.6496        .61718E-03   -1.5675    
  17  Prefactor     .11102E-09    2.4600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.359        20.241        .16565E-03   -1.5587    
  19  Prefactor     .33890E-06    10.632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.518        50.729        .18966E-03   -1.5601    
  21  Normalizat    .57406        .17498        .73827E-01   -1.0910    
  22  Prefactor     1.3995        .15730        .45893E-01   -.80396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77569e-05
Minuit parameter uncertainties:
  1  195.2
  2  4.69294e-05
  3  0.00382317
  4  0.000255926
  5  0.0586613
  6  1.80066
  7  1.99488e-07
  8  2.10496e-05
  9  0.69752
  10  17.1594
  11  7.81438e-06
  12  0.0522393
  13  3.17708
  14  0.00038468
  15  0.000286258
  16  6.64958
  17  2.96366e-05
  18  20.2409
  19  0.00379631
  20  50.7298
  21  0.175149
  22  0.157351
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.206e+01  3.177e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.399e+00  1.574e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  5.741e-01  1.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 51.98
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 4.16e-08
Energy Flux (Fixed Index): 5.90e-05 +/- 1.55e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6596.52950021
delta logL = 2.14780260824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6596.13023324
delta logL = 2.54706957633

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6596.130     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.961        4.9287        .25044E-03    .13862E-02
   2  Index         1.8179        .21994        .92897E-01    .22668E-04
   3  Normalizat    .62434        .16740        .71027E-01    .47942E-04
   4  Prefactor     1.3730        .15506        .46266E-01   -.10187E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9608
  Index      = 1.81787
  Normalizat = 0.624345
  Prefactor  = 1.37296
 **********
 **   18 **HESSE 
 **********

 FCN=   6596.130     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.961        4.4063        .86449E-05   -1.5628    
   2  Index         1.8179        .20318        .39668E-02   -.68986    
   3  Normalizat    .62434        .19169        .31438E-03   -1.0696    
   4  Prefactor     1.3730        .17818        .20451E-03   -.81163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15823e-12
Minuit parameter uncertainties:
  1  4.40632
  2  0.203273
  3  0.191898
  4  0.178256
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) = 6596.13023316
delta logL = 2.54706965632

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.596e+01  4.406e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  1.818e+00  2.033e-01  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.373e+00  1.783e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  6.243e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 57.11
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 1.82 +/- 0.20
Photon Flux (Free Index): 1.12e-07 +/- 3.70e-08
Energy Flux (Free Index): 1.27e-04 +/- 6.33e-05

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/31072596/cmap_HighResolution_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='1.27e-04', photon_flux_error='4.16e-08', dlogl='2.55e+00', energy_flux='5.90e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2026-07-08 18:46:15.459581', photon_index_error2='0.20', photon_index2='1.82', ts='51.98', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='6.33e-05', EG='0.57', time_epoch_completed='1783561575.46', return_code='0', job_id='31072596', GAL2='1.37', EG2='0.62', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='3.70e-08', ts2='57.11', photon_index='2.31' WHERE bin_id='2173' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul  8 18:46:15 PDT 2026

outfile=/lscratch/kocevski/31072770/ltcube_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.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/31072770/ft2_4FGL_J0401.9-2034_daily_bin2173.fits
.....................!
real 8.65
user 8.16
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31072770/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31072770/ft2_4FGL_J0401.9-2034_daily_bin2173.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31072770/ltcube_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.fits outfile=/lscratch/kocevski/31072770/expmap_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.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/31072770/ltcube_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.fits
.....................!
real 73.77
user 68.92
sys 4.17

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 146 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 J0401.9-2034 @ 60.4867 -20.5804

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31072770/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.fits scfile=/lscratch/kocevski/31072770/ft2_4FGL_J0401.9-2034_daily_bin2173.fits outfile=/lscratch/kocevski/31072770/cmap_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.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=60.4867 yref=-20.5804 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.76
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31072770/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.fits scfile=/lscratch/kocevski/31072770/ft2_4FGL_J0401.9-2034_daily_bin2173.fits outfile=/lscratch/kocevski/31072770/cmap_HighResolution_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.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=60.4867 yref=-20.5804 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.67
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31072770/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31072770/ft2_4FGL_J0401.9-2034_daily_bin2173.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31072770/Model_4FGL_J0401.9-2034_daily_bin2173.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/31072770/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.fits.....................!
real 62.56
user 60.73
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31072770/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.fits', '/lscratch/kocevski/31072770/ft2_4FGL_J0401.9-2034_daily_bin2173.fits', expMap='/lscratch/kocevski/31072770/expmap_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.fits', expCube='/lscratch/kocevski/31072770/ltcube_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31072770/Model_4FGL_J0401.9-2034_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0401.9-2034'

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.016e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31072770/ft1_filtered_4FGL_J0401.9-2034_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31072770/ft2_4FGL_J0401.9-2034_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31072770/expmap_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31072770/ltcube_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31072770/Model_4FGL_J0401.9-2034_daily_bin2173.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) = 6598.67978364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    89.024       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11121E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .83324E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .74662E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17056E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.0743       1.0000          .0000       .10000E+07
     7 'Prefactor '    .29037E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .38221E-05   1.0000          .0000       .10000E+07
     9 'norm      '    1.4870       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.5677       1.0000          .0000       .10000E+07
    11 'norm      '    .55341E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .55583E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    12.053       1.0000          .0000       .10000E+07
    14 'norm      '    .27051E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .22580E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.7205       1.0000          .0000       .10000E+07
    17 'Prefactor '    .57671E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    36.450       1.0000          .0000       .10000E+07
    19 'Prefactor '    .43824E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    27.811       1.0000          .0000       .10000E+07
    21 'Normalizat'    .57432       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3994       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6598.677     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1857 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.881        12.707        .34130E-08    .25011    
   2  Prefactor     .11102E-09    4.5766       -.79667E-07** at limit **
   3  Prefactor     .32802E-06    10.189        .16417E-06** at limit **
   4  Prefactor     .24425E-08    6.7650        .19207E-06** at limit **
   5  Prefactor     .11209E-04    69.166        .17644E-06** at limit **
   6  Prefactor     2.0752        1.7877       -.15230E-07   -.21596E-02
   7  Prefactor      .0000        1.1902        .25559E-08** at limit **
   8  Prefactor     .55511E-10    1.5818        .10343E-06** at limit **
   9  norm          1.4847        .69819        .52237E-08    .31208E-02
  10  Prefactor     9.5702        12.527        .93560E-07    .45844E-01
  11  norm           .0000        1.3469        .42344E-07** at limit **
  12  Prefactor     .89963E-05    72.860       -.10937E-06** at limit **
  13  Prefactor     12.057        3.1758       -.34183E-07   -.72080E-02
  14  norm          .61617E-08    6.0114        .21144E-07** at limit **
  15  Prefactor     .34972E-08    5.8514        .10216E-07** at limit **
  16  Prefactor     2.7282        6.6217        .62269E-08   -.41672E-03
  17  Prefactor     .11102E-09    2.4710        .11467E-06** at limit **
  18  Prefactor     36.359        16.016       -.42693E-07   -.76879E-03
  19  Prefactor     .33890E-06    9.6205        .27062E-06** at limit **
  20  Prefactor     28.518        19.680       -.40447E-07   -.57123E-01
  21  Normalizat    .57406        .19587        .20323E-05   -.51737E-04
  22  Prefactor     1.3995        .17975       -.15931E-05   -.17289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.8807
  Prefactor  = 1.11022e-10
  Prefactor  = 3.28015e-07
  Prefactor  = 2.44249e-09
  Prefactor  = 1.12091e-05
  Prefactor  = 2.07521
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 1.48473
  Prefactor  = 9.57015
  norm       = 0
  Prefactor  = 8.9963e-06
  Prefactor  = 12.0573
  norm       = 6.16174e-09
  Prefactor  = 3.4972e-09
  Prefactor  = 2.72818
  Prefactor  = 1.11022e-10
  Prefactor  = 36.3588
  Prefactor  = 3.38896e-07
  Prefactor  = 28.5181
  Normalizat = 0.574056
  Prefactor  = 1.39946
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.677     FROM HESSE     STATUS=OK           384 CALLS     2241 TOTAL
                     EDM=   .28E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.881        195.19        .10599E-03   -1.5519    
   2  Prefactor     .11102E-09    4.5386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .32802E-06    11.139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .24425E-08    6.7671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11209E-04    76.747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0752        1.8007        .71688E-03   -1.5679    
   7  Prefactor      .0000        1.1921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    1.5749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4847        .69752        .87915E-03   -1.5684    
  10  Prefactor     9.5702        17.159        .32374E-03   -1.5646    
  11  norm           .0000        1.2881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .89963E-05    75.833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.057        3.1771        .28829E-03   -1.5639    
  14  norm          .61617E-08    6.0124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .34972E-08    5.8610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7282        6.6496        .61718E-03   -1.5675    
  17  Prefactor     .11102E-09    2.4600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.359        20.241        .16565E-03   -1.5587    
  19  Prefactor     .33890E-06    10.632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.518        50.729        .18966E-03   -1.5601    
  21  Normalizat    .57406        .17498        .73827E-01   -1.0910    
  22  Prefactor     1.3995        .15730        .45893E-01   -.80396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77569e-05
Minuit parameter uncertainties:
  1  195.2
  2  4.69294e-05
  3  0.00382317
  4  0.000255926
  5  0.0586613
  6  1.80066
  7  1.99488e-07
  8  2.10496e-05
  9  0.69752
  10  17.1594
  11  7.81438e-06
  12  0.0522393
  13  3.17708
  14  0.00038468
  15  0.000286258
  16  6.64958
  17  2.96366e-05
  18  20.2409
  19  0.00379631
  20  50.7298
  21  0.175149
  22  0.157351
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.206e+01  3.177e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.399e+00  1.574e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  5.741e-01  1.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 51.98
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 4.16e-08
Energy Flux (Fixed Index): 5.90e-05 +/- 1.55e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6596.52950021
delta logL = 2.14780260824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6596.13023324
delta logL = 2.54706957633

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6596.130     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.961        4.9287        .25044E-03    .13862E-02
   2  Index         1.8179        .21994        .92897E-01    .22668E-04
   3  Normalizat    .62434        .16740        .71027E-01    .47942E-04
   4  Prefactor     1.3730        .15506        .46266E-01   -.10187E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9608
  Index      = 1.81787
  Normalizat = 0.624345
  Prefactor  = 1.37296
 **********
 **   18 **HESSE 
 **********

 FCN=   6596.130     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.961        4.4063        .86449E-05   -1.5628    
   2  Index         1.8179        .20318        .39668E-02   -.68986    
   3  Normalizat    .62434        .19169        .31438E-03   -1.0696    
   4  Prefactor     1.3730        .17818        .20451E-03   -.81163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15823e-12
Minuit parameter uncertainties:
  1  4.40632
  2  0.203273
  3  0.191898
  4  0.178256
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) = 6596.13023316
delta logL = 2.54706965632

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.596e+01  4.406e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  1.818e+00  2.033e-01  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.373e+00  1.783e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  6.243e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 57.11
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 1.82 +/- 0.20
Photon Flux (Free Index): 1.12e-07 +/- 3.70e-08
Energy Flux (Free Index): 1.27e-04 +/- 6.33e-05

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/31072770/cmap_HighResolution_802569601_802828801_4FGL_J0401.9-2034_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='1.27e-04', photon_flux_error='4.16e-08', dlogl='2.55e+00', energy_flux='5.90e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2026-07-08 18:49:57.299505', photon_index_error2='0.20', photon_index2='1.82', ts='51.98', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='6.33e-05', EG='0.57', time_epoch_completed='1783561797.3', return_code='0', job_id='31072770', GAL2='1.37', EG2='0.62', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='3.70e-08', ts2='57.11', photon_index='2.31' WHERE bin_id='2173' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul  8 18:49:57 PDT 2026

