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


Performing analysis on: 4FGL_J1340.4+6926_weekly_bin937
RA = 205.11, Dec = 69.4446
tmin = 805680001, tmax = 806284801
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='32631137', job_status='RUN', time_executed='2026-07-21 11:16:29.362002', time_epoch_executed='1784657789.36' WHERE source_name='4FGL J1340.4+6926' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32631137

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32631137/ft1_4FGL_J1340.4+6926_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32631137/ft2_4FGL_J1340.4+6926_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32631137/ft1_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631137/ft1_filteredMKT_4FGL_J1340.4+6926_weekly_bin937.fits ra=205.11 dec=69.4446 rad=12.0 tmin=805680001.0 tmax=806284801.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 6.60
user 4.75
sys 0.23

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

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

Number of photons that the gtmktime cut: 1441

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32631137/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32631137/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" o/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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

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

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

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

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

_V02
Working on...
/lscratch/kocevski/32630873/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits.....................!
real 57.66
user 54.99
sys 1.53

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4386       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18016E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.683       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27204E-05   1.0000          .0000       .10000E+07
     5 'norm      '    6.7401       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.3029       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56971E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .40234E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23516E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1535       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22820E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .36449E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13534E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1428       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10326E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .51438E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.8519       1.0000          .0000       .10000E+07
    18 'Prefactor '    34.835       1.0000          .0000       .10000E+07
    19 'Prefactor '    .33819E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .81264       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0825       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1308 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4203        7.3653       -.29122E-06   -.12278E-02
   2  Prefactor      .0000        2.6336       -.13629E-06** at limit **
   3  Prefactor     13.072        15.091       -.68078E-07    .81857E-01
   4  Prefactor     .14164E-05    9.4675       -.23516E-06** at limit **
   5  norm          6.7448        3.0377       -.34151E-07   -.19510E-02
   6  Prefactor     7.3102        1.4561       -.82158E-08   -.18867E-02
   7  Prefactor     .39674E-06    10.278       -.17667E-06** at limit **
   8  Prefactor     .24203E-07    6.7078       -.61383E-07** at limit **
   9  Prefactor     .78944E-05    46.549       -.45249E-06** at limit **
  10  Prefactor     1.1533        1.6410        .18702E-07    .67765E-03
  11  Prefactor     .37337E-06    15.011       -.31093E-06** at limit **
  12  Prefactor     .16653E-09    4.4662       -.27755E-06** at limit **
  13  Prefactor     .83267E-09    6.2331        .52498E-07** at limit **
  14  Prefactor     8.2498        1.4824        .10997E-07   -.77597E-02
  15  Prefactor     .11102E-09    2.7444        .30767E-06** at limit **
  16  Prefactor     .21816E-07    7.1368        .39493E-07** at limit **
  17  Prefactor     4.6421        2.9926       -.44510E-07    .91854E-02
  18  Prefactor     37.626        36.320        .12042E-06   -.59704E-01
  19  Prefactor     .17932E-05    8.9611       -.18977E-06** at limit **
  20  Normalizat    .81252        .10559        .12897E-05    .44830E-04
  21  Prefactor     1.0824        .11470       -.10538E-05   -.36507E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42028
  Prefactor  = 0
  Prefactor  = 13.0716
  Prefactor  = 1.41637e-06
  norm       = 6.74482
  Prefactor  = 7.31023
  Prefactor  = 3.96738e-07
  Prefactor  = 2.42029e-08
  Prefactor  = 7.89441e-06
  Prefactor  = 1.15325
  Prefactor  = 3.73368e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 8.32667e-10
  Prefactor  = 8.2498
  Prefactor  = 1.11022e-10
  Prefactor  = 2.18159e-08
  Prefactor  = 4.64208
  Prefactor  = 37.6259
  Prefactor  = 1.79318e-06
  Normalizat = 0.812515
  Prefactor  = 1.0824
utfile=/lscratch/kocevski/32631137/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631137/ft2_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 23.35
user 21.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32631137/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32631137/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32631137/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631137/expmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631137/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 76.79
user 70.63
sys 4.28

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

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32631137/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits scfile=/lscratch/kocevski/32631137/ft2_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631137/cmap_HighResolution_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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 2.02
user 0.25
sys 0.14

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

 FCN=   15701.82     FROM HESSE     STATUS=OK           353 CALLS     1661 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4203        7.3802        .54520E-03   -1.5671    
   2  Prefactor      .0000        2.5987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.072        26.561        .27052E-03   -1.5636    
   4  Prefactor     .14164E-05    15.431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7448        3.0414        .38625E-03   -1.5656    
   6  Prefactor     7.3102        18.277        .37092E-03   -1.5654    
   7  Prefactor     .39674E-06    11.131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24203E-07    6.7497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .78944E-05    55.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1533        1.6766        .10757E-02   -1.5686    
  11  Prefactor     .37337E-06    19.189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    4.4591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    6.2374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2498        24.481        .35111E-03   -1.5651    
  15  Prefactor     .11102E-09    2.7459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21816E-07    7.1618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6421        23.084        .45644E-03   -1.5665    
  18  Prefactor     37.626        39.757        .16945E-03   -1.5585    
  19  Prefactor     .17932E-05    12.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81252        .91034E-01    .43775E-01   -.99606    
  21  Prefactor     1.0824        .99200E-01    .38293E-01   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01336e-06
Minuit parameter uncertainties:
  1  7.38023
  2  1.60815e-05
  3  26.5613
  4  0.00934994
  5  3.04139
  6  18.2772
  7  0.00420307
  8  0.000808734
  9  0.0418136
  10  1.67656
  11  0.00535323
  12  5.40347e-05
  13  0.000143857
  14  24.4817
  15  3.13178e-05
  16  0.000790652
  17  20.7036
  18  39.7575
  19  0.00951356
  20  0.0910506
  21  0.099217
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.734e-07  5.353e-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:  1.082e+00  9.922e-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:  8.125e-01  9.105e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/32630873/likelihoodResults_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15701.8471721
delta logL = -0.0311199249445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15701.8160554
delta logL = -3.17921876558e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18296E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.8768       1.0000          .0000       10.000    
     3 'Normalizat'    .81260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0824       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      198 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.418       -.11707E-06** at limit **
   2  Index         2.6894        2.3065        .52332E-05     .0000    
   3  Normalizat    .81251        .10366        .19804E-05    .81524E-04
   4  Prefactor     1.0824        .11364       -.43290E-05    .97731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.68937
  Normalizat = 0.812515
  Prefactor  = 1.0824
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15701.82     FROM HESSE     STATUS=FAILED        11 CALLS      209 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .81880        1.9515        .52332E-05   -.48039    
   3  Normalizat    .81251        1.1510        .19804E-05   -.99606    
   4  Prefactor     1.0824        1.1609       -.43290E-05   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.12312e-12
Minuit parameter uncertainties:
  1  3.72087e-05
  2  1.17724
  3  1.18863
  4  1.1898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 15701.8160522
delta logL = 9.60790202953e-09

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  3.721e-05  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.689e+00  1.177e+00  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:  1.082e+00  1.190e+00  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:  8.125e-01  1.189e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32630873/cmap_HighResolution_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.36e-08', time_completed='2026-07-21 11:27:39.934168', job_id='32630873', GAL2='1.08', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1784658459.93', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.61e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='937' AND source_name='4FGL J1340.4+6926' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 11:27:40 PDT 2026

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


Performing analysis on: 4FGL_J1340.4+6926_weekly_bin937
RA = 205.11, Dec = 69.4446
tmin = 805680001, tmax = 806284801
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='32631350', job_status='RUN', time_executed='2026-07-21 11:20:21.870655', time_epoch_executed='1784658021.87' WHERE source_name='4FGL J1340.4+6926' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32631350

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32631350/ft1_4FGL_J1340.4+6926_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32631350/ft2_4FGL_J1340.4+6926_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32631350/ft1_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631350/ft1_filteredMKT_4FGL_J1340.4+6926_weekly_bin937.fits ra=205.11 dec=69.4446 rad=12.0 tmin=805680001.0 tmax=806284801.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 4.98
user 3.71
sys 0.20

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

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

Number of photons that the gtmktime cut: 1441

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32631350/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32631350/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" onumber of points = 17284
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1340.4+6926_weekly_bin937
RA = 205.11, Dec = 69.4446
tmin = 805680001, tmax = 806284801
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='32631293', job_status='RUN', time_executed='2026-07-21 11:20:23.724272', time_epoch_executed='1784658023.72' WHERE source_name='4FGL J1340.4+6926' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32631293

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32631293/ft1_4FGL_J1340.4+6926_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32631293/ft2_4FGL_J1340.4+6926_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32631293/ft1_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631293/ft1_filteredMKT_4FGL_J1340.4+6926_weekly_bin937.fits ra=205.11 dec=69.4446 rad=12.0 tmin=805680001.0 tmax=806284801.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 5.40
user 4.10
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32631293/ft2_4FGL_J1340.4+6926_weekly_bin937.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/32631293/ft1_filteredMKT_4FGL_J1340.4+6926_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32631293/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.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 1.27
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 1441

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32631293/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32631293/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" o_V02
Working on...
/lscratch/kocevski/32631137/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits.....................!
real 59.93
user 56.83
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4386       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18016E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.683       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27204E-05   1.0000          .0000       .10000E+07
     5 'norm      '    6.7401       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.3029       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56971E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .40234E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23516E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1535       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22820E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .36449E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13534E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1428       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10326E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .51438E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.8519       1.0000          .0000       .10000E+07
    18 'Prefactor '    34.835       1.0000          .0000       .10000E+07
    19 'Prefactor '    .33819E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .81264       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0825       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1308 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4203        7.3653       -.29122E-06   -.12278E-02
   2  Prefactor      .0000        2.6336       -.13629E-06** at limit **
   3  Prefactor     13.072        15.091       -.68078E-07    .81857E-01
   4  Prefactor     .14164E-05    9.4675       -.23516E-06** at limit **
   5  norm          6.7448        3.0377       -.34151E-07   -.19510E-02
   6  Prefactor     7.3102        1.4561       -.82158E-08   -.18867E-02
   7  Prefactor     .39674E-06    10.278       -.17667E-06** at limit **
   8  Prefactor     .24203E-07    6.7078       -.61383E-07** at limit **
   9  Prefactor     .78944E-05    46.549       -.45249E-06** at limit **
  10  Prefactor     1.1533        1.6410        .18702E-07    .67765E-03
  11  Prefactor     .37337E-06    15.011       -.31093E-06** at limit **
  12  Prefactor     .16653E-09    4.4662       -.27755E-06** at limit **
  13  Prefactor     .83267E-09    6.2331        .52498E-07** at limit **
  14  Prefactor     8.2498        1.4824        .10997E-07   -.77597E-02
  15  Prefactor     .11102E-09    2.7444        .30767E-06** at limit **
  16  Prefactor     .21816E-07    7.1368        .39493E-07** at limit **
  17  Prefactor     4.6421        2.9926       -.44510E-07    .91854E-02
  18  Prefactor     37.626        36.320        .12042E-06   -.59704E-01
  19  Prefactor     .17932E-05    8.9611       -.18977E-06** at limit **
  20  Normalizat    .81252        .10559        .12897E-05    .44830E-04
  21  Prefactor     1.0824        .11470       -.10538E-05   -.36507E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42028
  Prefactor  = 0
  Prefactor  = 13.0716
  Prefactor  = 1.41637e-06
  norm       = 6.74482
  Prefactor  = 7.31023
  Prefactor  = 3.96738e-07
  Prefactor  = 2.42029e-08
  Prefactor  = 7.89441e-06
  Prefactor  = 1.15325
  Prefactor  = 3.73368e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 8.32667e-10
  Prefactor  = 8.2498
  Prefactor  = 1.11022e-10
  Prefactor  = 2.18159e-08
  Prefactor  = 4.64208
  Prefactor  = 37.6259
  Prefactor  = 1.79318e-06
  Normalizat = 0.812515
  Prefactor  = 1.0824
number of points = 17284
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1340.4+6926_weekly_bin937
RA = 205.11, Dec = 69.4446
tmin = 805680001, tmax = 806284801
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='32631300', job_status='RUN', time_executed='2026-07-21 11:20:23.353187', time_epoch_executed='1784658023.35' WHERE source_name='4FGL J1340.4+6926' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32631300

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32631300/ft1_4FGL_J1340.4+6926_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32631300/ft2_4FGL_J1340.4+6926_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32631300/ft1_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631300/ft1_filteredMKT_4FGL_J1340.4+6926_weekly_bin937.fits ra=205.11 dec=69.4446 rad=12.0 tmin=805680001.0 tmax=806284801.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 5.37
user 4.11
sys 0.25

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

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

Number of photons that the gtmktime cut: 1441

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32631300/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32631300/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" onumber of points = 17284
number of fields = 31
RA_SUN column already exists. File will not be modified.
number of points = 17284
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1340.4+6926_weekly_bin937
RA = 205.11, Dec = 69.4446
tmin = 805680001, tmax = 806284801
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='32631432', job_status='RUN', time_executed='2026-07-21 11:20:50.712100', time_epoch_executed='1784658050.71' WHERE source_name='4FGL J1340.4+6926' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32631432

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32631432/ft1_4FGL_J1340.4+6926_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32631432/ft2_4FGL_J1340.4+6926_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32631432/ft1_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631432/ft1_filteredMKT_4FGL_J1340.4+6926_weekly_bin937.fits ra=205.11 dec=69.4446 rad=12.0 tmin=805680001.0 tmax=806284801.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 4.87
user 3.72
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32631432/ft2_4FGL_J1340.4+6926_weekly_bin937.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/32631432/ft1_filteredMKT_4FGL_J1340.4+6926_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32631432/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.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 1.30
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 1441

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32631432/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32631432/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" oDone.


Performing analysis on: 4FGL_J1340.4+6926_weekly_bin937
RA = 205.11, Dec = 69.4446
tmin = 805680001, tmax = 806284801
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='32631430', job_status='RUN', time_executed='2026-07-21 11:20:49.740940', time_epoch_executed='1784658049.74' WHERE source_name='4FGL J1340.4+6926' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32631430

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32631430/ft1_4FGL_J1340.4+6926_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32631430/ft2_4FGL_J1340.4+6926_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32631430/ft1_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631430/ft1_filteredMKT_4FGL_J1340.4+6926_weekly_bin937.fits ra=205.11 dec=69.4446 rad=12.0 tmin=805680001.0 tmax=806284801.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 5.49
user 4.27
sys 0.21

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

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

Number of photons that the gtmktime cut: 1441

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32631430/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32631430/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" o **********
 **   18 **HESSE 
 **********

 FCN=   15701.82     FROM HESSE     STATUS=OK           353 CALLS     1661 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4203        7.3802        .54520E-03   -1.5671    
   2  Prefactor      .0000        2.5987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.072        26.561        .27052E-03   -1.5636    
   4  Prefactor     .14164E-05    15.431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7448        3.0414        .38625E-03   -1.5656    
   6  Prefactor     7.3102        18.277        .37092E-03   -1.5654    
   7  Prefactor     .39674E-06    11.131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24203E-07    6.7497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .78944E-05    55.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1533        1.6766        .10757E-02   -1.5686    
  11  Prefactor     .37337E-06    19.189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    4.4591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    6.2374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2498        24.481        .35111E-03   -1.5651    
  15  Prefactor     .11102E-09    2.7459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21816E-07    7.1618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6421        23.084        .45644E-03   -1.5665    
  18  Prefactor     37.626        39.757        .16945E-03   -1.5585    
  19  Prefactor     .17932E-05    12.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81252        .91034E-01    .43775E-01   -.99606    
  21  Prefactor     1.0824        .99200E-01    .38293E-01   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01336e-06
Minuit parameter uncertainties:
  1  7.38023
  2  1.60815e-05
  3  26.5613
  4  0.00934994
  5  3.04139
  6  18.2772
  7  0.00420307
  8  0.000808734
  9  0.0418136
  10  1.67656
  11  0.00535323
  12  5.40347e-05
  13  0.000143857
  14  24.4817
  15  3.13178e-05
  16  0.000790652
  17  20.7036
  18  39.7575
  19  0.00951356
  20  0.0910506
  21  0.099217
utfile=/lscratch/kocevski/32631350/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631350/ft2_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 16.45
user 15.16
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32631350/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32631350/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32631350/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631350/expmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631350/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 60.24
user 55.39
sys 3.58

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/32631350/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits scfile=/lscratch/kocevski/32631350/ft2_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631350/cmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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 1.14
user 0.22
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32631350/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits scfile=/lscratch/kocevski/32631350/ft2_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631350/cmap_HighResolution_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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 1.07
user 0.22
sys 0.12

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

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.734e-07  5.353e-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:  1.082e+00  9.922e-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:  8.125e-01  9.105e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/32631137/likelihoodResults_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15701.8471721
delta logL = -0.0311199249445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15701.8160554
delta logL = -3.17921876558e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18296E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.8768       1.0000          .0000       10.000    
     3 'Normalizat'    .81260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0824       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      198 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.418       -.11707E-06** at limit **
   2  Index         2.6894        2.3065        .52332E-05     .0000    
   3  Normalizat    .81251        .10366        .19804E-05    .81524E-04
   4  Prefactor     1.0824        .11364       -.43290E-05    .97731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.68937
  Normalizat = 0.812515
  Prefactor  = 1.0824
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15701.82     FROM HESSE     STATUS=FAILED        11 CALLS      209 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .81880        1.9515        .52332E-05   -.48039    
   3  Normalizat    .81251        1.1510        .19804E-05   -.99606    
   4  Prefactor     1.0824        1.1609       -.43290E-05   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.12312e-12
Minuit parameter uncertainties:
  1  3.72087e-05
  2  1.17724
  3  1.18863
  4  1.1898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
utfile=/lscratch/kocevski/32631293/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631293/ft2_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 18.79
user 17.38
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32631293/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32631293/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32631293/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631293/expmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631293/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 69.58
user 64.14
sys 3.94

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/32631293/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits scfile=/lscratch/kocevski/32631293/ft2_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631293/cmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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 1.30
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32631293/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits scfile=/lscratch/kocevski/32631293/ft2_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631293/cmap_HighResolution_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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 1.28
user 0.22
sys 0.14

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

MINUIT Return Code (Free Index): 101
logL (Free Index) = 15701.8160522
delta logL = 9.60790202953e-09

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  3.721e-05  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.689e+00  1.177e+00  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:  1.082e+00  1.190e+00  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:  8.125e-01  1.189e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32631137/cmap_HighResolution_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.36e-08', time_completed='2026-07-21 11:31:22.286322', job_id='32631137', GAL2='1.08', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1784658682.29', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.61e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='937' AND source_name='4FGL J1340.4+6926' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 11:31:23 PDT 2026

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


Performing analysis on: 4FGL_J1340.4+6926_weekly_bin937
RA = 205.11, Dec = 69.4446
tmin = 805680001, tmax = 806284801
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='32631514', job_status='RUN', time_executed='2026-07-21 11:21:27.776447', time_epoch_executed='1784658087.78' WHERE source_name='4FGL J1340.4+6926' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32631514

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32631514/ft1_4FGL_J1340.4+6926_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32631514/ft2_4FGL_J1340.4+6926_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32631514/ft1_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631514/ft1_filteredMKT_4FGL_J1340.4+6926_weekly_bin937.fits ra=205.11 dec=69.4446 rad=12.0 tmin=805680001.0 tmax=806284801.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 5.07
user 3.80
sys 0.22

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

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

Number of photons that the gtmktime cut: 1441

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32631514/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32631514/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" outfile=/lscratch/kocevski/32631432/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631432/ft2_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 17.02
user 15.79
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32631432/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32631432/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32631432/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631432/expmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631432/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 60.59
user 56.05
sys 3.50

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/32631432/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits scfile=/lscratch/kocevski/32631432/ft2_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631432/cmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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 1.10
user 0.20
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32631432/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32631432/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32631432/Model_4FGL_J1340.4+6926_weekly_bin937.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 GALutfile=/lscratch/kocevski/32631300/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631300/ft2_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 17.95
user 16.73
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32631300/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32631300/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32631300/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631300/expmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631300/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 66.80
user 61.75
sys 3.94

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/32631300/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits scfile=/lscratch/kocevski/32631300/ft2_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631300/cmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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 1.24
user 0.22
sys 0.12

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32631300/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32631300/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32631300/Model_4FGL_J1340.4+6926_weekly_bin937.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 GALutfile=/lscratch/kocevski/32631430/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631430/ft2_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 20.83
user 19.56
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32631430/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32631430/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32631430/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631430/expmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631430/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 69.58
user 64.28
sys 4.07

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/32631430/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits scfile=/lscratch/kocevski/32631430/ft2_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631430/cmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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 1.15
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32631430/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits scfile=/lscratch/kocevski/32631430/ft2_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631430/cmap_HighResolution_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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 1.28
user 0.23
sys 0.14

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


Performing analysis on: 4FGL_J1340.4+6926_weekly_bin937
RA = 205.11, Dec = 69.4446
tmin = 805680001, tmax = 806284801
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='32631530', job_status='RUN', time_executed='2026-07-21 11:23:32.617470', time_epoch_executed='1784658212.62' WHERE source_name='4FGL J1340.4+6926' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32631530

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32631530/ft1_4FGL_J1340.4+6926_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32631530/ft2_4FGL_J1340.4+6926_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32631530/ft1_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631530/ft1_filteredMKT_4FGL_J1340.4+6926_weekly_bin937.fits ra=205.11 dec=69.4446 rad=12.0 tmin=805680001.0 tmax=806284801.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 5.43
user 3.96
sys 0.35

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

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

Number of photons that the gtmktime cut: 1441

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32631530/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32631530/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" o_V02
Working on...
/lscratch/kocevski/32631350/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits.....................!
real 46.43
user 44.22
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4386       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18016E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.683       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27204E-05   1.0000          .0000       .10000E+07
     5 'norm      '    6.7401       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.3029       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56971E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .40234E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23516E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1535       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22820E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .36449E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13534E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1428       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10326E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .51438E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.8519       1.0000          .0000       .10000E+07
    18 'Prefactor '    34.835       1.0000          .0000       .10000E+07
    19 'Prefactor '    .33819E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .81264       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0825       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1308 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4203        7.3653       -.29122E-06   -.12278E-02
   2  Prefactor      .0000        2.6336       -.13629E-06** at limit **
   3  Prefactor     13.072        15.091       -.68078E-07    .81857E-01
   4  Prefactor     .14164E-05    9.4675       -.23516E-06** at limit **
   5  norm          6.7448        3.0377       -.34151E-07   -.19510E-02
   6  Prefactor     7.3102        1.4561       -.82158E-08   -.18867E-02
   7  Prefactor     .39674E-06    10.278       -.17667E-06** at limit **
   8  Prefactor     .24203E-07    6.7078       -.61383E-07** at limit **
   9  Prefactor     .78944E-05    46.549       -.45249E-06** at limit **
  10  Prefactor     1.1533        1.6410        .18702E-07    .67765E-03
  11  Prefactor     .37337E-06    15.011       -.31093E-06** at limit **
  12  Prefactor     .16653E-09    4.4662       -.27755E-06** at limit **
  13  Prefactor     .83267E-09    6.2331        .52498E-07** at limit **
  14  Prefactor     8.2498        1.4824        .10997E-07   -.77597E-02
  15  Prefactor     .11102E-09    2.7444        .30767E-06** at limit **
  16  Prefactor     .21816E-07    7.1368        .39493E-07** at limit **
  17  Prefactor     4.6421        2.9926       -.44510E-07    .91854E-02
  18  Prefactor     37.626        36.320        .12042E-06   -.59704E-01
  19  Prefactor     .17932E-05    8.9611       -.18977E-06** at limit **
  20  Normalizat    .81252        .10559        .12897E-05    .44830E-04
  21  Prefactor     1.0824        .11470       -.10538E-05   -.36507E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42028
  Prefactor  = 0
  Prefactor  = 13.0716
  Prefactor  = 1.41637e-06
  norm       = 6.74482
  Prefactor  = 7.31023
  Prefactor  = 3.96738e-07
  Prefactor  = 2.42029e-08
  Prefactor  = 7.89441e-06
  Prefactor  = 1.15325
  Prefactor  = 3.73368e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 8.32667e-10
  Prefactor  = 8.2498
  Prefactor  = 1.11022e-10
  Prefactor  = 2.18159e-08
  Prefactor  = 4.64208
  Prefactor  = 37.6259
  Prefactor  = 1.79318e-06
  Normalizat = 0.812515
  Prefactor  = 1.0824
utfile=/lscratch/kocevski/32631514/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631514/ft2_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 16.93
user 15.52
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32631514/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32631514/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32631514/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631514/expmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631514/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 61.21
user 56.31
sys 3.60

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/32631514/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits scfile=/lscratch/kocevski/32631514/ft2_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631514/cmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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 1.36
user 0.22
sys 0.12

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

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

 FCN=   15701.82     FROM HESSE     STATUS=OK           353 CALLS     1661 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4203        7.3802        .54520E-03   -1.5671    
   2  Prefactor      .0000        2.5987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.072        26.561        .27052E-03   -1.5636    
   4  Prefactor     .14164E-05    15.431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7448        3.0414        .38625E-03   -1.5656    
   6  Prefactor     7.3102        18.277        .37092E-03   -1.5654    
   7  Prefactor     .39674E-06    11.131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24203E-07    6.7497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .78944E-05    55.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1533        1.6766        .10757E-02   -1.5686    
  11  Prefactor     .37337E-06    19.189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    4.4591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    6.2374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2498        24.481        .35111E-03   -1.5651    
  15  Prefactor     .11102E-09    2.7459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21816E-07    7.1618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6421        23.084        .45644E-03   -1.5665    
  18  Prefactor     37.626        39.757        .16945E-03   -1.5585    
  19  Prefactor     .17932E-05    12.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81252        .91034E-01    .43775E-01   -.99606    
  21  Prefactor     1.0824        .99200E-01    .38293E-01   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01336e-06
Minuit parameter uncertainties:
  1  7.38023
  2  1.60815e-05
  3  26.5613
  4  0.00934994
  5  3.04139
  6  18.2772
  7  0.00420307
  8  0.000808734
  9  0.0418136
  10  1.67656
  11  0.00535323
  12  5.40347e-05
  13  0.000143857
  14  24.4817
  15  3.13178e-05
  16  0.000790652
  17  20.7036
  18  39.7575
  19  0.00951356
  20  0.0910506
  21  0.099217
_V02
Working on...
/lscratch/kocevski/32631432/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits.....................!
real 47.74
user 45.37
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4386       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18016E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.683       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27204E-05   1.0000          .0000       .10000E+07
     5 'norm      '    6.7401       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.3029       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56971E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .40234E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23516E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1535       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22820E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .36449E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13534E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1428       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10326E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .51438E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.8519       1.0000          .0000       .10000E+07
    18 'Prefactor '    34.835       1.0000          .0000       .10000E+07
    19 'Prefactor '    .33819E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .81264       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0825       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1308 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4203        7.3653       -.29122E-06   -.12278E-02
   2  Prefactor      .0000        2.6336       -.13629E-06** at limit **
   3  Prefactor     13.072        15.091       -.68078E-07    .81857E-01
   4  Prefactor     .14164E-05    9.4675       -.23516E-06** at limit **
   5  norm          6.7448        3.0377       -.34151E-07   -.19510E-02
   6  Prefactor     7.3102        1.4561       -.82158E-08   -.18867E-02
   7  Prefactor     .39674E-06    10.278       -.17667E-06** at limit **
   8  Prefactor     .24203E-07    6.7078       -.61383E-07** at limit **
   9  Prefactor     .78944E-05    46.549       -.45249E-06** at limit **
  10  Prefactor     1.1533        1.6410        .18702E-07    .67765E-03
  11  Prefactor     .37337E-06    15.011       -.31093E-06** at limit **
  12  Prefactor     .16653E-09    4.4662       -.27755E-06** at limit **
  13  Prefactor     .83267E-09    6.2331        .52498E-07** at limit **
  14  Prefactor     8.2498        1.4824        .10997E-07   -.77597E-02
  15  Prefactor     .11102E-09    2.7444        .30767E-06** at limit **
  16  Prefactor     .21816E-07    7.1368        .39493E-07** at limit **
  17  Prefactor     4.6421        2.9926       -.44510E-07    .91854E-02
  18  Prefactor     37.626        36.320        .12042E-06   -.59704E-01
  19  Prefactor     .17932E-05    8.9611       -.18977E-06** at limit **
  20  Normalizat    .81252        .10559        .12897E-05    .44830E-04
  21  Prefactor     1.0824        .11470       -.10538E-05   -.36507E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42028
  Prefactor  = 0
  Prefactor  = 13.0716
  Prefactor  = 1.41637e-06
  norm       = 6.74482
  Prefactor  = 7.31023
  Prefactor  = 3.96738e-07
  Prefactor  = 2.42029e-08
  Prefactor  = 7.89441e-06
  Prefactor  = 1.15325
  Prefactor  = 3.73368e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 8.32667e-10
  Prefactor  = 8.2498
  Prefactor  = 1.11022e-10
  Prefactor  = 2.18159e-08
  Prefactor  = 4.64208
  Prefactor  = 37.6259
  Prefactor  = 1.79318e-06
  Normalizat = 0.812515
  Prefactor  = 1.0824
_V02
Working on...
/lscratch/kocevski/32631293/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits.....................!
real 53.98
user 51.39
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4386       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18016E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.683       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27204E-05   1.0000          .0000       .10000E+07
     5 'norm      '    6.7401       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.3029       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56971E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .40234E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23516E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1535       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22820E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .36449E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13534E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1428       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10326E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .51438E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.8519       1.0000          .0000       .10000E+07
    18 'Prefactor '    34.835       1.0000          .0000       .10000E+07
    19 'Prefactor '    .33819E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .81264       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0825       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1308 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4203        7.3653       -.29122E-06   -.12278E-02
   2  Prefactor      .0000        2.6336       -.13629E-06** at limit **
   3  Prefactor     13.072        15.091       -.68078E-07    .81857E-01
   4  Prefactor     .14164E-05    9.4675       -.23516E-06** at limit **
   5  norm          6.7448        3.0377       -.34151E-07   -.19510E-02
   6  Prefactor     7.3102        1.4561       -.82158E-08   -.18867E-02
   7  Prefactor     .39674E-06    10.278       -.17667E-06** at limit **
   8  Prefactor     .24203E-07    6.7078       -.61383E-07** at limit **
   9  Prefactor     .78944E-05    46.549       -.45249E-06** at limit **
  10  Prefactor     1.1533        1.6410        .18702E-07    .67765E-03
  11  Prefactor     .37337E-06    15.011       -.31093E-06** at limit **
  12  Prefactor     .16653E-09    4.4662       -.27755E-06** at limit **
  13  Prefactor     .83267E-09    6.2331        .52498E-07** at limit **
  14  Prefactor     8.2498        1.4824        .10997E-07   -.77597E-02
  15  Prefactor     .11102E-09    2.7444        .30767E-06** at limit **
  16  Prefactor     .21816E-07    7.1368        .39493E-07** at limit **
  17  Prefactor     4.6421        2.9926       -.44510E-07    .91854E-02
  18  Prefactor     37.626        36.320        .12042E-06   -.59704E-01
  19  Prefactor     .17932E-05    8.9611       -.18977E-06** at limit **
  20  Normalizat    .81252        .10559        .12897E-05    .44830E-04
  21  Prefactor     1.0824        .11470       -.10538E-05   -.36507E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42028
  Prefactor  = 0
  Prefactor  = 13.0716
  Prefactor  = 1.41637e-06
  norm       = 6.74482
  Prefactor  = 7.31023
  Prefactor  = 3.96738e-07
  Prefactor  = 2.42029e-08
  Prefactor  = 7.89441e-06
  Prefactor  = 1.15325
  Prefactor  = 3.73368e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 8.32667e-10
  Prefactor  = 8.2498
  Prefactor  = 1.11022e-10
  Prefactor  = 2.18159e-08
  Prefactor  = 4.64208
  Prefactor  = 37.6259
  Prefactor  = 1.79318e-06
  Normalizat = 0.812515
  Prefactor  = 1.0824
_V02
Working on...
/lscratch/kocevski/32631300/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits.....................!
real 49.82
user 47.63
sys 0.96

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4386       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18016E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.683       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27204E-05   1.0000          .0000       .10000E+07
     5 'norm      '    6.7401       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.3029       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56971E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .40234E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23516E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1535       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22820E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .36449E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13534E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1428       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10326E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .51438E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.8519       1.0000          .0000       .10000E+07
    18 'Prefactor '    34.835       1.0000          .0000       .10000E+07
    19 'Prefactor '    .33819E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .81264       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0825       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1308 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4203        7.3653       -.29122E-06   -.12278E-02
   2  Prefactor      .0000        2.6336       -.13629E-06** at limit **
   3  Prefactor     13.072        15.091       -.68078E-07    .81857E-01
   4  Prefactor     .14164E-05    9.4675       -.23516E-06** at limit **
   5  norm          6.7448        3.0377       -.34151E-07   -.19510E-02
   6  Prefactor     7.3102        1.4561       -.82158E-08   -.18867E-02
   7  Prefactor     .39674E-06    10.278       -.17667E-06** at limit **
   8  Prefactor     .24203E-07    6.7078       -.61383E-07** at limit **
   9  Prefactor     .78944E-05    46.549       -.45249E-06** at limit **
  10  Prefactor     1.1533        1.6410        .18702E-07    .67765E-03
  11  Prefactor     .37337E-06    15.011       -.31093E-06** at limit **
  12  Prefactor     .16653E-09    4.4662       -.27755E-06** at limit **
  13  Prefactor     .83267E-09    6.2331        .52498E-07** at limit **
  14  Prefactor     8.2498        1.4824        .10997E-07   -.77597E-02
  15  Prefactor     .11102E-09    2.7444        .30767E-06** at limit **
  16  Prefactor     .21816E-07    7.1368        .39493E-07** at limit **
  17  Prefactor     4.6421        2.9926       -.44510E-07    .91854E-02
  18  Prefactor     37.626        36.320        .12042E-06   -.59704E-01
  19  Prefactor     .17932E-05    8.9611       -.18977E-06** at limit **
  20  Normalizat    .81252        .10559        .12897E-05    .44830E-04
  21  Prefactor     1.0824        .11470       -.10538E-05   -.36507E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42028
  Prefactor  = 0
  Prefactor  = 13.0716
  Prefactor  = 1.41637e-06
  norm       = 6.74482
  Prefactor  = 7.31023
  Prefactor  = 3.96738e-07
  Prefactor  = 2.42029e-08
  Prefactor  = 7.89441e-06
  Prefactor  = 1.15325
  Prefactor  = 3.73368e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 8.32667e-10
  Prefactor  = 8.2498
  Prefactor  = 1.11022e-10
  Prefactor  = 2.18159e-08
  Prefactor  = 4.64208
  Prefactor  = 37.6259
  Prefactor  = 1.79318e-06
  Normalizat = 0.812515
  Prefactor  = 1.0824
 **********
 **   18 **HESSE 
 **********

 FCN=   15701.82     FROM HESSE     STATUS=OK           353 CALLS     1661 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4203        7.3802        .54520E-03   -1.5671    
   2  Prefactor      .0000        2.5987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.072        26.561        .27052E-03   -1.5636    
   4  Prefactor     .14164E-05    15.431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7448        3.0414        .38625E-03   -1.5656    
   6  Prefactor     7.3102        18.277        .37092E-03   -1.5654    
   7  Prefactor     .39674E-06    11.131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24203E-07    6.7497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .78944E-05    55.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1533        1.6766        .10757E-02   -1.5686    
  11  Prefactor     .37337E-06    19.189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    4.4591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    6.2374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2498        24.481        .35111E-03   -1.5651    
  15  Prefactor     .11102E-09    2.7459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21816E-07    7.1618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6421        23.084        .45644E-03   -1.5665    
  18  Prefactor     37.626        39.757        .16945E-03   -1.5585    
  19  Prefactor     .17932E-05    12.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81252        .91034E-01    .43775E-01   -.99606    
  21  Prefactor     1.0824        .99200E-01    .38293E-01   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01336e-06
Minuit parameter uncertainties:
  1  7.38023
  2  1.60815e-05
  3  26.5613
  4  0.00934994
  5  3.04139
  6  18.2772
  7  0.00420307
  8  0.000808734
  9  0.0418136
  10  1.67656
  11  0.00535323
  12  5.40347e-05
  13  0.000143857
  14  24.4817
  15  3.13178e-05
  16  0.000790652
  17  20.7036
  18  39.7575
  19  0.00951356
  20  0.0910506
  21  0.099217
 **********
 **   18 **HESSE 
 **********

 FCN=   15701.82     FROM HESSE     STATUS=OK           353 CALLS     1661 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4203        7.3802        .54520E-03   -1.5671    
   2  Prefactor      .0000        2.5987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.072        26.561        .27052E-03   -1.5636    
   4  Prefactor     .14164E-05    15.431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7448        3.0414        .38625E-03   -1.5656    
   6  Prefactor     7.3102        18.277        .37092E-03   -1.5654    
   7  Prefactor     .39674E-06    11.131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24203E-07    6.7497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .78944E-05    55.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1533        1.6766        .10757E-02   -1.5686    
  11  Prefactor     .37337E-06    19.189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    4.4591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    6.2374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2498        24.481        .35111E-03   -1.5651    
  15  Prefactor     .11102E-09    2.7459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21816E-07    7.1618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6421        23.084        .45644E-03   -1.5665    
  18  Prefactor     37.626        39.757        .16945E-03   -1.5585    
  19  Prefactor     .17932E-05    12.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81252        .91034E-01    .43775E-01   -.99606    
  21  Prefactor     1.0824        .99200E-01    .38293E-01   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01336e-06
Minuit parameter uncertainties:
  1  7.38023
  2  1.60815e-05
  3  26.5613
  4  0.00934994
  5  3.04139
  6  18.2772
  7  0.00420307
  8  0.000808734
  9  0.0418136
  10  1.67656
  11  0.00535323
  12  5.40347e-05
  13  0.000143857
  14  24.4817
  15  3.13178e-05
  16  0.000790652
  17  20.7036
  18  39.7575
  19  0.00951356
  20  0.0910506
  21  0.099217
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.734e-07  5.353e-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:  1.082e+00  9.922e-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:  8.125e-01  9.105e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/32631350/likelihoodResults_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15701.8471721
delta logL = -0.0311199249445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15701.8160554
delta logL = -3.17921876558e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18296E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.8768       1.0000          .0000       10.000    
     3 'Normalizat'    .81260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0824       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      198 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.418       -.11707E-06** at limit **
   2  Index         2.6894        2.3065        .52332E-05     .0000    
   3  Normalizat    .81251        .10366        .19804E-05    .81524E-04
   4  Prefactor     1.0824        .11364       -.43290E-05    .97731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.68937
  Normalizat = 0.812515
  Prefactor  = 1.0824
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15701.82     FROM HESSE     STATUS=FAILED        11 CALLS      209 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .81880        1.9515        .52332E-05   -.48039    
   3  Normalizat    .81251        1.1510        .19804E-05   -.99606    
   4  Prefactor     1.0824        1.1609       -.43290E-05   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.12312e-12
Minuit parameter uncertainties:
  1  3.72087e-05
  2  1.17724
  3  1.18863
  4  1.1898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 15701.8160522
delta logL = 9.60790202953e-09

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  3.721e-05  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.689e+00  1.177e+00  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:  1.082e+00  1.190e+00  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:  8.125e-01  1.189e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32631350/cmap_HighResolution_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.36e-08', time_completed='2026-07-21 11:35:01.308802', job_id='32631350', GAL2='1.08', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1784658901.31', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.61e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='937' AND source_name='4FGL J1340.4+6926' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 11:35:01 PDT 2026

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

 FCN=   15701.82     FROM HESSE     STATUS=OK           353 CALLS     1661 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4203        7.3802        .54520E-03   -1.5671    
   2  Prefactor      .0000        2.5987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.072        26.561        .27052E-03   -1.5636    
   4  Prefactor     .14164E-05    15.431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7448        3.0414        .38625E-03   -1.5656    
   6  Prefactor     7.3102        18.277        .37092E-03   -1.5654    
   7  Prefactor     .39674E-06    11.131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24203E-07    6.7497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .78944E-05    55.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1533        1.6766        .10757E-02   -1.5686    
  11  Prefactor     .37337E-06    19.189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    4.4591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    6.2374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2498        24.481        .35111E-03   -1.5651    
  15  Prefactor     .11102E-09    2.7459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21816E-07    7.1618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6421        23.084        .45644E-03   -1.5665    
  18  Prefactor     37.626        39.757        .16945E-03   -1.5585    
  19  Prefactor     .17932E-05    12.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81252        .91034E-01    .43775E-01   -.99606    
  21  Prefactor     1.0824        .99200E-01    .38293E-01   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01336e-06
Minuit parameter uncertainties:
  1  7.38023
  2  1.60815e-05
  3  26.5613
  4  0.00934994
  5  3.04139
  6  18.2772
  7  0.00420307
  8  0.000808734
  9  0.0418136
  10  1.67656
  11  0.00535323
  12  5.40347e-05
  13  0.000143857
  14  24.4817
  15  3.13178e-05
  16  0.000790652
  17  20.7036
  18  39.7575
  19  0.00951356
  20  0.0910506
  21  0.099217
_V02
Working on...
/lscratch/kocevski/32631430/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits.....................!
real 54.81
user 52.16
sys 1.47

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4386       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18016E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.683       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27204E-05   1.0000          .0000       .10000E+07
     5 'norm      '    6.7401       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.3029       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56971E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .40234E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23516E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1535       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22820E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .36449E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13534E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1428       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10326E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .51438E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.8519       1.0000          .0000       .10000E+07
    18 'Prefactor '    34.835       1.0000          .0000       .10000E+07
    19 'Prefactor '    .33819E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .81264       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0825       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1308 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4203        7.3653       -.29122E-06   -.12278E-02
   2  Prefactor      .0000        2.6336       -.13629E-06** at limit **
   3  Prefactor     13.072        15.091       -.68078E-07    .81857E-01
   4  Prefactor     .14164E-05    9.4675       -.23516E-06** at limit **
   5  norm          6.7448        3.0377       -.34151E-07   -.19510E-02
   6  Prefactor     7.3102        1.4561       -.82158E-08   -.18867E-02
   7  Prefactor     .39674E-06    10.278       -.17667E-06** at limit **
   8  Prefactor     .24203E-07    6.7078       -.61383E-07** at limit **
   9  Prefactor     .78944E-05    46.549       -.45249E-06** at limit **
  10  Prefactor     1.1533        1.6410        .18702E-07    .67765E-03
  11  Prefactor     .37337E-06    15.011       -.31093E-06** at limit **
  12  Prefactor     .16653E-09    4.4662       -.27755E-06** at limit **
  13  Prefactor     .83267E-09    6.2331        .52498E-07** at limit **
  14  Prefactor     8.2498        1.4824        .10997E-07   -.77597E-02
  15  Prefactor     .11102E-09    2.7444        .30767E-06** at limit **
  16  Prefactor     .21816E-07    7.1368        .39493E-07** at limit **
  17  Prefactor     4.6421        2.9926       -.44510E-07    .91854E-02
  18  Prefactor     37.626        36.320        .12042E-06   -.59704E-01
  19  Prefactor     .17932E-05    8.9611       -.18977E-06** at limit **
  20  Normalizat    .81252        .10559        .12897E-05    .44830E-04
  21  Prefactor     1.0824        .11470       -.10538E-05   -.36507E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42028
  Prefactor  = 0
  Prefactor  = 13.0716
  Prefactor  = 1.41637e-06
  norm       = 6.74482
  Prefactor  = 7.31023
  Prefactor  = 3.96738e-07
  Prefactor  = 2.42029e-08
  Prefactor  = 7.89441e-06
  Prefactor  = 1.15325
  Prefactor  = 3.73368e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 8.32667e-10
  Prefactor  = 8.2498
  Prefactor  = 1.11022e-10
  Prefactor  = 2.18159e-08
  Prefactor  = 4.64208
  Prefactor  = 37.6259
  Prefactor  = 1.79318e-06
  Normalizat = 0.812515
  Prefactor  = 1.0824
utfile=/lscratch/kocevski/32631530/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631530/ft2_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 17.21
user 16.04
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32631530/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32631530/ft2_4FGL_J1340.4+6926_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32631530/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631530/expmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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/32631530/ltcube_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.fits
.....................!
real 62.01
user 57.17
sys 3.61

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/32631530/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits scfile=/lscratch/kocevski/32631530/ft2_4FGL_J1340.4+6926_weekly_bin937.fits outfile=/lscratch/kocevski/32631530/cmap_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.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 1.16
user 0.23
sys 0.12

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

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

 FCN=   15701.82     FROM HESSE     STATUS=OK           353 CALLS     1661 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4203        7.3802        .54520E-03   -1.5671    
   2  Prefactor      .0000        2.5987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.072        26.561        .27052E-03   -1.5636    
   4  Prefactor     .14164E-05    15.431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7448        3.0414        .38625E-03   -1.5656    
   6  Prefactor     7.3102        18.277        .37092E-03   -1.5654    
   7  Prefactor     .39674E-06    11.131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24203E-07    6.7497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .78944E-05    55.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1533        1.6766        .10757E-02   -1.5686    
  11  Prefactor     .37337E-06    19.189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    4.4591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    6.2374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2498        24.481        .35111E-03   -1.5651    
  15  Prefactor     .11102E-09    2.7459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21816E-07    7.1618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6421        23.084        .45644E-03   -1.5665    
  18  Prefactor     37.626        39.757        .16945E-03   -1.5585    
  19  Prefactor     .17932E-05    12.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81252        .91034E-01    .43775E-01   -.99606    
  21  Prefactor     1.0824        .99200E-01    .38293E-01   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01336e-06
Minuit parameter uncertainties:
  1  7.38023
  2  1.60815e-05
  3  26.5613
  4  0.00934994
  5  3.04139
  6  18.2772
  7  0.00420307
  8  0.000808734
  9  0.0418136
  10  1.67656
  11  0.00535323
  12  5.40347e-05
  13  0.000143857
  14  24.4817
  15  3.13178e-05
  16  0.000790652
  17  20.7036
  18  39.7575
  19  0.00951356
  20  0.0910506
  21  0.099217
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.734e-07  5.353e-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:  1.082e+00  9.922e-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:  8.125e-01  9.105e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/32631432/likelihoodResults_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15701.8471721
delta logL = -0.0311199249445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15701.8160554
delta logL = -3.17921876558e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18296E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.8768       1.0000          .0000       10.000    
     3 'Normalizat'    .81260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0824       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      198 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.418       -.11707E-06** at limit **
   2  Index         2.6894        2.3065        .52332E-05     .0000    
   3  Normalizat    .81251        .10366        .19804E-05    .81524E-04
   4  Prefactor     1.0824        .11364       -.43290E-05    .97731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.68937
  Normalizat = 0.812515
  Prefactor  = 1.0824
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15701.82     FROM HESSE     STATUS=FAILED        11 CALLS      209 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .81880        1.9515        .52332E-05   -.48039    
   3  Normalizat    .81251        1.1510        .19804E-05   -.99606    
   4  Prefactor     1.0824        1.1609       -.43290E-05   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.12312e-12
Minuit parameter uncertainties:
  1  3.72087e-05
  2  1.17724
  3  1.18863
  4  1.1898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 15701.8160522
delta logL = 9.60790202953e-09

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  3.721e-05  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.689e+00  1.177e+00  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:  1.082e+00  1.190e+00  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:  8.125e-01  1.189e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32631432/cmap_HighResolution_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.36e-08', time_completed='2026-07-21 11:35:56.581379', job_id='32631432', GAL2='1.08', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1784658956.58', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.61e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='937' AND source_name='4FGL J1340.4+6926' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 11:35:57 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.734e-07  5.353e-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:  1.082e+00  9.922e-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:  8.125e-01  9.105e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/32631293/likelihoodResults_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15701.8471721
delta logL = -0.0311199249445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15701.8160554
delta logL = -3.17921876558e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18296E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.8768       1.0000          .0000       10.000    
     3 'Normalizat'    .81260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0824       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      198 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.418       -.11707E-06** at limit **
   2  Index         2.6894        2.3065        .52332E-05     .0000    
   3  Normalizat    .81251        .10366        .19804E-05    .81524E-04
   4  Prefactor     1.0824        .11364       -.43290E-05    .97731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.68937
  Normalizat = 0.812515
  Prefactor  = 1.0824
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15701.82     FROM HESSE     STATUS=FAILED        11 CALLS      209 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .81880        1.9515        .52332E-05   -.48039    
   3  Normalizat    .81251        1.1510        .19804E-05   -.99606    
   4  Prefactor     1.0824        1.1609       -.43290E-05   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.12312e-12
Minuit parameter uncertainties:
  1  3.72087e-05
  2  1.17724
  3  1.18863
  4  1.1898
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.734e-07  5.353e-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:  1.082e+00  9.922e-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:  8.125e-01  9.105e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/32631300/likelihoodResults_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15701.8471721
delta logL = -0.0311199249445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15701.8160554
delta logL = -3.17921876558e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18296E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.8768       1.0000          .0000       10.000    
     3 'Normalizat'    .81260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0824       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      198 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.418       -.11707E-06** at limit **
   2  Index         2.6894        2.3065        .52332E-05     .0000    
   3  Normalizat    .81251        .10366        .19804E-05    .81524E-04
   4  Prefactor     1.0824        .11364       -.43290E-05    .97731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.68937
  Normalizat = 0.812515
  Prefactor  = 1.0824
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15701.82     FROM HESSE     STATUS=FAILED        11 CALLS      209 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .81880        1.9515        .52332E-05   -.48039    
   3  Normalizat    .81251        1.1510        .19804E-05   -.99606    
   4  Prefactor     1.0824        1.1609       -.43290E-05   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.12312e-12
Minuit parameter uncertainties:
  1  3.72087e-05
  2  1.17724
  3  1.18863
  4  1.1898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 15701.8160522
delta logL = 9.60790202953e-09

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  3.721e-05  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.689e+00  1.177e+00  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:  1.082e+00  1.190e+00  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:  8.125e-01  1.189e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32631293/cmap_HighResolution_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.36e-08', time_completed='2026-07-21 11:36:11.038298', job_id='32631293', GAL2='1.08', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1784658971.04', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.61e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='937' AND source_name='4FGL J1340.4+6926' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 11:36:11 PDT 2026

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

MINUIT Return Code (Free Index): 101
logL (Free Index) = 15701.8160522
delta logL = 9.60790202953e-09

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  3.721e-05  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.689e+00  1.177e+00  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:  1.082e+00  1.190e+00  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:  8.125e-01  1.189e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32631300/cmap_HighResolution_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.36e-08', time_completed='2026-07-21 11:36:11.819751', job_id='32631300', GAL2='1.08', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1784658971.82', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.61e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='937' AND source_name='4FGL J1340.4+6926' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 11:36:12 PDT 2026

_V02
Working on...
/lscratch/kocevski/32631514/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits.....................!
real 48.80
user 46.32
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4386       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18016E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.683       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27204E-05   1.0000          .0000       .10000E+07
     5 'norm      '    6.7401       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.3029       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56971E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .40234E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23516E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1535       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22820E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .36449E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13534E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1428       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10326E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .51438E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.8519       1.0000          .0000       .10000E+07
    18 'Prefactor '    34.835       1.0000          .0000       .10000E+07
    19 'Prefactor '    .33819E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .81264       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0825       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1308 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4203        7.3653       -.29122E-06   -.12278E-02
   2  Prefactor      .0000        2.6336       -.13629E-06** at limit **
   3  Prefactor     13.072        15.091       -.68078E-07    .81857E-01
   4  Prefactor     .14164E-05    9.4675       -.23516E-06** at limit **
   5  norm          6.7448        3.0377       -.34151E-07   -.19510E-02
   6  Prefactor     7.3102        1.4561       -.82158E-08   -.18867E-02
   7  Prefactor     .39674E-06    10.278       -.17667E-06** at limit **
   8  Prefactor     .24203E-07    6.7078       -.61383E-07** at limit **
   9  Prefactor     .78944E-05    46.549       -.45249E-06** at limit **
  10  Prefactor     1.1533        1.6410        .18702E-07    .67765E-03
  11  Prefactor     .37337E-06    15.011       -.31093E-06** at limit **
  12  Prefactor     .16653E-09    4.4662       -.27755E-06** at limit **
  13  Prefactor     .83267E-09    6.2331        .52498E-07** at limit **
  14  Prefactor     8.2498        1.4824        .10997E-07   -.77597E-02
  15  Prefactor     .11102E-09    2.7444        .30767E-06** at limit **
  16  Prefactor     .21816E-07    7.1368        .39493E-07** at limit **
  17  Prefactor     4.6421        2.9926       -.44510E-07    .91854E-02
  18  Prefactor     37.626        36.320        .12042E-06   -.59704E-01
  19  Prefactor     .17932E-05    8.9611       -.18977E-06** at limit **
  20  Normalizat    .81252        .10559        .12897E-05    .44830E-04
  21  Prefactor     1.0824        .11470       -.10538E-05   -.36507E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42028
  Prefactor  = 0
  Prefactor  = 13.0716
  Prefactor  = 1.41637e-06
  norm       = 6.74482
  Prefactor  = 7.31023
  Prefactor  = 3.96738e-07
  Prefactor  = 2.42029e-08
  Prefactor  = 7.89441e-06
  Prefactor  = 1.15325
  Prefactor  = 3.73368e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 8.32667e-10
  Prefactor  = 8.2498
  Prefactor  = 1.11022e-10
  Prefactor  = 2.18159e-08
  Prefactor  = 4.64208
  Prefactor  = 37.6259
  Prefactor  = 1.79318e-06
  Normalizat = 0.812515
  Prefactor  = 1.0824
 **********
 **   18 **HESSE 
 **********

 FCN=   15701.82     FROM HESSE     STATUS=OK           353 CALLS     1661 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4203        7.3802        .54520E-03   -1.5671    
   2  Prefactor      .0000        2.5987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.072        26.561        .27052E-03   -1.5636    
   4  Prefactor     .14164E-05    15.431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7448        3.0414        .38625E-03   -1.5656    
   6  Prefactor     7.3102        18.277        .37092E-03   -1.5654    
   7  Prefactor     .39674E-06    11.131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24203E-07    6.7497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .78944E-05    55.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1533        1.6766        .10757E-02   -1.5686    
  11  Prefactor     .37337E-06    19.189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    4.4591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    6.2374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2498        24.481        .35111E-03   -1.5651    
  15  Prefactor     .11102E-09    2.7459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21816E-07    7.1618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6421        23.084        .45644E-03   -1.5665    
  18  Prefactor     37.626        39.757        .16945E-03   -1.5585    
  19  Prefactor     .17932E-05    12.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81252        .91034E-01    .43775E-01   -.99606    
  21  Prefactor     1.0824        .99200E-01    .38293E-01   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01336e-06
Minuit parameter uncertainties:
  1  7.38023
  2  1.60815e-05
  3  26.5613
  4  0.00934994
  5  3.04139
  6  18.2772
  7  0.00420307
  8  0.000808734
  9  0.0418136
  10  1.67656
  11  0.00535323
  12  5.40347e-05
  13  0.000143857
  14  24.4817
  15  3.13178e-05
  16  0.000790652
  17  20.7036
  18  39.7575
  19  0.00951356
  20  0.0910506
  21  0.099217
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.734e-07  5.353e-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:  1.082e+00  9.922e-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:  8.125e-01  9.105e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/32631430/likelihoodResults_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15701.8471721
delta logL = -0.0311199249445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15701.8160554
delta logL = -3.17921876558e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18296E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.8768       1.0000          .0000       10.000    
     3 'Normalizat'    .81260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0824       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      198 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.418       -.11707E-06** at limit **
   2  Index         2.6894        2.3065        .52332E-05     .0000    
   3  Normalizat    .81251        .10366        .19804E-05    .81524E-04
   4  Prefactor     1.0824        .11364       -.43290E-05    .97731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.68937
  Normalizat = 0.812515
  Prefactor  = 1.0824
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15701.82     FROM HESSE     STATUS=FAILED        11 CALLS      209 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .81880        1.9515        .52332E-05   -.48039    
   3  Normalizat    .81251        1.1510        .19804E-05   -.99606    
   4  Prefactor     1.0824        1.1609       -.43290E-05   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.12312e-12
Minuit parameter uncertainties:
  1  3.72087e-05
  2  1.17724
  3  1.18863
  4  1.1898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 15701.8160522
delta logL = 9.60790202953e-09

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  3.721e-05  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.689e+00  1.177e+00  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:  1.082e+00  1.190e+00  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:  8.125e-01  1.189e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32631430/cmap_HighResolution_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.36e-08', time_completed='2026-07-21 11:36:54.183329', job_id='32631430', GAL2='1.08', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1784659014.18', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.61e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='937' AND source_name='4FGL J1340.4+6926' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 11:36:54 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.734e-07  5.353e-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:  1.082e+00  9.922e-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:  8.125e-01  9.105e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/32631514/likelihoodResults_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15701.8471721
delta logL = -0.0311199249445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15701.8160554
delta logL = -3.17921876558e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18296E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.8768       1.0000          .0000       10.000    
     3 'Normalizat'    .81260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0824       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      198 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.418       -.11707E-06** at limit **
   2  Index         2.6894        2.3065        .52332E-05     .0000    
   3  Normalizat    .81251        .10366        .19804E-05    .81524E-04
   4  Prefactor     1.0824        .11364       -.43290E-05    .97731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.68937
  Normalizat = 0.812515
  Prefactor  = 1.0824
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15701.82     FROM HESSE     STATUS=FAILED        11 CALLS      209 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .81880        1.9515        .52332E-05   -.48039    
   3  Normalizat    .81251        1.1510        .19804E-05   -.99606    
   4  Prefactor     1.0824        1.1609       -.43290E-05   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.12312e-12
Minuit parameter uncertainties:
  1  3.72087e-05
  2  1.17724
  3  1.18863
  4  1.1898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 15701.8160522
delta logL = 9.60790202953e-09

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  3.721e-05  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.689e+00  1.177e+00  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:  1.082e+00  1.190e+00  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:  8.125e-01  1.189e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32631514/cmap_HighResolution_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.36e-08', time_completed='2026-07-21 11:37:55.930476', job_id='32631514', GAL2='1.08', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1784659075.93', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.61e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='937' AND source_name='4FGL J1340.4+6926' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 11:37:56 PDT 2026

_V02
Working on...
/lscratch/kocevski/32631530/ft1_filtered_4FGL_J1340.4+6926_weekly_bin937.fits.....................!
real 50.88
user 48.72
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4386       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18016E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.683       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27204E-05   1.0000          .0000       .10000E+07
     5 'norm      '    6.7401       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.3029       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56971E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .40234E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23516E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1535       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22820E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .36449E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13534E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1428       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10326E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .51438E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.8519       1.0000          .0000       .10000E+07
    18 'Prefactor '    34.835       1.0000          .0000       .10000E+07
    19 'Prefactor '    .33819E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .81264       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0825       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1308 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4203        7.3653       -.29122E-06   -.12278E-02
   2  Prefactor      .0000        2.6336       -.13629E-06** at limit **
   3  Prefactor     13.072        15.091       -.68078E-07    .81857E-01
   4  Prefactor     .14164E-05    9.4675       -.23516E-06** at limit **
   5  norm          6.7448        3.0377       -.34151E-07   -.19510E-02
   6  Prefactor     7.3102        1.4561       -.82158E-08   -.18867E-02
   7  Prefactor     .39674E-06    10.278       -.17667E-06** at limit **
   8  Prefactor     .24203E-07    6.7078       -.61383E-07** at limit **
   9  Prefactor     .78944E-05    46.549       -.45249E-06** at limit **
  10  Prefactor     1.1533        1.6410        .18702E-07    .67765E-03
  11  Prefactor     .37337E-06    15.011       -.31093E-06** at limit **
  12  Prefactor     .16653E-09    4.4662       -.27755E-06** at limit **
  13  Prefactor     .83267E-09    6.2331        .52498E-07** at limit **
  14  Prefactor     8.2498        1.4824        .10997E-07   -.77597E-02
  15  Prefactor     .11102E-09    2.7444        .30767E-06** at limit **
  16  Prefactor     .21816E-07    7.1368        .39493E-07** at limit **
  17  Prefactor     4.6421        2.9926       -.44510E-07    .91854E-02
  18  Prefactor     37.626        36.320        .12042E-06   -.59704E-01
  19  Prefactor     .17932E-05    8.9611       -.18977E-06** at limit **
  20  Normalizat    .81252        .10559        .12897E-05    .44830E-04
  21  Prefactor     1.0824        .11470       -.10538E-05   -.36507E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42028
  Prefactor  = 0
  Prefactor  = 13.0716
  Prefactor  = 1.41637e-06
  norm       = 6.74482
  Prefactor  = 7.31023
  Prefactor  = 3.96738e-07
  Prefactor  = 2.42029e-08
  Prefactor  = 7.89441e-06
  Prefactor  = 1.15325
  Prefactor  = 3.73368e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 8.32667e-10
  Prefactor  = 8.2498
  Prefactor  = 1.11022e-10
  Prefactor  = 2.18159e-08
  Prefactor  = 4.64208
  Prefactor  = 37.6259
  Prefactor  = 1.79318e-06
  Normalizat = 0.812515
  Prefactor  = 1.0824
 **********
 **   18 **HESSE 
 **********

 FCN=   15701.82     FROM HESSE     STATUS=OK           353 CALLS     1661 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4203        7.3802        .54520E-03   -1.5671    
   2  Prefactor      .0000        2.5987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.072        26.561        .27052E-03   -1.5636    
   4  Prefactor     .14164E-05    15.431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7448        3.0414        .38625E-03   -1.5656    
   6  Prefactor     7.3102        18.277        .37092E-03   -1.5654    
   7  Prefactor     .39674E-06    11.131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24203E-07    6.7497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .78944E-05    55.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1533        1.6766        .10757E-02   -1.5686    
  11  Prefactor     .37337E-06    19.189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    4.4591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    6.2374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2498        24.481        .35111E-03   -1.5651    
  15  Prefactor     .11102E-09    2.7459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21816E-07    7.1618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6421        23.084        .45644E-03   -1.5665    
  18  Prefactor     37.626        39.757        .16945E-03   -1.5585    
  19  Prefactor     .17932E-05    12.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81252        .91034E-01    .43775E-01   -.99606    
  21  Prefactor     1.0824        .99200E-01    .38293E-01   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01336e-06
Minuit parameter uncertainties:
  1  7.38023
  2  1.60815e-05
  3  26.5613
  4  0.00934994
  5  3.04139
  6  18.2772
  7  0.00420307
  8  0.000808734
  9  0.0418136
  10  1.67656
  11  0.00535323
  12  5.40347e-05
  13  0.000143857
  14  24.4817
  15  3.13178e-05
  16  0.000790652
  17  20.7036
  18  39.7575
  19  0.00951356
  20  0.0910506
  21  0.099217
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  3.734e-07  5.353e-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:  1.082e+00  9.922e-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:  8.125e-01  9.105e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/32631530/likelihoodResults_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15701.8471721
delta logL = -0.0311199249445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15701.8160554
delta logL = -3.17921876558e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18296E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.8768       1.0000          .0000       10.000    
     3 'Normalizat'    .81260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0824       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=   15701.82     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      198 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.418       -.11707E-06** at limit **
   2  Index         2.6894        2.3065        .52332E-05     .0000    
   3  Normalizat    .81251        .10366        .19804E-05    .81524E-04
   4  Prefactor     1.0824        .11364       -.43290E-05    .97731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.68937
  Normalizat = 0.812515
  Prefactor  = 1.0824
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15701.82     FROM HESSE     STATUS=FAILED        11 CALLS      209 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .81880        1.9515        .52332E-05   -.48039    
   3  Normalizat    .81251        1.1510        .19804E-05   -.99606    
   4  Prefactor     1.0824        1.1609       -.43290E-05   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.12312e-12
Minuit parameter uncertainties:
  1  3.72087e-05
  2  1.17724
  3  1.18863
  4  1.1898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 15701.8160522
delta logL = 9.60790202953e-09

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  0.000e+00  3.721e-05  0.000e+00  1.000e+06 ( 1.000e-13)
378        Index:  2.689e+00  1.177e+00  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:  1.082e+00  1.190e+00  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:  8.125e-01  1.189e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/32631530/cmap_HighResolution_805680001_806284801_4FGL_J1340.4+6926_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.36e-08', time_completed='2026-07-21 11:40:17.251311', job_id='32631530', GAL2='1.08', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1784659217.25', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.61e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='937' AND source_name='4FGL J1340.4+6926' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 11:40:17 PDT 2026

