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

 FCN=   6498.437     FROM HESSE     STATUS=OK           353 CALLS     1604 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2400        11.858        .32903E-03   -1.5647    
   2  Prefactor     .55511E-10    1.9205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .46191E-06    31.309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .19462E-06    28.918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8410        4.5758        .38366E-03   -1.5656    
   6  Prefactor     .53840E-06    31.053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .15702E-05    15.486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .27756E-08    15.215        .17189E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .46054E-05    37.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3466        3.8507        .48386E-03   -1.5666    
  11  Prefactor     .66613E-09    9.2405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6708        10.916        .46364E-03   -1.5665    
  13  Prefactor     74.774        40.070        .11491E-03   -1.5535    
  14  Prefactor     .18642E-05    16.651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .81601E-08    8.2239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.903        35.400        .28275E-03   -1.5636    
  17  Prefactor     .81046E-08    12.395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .30170E-06    86.238        .14805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.358        30.548        .22495E-03   -1.5618    
  20  Normalizat    1.1304        .14150        .36864E-01   -.88781    
  21  Prefactor     .61919        .14105        .41313E-01   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21171e-07
Minuit parameter uncertainties:
  1  11.858
  2  1.90724e-05
  3  0.00760571
  4  0.00474474
  5  4.57579
  6  0.00817796
  7  0.00986216
  8  0.000410146
  9  0.0263964
  10  3.8507
  11  0.000159983
  12  10.9161
  13  40.0701
  14  0.0111428
  15  0.000517764
  16  35.4009
  17  0.000633844
  18  0.0102014
  19  30.5486
  20  0.141546
  21  0.14113
 **********
 **   18 **HESSE 
 **********

 FCN=   6498.437     FROM HESSE     STATUS=OK           353 CALLS     1604 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2400        11.858        .32903E-03   -1.5647    
   2  Prefactor     .55511E-10    1.9205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .46191E-06    31.309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .19462E-06    28.918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8410        4.5758        .38366E-03   -1.5656    
   6  Prefactor     .53840E-06    31.053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .15702E-05    15.486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .27756E-08    15.215        .17189E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .46054E-05    37.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3466        3.8507        .48386E-03   -1.5666    
  11  Prefactor     .66613E-09    9.2405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6708        10.916        .46364E-03   -1.5665    
  13  Prefactor     74.774        40.070        .11491E-03   -1.5535    
  14  Prefactor     .18642E-05    16.651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .81601E-08    8.2239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.903        35.400        .28275E-03   -1.5636    
  17  Prefactor     .81046E-08    12.395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .30170E-06    86.238        .14805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.358        30.548        .22495E-03   -1.5618    
  20  Normalizat    1.1304        .14150        .36864E-01   -.88781    
  21  Prefactor     .61919        .14105        .41313E-01   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21171e-07
Minuit parameter uncertainties:
  1  11.858
  2  1.90724e-05
  3  0.00760571
  4  0.00474474
  5  4.57579
  6  0.00817796
  7  0.00986216
  8  0.000410146
  9  0.0263964
  10  3.8507
  11  0.000159983
  12  10.9161
  13  40.0701
  14  0.0111428
  15  0.000517764
  16  35.4009
  17  0.000633844
  18  0.0102014
  19  30.5486
  20  0.141546
  21  0.14113
/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
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  6.661e-10  1.600e-04  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  6.192e-01  1.411e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.130e+00  1.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 205.110 69.445
Photon Flux Upper Limit: 4.98274397325e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00388397929853 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27461538/likelihoodResults_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.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) = 6498.49039808
delta logL = -0.0535386870306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6498.43685985
delta logL = -4.55110239272e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6498.437     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      183 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        8.7659        .42118E-03** at limit **
   2  Index         2.2133        .94397       -.47208E-04     .0000    
   3  Normalizat    1.1304        1.1363        .19432E-05   -.12538E-04
   4  Prefactor     .61919        .96763       -.92994E-05   -.40562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.21334
  Normalizat = 1.13041
  Prefactor  = 0.619188
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6498.437     FROM HESSE     STATUS=FAILED         9 CALLS      192 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.7659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .54132        1.7450       -.47208E-04   -.59117    
   3  Normalizat    1.1304        1.1363        .19432E-05   -.88781    
   4  Prefactor     .61919        .96763       -.92994E-05   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.02782e-12
Minuit parameter uncertainties:
  1  8.04985e-06
  2  0.9523
  3  1.16249
  4  0.995718

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

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 6498.43685939
delta logL = 4.36557456851e-11

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  8.050e-06  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.213e+00  9.523e-01  0.000e+00  1.000e+01 (-1.000e+00)
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  6.192e-01  9.957e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.130e+00  1.162e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 205.110 69.445

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27461538/cmap_HighResolution_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2026-05-30 11:16:27.805274', job_id='27461538', GAL2='0.62', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1780164987.81', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='4.37e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2169' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 30 11:16:27 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  6.661e-10  1.600e-04  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  6.192e-01  1.411e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.130e+00  1.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 205.110 69.445
Photon Flux Upper Limit: 4.98274397325e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00388397929853 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27461534/likelihoodResults_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.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) = 6498.49039808
delta logL = -0.0535386870306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6498.43685985
delta logL = -4.55110239272e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6498.437     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      183 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        8.7659        .42118E-03** at limit **
   2  Index         2.2133        .94397       -.47208E-04     .0000    
   3  Normalizat    1.1304        1.1363        .19432E-05   -.12538E-04
   4  Prefactor     .61919        .96763       -.92994E-05   -.40562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.21334
  Normalizat = 1.13041
  Prefactor  = 0.619188
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6498.437     FROM HESSE     STATUS=FAILED         9 CALLS      192 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.7659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .54132        1.7450       -.47208E-04   -.59117    
   3  Normalizat    1.1304        1.1363        .19432E-05   -.88781    
   4  Prefactor     .61919        .96763       -.92994E-05   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.02782e-12
Minuit parameter uncertainties:
  1  8.04985e-06
  2  0.9523
  3  1.16249
  4  0.995718

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

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

MINUIT Return Code (Free Index): 101
logL (Free Index) = 6498.43685939
delta logL = 4.36557456851e-11

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  8.050e-06  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.213e+00  9.523e-01  0.000e+00  1.000e+01 (-1.000e+00)
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  6.192e-01  9.957e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.130e+00  1.162e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 205.110 69.445

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27461534/cmap_HighResolution_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2026-05-30 11:16:33.433249', job_id='27461534', GAL2='0.62', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1780164993.43', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='4.37e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2169' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 30 11:16:33 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  6.661e-10  1.600e-04  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  6.192e-01  1.411e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.130e+00  1.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 205.110 69.445
Photon Flux Upper Limit: 4.98274397325e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00388397929853 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27461523/likelihoodResults_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.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) = 6498.49039808
delta logL = -0.0535386870306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6498.43685985
delta logL = -4.55110239272e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6498.437     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      183 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        8.7659        .42118E-03** at limit **
   2  Index         2.2133        .94397       -.47208E-04     .0000    
   3  Normalizat    1.1304        1.1363        .19432E-05   -.12538E-04
   4  Prefactor     .61919        .96763       -.92994E-05   -.40562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.21334
  Normalizat = 1.13041
  Prefactor  = 0.619188
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6498.437     FROM HESSE     STATUS=FAILED         9 CALLS      192 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.7659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .54132        1.7450       -.47208E-04   -.59117    
   3  Normalizat    1.1304        1.1363        .19432E-05   -.88781    
   4  Prefactor     .61919        .96763       -.92994E-05   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.02782e-12
Minuit parameter uncertainties:
  1  8.04985e-06
  2  0.9523
  3  1.16249
  4  0.995718
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  6.661e-10  1.600e-04  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  6.192e-01  1.411e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.130e+00  1.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 205.110 69.445
Photon Flux Upper Limit: 4.98274397325e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00388397929853 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27461520/likelihoodResults_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.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) = 6498.49039808
delta logL = -0.0535386870306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6498.43685985
delta logL = -4.55110239272e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6498.437     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      183 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        8.7659        .42118E-03** at limit **
   2  Index         2.2133        .94397       -.47208E-04     .0000    
   3  Normalizat    1.1304        1.1363        .19432E-05   -.12538E-04
   4  Prefactor     .61919        .96763       -.92994E-05   -.40562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.21334
  Normalizat = 1.13041
  Prefactor  = 0.619188
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6498.437     FROM HESSE     STATUS=FAILED         9 CALLS      192 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.7659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .54132        1.7450       -.47208E-04   -.59117    
   3  Normalizat    1.1304        1.1363        .19432E-05   -.88781    
   4  Prefactor     .61919        .96763       -.92994E-05   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.02782e-12
Minuit parameter uncertainties:
  1  8.04985e-06
  2  0.9523
  3  1.16249
  4  0.995718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 6498.43685939
delta logL = 4.36557456851e-11

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  8.050e-06  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.213e+00  9.523e-01  0.000e+00  1.000e+01 (-1.000e+00)
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  6.192e-01  9.957e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.130e+00  1.162e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 205.110 69.445

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27461523/cmap_HighResolution_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2026-05-30 11:17:01.115143', job_id='27461523', GAL2='0.62', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1780165021.12', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='4.37e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2169' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 30 11:17:01 PDT 2026

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

MINUIT Return Code (Free Index): 101
logL (Free Index) = 6498.43685939
delta logL = 4.36557456851e-11

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  8.050e-06  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.213e+00  9.523e-01  0.000e+00  1.000e+01 (-1.000e+00)
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  6.192e-01  9.957e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.130e+00  1.162e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 205.110 69.445

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27461520/cmap_HighResolution_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2026-05-30 11:17:02.211291', job_id='27461520', GAL2='0.62', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1780165022.21', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='4.37e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2169' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 30 11:17:02 PDT 2026

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


Performing analysis on: 4FGL_J1340.4+6926_daily_bin2169
RA = 205.11, Dec = 69.4446
tmin = 801532801, tmax = 801792001
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='27461900', job_status='RUN', time_executed='2026-05-30 11:16:32.630510', time_epoch_executed='1780164992.63' WHERE source_name='4FGL J1340.4+6926' and cadence='daily' and bin_id='2169'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/27461900

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/27461900/ft1_4FGL_J1340.4+6926_daily_bin2169.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/27461900/ft2_4FGL_J1340.4+6926_daily_bin2169.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/27461900/ft1_4FGL_J1340.4+6926_daily_bin2169.fits outfile=/lscratch/kocevski/27461900/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin2169.fits ra=205.11 dec=69.4446 rad=12.0 tmin=801532801.0 tmax=801792001.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.71
user 2.11
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/27461900/ft2_4FGL_J1340.4+6926_daily_bin2169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/27461900/ft2_4FGL_J1340.4+6926_daily_bin2169.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/27461900/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin2169.fits evtable="EVENTS" outfile="/lscratch/kocevski/27461900/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.76
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 604

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/27461900/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits" evtable="EVENTS" scfile=/lscratch/kocevski/27461900/ft2_4FGL_J1340.4+6926_daily_bin2169.fits sctable="SC_DATA" outfile=/lscratch/kocevski/27461831/ltcube_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.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/27461831/ft2_4FGL_J1340.4+6926_daily_bin2169.fits
.....................!
real 7.81
user 7.08
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27461831/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits evtable="EVENTS" scfile=/lscratch/kocevski/27461831/ft2_4FGL_J1340.4+6926_daily_bin2169.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27461831/ltcube_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.fits outfile=/lscratch/kocevski/27461831/expmap_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.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/27461831/ltcube_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.fits
.....................!
real 63.87
user 59.30
sys 3.77

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
Added 227 point sources and 0 extended sources

Setting source of interest to:
4FGL J1340.4+6926 @ 205.11 69.4446

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27461831/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits scfile=/lscratch/kocevski/27461831/ft2_4FGL_J1340.4+6926_daily_bin2169.fits outfile=/lscratch/kocevski/27461831/cmap_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.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=205.11 yref=69.4446 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.70
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27461831/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits scfile=/lscratch/kocevski/27461831/ft2_4FGL_J1340.4+6926_daily_bin2169.fits outfile=/lscratch/kocevski/27461831/cmap_HighResolution_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.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=205.11 yref=69.4446 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.72
user 0.20
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27461831/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits evtable="EVENTS" scfile=/lscratch/kocevski/27461831/ft2_4FGL_J1340.4+6926_daily_bin2169.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27461831/Model_4FGL_J1340.4+6926_daily_bin2169.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 GAL_V02
Working on...
/lscratch/kocevski/27461831/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits.....................!
real 27.56
user 25.92
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27461831/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits', '/lscratch/kocevski/27461831/ft2_4FGL_J1340.4+6926_daily_bin2169.fits', expMap='/lscratch/kocevski/27461831/expmap_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.fits', expCube='/lscratch/kocevski/27461831/ltcube_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27461831/Model_4FGL_J1340.4+6926_daily_bin2169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1340.4+6926'

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27461831/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits
Spacecraft file(s): /lscratch/kocevski/27461831/ft2_4FGL_J1340.4+6926_daily_bin2169.fits
Exposure map: /lscratch/kocevski/27461831/expmap_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.fits
Exposure cube: /lscratch/kocevski/27461831/ltcube_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27461831/Model_4FGL_J1340.4+6926_daily_bin2169.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) = 6498.54977233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2642       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21222E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .78219E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .12592E-03   1.0000          .0000       .10000E+07
     5 'norm      '    6.8304       1.0000          .0000       .10000E+07
     6 'Prefactor '    .89540E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .22517E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .17750E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10844E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.3299       1.0000          .0000       .10000E+07
    11 'Prefactor '    .35370E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.7058       1.0000          .0000       .10000E+07
    13 'Prefactor '    75.747       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13951E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17906E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    12.528       1.0000          .0000       .10000E+07
    17 'Prefactor '    .17921E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .70404E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    19.775       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1308       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .61907       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6498.437     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1251 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2400        3.7659        .20011E-05    .10830    
   2  Prefactor     .55511E-10    1.9242        .27265E-06** at limit **
   3  Prefactor     .46191E-06    9.8719        .14809E-05** at limit **
   4  Prefactor     .19462E-06    17.844       -.90963E-05** at limit **
   5  norm          6.8410        4.5676        .41607E-06   -.58627E-02
   6  Prefactor     .53840E-06    9.4980        .40044E-06** at limit **
   7  Prefactor     .15702E-05    9.1210        .62664E-05** at limit **
   8  Prefactor     .27756E-08    67.846        .15440E-05** at limit **
   9  Prefactor     .46054E-05    23.342        .66687E-05** at limit **
  10  Prefactor     4.3466        3.8495        .46204E-06    .55724E-02
  11  Prefactor     .66613E-09    9.1934        .71221E-06** at limit **
  12  Prefactor     4.6708        1.9850       -.14765E-05   -.46861E-01
  13  Prefactor     74.774        37.198       -.54804E-05    .66841E-01
  14  Prefactor     .18642E-05    10.200       -.18993E-05** at limit **
  15  Prefactor     .81601E-08    8.1886       -.16816E-05** at limit **
  16  Prefactor     12.903        2.7810        .92773E-07    .87594E-02
  17  Prefactor     .81046E-08    12.151       -.12496E-05** at limit **
  18  Prefactor     .30170E-06    85.751        .37725E-06** at limit **
  19  Prefactor     20.358        4.0564       -.60889E-06    .13872E-01
  20  Normalizat    1.1304        .15875       -.30959E-05    .12782E-03
  21  Prefactor     .61919        .15990        .93892E-05    .13350E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.24005
  Prefactor  = 5.55112e-11
  Prefactor  = 4.61908e-07
  Prefactor  = 1.94622e-07
  norm       = 6.84097
  Prefactor  = 5.38403e-07
  Prefactor  = 1.57019e-06
  Prefactor  = 2.77556e-09
  Prefactor  = 4.60537e-06
  Prefactor  = 4.34664
  Prefactor  = 6.66134e-10
  Prefactor  = 4.67082
  Prefactor  = 74.7744
  Prefactor  = 1.86423e-06
  Prefactor  = 8.16014e-09
  Prefactor  = 12.9034
  Prefactor  = 8.10463e-09
  Prefactor  = 3.01703e-07
  Prefactor  = 20.3576
  Normalizat = 1.13041
  Prefactor  = 0.619189
ile=/lscratch/kocevski/27461900/ltcube_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.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/27461900/ft2_4FGL_J1340.4+6926_daily_bin2169.fits
.....................!
real 10.12
user 9.60
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27461900/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits evtable="EVENTS" scfile=/lscratch/kocevski/27461900/ft2_4FGL_J1340.4+6926_daily_bin2169.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27461900/ltcube_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.fits outfile=/lscratch/kocevski/27461900/expmap_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.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/27461900/ltcube_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.fits
.....................!
real 73.63
user 68.50
sys 4.31

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
Added 227 point sources and 0 extended sources

Setting source of interest to:
4FGL J1340.4+6926 @ 205.11 69.4446

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27461900/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits scfile=/lscratch/kocevski/27461900/ft2_4FGL_J1340.4+6926_daily_bin2169.fits outfile=/lscratch/kocevski/27461900/cmap_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.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=205.11 yref=69.4446 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.66
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27461900/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits scfile=/lscratch/kocevski/27461900/ft2_4FGL_J1340.4+6926_daily_bin2169.fits outfile=/lscratch/kocevski/27461900/cmap_HighResolution_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.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=205.11 yref=69.4446 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.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27461900/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits evtable="EVENTS" scfile=/lscratch/kocevski/27461900/ft2_4FGL_J1340.4+6926_daily_bin2169.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27461900/Model_4FGL_J1340.4+6926_daily_bin2169.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 GAL_V02 **********
 **   18 **HESSE 
 **********

 FCN=   6498.437     FROM HESSE     STATUS=OK           353 CALLS     1604 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2400        11.858        .32903E-03   -1.5647    
   2  Prefactor     .55511E-10    1.9205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .46191E-06    31.309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .19462E-06    28.918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8410        4.5758        .38366E-03   -1.5656    
   6  Prefactor     .53840E-06    31.053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .15702E-05    15.486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .27756E-08    15.215        .17189E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .46054E-05    37.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3466        3.8507        .48386E-03   -1.5666    
  11  Prefactor     .66613E-09    9.2405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6708        10.916        .46364E-03   -1.5665    
  13  Prefactor     74.774        40.070        .11491E-03   -1.5535    
  14  Prefactor     .18642E-05    16.651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .81601E-08    8.2239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.903        35.400        .28275E-03   -1.5636    
  17  Prefactor     .81046E-08    12.395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .30170E-06    86.238        .14805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.358        30.548        .22495E-03   -1.5618    
  20  Normalizat    1.1304        .14150        .36864E-01   -.88781    
  21  Prefactor     .61919        .14105        .41313E-01   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21171e-07
Minuit parameter uncertainties:
  1  11.858
  2  1.90724e-05
  3  0.00760571
  4  0.00474474
  5  4.57579
  6  0.00817796
  7  0.00986216
  8  0.000410146
  9  0.0263964
  10  3.8507
  11  0.000159983
  12  10.9161
  13  40.0701
  14  0.0111428
  15  0.000517764
  16  35.4009
  17  0.000633844
  18  0.0102014
  19  30.5486
  20  0.141546
  21  0.14113
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  6.661e-10  1.600e-04  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  6.192e-01  1.411e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.130e+00  1.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 205.110 69.445
Photon Flux Upper Limit: 4.98274397325e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00388397929853 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27461831/likelihoodResults_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.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) = 6498.49039808
delta logL = -0.0535386870306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6498.43685985
delta logL = -4.55110239272e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6498.437     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      183 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        8.7659        .42118E-03** at limit **
   2  Index         2.2133        .94397       -.47208E-04     .0000    
   3  Normalizat    1.1304        1.1363        .19432E-05   -.12538E-04
   4  Prefactor     .61919        .96763       -.92994E-05   -.40562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.21334
  Normalizat = 1.13041
  Prefactor  = 0.619188
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6498.437     FROM HESSE     STATUS=FAILED         9 CALLS      192 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.7659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .54132        1.7450       -.47208E-04   -.59117    
   3  Normalizat    1.1304        1.1363        .19432E-05   -.88781    
   4  Prefactor     .61919        .96763       -.92994E-05   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.02782e-12
Minuit parameter uncertainties:
  1  8.04985e-06
  2  0.9523
  3  1.16249
  4  0.995718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 6498.43685939
delta logL = 4.36557456851e-11

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  8.050e-06  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.213e+00  9.523e-01  0.000e+00  1.000e+01 (-1.000e+00)
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  6.192e-01  9.957e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.130e+00  1.162e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 205.110 69.445

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27461831/cmap_HighResolution_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2026-05-30 11:20:00.120531', job_id='27461831', GAL2='0.62', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1780165200.12', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='4.37e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2169' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 30 11:20:00 PDT 2026


Working on...
/lscratch/kocevski/27461900/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits.....................!
real 28.66
user 26.66
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27461900/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits', '/lscratch/kocevski/27461900/ft2_4FGL_J1340.4+6926_daily_bin2169.fits', expMap='/lscratch/kocevski/27461900/expmap_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.fits', expCube='/lscratch/kocevski/27461900/ltcube_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27461900/Model_4FGL_J1340.4+6926_daily_bin2169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1340.4+6926'

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.968e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27461900/ft1_filtered_4FGL_J1340.4+6926_daily_bin2169.fits
Spacecraft file(s): /lscratch/kocevski/27461900/ft2_4FGL_J1340.4+6926_daily_bin2169.fits
Exposure map: /lscratch/kocevski/27461900/expmap_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.fits
Exposure cube: /lscratch/kocevski/27461900/ltcube_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27461900/Model_4FGL_J1340.4+6926_daily_bin2169.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) = 6498.54977233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2642       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21222E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .78219E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .12592E-03   1.0000          .0000       .10000E+07
     5 'norm      '    6.8304       1.0000          .0000       .10000E+07
     6 'Prefactor '    .89540E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .22517E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .17750E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10844E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.3299       1.0000          .0000       .10000E+07
    11 'Prefactor '    .35370E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.7058       1.0000          .0000       .10000E+07
    13 'Prefactor '    75.747       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13951E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17906E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    12.528       1.0000          .0000       .10000E+07
    17 'Prefactor '    .17921E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .70404E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    19.775       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1308       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .61907       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6498.437     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1251 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2400        3.7659        .20011E-05    .10830    
   2  Prefactor     .55511E-10    1.9242        .27265E-06** at limit **
   3  Prefactor     .46191E-06    9.8719        .14809E-05** at limit **
   4  Prefactor     .19462E-06    17.844       -.90963E-05** at limit **
   5  norm          6.8410        4.5676        .41607E-06   -.58627E-02
   6  Prefactor     .53840E-06    9.4980        .40044E-06** at limit **
   7  Prefactor     .15702E-05    9.1210        .62664E-05** at limit **
   8  Prefactor     .27756E-08    67.846        .15440E-05** at limit **
   9  Prefactor     .46054E-05    23.342        .66687E-05** at limit **
  10  Prefactor     4.3466        3.8495        .46204E-06    .55724E-02
  11  Prefactor     .66613E-09    9.1934        .71221E-06** at limit **
  12  Prefactor     4.6708        1.9850       -.14765E-05   -.46861E-01
  13  Prefactor     74.774        37.198       -.54804E-05    .66841E-01
  14  Prefactor     .18642E-05    10.200       -.18993E-05** at limit **
  15  Prefactor     .81601E-08    8.1886       -.16816E-05** at limit **
  16  Prefactor     12.903        2.7810        .92773E-07    .87594E-02
  17  Prefactor     .81046E-08    12.151       -.12496E-05** at limit **
  18  Prefactor     .30170E-06    85.751        .37725E-06** at limit **
  19  Prefactor     20.358        4.0564       -.60889E-06    .13872E-01
  20  Normalizat    1.1304        .15875       -.30959E-05    .12782E-03
  21  Prefactor     .61919        .15990        .93892E-05    .13350E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.24005
  Prefactor  = 5.55112e-11
  Prefactor  = 4.61908e-07
  Prefactor  = 1.94622e-07
  norm       = 6.84097
  Prefactor  = 5.38403e-07
  Prefactor  = 1.57019e-06
  Prefactor  = 2.77556e-09
  Prefactor  = 4.60537e-06
  Prefactor  = 4.34664
  Prefactor  = 6.66134e-10
  Prefactor  = 4.67082
  Prefactor  = 74.7744
  Prefactor  = 1.86423e-06
  Prefactor  = 8.16014e-09
  Prefactor  = 12.9034
  Prefactor  = 8.10463e-09
  Prefactor  = 3.01703e-07
  Prefactor  = 20.3576
  Normalizat = 1.13041
  Prefactor  = 0.619189
 **********
 **   18 **HESSE 
 **********

 FCN=   6498.437     FROM HESSE     STATUS=OK           353 CALLS     1604 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2400        11.858        .32903E-03   -1.5647    
   2  Prefactor     .55511E-10    1.9205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .46191E-06    31.309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .19462E-06    28.918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8410        4.5758        .38366E-03   -1.5656    
   6  Prefactor     .53840E-06    31.053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .15702E-05    15.486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .27756E-08    15.215        .17189E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .46054E-05    37.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3466        3.8507        .48386E-03   -1.5666    
  11  Prefactor     .66613E-09    9.2405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6708        10.916        .46364E-03   -1.5665    
  13  Prefactor     74.774        40.070        .11491E-03   -1.5535    
  14  Prefactor     .18642E-05    16.651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .81601E-08    8.2239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.903        35.400        .28275E-03   -1.5636    
  17  Prefactor     .81046E-08    12.395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .30170E-06    86.238        .14805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.358        30.548        .22495E-03   -1.5618    
  20  Normalizat    1.1304        .14150        .36864E-01   -.88781    
  21  Prefactor     .61919        .14105        .41313E-01   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21171e-07
Minuit parameter uncertainties:
  1  11.858
  2  1.90724e-05
  3  0.00760571
  4  0.00474474
  5  4.57579
  6  0.00817796
  7  0.00986216
  8  0.000410146
  9  0.0263964
  10  3.8507
  11  0.000159983
  12  10.9161
  13  40.0701
  14  0.0111428
  15  0.000517764
  16  35.4009
  17  0.000633844
  18  0.0102014
  19  30.5486
  20  0.141546
  21  0.14113
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  6.661e-10  1.600e-04  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  6.192e-01  1.411e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.130e+00  1.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 205.110 69.445
Photon Flux Upper Limit: 4.98274397325e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00388397929853 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27461900/likelihoodResults_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.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) = 6498.49039808
delta logL = -0.0535386870306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6498.43685985
delta logL = -4.55110239272e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6498.437     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      183 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        8.7659        .42118E-03** at limit **
   2  Index         2.2133        .94397       -.47208E-04     .0000    
   3  Normalizat    1.1304        1.1363        .19432E-05   -.12538E-04
   4  Prefactor     .61919        .96763       -.92994E-05   -.40562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.21334
  Normalizat = 1.13041
  Prefactor  = 0.619188
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6498.437     FROM HESSE     STATUS=FAILED         9 CALLS      192 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.7659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .54132        1.7450       -.47208E-04   -.59117    
   3  Normalizat    1.1304        1.1363        .19432E-05   -.88781    
   4  Prefactor     .61919        .96763       -.92994E-05   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.02782e-12
Minuit parameter uncertainties:
  1  8.04985e-06
  2  0.9523
  3  1.16249
  4  0.995718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 6498.43685939
delta logL = 4.36557456851e-11

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  8.050e-06  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.213e+00  9.523e-01  0.000e+00  1.000e+01 (-1.000e+00)
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  6.192e-01  9.957e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.130e+00  1.162e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 205.110 69.445

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27461900/cmap_HighResolution_801532801_801792001_4FGL_J1340.4+6926_daily_bin2169.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2026-05-30 11:21:42.927412', job_id='27461900', GAL2='0.62', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1780165302.93', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='4.37e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2169' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 30 11:21:43 PDT 2026

