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

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
Working on...
/lscratch/kocevski/31432703/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 29.23
user 27.95
sys 0.81

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31432703/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31432703/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31432703/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31432703/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31432703/Model_4FGL_J1340.4+6926_daily_bin2181.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/31432703/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31432703/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31432703/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31432703/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31432703/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
Working on...
/lscratch/kocevski/31432704/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 29.42
user 28.05
sys 0.81

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31432704/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31432704/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31432704/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31432704/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31432704/Model_4FGL_J1340.4+6926_daily_bin2181.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/31432704/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31432704/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31432704/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31432704/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31432704/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
/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
/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).


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)
/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 (v
WARNING: version mismatch between CFITSIO header (v3.41).3.43) and linked library (v

3.41).

ile=/lscratch/kocevski/31433031/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433031/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 8.07
user 7.51
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31433031/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433031/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31433031/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433031/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433031/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 65.43
user 60.90
sys 3.86

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/31433031/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433031/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433031/cmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.67
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31433031/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433031/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433031/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.74
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31433031/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433031/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31433031/Model_4FGL_J1340.4+6926_daily_bin2181.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=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
ile=/lscratch/kocevski/31432945/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31432945/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 7.40
user 6.89
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31432945/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31432945/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31432945/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31432945/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31432945/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 62.65
user 58.31
sys 3.70

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/31432945/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31432945/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31432945/cmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.65
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31432945/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31432945/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31432945/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.68
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31432945/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31432945/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31432945/Model_4FGL_J1340.4+6926_daily_bin2181.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
number of points = 7587
number of fields = 31
RA_SUN column already exists. File will not be modified.
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
Done.


Performing analysis on: 4FGL_J1340.4+6926_daily_bin2181
RA = 205.11, Dec = 69.4446
tmin = 804643201, tmax = 804902401
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='31433156', job_status='RUN', time_executed='2026-07-12 05:49:26.881196', time_epoch_executed='1783860566.88' WHERE source_name='4FGL J1340.4+6926' and cadence='daily' and bin_id='2181'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31433156

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31433156/ft1_4FGL_J1340.4+6926_daily_bin2181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31433156/ft2_4FGL_J1340.4+6926_daily_bin2181.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31433156/ft1_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433156/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin2181.fits ra=205.11 dec=69.4446 rad=12.0 tmin=804643201.0 tmax=804902401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.12
user 2.58
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31433156/ft2_4FGL_J1340.4+6926_daily_bin2181.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/31433156/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" outfile="/lscratch/kocevski/31433156/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.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.63
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 679

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31433156/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31433156/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31433054/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433054/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 7.39
user 6.83
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31433054/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433054/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31433054/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433054/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433054/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 66.90
user 62.50
sys 3.81

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/31433054/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433054/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433054/cmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.81
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31433054/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433054/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433054/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.70
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31433054/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433054/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31433054/Model_4FGL_J1340.4+6926_daily_bin2181.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
number of points = 7587
number of fields = 31
RA_SUN column already exists. File will not be modified.
ile=/lscratch/kocevski/31433030/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433030/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 8.47
user 7.77
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31433030/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433030/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31433030/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433030/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433030/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 68.70
user 64.02
sys 3.88

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/31433030/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433030/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433030/cmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.72
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31433030/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433030/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433030/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.84
user 0.22
sys 0.13

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


Performing analysis on: 4FGL_J1340.4+6926_daily_bin2181
RA = 205.11, Dec = 69.4446
tmin = 804643201, tmax = 804902401
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='31433170', job_status='RUN', time_executed='2026-07-12 05:49:33.873693', time_epoch_executed='1783860573.87' WHERE source_name='4FGL J1340.4+6926' and cadence='daily' and bin_id='2181'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31433170

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31433170/ft1_4FGL_J1340.4+6926_daily_bin2181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31433170/ft2_4FGL_J1340.4+6926_daily_bin2181.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31433170/ft1_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433170/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin2181.fits ra=205.11 dec=69.4446 rad=12.0 tmin=804643201.0 tmax=804902401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.03
user 2.52
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31433170/ft2_4FGL_J1340.4+6926_daily_bin2181.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/31433170/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" outfile="/lscratch/kocevski/31433170/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.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.59
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 679

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31433170/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31433170/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31433045/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433045/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 7.95
user 7.30
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31433045/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433045/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31433045/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433045/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433045/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 70.38
user 65.68
sys 4.04

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/31433045/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433045/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433045/cmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.75
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31433045/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433045/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433045/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.79
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31433045/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433045/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31433045/Model_4FGL_J1340.4+6926_daily_bin2181.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/31432819/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 26.06
user 24.53
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31432819/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31432819/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31432819/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31432819/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31432819/Model_4FGL_J1340.4+6926_daily_bin2181.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/31432819/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31432819/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31432819/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31432819/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31432819/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31432787/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31432787/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:51:54.261052', job_id='31432787', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860714.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:51:54 PDT 2026

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

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
ile=/lscratch/kocevski/31433081/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433081/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 8.00
user 7.42
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31433081/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433081/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31433081/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433081/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433081/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 63.69
user 59.46
sys 3.63

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/31433081/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433081/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433081/cmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.58
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31433081/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433081/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433081/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.22
sys 0.12

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

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31432703/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31432704/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
number of points = 7587
number of fields = 31
RA_SUN column already exists. File will not be modified.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31432703/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:52:24.112998', job_id='31432703', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860744.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:52:24 PDT 2026

Done.


Performing analysis on: 4FGL_J1340.4+6926_daily_bin2181
RA = 205.11, Dec = 69.4446
tmin = 804643201, tmax = 804902401
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='31433284', job_status='RUN', time_executed='2026-07-12 05:50:24.885541', time_epoch_executed='1783860624.89' WHERE source_name='4FGL J1340.4+6926' and cadence='daily' and bin_id='2181'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31433284

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31433284/ft1_4FGL_J1340.4+6926_daily_bin2181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31433284/ft2_4FGL_J1340.4+6926_daily_bin2181.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31433284/ft1_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433284/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin2181.fits ra=205.11 dec=69.4446 rad=12.0 tmin=804643201.0 tmax=804902401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.21
user 2.60
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31433284/ft2_4FGL_J1340.4+6926_daily_bin2181.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/31433284/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" outfile="/lscratch/kocevski/31433284/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.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.68
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 679

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31433284/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31433284/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" outfshell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31432704/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:52:24.645733', job_id='31432704', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860744.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:52:24 PDT 2026

Working on...
/lscratch/kocevski/31432889/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 27.59
user 26.29
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31432889/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31432889/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31432889/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31432889/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31432889/Model_4FGL_J1340.4+6926_daily_bin2181.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/31432889/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31432889/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31432889/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31432889/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31432889/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
ile=/lscratch/kocevski/31433071/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433071/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 8.77
user 8.15
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31433071/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433071/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31433071/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433071/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433071/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 71.37
user 66.47
sys 4.18

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/31433071/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433071/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433071/cmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.68
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31433071/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433071/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433071/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.68
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31433071/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433071/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31433071/Model_4FGL_J1340.4+6926_daily_bin2181.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/31432890/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 27.44
user 26.08
sys 0.75

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31432890/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31432890/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31432890/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31432890/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31432890/Model_4FGL_J1340.4+6926_daily_bin2181.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/31432890/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31432890/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31432890/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31432890/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31432890/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31432819/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31432819/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:52:50.434995', job_id='31432819', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860770.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:52:50 PDT 2026

orking on...
/lscratch/kocevski/31432935/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 29.88
user 28.03
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31432935/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31432935/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31432935/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31432935/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31432935/Model_4FGL_J1340.4+6926_daily_bin2181.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/31432935/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31432935/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31432935/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31432935/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31432935/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
ile=/lscratch/kocevski/31433156/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433156/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 7.81
user 7.30
sys 0.19

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31433156/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433156/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31433156/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433156/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433156/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 65.11
user 60.81
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/31433156/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433156/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433156/cmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.62
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31433156/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433156/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433156/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.69
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31433156/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433156/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31433156/Model_4FGL_J1340.4+6926_daily_bin2181.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
number of points = 7587
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1340.4+6926_daily_bin2181
RA = 205.11, Dec = 69.4446
tmin = 804643201, tmax = 804902401
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='31433310', job_status='RUN', time_executed='2026-07-12 05:51:22.345700', time_epoch_executed='1783860682.35' WHERE source_name='4FGL J1340.4+6926' and cadence='daily' and bin_id='2181'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31433310

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31433310/ft1_4FGL_J1340.4+6926_daily_bin2181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31433310/ft2_4FGL_J1340.4+6926_daily_bin2181.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31433310/ft1_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433310/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin2181.fits ra=205.11 dec=69.4446 rad=12.0 tmin=804643201.0 tmax=804902401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.19
user 2.65
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31433310/ft2_4FGL_J1340.4+6926_daily_bin2181.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/31433310/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" outfile="/lscratch/kocevski/31433310/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.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.67
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 679

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31433310/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31433310/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31433170/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433170/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 7.79
user 7.18
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31433170/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433170/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31433170/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433170/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433170/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 62.48
user 58.35
sys 3.64

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/31433170/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433170/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433170/cmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.71
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31433170/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433170/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433170/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.79
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31433170/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433170/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31433170/Model_4FGL_J1340.4+6926_daily_bin2181.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=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
Working on...
/lscratch/kocevski/31433031/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 27.49
user 26.09
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31433031/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31433031/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31433031/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31433031/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31433031/Model_4FGL_J1340.4+6926_daily_bin2181.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/31433031/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31433031/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31433031/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31433031/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31433031/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
number of points = 7587
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1340.4+6926_daily_bin2181
RA = 205.11, Dec = 69.4446
tmin = 804643201, tmax = 804902401
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='31433300', job_status='RUN', time_executed='2026-07-12 05:51:22.352458', time_epoch_executed='1783860682.35' WHERE source_name='4FGL J1340.4+6926' and cadence='daily' and bin_id='2181'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31433300

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31433300/ft1_4FGL_J1340.4+6926_daily_bin2181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31433300/ft2_4FGL_J1340.4+6926_daily_bin2181.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31433300/ft1_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433300/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin2181.fits ra=205.11 dec=69.4446 rad=12.0 tmin=804643201.0 tmax=804902401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.84
user 3.15
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31433300/ft2_4FGL_J1340.4+6926_daily_bin2181.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/31433300/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" outfile="/lscratch/kocevski/31433300/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.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.75
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 679

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31433300/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31433300/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" outfWorking on...
/lscratch/kocevski/31432945/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 27.22
user 25.65
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31432945/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31432945/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31432945/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31432945/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31432945/Model_4FGL_J1340.4+6926_daily_bin2181.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/31432945/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31432945/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31432945/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31432945/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31432945/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31432889/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
Working on...
/lscratch/kocevski/31433054/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 28.58
user 27.07
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31433054/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31433054/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31433054/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31433054/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31433054/Model_4FGL_J1340.4+6926_daily_bin2181.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/31433054/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31433054/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31433054/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31433054/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31433054/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31432889/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:53:32.224017', job_id='31432889', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860812.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:53:32 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31432890/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
Working on...
/lscratch/kocevski/31433030/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 28.69
user 27.51
sys 0.64

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31433030/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31433030/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31433030/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31433030/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31433030/Model_4FGL_J1340.4+6926_daily_bin2181.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/31433030/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31433030/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31433030/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31433030/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31433030/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31432890/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:53:38.666379', job_id='31432890', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860818.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:53:38 PDT 2026

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

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
Working on...
/lscratch/kocevski/31433045/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 30.86
user 29.04
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31433045/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31433045/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31433045/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31433045/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31433045/Model_4FGL_J1340.4+6926_daily_bin2181.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/31433045/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31433045/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31433045/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31433045/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31433045/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31432935/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
ile=/lscratch/kocevski/31433284/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433284/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 8.14
user 7.50
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31433284/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433284/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31433284/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433284/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433284/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 66.36
user 61.77
sys 4.01

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/31433284/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433284/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433284/cmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.64
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31433284/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433284/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433284/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.65
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31433284/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433284/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31433284/Model_4FGL_J1340.4+6926_daily_bin2181.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
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31432935/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:54:12.968224', job_id='31432935', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860852.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:54:13 PDT 2026

Working on...
/lscratch/kocevski/31433081/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 27.98
user 26.36
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31433081/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31433081/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31433081/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31433081/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31433081/Model_4FGL_J1340.4+6926_daily_bin2181.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/31433081/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31433081/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31433081/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31433081/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31433081/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31433031/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31433031/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:54:27.452818', job_id='31433031', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860867.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:54:27 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31433054/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31432945/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31433054/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:54:35.895035', job_id='31433054', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860875.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:54:36 PDT 2026

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

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31432945/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:54:36.683883', job_id='31432945', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860876.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:54:36 PDT 2026

Working on...
/lscratch/kocevski/31433071/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 29.58
user 28.49
sys 0.68

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31433071/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31433071/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31433071/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31433071/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31433071/Model_4FGL_J1340.4+6926_daily_bin2181.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/31433071/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31433071/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31433071/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31433071/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31433071/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31433030/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31433030/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:54:43.152080', job_id='31433030', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860883.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:54:43 PDT 2026

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

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31433045/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
ile=/lscratch/kocevski/31433310/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433310/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 8.60
user 8.02
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31433310/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433310/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31433310/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433310/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433310/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 66.95
user 62.50
sys 3.80

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/31433310/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433310/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433310/cmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.88
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31433310/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433310/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433310/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.68
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31433310/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433310/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31433310/Model_4FGL_J1340.4+6926_daily_bin2181.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
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31433045/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:55:04.544276', job_id='31433045', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860904.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:55:04 PDT 2026

Working on...
/lscratch/kocevski/31433156/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 28.20
user 26.61
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31433156/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31433156/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31433156/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31433156/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31433156/Model_4FGL_J1340.4+6926_daily_bin2181.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/31433156/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31433156/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31433156/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31433156/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31433156/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
Working on...
/lscratch/kocevski/31433170/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 27.53
user 25.95
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31433170/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31433170/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31433170/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31433170/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31433170/Model_4FGL_J1340.4+6926_daily_bin2181.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/31433170/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31433170/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31433170/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31433170/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31433170/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
ile=/lscratch/kocevski/31433300/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433300/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 9.32
user 8.60
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31433300/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits evtable="EVENTS" scfile=/lscratch/kocevski/31433300/ft2_4FGL_J1340.4+6926_daily_bin2181.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31433300/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433300/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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/31433300/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
.....................!
real 77.24
user 71.86
sys 4.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
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/31433300/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433300/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433300/cmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.73
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31433300/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits scfile=/lscratch/kocevski/31433300/ft2_4FGL_J1340.4+6926_daily_bin2181.fits outfile=/lscratch/kocevski/31433300/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.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.73
user 0.23
sys 0.13

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

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31433081/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31433081/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:55:30.842610', job_id='31433081', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860930.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:55:31 PDT 2026

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

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31433071/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31433071/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:55:50.926612', job_id='31433071', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860950.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:55:51 PDT 2026

Working on...
/lscratch/kocevski/31433284/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 28.58
user 27.00
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31433284/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31433284/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31433284/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31433284/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31433284/Model_4FGL_J1340.4+6926_daily_bin2181.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/31433284/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31433284/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31433284/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31433284/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31433284/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31433156/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31433170/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31433156/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:56:22.661591', job_id='31433156', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860982.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:56:23 PDT 2026

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

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31433170/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:56:25.769029', job_id='31433170', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783860985.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:56:26 PDT 2026

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

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
Working on...
/lscratch/kocevski/31433310/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 28.98
user 27.28
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31433310/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31433310/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31433310/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31433310/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31433310/Model_4FGL_J1340.4+6926_daily_bin2181.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/31433310/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31433310/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31433310/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31433310/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31433310/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31433284/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31433284/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:57:20.044281', job_id='31433284', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783861040.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:57:20 PDT 2026

Working on...
/lscratch/kocevski/31433300/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits.....................!
real 31.67
user 30.46
sys 0.69

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31433300/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits', '/lscratch/kocevski/31433300/ft2_4FGL_J1340.4+6926_daily_bin2181.fits', expMap='/lscratch/kocevski/31433300/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', expCube='/lscratch/kocevski/31433300/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31433300/Model_4FGL_J1340.4+6926_daily_bin2181.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/31433300/ft1_filtered_4FGL_J1340.4+6926_daily_bin2181.fits
Spacecraft file(s): /lscratch/kocevski/31433300/ft2_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure map: /lscratch/kocevski/31433300/expmap_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
Exposure cube: /lscratch/kocevski/31433300/ltcube_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31433300/Model_4FGL_J1340.4+6926_daily_bin2181.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) = 7360.02955502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69555E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.500       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.907       1.0000          .0000       .10000E+07
     5 'norm      '    8.1377       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15093E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83404       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    41.510       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.649       1.0000          .0000       .10000E+07
    15 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38212       1.0000          .0000       .10000E+07
    18 'Prefactor '    .96668E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.940       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93192       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=   7360.022     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1874 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.273        .42300E-06** at limit **
   2  Prefactor      .0000        5.0170       -.89042E-06** at limit **
   3  Prefactor     26.504        2.1381       -.28292E-06    .10544E-01
   4  Prefactor     27.910        4.0689        .34347E-06    .28989E-01
   5  norm          8.1381        4.6387       -.16692E-06   -.10580E-02
   6  Prefactor     .34417E-08    4.7871        .22160E-05** at limit **
   7  Prefactor     .27756E-09    22.985       -.44462E-05** at limit **
   8  Prefactor     .72331E-07    37.770        .35267E-05** at limit **
   9  Prefactor     .17708E-07    4.4665        .22992E-05** at limit **
  10  Prefactor     .83360        4.3385        .82781E-06   -.13298E-04
  11  Prefactor     .32796E-06    4.5865        .10751E-05** at limit **
  12  Prefactor      .0000        6.6964        .10014E-05** at limit **
  13  Prefactor     41.508        1.1289       -.34168E-07   -.87532E-03
  14  Prefactor     31.650        1.0007       -.26868E-08   -.26836E-03
  15  Prefactor     .55511E-10    4.5440       -.12847E-05** at limit **
  16  Prefactor     .81324E-07    4.4005        .24861E-05** at limit **
  17  Prefactor     .31779        11.749       -.52700E-05    .12766E-01
  18  Prefactor     .13606E-06    48.056       -.84284E-05** at limit **
  19  Prefactor     53.942        1.6532       -.13367E-06    .21775E-02
  20  Normalizat    1.0007        .16247        .13925E-04    .13692E-03
  21  Prefactor     .93175        .16713        .53489E-05    .13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 26.5043
  Prefactor  = 27.9095
  norm       = 8.13811
  Prefactor  = 3.44169e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 7.2331e-08
  Prefactor  = 1.77081e-08
  Prefactor  = 0.833596
  Prefactor  = 3.2796e-07
  Prefactor  = 0
  Prefactor  = 41.5076
  Prefactor  = 31.6497
  Prefactor  = 5.55112e-11
  Prefactor  = 8.13238e-08
  Prefactor  = 0.31779
  Prefactor  = 1.36058e-07
  Prefactor  = 53.9417
  Normalizat = 1.00068
  Prefactor  = 0.93175
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.022     FROM HESSE     STATUS=OK           359 CALLS     2233 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.9953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.504        40.162        .19430E-03   -1.5605    
   4  Prefactor     27.910        18.385        .18933E-03   -1.5602    
   5  norm          8.1381        4.6462        .35122E-03   -1.5651    
   6  Prefactor     .34417E-08    17.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    23.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72331E-07    38.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17708E-07    17.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83360        4.4434        .50431E-03   -1.5690    
  11  Prefactor     .32796E-06    18.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.7186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.508        29.129        .15522E-03   -1.5579    
  14  Prefactor     31.650        37.072        .17778E-03   -1.5595    
  15  Prefactor     .55511E-10    4.5475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81324E-07    17.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31779        26.518        .13555E-01   -1.5697    
  18  Prefactor     .13606E-06    48.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.942        32.935        .13617E-03   -1.5561    
  20  Normalizat    1.0007        .14037        .46174E-01   -.93008    
  21  Prefactor     .93175        .14486        .45411E-01   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10928e-07
Minuit parameter uncertainties:
  1  6.48447e-05
  2  2.34511e-05
  3  40.1624
  4  18.3847
  5  4.64617
  6  0.000488178
  7  0.000167484
  8  0.0033428
  9  0.00111226
  10  3.84915
  11  0.00495484
  12  1.46228e-05
  13  29.1288
  14  37.0722
  15  2.42833e-05
  16  0.00236945
  17  5.80596
  18  0.00515467
  19  32.9352
  20  0.14042
  21  0.144917
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31433310/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31433310/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:58:08.073666', job_id='31433310', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783861088.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:58:08 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.280e-07  4.955e-03  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:  9.317e-01  1.449e-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.001e+00  1.404e-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: 6.04843442525e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00471467011395 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31433300/likelihoodResults_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.04895864
delta logL = -0.0271638899185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449839
delta logL = 0.00729635521475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12541       1.0000          .0000       .10000E+07
     2 'Index     '    4.1845       1.0000          .0000       10.000    
     3 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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.

 FCN=   7360.014     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      247 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12387        2.0407        .22535E-02** at limit **
   2  Index         4.1926        .60043        .50000       -.42865E-04
   3  Normalizat    .99431        .59512E-02    .46096E-01   -.41701E-03
   4  Prefactor     .93561        .62777E-02    .45457E-01   -.46211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12387
  Index      = 4.19264
  Normalizat = 0.99431
  Prefactor  = 0.935611
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12387        342.73        .14111E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1926        6.9434        .60248E-02   -.16218    
   3  Normalizat    .99431        .88419E-01    .22026E-03   -.93221    
   4  Prefactor     .93561        .83802E-01    .23755E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48616e-08
Minuit parameter uncertainties:
  1  13.0321
  2  48.9793
  3  0.0884321
  4  0.0838137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.01449775
delta logL = 0.00729699785643

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.239e-01  1.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  4.193e+00  4.898e+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:  9.356e-01  8.381e-02  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:  9.943e-01  8.843e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31433300/cmap_HighResolution_804643201_804902401_4FGL_J1340.4+6926_daily_bin2181.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2026-07-12 05:58:52.335326', job_id='31433300', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1783861132.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='2181' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 05:58:52 PDT 2026

