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

 FCN=   7340.278     FROM HESSE     STATUS=OK           457 CALLS     2640 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    1.3873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2048        1.2394        .10321E-02   -1.5686    
   3  Prefactor      .0000        3.9279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13983E-06    92.625        .76063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5114        1.5445        .86929E-03   -1.5683    
   6  Prefactor     5.7991        11.643        .41762E-03   -1.5660    
   7  Prefactor      .0000        3.3390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        13.095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4711        21.024        .32517E-03   -1.5646    
  10  Prefactor     .52427        1.4162        .75989E-03   -1.5693    
  11  Prefactor     .55511E-10    1.2599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .67271E-01    1.1301        .64702E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .54581        .53659        .74250E-03   -1.5693    
  14  Prefactor     41.675        22.818        .15520E-03   -1.5579    
  15  norm           .0000        .46765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     116.09        103.66        .92787E-04   -1.5492    
  17  Prefactor     .10691E-06    24.781        .15812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    2.0204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .25069E-06    74.576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .80005E-01    14.109        .10870E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.083        6.1429        .30061E-03   -1.5641    
  22  Prefactor     1.9264        2.0892        .74851E-03   -1.5680    
  23  Normalizat    .87668        .13711        .44606E-01   -.97284    
  24  Prefactor     .94447        .12496        .45568E-01   -.94604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80422e-06
Minuit parameter uncertainties:
  1  2.9469e-05
  2  1.23943
  3  2.97983e-09
  4  0.00719815
  5  1.54449
  6  11.6429
  7  6.18399e-07
  8  1.99186e-05
  9  21.0244
  10  1.41624
  11  1.69056e-05
  12  0.551452
  13  0.53659
  14  22.8177
  15  5.59362e-07
  16  103.666
  17  0.0032558
  18  1.64763e-05
  19  0.00864747
  20  2.12487
  21  6.14291
  22  2.08922
  23  0.137167
  24  0.124994
/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).

Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  5.243e-01  1.416e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.445e-01  1.250e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.767e-01  1.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 6.24581690524e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00478012718206 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32402391/likelihoodResults_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25361072
delta logL = 0.0246100220975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25248186
delta logL = 0.0257388829232

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7340.252     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46725        31.480        .82197E-03    .18624E-01
   2  Index         2.5617        6.2553        .23329        .61514E-04
   3  Normalizat    .87356        .26895E-01    .44563E-01    .14468E-03
   4  Prefactor     .94552        .25664E-01    .45583E-01    .13002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.467248
  Index      = 2.56169
  Normalizat = 0.873561
  Prefactor  = 0.945515
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.252     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46725        1.3649        .13025E-04   -1.5694    
   2  Index         2.5617        1.4561        .13976E-01   -.50941    
   3  Normalizat    .87356        .14834        .23162E-03   -.97395    
   4  Prefactor     .94552        .14209        .21418E-03   -.94568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09078e-11
Minuit parameter uncertainties:
  1  1.36491
  2  1.48456
  3  0.148404
  4  0.142142
Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  5.243e-01  1.416e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.445e-01  1.250e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.767e-01  1.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 6.24581690524e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00478012718206 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32402348/likelihoodResults_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25361072
delta logL = 0.0246100220975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25248186
delta logL = 0.0257388829232

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7340.252     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46725        31.480        .82197E-03    .18624E-01
   2  Index         2.5617        6.2553        .23329        .61514E-04
   3  Normalizat    .87356        .26895E-01    .44563E-01    .14468E-03
   4  Prefactor     .94552        .25664E-01    .45583E-01    .13002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.467248
  Index      = 2.56169
  Normalizat = 0.873561
  Prefactor  = 0.945515
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) = 7340.25247953
delta logL = 0.0257412075025

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  4.672e-01  1.365e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.562e+00  1.485e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.455e-01  1.421e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.736e-01  1.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32402391/cmap_HighResolution_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2026-07-20 03:01:15.983934', job_id='32402391', GAL2='0.95', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1784541675.98', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.57e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2186' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 20 03:01:16 PDT 2026

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

 FCN=   7340.252     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46725        1.3649        .13025E-04   -1.5694    
   2  Index         2.5617        1.4561        .13976E-01   -.50941    
   3  Normalizat    .87356        .14834        .23162E-03   -.97395    
   4  Prefactor     .94552        .14209        .21418E-03   -.94568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09078e-11
Minuit parameter uncertainties:
  1  1.36491
  2  1.48456
  3  0.148404
  4  0.142142
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) = 7340.25247953
delta logL = 0.0257412075025

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  4.672e-01  1.365e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.562e+00  1.485e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.455e-01  1.421e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.736e-01  1.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32402348/cmap_HighResolution_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2026-07-20 03:01:18.604258', job_id='32402348', GAL2='0.95', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1784541678.6', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.57e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2186' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 20 03:01:18 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  5.243e-01  1.416e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.445e-01  1.250e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.767e-01  1.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 6.24581690524e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00478012718206 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32402455/likelihoodResults_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25361072
delta logL = 0.0246100220975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25248186
delta logL = 0.0257388829232

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7340.252     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46725        31.480        .82197E-03    .18624E-01
   2  Index         2.5617        6.2553        .23329        .61514E-04
   3  Normalizat    .87356        .26895E-01    .44563E-01    .14468E-03
   4  Prefactor     .94552        .25664E-01    .45583E-01    .13002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.467248
  Index      = 2.56169
  Normalizat = 0.873561
  Prefactor  = 0.945515
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.252     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46725        1.3649        .13025E-04   -1.5694    
   2  Index         2.5617        1.4561        .13976E-01   -.50941    
   3  Normalizat    .87356        .14834        .23162E-03   -.97395    
   4  Prefactor     .94552        .14209        .21418E-03   -.94568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09078e-11
Minuit parameter uncertainties:
  1  1.36491
  2  1.48456
  3  0.148404
  4  0.142142
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) = 7340.25247953
delta logL = 0.0257412075025

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  4.672e-01  1.365e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.562e+00  1.485e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.455e-01  1.421e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.736e-01  1.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32402455/cmap_HighResolution_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2026-07-20 03:01:29.985781', job_id='32402455', GAL2='0.95', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1784541689.99', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.57e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2186' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 20 03:01:30 PDT 2026

outfile=/lscratch/kocevski/32402766/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.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/32402766/ft2_4FGL_J0340.5-2118_daily_bin2186.fits
.....................!
real 8.45
user 7.93
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32402766/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits evtable="EVENTS" scfile=/lscratch/kocevski/32402766/ft2_4FGL_J0340.5-2118_daily_bin2186.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32402766/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits outfile=/lscratch/kocevski/32402766/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.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/32402766/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
.....................!
real 68.16
user 63.56
sys 4.00

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 157 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 J0340.5-2118 @ 55.1477 -21.3158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32402766/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits scfile=/lscratch/kocevski/32402766/ft2_4FGL_J0340.5-2118_daily_bin2186.fits outfile=/lscratch/kocevski/32402766/cmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.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=55.1477 yref=-21.3158 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.62
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32402766/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits scfile=/lscratch/kocevski/32402766/ft2_4FGL_J0340.5-2118_daily_bin2186.fits outfile=/lscratch/kocevski/32402766/cmap_HighResolution_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.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=55.1477 yref=-21.3158 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.61
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32402766/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits evtable="EVENTS" scfile=/lscratch/kocevski/32402766/ft2_4FGL_J0340.5-2118_daily_bin2186.fioutfile=/lscratch/kocevski/32402788/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.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/32402788/ft2_4FGL_J0340.5-2118_daily_bin2186.fits
.....................!
real 8.39
user 7.86
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32402788/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits evtable="EVENTS" scfile=/lscratch/kocevski/32402788/ft2_4FGL_J0340.5-2118_daily_bin2186.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32402788/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits outfile=/lscratch/kocevski/32402788/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.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/32402788/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
.....................!
real 68.55
user 63.48
sys 4.28

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 157 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 J0340.5-2118 @ 55.1477 -21.3158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32402788/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits scfile=/lscratch/kocevski/32402788/ft2_4FGL_J0340.5-2118_daily_bin2186.fits outfile=/lscratch/kocevski/32402788/cmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.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=55.1477 yref=-21.3158 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.60
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32402788/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits scfile=/lscratch/kocevski/32402788/ft2_4FGL_J0340.5-2118_daily_bin2186.fits outfile=/lscratch/kocevski/32402788/cmap_HighResolution_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.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=55.1477 yref=-21.3158 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.60
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32402788/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits evtable="EVENTS" scfile=/lscratch/kocevski/32402788/ft2_4FGL_J0340.5-2118_daily_bin2186.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32402530/Model_4FGL_J0340.5-2118_daily_bin2186.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/32402530/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits.....................!
real 52.89
user 51.47
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32402530/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits', '/lscratch/kocevski/32402530/ft2_4FGL_J0340.5-2118_daily_bin2186.fits', expMap='/lscratch/kocevski/32402530/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits', expCube='/lscratch/kocevski/32402530/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32402530/Model_4FGL_J0340.5-2118_daily_bin2186.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32402530/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits
Spacecraft file(s): /lscratch/kocevski/32402530/ft2_4FGL_J0340.5-2118_daily_bin2186.fits
Exposure map: /lscratch/kocevski/32402530/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
Exposure cube: /lscratch/kocevski/32402530/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32402530/Model_4FGL_J0340.5-2118_daily_bin2186.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) = 7340.27941706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10311E-04   1.0000          .0000       .10000E+07
     2 'norm      '    1.2050       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10731E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .52675       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.5123       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.7773       1.0000          .0000       .10000E+07
     7 'Prefactor '    .83382E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .89131E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.4838       1.0000          .0000       .10000E+07
    10 'Prefactor '    .52751       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16504E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .32834E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .54559       1.0000          .0000       .10000E+07
    14 'Prefactor '    41.525       1.0000          .0000       .10000E+07
    15 'norm      '    .38497E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    116.17       1.0000          .0000       .10000E+07
    17 'Prefactor '    .43451E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .52465E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .17765E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .35615       1.0000          .0000       .10000E+07
    21 'Prefactor '    11.088       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.9249       1.0000          .0000       .10000E+07
    23 'Normalizat'    .87690       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7340.278     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     2183 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16653E-09    1.4200        .36340E-06** at limit **
   2  norm          1.2048        1.2525        .12020E-07   -.70323E-03
   3  Prefactor      .0000        3.9307       -.10489E-06** at limit **
   4  Prefactor     .13983E-06    91.364        .18979E-05** at limit **
   5  Prefactor     1.5114        1.5456       -.11324E-06   -.68383E-03
   6  Prefactor     5.7991        11.533        .17052E-06    .23905E-01
   7  Prefactor      .0000        3.3433       -.56247E-07** at limit **
   8  Prefactor      .0000        12.933       -.81736E-06** at limit **
   9  Prefactor     9.4711        1.0287       -.87046E-08   -.13700E-02
  10  Prefactor     .52427        1.3946        .14513E-06    .64179E-03
  11  Prefactor     .55511E-10    1.2548        .19709E-07** at limit **
  12  Prefactor     .67271E-01    24.643        .11672E-05** at limit **
  13  norm          .54581        .52553        .27473E-07    .78876E-03
  14  Prefactor     41.675        3.5279       -.29170E-07   -.14963    
  15  norm           .0000        .47431       -.54431E-07** at limit **
  16  Prefactor     116.09        2.8171       -.51546E-07    .28495    
  17  Prefactor     .10691E-06    25.649        .74646E-06** at limit **
  18  Prefactor     .55511E-10    2.0534        .14970E-06** at limit **
  19  norm          .25069E-06    75.106       -.28161E-05** at limit **
  20  Prefactor     .80005E-01    3.9478       -.11145E-06** at limit **
  21  Prefactor     11.083        6.1241        .17962E-06    .10019E-01
  22  Prefactor     1.9264        2.0871        .54436E-07    .10320E-02
  23  Normalizat    .87668        .15316        .45492E-07   -.26528E-05
  24  Prefactor     .94447        .14298       -.19679E-06    .19975E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66533e-10
  norm       = 1.20484
  Prefactor  = 0
  Prefactor  = 1.39833e-07
  Prefactor  = 1.51145
  Prefactor  = 5.79912
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 9.47114
  Prefactor  = 0.524268
  Prefactor  = 5.55112e-11
  Prefactor  = 0.0672709
  norm       = 0.545808
  Prefactor  = 41.6745
  norm       = 0
  Prefactor  = 116.094
  Prefactor  = 1.06914e-07
  Prefactor  = 5.55112e-11
  norm       = 2.50688e-07
  Prefactor  = 0.0800049
  Prefactor  = 11.0835
  Prefactor  = 1.92637
  Normalizat = 0.876682
  Prefactor  = 0.944472
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/32402605/Model_4FGL_J0340.5-2118_daily_bin2186.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/32402605/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits.....................!
real 54.22
user 52.71
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32402605/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits', '/lscratch/kocevski/32402605/ft2_4FGL_J0340.5-2118_daily_bin2186.fits', expMap='/lscratch/kocevski/32402605/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits', expCube='/lscratch/kocevski/32402605/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32402605/Model_4FGL_J0340.5-2118_daily_bin2186.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32402605/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits
Spacecraft file(s): /lscratch/kocevski/32402605/ft2_4FGL_J0340.5-2118_daily_bin2186.fits
Exposure map: /lscratch/kocevski/32402605/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
Exposure cube: /lscratch/kocevski/32402605/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32402605/Model_4FGL_J0340.5-2118_daily_bin2186.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) = 7340.27941706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10311E-04   1.0000          .0000       .10000E+07
     2 'norm      '    1.2050       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10731E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .52675       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.5123       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.7773       1.0000          .0000       .10000E+07
     7 'Prefactor '    .83382E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .89131E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.4838       1.0000          .0000       .10000E+07
    10 'Prefactor '    .52751       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16504E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .32834E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .54559       1.0000          .0000       .10000E+07
    14 'Prefactor '    41.525       1.0000          .0000       .10000E+07
    15 'norm      '    .38497E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    116.17       1.0000          .0000       .10000E+07
    17 'Prefactor '    .43451E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .52465E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .17765E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .35615       1.0000          .0000       .10000E+07
    21 'Prefactor '    11.088       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.9249       1.0000          .0000       .10000E+07
    23 'Normalizat'    .87690       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7340.278     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     2183 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16653E-09    1.4200        .36340E-06** at limit **
   2  norm          1.2048        1.2525        .12020E-07   -.70323E-03
   3  Prefactor      .0000        3.9307       -.10489E-06** at limit **
   4  Prefactor     .13983E-06    91.364        .18979E-05** at limit **
   5  Prefactor     1.5114        1.5456       -.11324E-06   -.68383E-03
   6  Prefactor     5.7991        11.533        .17052E-06    .23905E-01
   7  Prefactor      .0000        3.3433       -.56247E-07** at limit **
   8  Prefactor      .0000        12.933       -.81736E-06** at limit **
   9  Prefactor     9.4711        1.0287       -.87046E-08   -.13700E-02
  10  Prefactor     .52427        1.3946        .14513E-06    .64179E-03
  11  Prefactor     .55511E-10    1.2548        .19709E-07** at limit **
  12  Prefactor     .67271E-01    24.643        .11672E-05** at limit **
  13  norm          .54581        .52553        .27473E-07    .78876E-03
  14  Prefactor     41.675        3.5279       -.29170E-07   -.14963    
  15  norm           .0000        .47431       -.54431E-07** at limit **
  16  Prefactor     116.09        2.8171       -.51546E-07    .28495    
  17  Prefactor     .10691E-06    25.649        .74646E-06** at limit **
  18  Prefactor     .55511E-10    2.0534        .14970E-06** at limit **
  19  norm          .25069E-06    75.106       -.28161E-05** at limit **
  20  Prefactor     .80005E-01    3.9478       -.11145E-06** at limit **
  21  Prefactor     11.083        6.1241        .17962E-06    .10019E-01
  22  Prefactor     1.9264        2.0871        .54436E-07    .10320E-02
  23  Normalizat    .87668        .15316        .45492E-07   -.26528E-05
  24  Prefactor     .94447        .14298       -.19679E-06    .19975E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66533e-10
  norm       = 1.20484
  Prefactor  = 0
  Prefactor  = 1.39833e-07
  Prefactor  = 1.51145
  Prefactor  = 5.79912
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 9.47114
  Prefactor  = 0.524268
  Prefactor  = 5.55112e-11
  Prefactor  = 0.0672709
  norm       = 0.545808
  Prefactor  = 41.6745
  norm       = 0
  Prefactor  = 116.094
  Prefactor  = 1.06914e-07
  Prefactor  = 5.55112e-11
  norm       = 2.50688e-07
  Prefactor  = 0.0800049
  Prefactor  = 11.0835
  Prefactor  = 1.92637
  Normalizat = 0.876682
  Prefactor  = 0.944472
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.278     FROM HESSE     STATUS=OK           457 CALLS     2640 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    1.3873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2048        1.2394        .10321E-02   -1.5686    
   3  Prefactor      .0000        3.9279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13983E-06    92.625        .76063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5114        1.5445        .86929E-03   -1.5683    
   6  Prefactor     5.7991        11.643        .41762E-03   -1.5660    
   7  Prefactor      .0000        3.3390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        13.095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4711        21.024        .32517E-03   -1.5646    
  10  Prefactor     .52427        1.4162        .75989E-03   -1.5693    
  11  Prefactor     .55511E-10    1.2599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .67271E-01    1.1301        .64702E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .54581        .53659        .74250E-03   -1.5693    
  14  Prefactor     41.675        22.818        .15520E-03   -1.5579    
  15  norm           .0000        .46765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     116.09        103.66        .92787E-04   -1.5492    
  17  Prefactor     .10691E-06    24.781        .15812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    2.0204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .25069E-06    74.576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .80005E-01    14.109        .10870E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.083        6.1429        .30061E-03   -1.5641    
  22  Prefactor     1.9264        2.0892        .74851E-03   -1.5680    
  23  Normalizat    .87668        .13711        .44606E-01   -.97284    
  24  Prefactor     .94447        .12496        .45568E-01   -.94604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80422e-06
Minuit parameter uncertainties:
  1  2.9469e-05
  2  1.23943
  3  2.97983e-09
  4  0.00719815
  5  1.54449
  6  11.6429
  7  6.18399e-07
  8  1.99186e-05
  9  21.0244
  10  1.41624
  11  1.69056e-05
  12  0.551452
  13  0.53659
  14  22.8177
  15  5.59362e-07
  16  103.666
  17  0.0032558
  18  1.64763e-05
  19  0.00864747
  20  2.12487
  21  6.14291
  22  2.08922
  23  0.137167
  24  0.124994
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.278     FROM HESSE     STATUS=OK           457 CALLS     2640 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    1.3873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2048        1.2394        .10321E-02   -1.5686    
   3  Prefactor      .0000        3.9279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13983E-06    92.625        .76063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5114        1.5445        .86929E-03   -1.5683    
   6  Prefactor     5.7991        11.643        .41762E-03   -1.5660    
   7  Prefactor      .0000        3.3390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        13.095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4711        21.024        .32517E-03   -1.5646    
  10  Prefactor     .52427        1.4162        .75989E-03   -1.5693    
  11  Prefactor     .55511E-10    1.2599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .67271E-01    1.1301        .64702E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .54581        .53659        .74250E-03   -1.5693    
  14  Prefactor     41.675        22.818        .15520E-03   -1.5579    
  15  norm           .0000        .46765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     116.09        103.66        .92787E-04   -1.5492    
  17  Prefactor     .10691E-06    24.781        .15812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    2.0204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .25069E-06    74.576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .80005E-01    14.109        .10870E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.083        6.1429        .30061E-03   -1.5641    
  22  Prefactor     1.9264        2.0892        .74851E-03   -1.5680    
  23  Normalizat    .87668        .13711        .44606E-01   -.97284    
  24  Prefactor     .94447        .12496        .45568E-01   -.94604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80422e-06
Minuit parameter uncertainties:
  1  2.9469e-05
  2  1.23943
  3  2.97983e-09
  4  0.00719815
  5  1.54449
  6  11.6429
  7  6.18399e-07
  8  1.99186e-05
  9  21.0244
  10  1.41624
  11  1.69056e-05
  12  0.551452
  13  0.53659
  14  22.8177
  15  5.59362e-07
  16  103.666
  17  0.0032558
  18  1.64763e-05
  19  0.00864747
  20  2.12487
  21  6.14291
  22  2.08922
  23  0.137167
  24  0.124994
Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  5.243e-01  1.416e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.445e-01  1.250e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.767e-01  1.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 6.24581690524e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00478012718206 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32402530/likelihoodResults_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25361072
delta logL = 0.0246100220975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25248186
delta logL = 0.0257388829232

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7340.252     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46725        31.480        .82197E-03    .18624E-01
   2  Index         2.5617        6.2553        .23329        .61514E-04
   3  Normalizat    .87356        .26895E-01    .44563E-01    .14468E-03
   4  Prefactor     .94552        .25664E-01    .45583E-01    .13002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.467248
  Index      = 2.56169
  Normalizat = 0.873561
  Prefactor  = 0.945515
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.252     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46725        1.3649        .13025E-04   -1.5694    
   2  Index         2.5617        1.4561        .13976E-01   -.50941    
   3  Normalizat    .87356        .14834        .23162E-03   -.97395    
   4  Prefactor     .94552        .14209        .21418E-03   -.94568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09078e-11
Minuit parameter uncertainties:
  1  1.36491
  2  1.48456
  3  0.148404
  4  0.142142
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) = 7340.25247953
delta logL = 0.0257412075025

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  4.672e-01  1.365e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.562e+00  1.485e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.455e-01  1.421e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.736e-01  1.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32402530/cmap_HighResolution_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2026-07-20 03:02:25.966456', job_id='32402530', GAL2='0.95', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1784541745.97', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.57e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2186' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 20 03:02:26 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  5.243e-01  1.416e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.445e-01  1.250e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.767e-01  1.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 6.24581690524e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00478012718206 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32402605/likelihoodResults_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25361072
delta logL = 0.0246100220975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25248186
delta logL = 0.0257388829232

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7340.252     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46725        31.480        .82197E-03    .18624E-01
   2  Index         2.5617        6.2553        .23329        .61514E-04
   3  Normalizat    .87356        .26895E-01    .44563E-01    .14468E-03
   4  Prefactor     .94552        .25664E-01    .45583E-01    .13002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.467248
  Index      = 2.56169
  Normalizat = 0.873561
  Prefactor  = 0.945515
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.252     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46725        1.3649        .13025E-04   -1.5694    
   2  Index         2.5617        1.4561        .13976E-01   -.50941    
   3  Normalizat    .87356        .14834        .23162E-03   -.97395    
   4  Prefactor     .94552        .14209        .21418E-03   -.94568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09078e-11
Minuit parameter uncertainties:
  1  1.36491
  2  1.48456
  3  0.148404
  4  0.142142
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) = 7340.25247953
delta logL = 0.0257412075025

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  4.672e-01  1.365e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.562e+00  1.485e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.455e-01  1.421e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.736e-01  1.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32402605/cmap_HighResolution_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2026-07-20 03:02:33.838417', job_id='32402605', GAL2='0.95', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1784541753.84', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.57e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2186' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 20 03:02:34 PDT 2026

number of points = 7244
number of fields = 31
RA_SUN column already exists. File will not be modified.
ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/32402673/Model_4FGL_J0340.5-2118_daily_bin2186.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/32402673/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits.....................!
real 53.36
user 51.83
sys 0.88

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32402673/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits', '/lscratch/kocevski/32402673/ft2_4FGL_J0340.5-2118_daily_bin2186.fits', expMap='/lscratch/kocevski/32402673/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits', expCube='/lscratch/kocevski/32402673/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32402673/Model_4FGL_J0340.5-2118_daily_bin2186.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32402673/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits
Spacecraft file(s): /lscratch/kocevski/32402673/ft2_4FGL_J0340.5-2118_daily_bin2186.fits
Exposure map: /lscratch/kocevski/32402673/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
Exposure cube: /lscratch/kocevski/32402673/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32402673/Model_4FGL_J0340.5-2118_daily_bin2186.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) = 7340.27941706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10311E-04   1.0000          .0000       .10000E+07
     2 'norm      '    1.2050       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10731E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .52675       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.5123       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.7773       1.0000          .0000       .10000E+07
     7 'Prefactor '    .83382E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .89131E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.4838       1.0000          .0000       .10000E+07
    10 'Prefactor '    .52751       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16504E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .32834E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .54559       1.0000          .0000       .10000E+07
    14 'Prefactor '    41.525       1.0000          .0000       .10000E+07
    15 'norm      '    .38497E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    116.17       1.0000          .0000       .10000E+07
    17 'Prefactor '    .43451E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .52465E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .17765E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .35615       1.0000          .0000       .10000E+07
    21 'Prefactor '    11.088       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.9249       1.0000          .0000   Done.


Performing analysis on: 4FGL_J0340.5-2118_daily_bin2186
RA = 55.1477, Dec = -21.3158
tmin = 805939201, tmax = 806198401
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='32402961', job_status='RUN', time_executed='2026-07-20 03:01:11.641535', time_epoch_executed='1784541671.64' WHERE source_name='4FGL J0340.5-2118' and cadence='daily' and bin_id='2186'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32402961

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32402961/ft1_4FGL_J0340.5-2118_daily_bin2186.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32402961/ft2_4FGL_J0340.5-2118_daily_bin2186.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32402961/ft1_4FGL_J0340.5-2118_daily_bin2186.fits outfile=/lscratch/kocevski/32402961/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2186.fits ra=55.1477 dec=-21.3158 rad=12.0 tmin=805939201.0 tmax=806198401.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.15
user 1.66
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32402961/ft2_4FGL_J0340.5-2118_daily_bin2186.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32402961/ft2_4FGL_J0340.5-2118_daily_bin2186.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/32402961/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin2186.fits evtable="EVENTS" outfile="/lscratch/kocevski/32402961/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.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.61
user 0.17
sys 0.13

Number of photons that the gtmktime cut: 635

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32402961/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32402961/ft2_4FGL_J0340.5-2118_daily_bin2186.fits sctable="SC_DATA"     .10000E+07
    23 'Normalizat'    .87690       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7340.278     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     2183 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16653E-09    1.4200        .36340E-06** at limit **
   2  norm          1.2048        1.2525        .12020E-07   -.70323E-03
   3  Prefactor      .0000        3.9307       -.10489E-06** at limit **
   4  Prefactor     .13983E-06    91.364        .18979E-05** at limit **
   5  Prefactor     1.5114        1.5456       -.11324E-06   -.68383E-03
   6  Prefactor     5.7991        11.533        .17052E-06    .23905E-01
   7  Prefactor      .0000        3.3433       -.56247E-07** at limit **
   8  Prefactor      .0000        12.933       -.81736E-06** at limit **
   9  Prefactor     9.4711        1.0287       -.87046E-08   -.13700E-02
  10  Prefactor     .52427        1.3946        .14513E-06    .64179E-03
  11  Prefactor     .55511E-10    1.2548        .19709E-07** at limit **
  12  Prefactor     .67271E-01    24.643        .11672E-05** at limit **
  13  norm          .54581        .52553        .27473E-07    .78876E-03
  14  Prefactor     41.675        3.5279       -.29170E-07   -.14963    
  15  norm           .0000        .47431       -.54431E-07** at limit **
  16  Prefactor     116.09        2.8171       -.51546E-07    .28495    
  17  Prefactor     .10691E-06    25.649        .74646E-06** at limit **
  18  Prefactor     .55511E-10    2.0534        .14970E-06** at limit **
  19  norm          .25069E-06    75.106       -.28161E-05** at limit **
  20  Prefactor     .80005E-01    3.9478       -.11145E-06** at limit **
  21  Prefactor     11.083        6.1241        .17962E-06    .10019E-01
  22  Prefactor     1.9264        2.0871        .54436E-07    .10320E-02
  23  Normalizat    .87668        .15316        .45492E-07   -.26528E-05
  24  Prefactor     .94447        .14298       -.19679E-06    .19975E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66533e-10
  norm       = 1.20484
  Prefactor  = 0
  Prefactor  = 1.39833e-07
  Prefactor  = 1.51145
  Prefactor  = 5.79912
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 9.47114
  Prefactor  = 0.524268
  Prefactor  = 5.55112e-11
  Prefactor  = 0.0672709
  norm       = 0.545808
  Prefactor  = 41.6745
  norm       = 0
  Prefactor  = 116.094
  Prefactor  = 1.06914e-07
  Prefactor  = 5.55112e-11
  norm       = 2.50688e-07
  Prefactor  = 0.0800049
  Prefactor  = 11.0835
  Prefactor  = 1.92637
  Normalizat = 0.876682
  Prefactor  = 0.944472
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.278     FROM HESSE     STATUS=OK           457 CALLS     2640 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    1.3873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2048        1.2394        .10321E-02   -1.5686    
   3  Prefactor      .0000        3.9279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13983E-06    92.625        .76063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5114        1.5445        .86929E-03   -1.5683    
   6  Prefactor     5.7991        11.643        .41762E-03   -1.5660    
   7  Prefactor      .0000        3.3390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        13.095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4711        21.024        .32517E-03   -1.5646    
  10  Prefactor     .52427        1.4162        .75989E-03   -1.5693    
  11  Prefactor     .55511E-10    1.2599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .67271E-01    1.1301        .64702E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .54581        .53659        .74250E-03   -1.5693    
  14  Prefactor     41.675        22.818        .15520E-03   -1.5579    
  15  norm           .0000        .46765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     116.09        103.66        .92787E-04   -1.5492    
  17  Prefactor     .10691E-06    24.781        .15812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    2.0204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .25069E-06    74.576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .80005E-01    14.109        .10870E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.083        6.1429        .30061E-03   -1.5641    
  22  Prefactor     1.9264        2.0892        .74851E-03   -1.5680    
  23  Normalizat    .87668        .13711        .44606E-01   -.97284    
  24  Prefactor     .94447        .12496        .45568E-01   -.94604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80422e-06
Minuit parameter uncertainties:
  1  2.9469e-05
  2  1.23943
  3  2.97983e-09
  4  0.00719815
  5  1.54449
  6  11.6429
  7  6.18399e-07
  8  1.99186e-05
  9  21.0244
  10  1.41624
  11  1.69056e-05
  12  0.551452
  13  0.53659
  14  22.8177
  15  5.59362e-07
  16  103.666
  17  0.0032558
  18  1.64763e-05
  19  0.00864747
  20  2.12487
  21  6.14291
  22  2.08922
  23  0.137167
  24  0.124994
Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  5.243e-01  1.416e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.445e-01  1.250e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.767e-01  1.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 6.24581690524e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00478012718206 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32402673/likelihoodResults_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25361072
delta logL = 0.0246100220975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25248186
delta logL = 0.0257388829232

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7340.252     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46725        31.480        .82197E-03    .18624E-01
   2  Index         2.5617        6.2553        .23329        .61514E-04
   3  Normalizat    .87356        .26895E-01    .44563E-01    .14468E-03
   4  Prefactor     .94552        .25664E-01    .45583E-01    .13002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.467248
  Index      = 2.56169
  Normalizat = 0.873561
  Prefactor  = 0.945515
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.252     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46725        1.3649        .13025E-04   -1.5694    
   2  Index         2.5617        1.4561        .13976E-01   -.50941    
   3  Normalizat    .87356        .14834        .23162E-03   -.97395    
   4  Prefactor     .94552        .14209        .21418E-03   -.94568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09078e-11
Minuit parameter uncertainties:
  1  1.36491
  2  1.48456
  3  0.148404
  4  0.142142
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) = 7340.25247953
delta logL = 0.0257412075025

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  4.672e-01  1.365e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.562e+00  1.485e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.455e-01  1.421e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.736e-01  1.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32402673/cmap_HighResolution_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2026-07-20 03:03:26.531685', job_id='32402673', GAL2='0.95', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1784541806.53', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.57e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2186' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 20 03:03:26 PDT 2026

outfile=/lscratch/kocevski/32402961/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.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/32402961/ft2_4FGL_J0340.5-2118_daily_bin2186.fits
.....................!
real 7.02
user 6.55
sys 0.19

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32402961/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits evtable="EVENTS" scfile=/lscratch/kocevski/32402961/ft2_4FGL_J0340.5-2118_daily_bin2186.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32402961/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits outfile=/lscratch/kocevski/32402961/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.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/32402961/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
.....................!
real 59.48
user 55.36
sys 3.54

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 157 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 J0340.5-2118 @ 55.1477 -21.3158

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32402961/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits scfile=/lscratch/kocevski/32402961/ft2_4FGL_J0340.5-2118_daily_bin2186.fits outfile=/lscratch/kocevski/32402961/cmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.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=55.1477 yref=-21.3158 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.56
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32402961/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits scfile=/lscratch/kocevski/32402961/ft2_4FGL_J0340.5-2118_daily_bin2186.fits outfile=/lscratch/kocevski/32402961/cmap_HighResolution_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.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=55.1477 yref=-21.3158 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.56
user 0.19
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32402961/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits evtable="EVENTS" scfile=/lscratch/kocevski/32402961/ft2_4FGL_J0340.5-2118_daily_bin2186.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32402766/Model_4FGL_J0340.5-2118_daily_bin2186.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/32402766/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits.....................!
real 60.67
user 58.98
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32402766/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits', '/lscratch/kocevski/32402766/ft2_4FGL_J0340.5-2118_daily_bin2186.fits', expMap='/lscratch/kocevski/32402766/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits', expCube='/lscratch/kocevski/32402766/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32402766/Model_4FGL_J0340.5-2118_daily_bin2186.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32402766/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits
Spacecraft file(s): /lscratch/kocevski/32402766/ft2_4FGL_J0340.5-2118_daily_bin2186.fits
Exposure map: /lscratch/kocevski/32402766/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
Exposure cube: /lscratch/kocevski/32402766/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32402766/Model_4FGL_J0340.5-2118_daily_bin2186.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) = 7340.27941706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10311E-04   1.0000          .0000       .10000E+07
     2 'norm      '    1.2050       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10731E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .52675       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.5123       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.7773       1.0000          .0000       .10000E+07
     7 'Prefactor '    .83382E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .89131E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.4838       1.0000          .0000       .10000E+07
    10 'Prefactor '    .52751       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16504E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .32834E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .54559       1.0000          .0000       .10000E+07
    14 'Prefactor '    41.525       1.0000          .0000       .10000E+07
    15 'norm      '    .38497E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    116.17       1.0000          .0000       .10000E+07
    17 'Prefactor '    .43451E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .52465E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .17765E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .35615       1.0000          .0000       .10000E+07
    21 'Prefactor '    11.088       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.9249       1.0000          .0000   ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/32402788/Model_4FGL_J0340.5-2118_daily_bin2186.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/32402788/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits.....................!
real 60.89
user 58.99
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32402788/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits', '/lscratch/kocevski/32402788/ft2_4FGL_J0340.5-2118_daily_bin2186.fits', expMap='/lscratch/kocevski/32402788/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits', expCube='/lscratch/kocevski/32402788/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32402788/Model_4FGL_J0340.5-2118_daily_bin2186.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32402788/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits
Spacecraft file(s): /lscratch/kocevski/32402788/ft2_4FGL_J0340.5-2118_daily_bin2186.fits
Exposure map: /lscratch/kocevski/32402788/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
Exposure cube: /lscratch/kocevski/32402788/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32402788/Model_4FGL_J0340.5-2118_daily_bin2186.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) = 7340.27941706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10311E-04   1.0000          .0000       .10000E+07
     2 'norm      '    1.2050       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10731E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .52675       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.5123       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.7773       1.0000          .0000       .10000E+07
     7 'Prefactor '    .83382E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .89131E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.4838       1.0000          .0000       .10000E+07
    10 'Prefactor '    .52751       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16504E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .32834E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .54559       1.0000          .0000       .10000E+07
    14 'Prefactor '    41.525       1.0000          .0000       .10000E+07
    15 'norm      '    .38497E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    116.17       1.0000          .0000       .10000E+07
    17 'Prefactor '    .43451E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .52465E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .17765E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .35615       1.0000          .0000       .10000E+07
    21 'Prefactor '    11.088       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.9249       1.0000          .0000       .10000E+07
    23 'Normalizat'    .87690       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7340.278     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     2183 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16653E-09    1.4200        .36340E-06** at limit **
   2  norm          1.2048        1.2525        .12020E-07   -.70323E-03
   3  Prefactor      .0000        3.9307       -.10489E-06** at limit **
   4  Prefactor     .13983E-06    91.364        .18979E-05** at limit **
   5  Prefactor     1.5114        1.5456       -.11324E-06   -.68383E-03
   6  Prefactor     5.7991        11.533        .17052E-06    .23905E-01
   7  Prefactor      .0000        3.3433       -.56247E-07** at limit **
   8  Prefactor      .0000        12.933       -.81736E-06** at limit **
   9  Prefactor     9.4711        1.0287       -.87046E-08   -.13700E-02
  10  Prefactor     .52427        1.3946        .14513E-06    .64179E-03
  11  Prefactor     .55511E-10    1.2548        .19709E-07** at limit **
  12  Prefactor     .67271E-01    24.643        .11672E-05** at limit **
  13  norm          .54581        .52553        .27473E-07    .78876E-03
  14  Prefactor     41.675        3.5279       -.29170E-07   -.14963    
  15  norm           .0000        .47431       -.54431E-07** at limit **
  16  Prefactor     116.09        2.8171       -.51546E-07    .28495    
  17  Prefactor     .10691E-06    25.649        .74646E-06** at limit **
  18  Prefactor     .55511E-10    2.0534        .14970E-06** at limit **
  19  norm          .25069E-06    75.106       -.28161E-05** at limit **
  20  Prefactor     .80005E-01    3.9478       -.11145E-06** at limit **
  21  Prefactor     11.083        6.1241        .17962E-06    .10019E-01
  22  Prefactor     1.9264        2.0871        .54436E-07    .10320E-02
  23  Normalizat    .87668        .15316        .45492E-07   -.26528E-05
  24  Prefactor     .94447        .14298       -.19679E-06    .19975E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66533e-10
  norm       = 1.20484
  Prefactor  = 0
  Prefactor  = 1.39833e-07
  Prefactor  = 1.51145
  Prefactor  = 5.79912
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 9.47114
  Prefactor  = 0.524268
  Prefactor  = 5.55112e-11
  Prefactor  = 0.0672709
  norm       = 0.545808
  Prefactor  = 41.6745
  norm       = 0
  Prefactor  = 116.094
  Prefactor  = 1.06914e-07
  Prefactor  = 5.55112e-11
  norm       = 2.50688e-07
  Prefactor  = 0.0800049
  Prefactor  = 11.0835
  Prefactor  = 1.92637
  Normalizat = 0.876682
  Prefactor  = 0.944472
    .10000E+07
    23 'Normalizat'    .87690       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7340.278     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     2183 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16653E-09    1.4200        .36340E-06** at limit **
   2  norm          1.2048        1.2525        .12020E-07   -.70323E-03
   3  Prefactor      .0000        3.9307       -.10489E-06** at limit **
   4  Prefactor     .13983E-06    91.364        .18979E-05** at limit **
   5  Prefactor     1.5114        1.5456       -.11324E-06   -.68383E-03
   6  Prefactor     5.7991        11.533        .17052E-06    .23905E-01
   7  Prefactor      .0000        3.3433       -.56247E-07** at limit **
   8  Prefactor      .0000        12.933       -.81736E-06** at limit **
   9  Prefactor     9.4711        1.0287       -.87046E-08   -.13700E-02
  10  Prefactor     .52427        1.3946        .14513E-06    .64179E-03
  11  Prefactor     .55511E-10    1.2548        .19709E-07** at limit **
  12  Prefactor     .67271E-01    24.643        .11672E-05** at limit **
  13  norm          .54581        .52553        .27473E-07    .78876E-03
  14  Prefactor     41.675        3.5279       -.29170E-07   -.14963    
  15  norm           .0000        .47431       -.54431E-07** at limit **
  16  Prefactor     116.09        2.8171       -.51546E-07    .28495    
  17  Prefactor     .10691E-06    25.649        .74646E-06** at limit **
  18  Prefactor     .55511E-10    2.0534        .14970E-06** at limit **
  19  norm          .25069E-06    75.106       -.28161E-05** at limit **
  20  Prefactor     .80005E-01    3.9478       -.11145E-06** at limit **
  21  Prefactor     11.083        6.1241        .17962E-06    .10019E-01
  22  Prefactor     1.9264        2.0871        .54436E-07    .10320E-02
  23  Normalizat    .87668        .15316        .45492E-07   -.26528E-05
  24  Prefactor     .94447        .14298       -.19679E-06    .19975E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66533e-10
  norm       = 1.20484
  Prefactor  = 0
  Prefactor  = 1.39833e-07
  Prefactor  = 1.51145
  Prefactor  = 5.79912
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 9.47114
  Prefactor  = 0.524268
  Prefactor  = 5.55112e-11
  Prefactor  = 0.0672709
  norm       = 0.545808
  Prefactor  = 41.6745
  norm       = 0
  Prefactor  = 116.094
  Prefactor  = 1.06914e-07
  Prefactor  = 5.55112e-11
  norm       = 2.50688e-07
  Prefactor  = 0.0800049
  Prefactor  = 11.0835
  Prefactor  = 1.92637
  Normalizat = 0.876682
  Prefactor  = 0.944472
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.278     FROM HESSE     STATUS=OK           457 CALLS     2640 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    1.3873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2048        1.2394        .10321E-02   -1.5686    
   3  Prefactor      .0000        3.9279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13983E-06    92.625        .76063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5114        1.5445        .86929E-03   -1.5683    
   6  Prefactor     5.7991        11.643        .41762E-03   -1.5660    
   7  Prefactor      .0000        3.3390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        13.095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4711        21.024        .32517E-03   -1.5646    
  10  Prefactor     .52427        1.4162        .75989E-03   -1.5693    
  11  Prefactor     .55511E-10    1.2599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .67271E-01    1.1301        .64702E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .54581        .53659        .74250E-03   -1.5693    
  14  Prefactor     41.675        22.818        .15520E-03   -1.5579    
  15  norm           .0000        .46765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     116.09        103.66        .92787E-04   -1.5492    
  17  Prefactor     .10691E-06    24.781        .15812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    2.0204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .25069E-06    74.576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .80005E-01    14.109        .10870E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.083        6.1429        .30061E-03   -1.5641    
  22  Prefactor     1.9264        2.0892        .74851E-03   -1.5680    
  23  Normalizat    .87668        .13711        .44606E-01   -.97284    
  24  Prefactor     .94447        .12496        .45568E-01   -.94604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80422e-06
Minuit parameter uncertainties:
  1  2.9469e-05
  2  1.23943
  3  2.97983e-09
  4  0.00719815
  5  1.54449
  6  11.6429
  7  6.18399e-07
  8  1.99186e-05
  9  21.0244
  10  1.41624
  11  1.69056e-05
  12  0.551452
  13  0.53659
  14  22.8177
  15  5.59362e-07
  16  103.666
  17  0.0032558
  18  1.64763e-05
  19  0.00864747
  20  2.12487
  21  6.14291
  22  2.08922
  23  0.137167
  24  0.124994
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.278     FROM HESSE     STATUS=OK           457 CALLS     2640 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    1.3873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2048        1.2394        .10321E-02   -1.5686    
   3  Prefactor      .0000        3.9279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13983E-06    92.625        .76063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5114        1.5445        .86929E-03   -1.5683    
   6  Prefactor     5.7991        11.643        .41762E-03   -1.5660    
   7  Prefactor      .0000        3.3390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        13.095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4711        21.024        .32517E-03   -1.5646    
  10  Prefactor     .52427        1.4162        .75989E-03   -1.5693    
  11  Prefactor     .55511E-10    1.2599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .67271E-01    1.1301        .64702E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .54581        .53659        .74250E-03   -1.5693    
  14  Prefactor     41.675        22.818        .15520E-03   -1.5579    
  15  norm           .0000        .46765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     116.09        103.66        .92787E-04   -1.5492    
  17  Prefactor     .10691E-06    24.781        .15812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    2.0204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .25069E-06    74.576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .80005E-01    14.109        .10870E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.083        6.1429        .30061E-03   -1.5641    
  22  Prefactor     1.9264        2.0892        .74851E-03   -1.5680    
  23  Normalizat    .87668        .13711        .44606E-01   -.97284    
  24  Prefactor     .94447        .12496        .45568E-01   -.94604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80422e-06
Minuit parameter uncertainties:
  1  2.9469e-05
  2  1.23943
  3  2.97983e-09
  4  0.00719815
  5  1.54449
  6  11.6429
  7  6.18399e-07
  8  1.99186e-05
  9  21.0244
  10  1.41624
  11  1.69056e-05
  12  0.551452
  13  0.53659
  14  22.8177
  15  5.59362e-07
  16  103.666
  17  0.0032558
  18  1.64763e-05
  19  0.00864747
  20  2.12487
  21  6.14291
  22  2.08922
  23  0.137167
  24  0.124994
Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  5.243e-01  1.416e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.445e-01  1.250e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.767e-01  1.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 6.24581690524e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00478012718206 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32402766/likelihoodResults_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25361072
delta logL = 0.0246100220975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25248186
delta logL = 0.0257388829232

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7340.252     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46725        31.480        .82197E-03    .18624E-01
   2  Index         2.5617        6.2553        .23329        .61514E-04
   3  Normalizat    .87356        .26895E-01    .44563E-01    .14468E-03
   4  Prefactor     .94552        .25664E-01    .45583E-01    .13002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.467248
  Index      = 2.56169
  Normalizat = 0.873561
  Prefactor  = 0.945515
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.252     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46725        1.3649        .13025E-04   -1.5694    
   2  Index         2.5617        1.4561        .13976E-01   -.50941    
   3  Normalizat    .87356        .14834        .23162E-03   -.97395    
   4  Prefactor     .94552        .14209        .21418E-03   -.94568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09078e-11
Minuit parameter uncertainties:
  1  1.36491
  2  1.48456
  3  0.148404
  4  0.142142
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) = 7340.25247953
delta logL = 0.0257412075025

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  4.672e-01  1.365e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.562e+00  1.485e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.455e-01  1.421e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.736e-01  1.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32402766/cmap_HighResolution_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2026-07-20 03:04:56.379064', job_id='32402766', GAL2='0.95', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1784541896.38', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.57e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2186' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 20 03:04:56 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  5.243e-01  1.416e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.445e-01  1.250e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.767e-01  1.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 6.24581690524e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00478012718206 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32402788/likelihoodResults_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25361072
delta logL = 0.0246100220975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.25248186
delta logL = 0.0257388829232

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7340.252     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46725        31.480        .82197E-03    .18624E-01
   2  Index         2.5617        6.2553        .23329        .61514E-04
   3  Normalizat    .87356        .26895E-01    .44563E-01    .14468E-03
   4  Prefactor     .94552        .25664E-01    .45583E-01    .13002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.467248
  Index      = 2.56169
  Normalizat = 0.873561
  Prefactor  = 0.945515
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.252     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46725        1.3649        .13025E-04   -1.5694    
   2  Index         2.5617        1.4561        .13976E-01   -.50941    
   3  Normalizat    .87356        .14834        .23162E-03   -.97395    
   4  Prefactor     .94552        .14209        .21418E-03   -.94568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09078e-11
Minuit parameter uncertainties:
  1  1.36491
  2  1.48456
  3  0.148404
  4  0.142142
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) = 7340.25247953
delta logL = 0.0257412075025

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  4.672e-01  1.365e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.562e+00  1.485e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.455e-01  1.421e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.736e-01  1.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32402788/cmap_HighResolution_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2026-07-20 03:04:59.634210', job_id='32402788', GAL2='0.95', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1784541899.63', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.57e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2186' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 20 03:04:59 PDT 2026

ts sctable="SC_DATA" srcmdl=/lscratch/kocevski/32402961/Model_4FGL_J0340.5-2118_daily_bin2186.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/32402961/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits.....................!
real 50.92
user 49.48
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32402961/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits', '/lscratch/kocevski/32402961/ft2_4FGL_J0340.5-2118_daily_bin2186.fits', expMap='/lscratch/kocevski/32402961/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits', expCube='/lscratch/kocevski/32402961/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32402961/Model_4FGL_J0340.5-2118_daily_bin2186.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32402961/ft1_filtered_4FGL_J0340.5-2118_daily_bin2186.fits
Spacecraft file(s): /lscratch/kocevski/32402961/ft2_4FGL_J0340.5-2118_daily_bin2186.fits
Exposure map: /lscratch/kocevski/32402961/expmap_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
Exposure cube: /lscratch/kocevski/32402961/ltcube_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32402961/Model_4FGL_J0340.5-2118_daily_bin2186.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) = 7018.85312836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34771E-04   1.0000          .0000       .10000E+07
     2 'norm      '    1.2865       1.0000          .0000       .10000E+07
     3 'Prefactor '    .32711E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .39469       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.5856       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.9738       1.0000          .0000       .10000E+07
     7 'Prefactor '    .17503E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .23262E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.1344       1.0000          .0000       .10000E+07
    10 'Prefactor '    .55428       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13022E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .33927       1.0000          .0000       .10000E+07
    13 'norm      '    .44253       1.0000          .0000       .10000E+07
    14 'Prefactor '    38.978       1.0000          .0000       .10000E+07
    15 'norm      '    .65115E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    129.68       1.0000          .0000       .10000E+07
    17 'Prefactor '    .11935E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .99754E-07   1.0000          .0000       .10000E+07
    19 'norm      '    .99222E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .14029E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    11.433       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.8492       1.0000          .0000       .10000E+07
    23 'Normalizat'    .84571       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94683       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7018.853     FROM MIGRAD    STATUS=CONVERGED    176 CALLS     2186 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.0267       -.15231E-06** at limit **
   2  norm          1.2853        1.3236        .69505E-07   -.22262E-03
   3  Prefactor      .0000        4.3247       -.90737E-07** at limit **
   4  Prefactor     .46574E-05    23.548        .68915E-07** at limit **
   5  Prefactor     1.5857        1.6117        .10864E-06   -.19039E-02
   6  Prefactor     2.9605        11.417       -.45281E-07    .96425E-03
   7  Prefactor      .0000        3.8195        .13854E-06** at limit **
   8  Prefactor     .11102E-09    10.208       -.86938E-07** at limit **
   9  Prefactor     9.1248        1.1482        .27390E-08    .12153E-01
  10  Prefactor     .55328        1.4004        .27796E-06   -.26166E-02
  11  Prefactor      .0000        1.3477        .17641E-06** at limit **
  12  Prefactor     .33716        5.2377       -.35749E-06    .59415E-04
  13  norm          .44296        .47151       -.63040E-07   -.78557E-04
  14  Prefactor     39.032        20.635       -.15128E-06   -.24561E-01
  15  norm           .0000        .47534       -.14689E-06** at limit **
  16  Prefactor     129.78        1.9389       -.21774E-08   -.57828E-01
  17  Prefactor     .80713E-07    22.195       -.60210E-06** at limit **
  18  Prefactor      .0000        1.2918        .53519E-07** at limit **
  19  norm          .33307E-09    74.480       -.14278E-05** at limit **
  20  Prefactor     .65503E-08    235.15        .12747E-05** at limit **
  21  Prefactor     11.419        6.1765        .23378E-06   -.12566E-02
  22  Prefactor     1.8492        2.0311        .83124E-07   -.18347E-03
  23  Normalizat    .84581        .15386        .40467E-06   -.21477E-04
  24  Prefactor     .94693        .14352       -.43071E-05    .23784E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 1.28525
  Prefactor  = 0
  Prefactor  = 4.65739e-06
  Prefactor  = 1.5857
  Prefactor  = 2.96054
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 9.1248
  Prefactor  = 0.553276
  Prefactor  = 0
  Prefactor  = 0.337165
  norm       = 0.442959
  Prefactor  = 39.0322
  norm       = 0
  Prefactor  = 129.777
  Prefactor  = 8.07132e-08
  Prefactor  = 0
  norm       = 3.33067e-10
  Prefactor  = 6.55032e-09
  Prefactor  = 11.4188
  Prefactor  = 1.84919
  Normalizat = 0.845809
  Prefactor  = 0.946932
 **********
 **   18 **HESSE 
 **********

 FCN=   7018.853     FROM HESSE     STATUS=OK           459 CALLS     2645 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.9563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2853        1.3107        .97688E-03   -1.5685    
   3  Prefactor      .0000        4.3267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .46574E-05    113.33        .90105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5857        1.6074        .84275E-03   -1.5683    
   6  Prefactor     2.9605        11.464        .58852E-03   -1.5674    
   7  Prefactor      .0000        3.8203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11102E-09    10.304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.1248        20.581        .33137E-03   -1.5648    
  10  Prefactor     .55328        1.4345        .73427E-03   -1.5693    
  11  Prefactor      .0000        1.3475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .33716        1.4649        .53247E-02   -1.5696    
  13  norm          .44296        .53305        .13424E-02   -1.5695    
  14  Prefactor     39.032        22.402        .16019E-03   -1.5583    
  15  norm           .0000        .47332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     129.78        107.86        .87821E-04   -1.5480    
  17  Prefactor     .80713E-07    23.850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        1.2800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .33307E-09    10.046        .84580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .65503E-08    230.23        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.419        6.2114        .29603E-03   -1.5640    
  22  Prefactor     1.8492        2.0358        .76644E-03   -1.5681    
  23  Normalizat    .84581        .13835        .44204E-01   -.98391    
  24  Prefactor     .94693        .12623        .45599E-01   -.94520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65171e-07
Minuit parameter uncertainties:
  1  4.00891e-06
  2  1.31066
  3  5.17293e-06
  4  0.045949
  5  1.60742
  6  11.4637
  7  5.39097e-06
  8  6.8997e-05
  9  20.5815
  10  1.43452
  11  3.78331e-06
  12  1.40556
  13  0.533046
  14  22.402
  15  3.3393e-06
  16  107.865
  17  0.0027746
  18  2.96099e-06
  19  0.000116777
  20  0.00245264
  21  6.21135
  22  2.03581
  23  0.138403
  24  0.126273
Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  5.533e-01  1.435e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.469e-01  1.263e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.458e-01  1.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 55.148 -21.316
Photon Flux Upper Limit: 6.3391117514e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0048515287676 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32402961/likelihoodResults_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7018.83902715
delta logL = 0.0139157144731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7018.83817621
delta logL = 0.0147666579905

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7018.838     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50016        38.910        .78784E-03    .16910E-01
   2  Index         2.4750        6.1539        .23629        .55400E-04
   3  Normalizat    .84381        .28824E-01    .44179E-01    .33848E-04
   4  Prefactor     .94763        .27593E-01    .45609E-01    .28142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.500161
  Index      = 2.475
  Normalizat = 0.843815
  Prefactor  = 0.947625
 **********
 **   18 **HESSE 
 **********

 FCN=   7018.838     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50016        1.4100        .13398E-04   -1.5694    
   2  Index         2.4750        1.3422        .13968E-01   -.52938    
   3  Normalizat    .84381        .14887        .23148E-03   -.98463    
   4  Prefactor     .94763        .14326        .21092E-03   -.94496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80904e-09
Minuit parameter uncertainties:
  1  1.40995
  2  1.3648
  3  0.148938
  4  0.143314
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) = 7018.83817464
delta logL = 0.0147682251582

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  5.002e-01  1.410e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.475e+00  1.365e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.476e-01  1.433e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.438e-01  1.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
Ra Dec: 55.148 -21.316

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32402961/cmap_HighResolution_805939201_806198401_4FGL_J0340.5-2118_daily_bin2186.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-03', job_status='DONE', photon_flux_upper_limit='6.34e-08', time_completed='2026-07-20 03:06:42.799156', job_id='32402961', GAL2='0.95', fit_tolerance='1e-08', EG2='0.84', EG='0.85', time_epoch_completed='1784542002.8', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.48e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='2186' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 20 03:06:43 PDT 2026

