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

 FCN=   6637.924     FROM HESSE     STATUS=OK           512 CALLS     2748 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1115        4.8878        .37562E-03   -1.5655    
   2  norm          2.2793        1.4146        .68025E-03   -1.5678    
   3  Prefactor     .69944E-08    10.781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9402        1.6208        .59219E-03   -1.5674    
   5  Prefactor     .61146E-06    48.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1957        6.3516        .43831E-03   -1.5662    
   7  norm          .11102E-09    3.1720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.866        40.134        .17124E-03   -1.5592    
   9  Prefactor     32.966        41.097        .17474E-03   -1.5593    
  10  norm           .0000        .80132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11319E-06    25.028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0277        2.3651        .35588E-02   -1.5688    
  13  norm          2.8678        1.5199        .59978E-03   -1.5674    
  14  norm           .0000        .68732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13711E-07    9.4474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22060E-05    12.101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.767        39.164        .19301E-03   -1.5601    
  18  Prefactor     .38557        8.6913        .87448E-03   -1.5696    
  19  Prefactor     .22204E-09    21.040        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6717        2.0989        .62244E-03   -1.5675    
  21  Prefactor     .16043E-06    29.854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.705        45.684        .19478E-03   -1.5607    
  23  Prefactor     29.690        33.579        .18316E-03   -1.5599    
  24  Prefactor     .33304E-05    12.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .92147        .14779        .45189E-01   -.95710    
  26  Prefactor     .94059        .17653        .45509E-01   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46787e-06
Minuit parameter uncertainties:
  1  4.88784
  2  1.41455
  3  0.00055014
  4  1.62078
  5  0.0108475
  6  6.35157
  7  3.97715e-05
  8  40.1342
  9  41.0976
  10  1.97855e-06
  11  0.00336625
  12  2.36506
  13  1.51988
  14  7.35513e-07
  15  0.000719222
  16  0.0103335
  17  39.1644
  18  3.66122
  19  0.000134134
  20  2.09893
  21  0.00437697
  22  45.6841
  23  33.5788
  24  0.0129982
  25  0.147851
  26  0.176641
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.132e-07  3.366e-03  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  9.406e-01  1.766e-01  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.215e-01  1.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.367 55.042
Photon Flux Upper Limit: 5.33702896144e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00421542738079 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32053170/likelihoodResults_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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) = 6637.94347307
delta logL = -0.0192454421885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6637.92422764
delta logL = -1.29266481963e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6637.924     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      210 TOTAL
                     EDM=   .60E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.836        .42118E-03** at limit **
   2  Index         3.0073        1.2796        .13032E-04     .0000    
   3  Normalizat    .92147        1.2558       -.36901E-05   -.71371E-05
   4  Prefactor     .94059        1.2834        .35098E-05   -.25863E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.00726
  Normalizat = 0.921472
  Prefactor  = 0.940594
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6637.924     FROM HESSE     STATUS=FAILED         9 CALLS      219 TOTAL
                     EDM=   .60E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        19.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0222        2.0642        .13032E-04   -.40993    
   3  Normalizat    .92147        1.2558       -.36901E-05   -.95710    
   4  Prefactor     .94059        1.2834        .35098E-05   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.96172e-14
Minuit parameter uncertainties:
  1  6.91728e-06
  2  1.29684
  3  1.29951
  4  1.32879
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) = 6637.92422763
delta logL = 2.26100382861e-09

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  0.000e+00  6.917e-06  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  3.007e+00  1.297e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  9.406e-01  1.329e+00  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.215e-01  1.300e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.367 55.042

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/32053170/cmap_HighResolution_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2026-07-17 10:50:51.944857', job_id='32053170', GAL2='0.94', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1784310651.94', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.26e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='2185' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 17 10:50:52 PDT 2026

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

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

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

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

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

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

Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.132e-07  3.366e-03  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  9.406e-01  1.766e-01  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.215e-01  1.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.367 55.042
Photon Flux Upper Limit: 5.33702896144e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00421542738079 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32053245/likelihoodResults_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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) = 6637.94347307
delta logL = -0.0192454421885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6637.92422764
delta logL = -1.29266481963e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6637.924     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      210 TOTAL
                     EDM=   .60E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.836        .42118E-03** at limit **
   2  Index         3.0073        1.2796        .13032E-04     .0000    
   3  Normalizat    .92147        1.2558       -.36901E-05   -.71371E-05
   4  Prefactor     .94059        1.2834        .35098E-05   -.25863E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.00726
  Normalizat = 0.921472
  Prefactor  = 0.940594
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6637.924     FROM HESSE     STATUS=FAILED         9 CALLS      219 TOTAL
                     EDM=   .60E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        19.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0222        2.0642        .13032E-04   -.40993    
   3  Normalizat    .92147        1.2558       -.36901E-05   -.95710    
   4  Prefactor     .94059        1.2834        .35098E-05   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.96172e-14
Minuit parameter uncertainties:
  1  6.91728e-06
  2  1.29684
  3  1.29951
  4  1.32879
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) = 6637.92422763
delta logL = 2.26100382861e-09

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  0.000e+00  6.917e-06  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  3.007e+00  1.297e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  9.406e-01  1.329e+00  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.215e-01  1.300e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.367 55.042

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/32053245/cmap_HighResolution_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2026-07-17 10:51:17.037694', job_id='32053245', GAL2='0.94', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1784310677.04', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.26e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='2185' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 17 10:51:17 PDT 2026

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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin2185
RA = 204.367, Dec = 55.0418
tmin = 805680001, tmax = 805939201
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='32053841', job_status='RUN', time_executed='2026-07-17 10:48:25.531088', time_epoch_executed='1784310505.53' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='2185'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32053841

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32053841/ft1_4FGL_J1337.4+5502_daily_bin2185.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32053841/ft2_4FGL_J1337.4+5502_daily_bin2185.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32053841/ft1_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32053841/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin2185.fits ra=204.367 dec=55.0418 rad=12.0 tmin=805680001.0 tmax=805939201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.68
user 1.96
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32053841/ft2_4FGL_J1337.4+5502_daily_bin2185.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32053841/ft2_4FGL_J1337.4+5502_daily_bin2185.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/32053841/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin2185.fits evtable="EVENTS" outfile="/lscratch/kocevski/32053841/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 616

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32053841/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32053841/ft2_4FGL_J1337.4+5502_daily_bin2185.fits sctable="SC_DATA" outfile=/lscratch/kocevski/32053621/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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/32053621/ft2_4FGL_J1337.4+5502_daily_bin2185.fits
.....................!
real 7.97
user 7.29
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32053621/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits evtable="EVENTS" scfile=/lscratch/kocevski/32053621/ft2_4FGL_J1337.4+5502_daily_bin2185.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32053621/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32053621/expmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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/32053621/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits
.....................!
real 63.88
user 59.19
sys 3.72

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

Setting source of interest to:
4FGL J1337.4+5502 @ 204.367 55.0418

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32053621/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits scfile=/lscratch/kocevski/32053621/ft2_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32053621/cmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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=204.367 yref=55.0418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.88
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32053621/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits scfile=/lscratch/kocevski/32053621/ft2_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32053621/cmap_HighResolution_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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=204.367 yref=55.0418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.90
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32053621/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits evtable="EVENTS" scfile=/lscratch/kocevski/32053621/ft2_4FGL_J1337.4+5502_daily_bin2185.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32053621/Model_4FGL_J1337.4+5502_daily_bin2185.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 = 7418
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1337.4+5502_daily_bin2185
RA = 204.367, Dec = 55.0418
tmin = 805680001, tmax = 805939201
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='32053959', job_status='RUN', time_executed='2026-07-17 10:50:04.093878', time_epoch_executed='1784310604.09' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='2185'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32053959

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32053959/ft1_4FGL_J1337.4+5502_daily_bin2185.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32053959/ft2_4FGL_J1337.4+5502_daily_bin2185.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32053959/ft1_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32053959/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin2185.fits ra=204.367 dec=55.0418 rad=12.0 tmin=805680001.0 tmax=805939201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.62
user 1.99
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32053959/ft2_4FGL_J1337.4+5502_daily_bin2185.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32053959/ft2_4FGL_J1337.4+5502_daily_bin2185.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/32053959/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin2185.fits evtable="EVENTS" outfile="/lscratch/kocevski/32053959/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 616

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32053959/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32053959/ft2_4FGL_J1337.4+5502_daily_bin2185.fits sctable="SC_DATA" outfile=/lscratch/kocevski/32053841/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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/32053841/ft2_4FGL_J1337.4+5502_daily_bin2185.fits
.....................!
real 8.64
user 7.87
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32053841/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits evtable="EVENTS" scfile=/lscratch/kocevski/32053841/ft2_4FGL_J1337.4+5502_daily_bin2185.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32053841/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32053841/expmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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/32053841/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits
.....................!
real 68.78
user 63.95
sys 4.06

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

Setting source of interest to:
4FGL J1337.4+5502 @ 204.367 55.0418

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32053841/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits scfile=/lscratch/kocevski/32053841/ft2_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32053841/cmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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=204.367 yref=55.0418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.86
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32053841/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits scfile=/lscratch/kocevski/32053841/ft2_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32053841/cmap_HighResolution_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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=204.367 yref=55.0418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.79
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32053841/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits evtable="EVENTS" scfile=/lscratch/kocevski/32053841/ft2_4FGL_J1337.4+5502_daily_bin2185.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32053841/Model_4FGL_J1337.4+5502_daily_bin2185.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/32053621/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits.....................!
real 20.91
user 19.39
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32053621/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits', '/lscratch/kocevski/32053621/ft2_4FGL_J1337.4+5502_daily_bin2185.fits', expMap='/lscratch/kocevski/32053621/expmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits', expCube='/lscratch/kocevski/32053621/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32053621/Model_4FGL_J1337.4+5502_daily_bin2185.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1337.4+5502'

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  7.731e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32053621/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits
Spacecraft file(s): /lscratch/kocevski/32053621/ft2_4FGL_J1337.4+5502_daily_bin2185.fits
Exposure map: /lscratch/kocevski/32053621/expmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits
Exposure cube: /lscratch/kocevski/32053621/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32053621/Model_4FGL_J1337.4+5502_daily_bin2185.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) = 6638.01248925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1230       1.0000          .0000       .10000E+07
     2 'norm      '    2.2767       1.0000          .0000       .10000E+07
     3 'Prefactor '    .74731E-03   1.0000          .0000       .10000E+07
     4 'norm      '    2.9392       1.0000          .0000       .10000E+07
     5 'Prefactor '    .12109E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.2532       1.0000          .0000       .10000E+07
     7 'norm      '    .21787E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    34.112       1.0000          .0000       .10000E+07
     9 'Prefactor '    32.757       1.0000          .0000       .10000E+07
    10 'norm      '    .37581E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .51988E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0267       1.0000          .0000       .10000E+07
    13 'norm      '    2.8698       1.0000          .0000       .10000E+07
    14 'norm      '    .13090E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .22470E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .22762E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    26.853       1.0000          .0000       .10000E+07
    18 'Prefactor '    .41784       1.0000          .0000       .10000E+07
    19 'Prefactor '    .18129E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    2.6779       1.0000          .0000       .10000E+07
    21 'Prefactor '    .18812E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    26.369       1.0000          .0000       .10000E+07
    23 'Prefactor '    29.819       1.0000          .0000       .10000E+07
    24 'Prefactor '    .38055E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    .92257       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93973       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6637.924     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     2236 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1115        4.8796       -.56870E-07    .90786E-03
   2  norm          2.2793        1.4153        .75468E-07   -.18069E-02
   3  Prefactor     .69944E-08    10.776       -.60520E-07** at limit **
   4  norm          2.9402        1.6239        .32321E-07   -.86096E-03
   5  Prefactor     .61146E-06    43.500       -.10577E-05** at limit **
   6  Prefactor     5.1957        6.3388       -.29553E-06    .12321E-02
   7  norm          .11102E-09    3.2221        .10905E-06** at limit **
   8  Prefactor     33.866        7.3692       -.99444E-07    .23616E-01
   9  Prefactor     32.966        7.8684        .10652E-06   -.12686E-01
  10  norm           .0000        .79968       -.78648E-07** at limit **
  11  Prefactor     .11319E-06    24.567        .62614E-06** at limit **
  12  Prefactor     1.0277        1.9355       -.20829E-06    .16446E-02
  13  norm          2.8678        1.4967       -.63625E-07    .21533E-02
  14  norm           .0000        .68533        .60779E-07** at limit **
  15  Prefactor     .13711E-07    9.4197       -.30761E-06** at limit **
  16  Prefactor     .22060E-05    7.7667        .14785E-06** at limit **
  17  Prefactor     28.767        28.286        .51321E-06    .62732E-01
  18  Prefactor     .38557        8.2164       -.75443E-06   -.52700E-04
  19  Prefactor     .22204E-09    21.820        .17581E-05** at limit **
  20  Prefactor     2.6717        2.0828       -.24679E-06    .23725E-02
  21  Prefactor     .16043E-06    28.239       -.33701E-06** at limit **
  22  Prefactor     25.705        34.946       -.50486E-06    .59527E-01
  23  Prefactor     29.690        1.9880       -.54197E-09    .71017E-02
  24  Prefactor     .33304E-05    6.0741        .29248E-06** at limit **
  25  Normalizat    .92147        .16985        .47294E-05    .59790E-04
  26  Prefactor     .94059        .20728       -.25902E-05    .39339E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.11152
  norm       = 2.27931
  Prefactor  = 6.99441e-09
  norm       = 2.94015
  Prefactor  = 6.11455e-07
  Prefactor  = 5.1957
  norm       = 1.11022e-10
  Prefactor  = 33.8659
  Prefactor  = 32.9658
  norm       = 0
  Prefactor  = 1.13187e-07
  Prefactor  = 1.02773
  norm       = 2.86781
  norm       = 0
  Prefactor  = 1.37113e-08
  Prefactor  = 2.20596e-06
  Prefactor  = 28.7674
  Prefactor  = 0.38557
  Prefactor  = 2.22045e-10
  Prefactor  = 2.6717
  Prefactor  = 1.60427e-07
  Prefactor  = 25.7052
  Prefactor  = 29.6899
  Prefactor  = 3.33039e-06
  Normalizat = 0.921472
  Prefactor  = 0.940594
 **********
 **   18 **HESSE 
 **********

 FCN=   6637.924     FROM HESSE     STATUS=OK           512 CALLS     2748 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1115        4.8878        .37562E-03   -1.5655    
   2  norm          2.2793        1.4146        .68025E-03   -1.5678    
   3  Prefactor     .69944E-08    10.781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9402        1.6208        .59219E-03   -1.5674    
   5  Prefactor     .61146E-06    48.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1957        6.3516        .43831E-03   -1.5662    
   7  norm          .11102E-09    3.1720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.866        40.134        .17124E-03   -1.5592    
   9  Prefactor     32.966        41.097        .17474E-03   -1.5593    
  10  norm           .0000        .80132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11319E-06    25.028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0277        2.3651        .35588E-02   -1.5688    
  13  norm          2.8678        1.5199        .59978E-03   -1.5674    
  14  norm           .0000        .68732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13711E-07    9.4474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22060E-05    12.101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.767        39.164        .19301E-03   -1.5601    
  18  Prefactor     .38557        8.6913        .87448E-03   -1.5696    
  19  Prefactor     .22204E-09    21.040        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6717        2.0989        .62244E-03   -1.5675    
  21  Prefactor     .16043E-06    29.854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.705        45.684        .19478E-03   -1.5607    
  23  Prefactor     29.690        33.579        .18316E-03   -1.5599    
  24  Prefactor     .33304E-05    12.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .92147        .14779        .45189E-01   -.95710    
  26  Prefactor     .94059        .17653        .45509E-01   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46787e-06
Minuit parameter uncertainties:
  1  4.88784
  2  1.41455
  3  0.00055014
  4  1.62078
  5  0.0108475
  6  6.35157
  7  3.97715e-05
  8  40.1342
  9  41.0976
  10  1.97855e-06
  11  0.00336625
  12  2.36506
  13  1.51988
  14  7.35513e-07
  15  0.000719222
  16  0.0103335
  17  39.1644
  18  3.66122
  19  0.000134134
  20  2.09893
  21  0.00437697
  22  45.6841
  23  33.5788
  24  0.0129982
  25  0.147851
  26  0.176641
number of points = 7418
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1337.4+5502_daily_bin2185
RA = 204.367, Dec = 55.0418
tmin = 805680001, tmax = 805939201
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='32054103', job_status='RUN', time_executed='2026-07-17 10:51:03.851461', time_epoch_executed='1784310663.85' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='2185'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32054103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32054103/ft1_4FGL_J1337.4+5502_daily_bin2185.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32054103/ft2_4FGL_J1337.4+5502_daily_bin2185.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32054103/ft1_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32054103/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin2185.fits ra=204.367 dec=55.0418 rad=12.0 tmin=805680001.0 tmax=805939201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.59
user 1.99
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32054103/ft2_4FGL_J1337.4+5502_daily_bin2185.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32054103/ft2_4FGL_J1337.4+5502_daily_bin2185.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/32054103/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin2185.fits evtable="EVENTS" outfile="/lscratch/kocevski/32054103/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 616

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32054103/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32054103/ft2_4FGL_J1337.4+5502_daily_bin2185.fits sctable="SC_DATA" ouDone.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.132e-07  3.366e-03  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  9.406e-01  1.766e-01  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.215e-01  1.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.367 55.042
Photon Flux Upper Limit: 5.33702896144e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00421542738079 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32053621/likelihoodResults_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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) = 6637.94347307
delta logL = -0.0192454421885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6637.92422764
delta logL = -1.29266481963e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6637.924     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      210 TOTAL
                     EDM=   .60E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.836        .42118E-03** at limit **
   2  Index         3.0073        1.2796        .13032E-04     .0000    
   3  Normalizat    .92147        1.2558       -.36901E-05   -.71371E-05
   4  Prefactor     .94059        1.2834        .35098E-05   -.25863E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.00726
  Normalizat = 0.921472
  Prefactor  = 0.940594
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6637.924     FROM HESSE     STATUS=FAILED         9 CALLS      219 TOTAL
                     EDM=   .60E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        19.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0222        2.0642        .13032E-04   -.40993    
   3  Normalizat    .92147        1.2558       -.36901E-05   -.95710    
   4  Prefactor     .94059        1.2834        .35098E-05   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.96172e-14
Minuit parameter uncertainties:
  1  6.91728e-06
  2  1.29684
  3  1.29951
  4  1.32879
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) = 6637.92422763
delta logL = 2.26100382861e-09

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  0.000e+00  6.917e-06  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  3.007e+00  1.297e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  9.406e-01  1.329e+00  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.215e-01  1.300e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.367 55.042

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/32053621/cmap_HighResolution_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2026-07-17 10:54:31.719038', job_id='32053621', GAL2='0.94', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1784310871.72', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.26e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='2185' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 17 10:54:32 PDT 2026

tfile=/lscratch/kocevski/32053959/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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/32053959/ft2_4FGL_J1337.4+5502_daily_bin2185.fits
.....................!
real 8.56
user 7.88
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32053959/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits evtable="EVENTS" scfile=/lscratch/kocevski/32053959/ft2_4FGL_J1337.4+5502_daily_bin2185.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32053959/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32053959/expmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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/32053959/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits
.....................!
real 69.60
user 64.72
sys 4.05

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

Setting source of interest to:
4FGL J1337.4+5502 @ 204.367 55.0418

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32053959/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits scfile=/lscratch/kocevski/32053959/ft2_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32053959/cmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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=204.367 yref=55.0418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.78
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32053959/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits scfile=/lscratch/kocevski/32053959/ft2_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32053959/cmap_HighResolution_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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=204.367 yref=55.0418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.94
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32053959/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits evtable="EVENTS" scfile=/lscratch/kocevski/32053959/ft2_4FGL_J1337.4+5502_daily_bin2185.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32053959/Model_4FGL_J1337.4+5502_daily_bin2185.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/32053841/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits.....................!
real 23.38
user 21.55
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32053841/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits', '/lscratch/kocevski/32053841/ft2_4FGL_J1337.4+5502_daily_bin2185.fits', expMap='/lscratch/kocevski/32053841/expmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits', expCube='/lscratch/kocevski/32053841/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32053841/Model_4FGL_J1337.4+5502_daily_bin2185.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1337.4+5502'

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  7.731e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32053841/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits
Spacecraft file(s): /lscratch/kocevski/32053841/ft2_4FGL_J1337.4+5502_daily_bin2185.fits
Exposure map: /lscratch/kocevski/32053841/expmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits
Exposure cube: /lscratch/kocevski/32053841/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32053841/Model_4FGL_J1337.4+5502_daily_bin2185.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) = 6638.01248925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1230       1.0000          .0000       .10000E+07
     2 'norm      '    2.2767       1.0000          .0000       .10000E+07
     3 'Prefactor '    .74731E-03   1.0000          .0000       .10000E+07
     4 'norm      '    2.9392       1.0000          .0000       .10000E+07
     5 'Prefactor '    .12109E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.2532       1.0000          .0000       .10000E+07
     7 'norm      '    .21787E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    34.112       1.0000          .0000       .10000E+07
     9 'Prefactor '    32.757       1.0000          .0000       .10000E+07
    10 'norm      '    .37581E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .51988E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0267       1.0000          .0000       .10000E+07
    13 'norm      '    2.8698       1.0000          .0000       .10000E+07
    14 'norm      '    .13090E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .22470E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .22762E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    26.853       1.0000          .0000       .10000E+07
    18 'Prefactor '    .41784       1.0000          .0000       .10000E+07
    19 'Prefactor '    .18129E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    2.6779       1.0000          .0000       .10000E+07
    21 'Prefactor '    .18812E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    26.369       1.0000          .0000       .10000E+07
    23 'Prefactor '    29.819       1.0000          .0000       .10000E+07
    24 'Prefactor '    .38055E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    .92257       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93973       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6637.924     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     2236 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1115        4.8796       -.56870E-07    .90786E-03
   2  norm          2.2793        1.4153        .75468E-07   -.18069E-02
   3  Prefactor     .69944E-08    10.776       -.60520E-07** at limit **
   4  norm          2.9402        1.6239        .32321E-07   -.86096E-03
   5  Prefactor     .61146E-06    43.500       -.10577E-05** at limit **
   6  Prefactor     5.1957        6.3388       -.29553E-06    .12321E-02
   7  norm          .11102E-09    3.2221        .10905E-06** at limit **
   8  Prefactor     33.866        7.3692       -.99444E-07    .23616E-01
   9  Prefactor     32.966        7.8684        .10652E-06   -.12686E-01
  10  norm           .0000        .79968       -.78648E-07** at limit **
  11  Prefactor     .11319E-06    24.567        .62614E-06** at limit **
  12  Prefactor     1.0277        1.9355       -.20829E-06    .16446E-02
  13  norm          2.8678        1.4967       -.63625E-07    .21533E-02
  14  norm           .0000        .68533        .60779E-07** at limit **
  15  Prefactor     .13711E-07    9.4197       -.30761E-06** at limit **
  16  Prefactor     .22060E-05    7.7667        .14785E-06** at limit **
  17  Prefactor     28.767        28.286        .51321E-06    .62732E-01
  18  Prefactor     .38557        8.2164       -.75443E-06   -.52700E-04
  19  Prefactor     .22204E-09    21.820        .17581E-05** at limit **
  20  Prefactor     2.6717        2.0828       -.24679E-06    .23725E-02
  21  Prefactor     .16043E-06    28.239       -.33701E-06** at limit **
  22  Prefactor     25.705        34.946       -.50486E-06    .59527E-01
  23  Prefactor     29.690        1.9880       -.54197E-09    .71017E-02
  24  Prefactor     .33304E-05    6.0741        .29248E-06** at limit **
  25  Normalizat    .92147        .16985        .47294E-05    .59790E-04
  26  Prefactor     .94059        .20728       -.25902E-05    .39339E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.11152
  norm       = 2.27931
  Prefactor  = 6.99441e-09
  norm       = 2.94015
  Prefactor  = 6.11455e-07
  Prefactor  = 5.1957
  norm       = 1.11022e-10
  Prefactor  = 33.8659
  Prefactor  = 32.9658
  norm       = 0
  Prefactor  = 1.13187e-07
  Prefactor  = 1.02773
  norm       = 2.86781
  norm       = 0
  Prefactor  = 1.37113e-08
  Prefactor  = 2.20596e-06
  Prefactor  = 28.7674
  Prefactor  = 0.38557
  Prefactor  = 2.22045e-10
  Prefactor  = 2.6717
  Prefactor  = 1.60427e-07
  Prefactor  = 25.7052
  Prefactor  = 29.6899
  Prefactor  = 3.33039e-06
  Normalizat = 0.921472
  Prefactor  = 0.940594
 **********
 **   18 **HESSE 
 **********

 FCN=   6637.924     FROM HESSE     STATUS=OK           512 CALLS     2748 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1115        4.8878        .37562E-03   -1.5655    
   2  norm          2.2793        1.4146        .68025E-03   -1.5678    
   3  Prefactor     .69944E-08    10.781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9402        1.6208        .59219E-03   -1.5674    
   5  Prefactor     .61146E-06    48.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1957        6.3516        .43831E-03   -1.5662    
   7  norm          .11102E-09    3.1720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.866        40.134        .17124E-03   -1.5592    
   9  Prefactor     32.966        41.097        .17474E-03   -1.5593    
  10  norm           .0000        .80132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11319E-06    25.028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0277        2.3651        .35588E-02   -1.5688    
  13  norm          2.8678        1.5199        .59978E-03   -1.5674    
  14  norm           .0000        .68732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13711E-07    9.4474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22060E-05    12.101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.767        39.164        .19301E-03   -1.5601    
  18  Prefactor     .38557        8.6913        .87448E-03   -1.5696    
  19  Prefactor     .22204E-09    21.040        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6717        2.0989        .62244E-03   -1.5675    
  21  Prefactor     .16043E-06    29.854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.705        45.684        .19478E-03   -1.5607    
  23  Prefactor     29.690        33.579        .18316E-03   -1.5599    
  24  Prefactor     .33304E-05    12.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .92147        .14779        .45189E-01   -.95710    
  26  Prefactor     .94059        .17653        .45509E-01   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46787e-06
Minuit parameter uncertainties:
  1  4.88784
  2  1.41455
  3  0.00055014
  4  1.62078
  5  0.0108475
  6  6.35157
  7  3.97715e-05
  8  40.1342
  9  41.0976
  10  1.97855e-06
  11  0.00336625
  12  2.36506
  13  1.51988
  14  7.35513e-07
  15  0.000719222
  16  0.0103335
  17  39.1644
  18  3.66122
  19  0.000134134
  20  2.09893
  21  0.00437697
  22  45.6841
  23  33.5788
  24  0.0129982
  25  0.147851
  26  0.176641
tfile=/lscratch/kocevski/32054103/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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/32054103/ft2_4FGL_J1337.4+5502_daily_bin2185.fits
.....................!
real 8.80
user 8.02
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32054103/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits evtable="EVENTS" scfile=/lscratch/kocevski/32054103/ft2_4FGL_J1337.4+5502_daily_bin2185.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32054103/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32054103/expmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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/32054103/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits
.....................!
real 70.75
user 65.75
sys 4.26

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

Setting source of interest to:
4FGL J1337.4+5502 @ 204.367 55.0418

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32054103/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits scfile=/lscratch/kocevski/32054103/ft2_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32054103/cmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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=204.367 yref=55.0418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.91
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32054103/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits scfile=/lscratch/kocevski/32054103/ft2_4FGL_J1337.4+5502_daily_bin2185.fits outfile=/lscratch/kocevski/32054103/cmap_HighResolution_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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=204.367 yref=55.0418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.97
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32054103/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits evtable="EVENTS" scfile=/lscratch/kocevski/32054103/ft2_4FGL_J1337.4+5502_daily_bin2185.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32054103/Model_4FGL_J1337.4+5502_daily_bin2185.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) = 6637.92422763

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.132e-07  3.366e-03  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  9.406e-01  1.766e-01  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.215e-01  1.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.367 55.042
Photon Flux Upper Limit: 5.33702896144e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00421542738079 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32053841/likelihoodResults_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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) = 6637.94347307
delta logL = -0.0192454421885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6637.92422764
delta logL = -1.29266481963e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6637.924     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      210 TOTAL
                     EDM=   .60E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.836        .42118E-03** at limit **
   2  Index         3.0073        1.2796        .13032E-04     .0000    
   3  Normalizat    .92147        1.2558       -.36901E-05   -.71371E-05
   4  Prefactor     .94059        1.2834        .35098E-05   -.25863E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.00726
  Normalizat = 0.921472
  Prefactor  = 0.940594
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6637.924     FROM HESSE     STATUS=FAILED         9 CALLS      219 TOTAL
                     EDM=   .60E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        19.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0222        2.0642        .13032E-04   -.40993    
   3  Normalizat    .92147        1.2558       -.36901E-05   -.95710    
   4  Prefactor     .94059        1.2834        .35098E-05   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.96172e-14
Minuit parameter uncertainties:
  1  6.91728e-06
  2  1.29684
  3  1.29951
  4  1.32879
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) = 6637.92422763
delta logL = 2.26100382861e-09

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  0.000e+00  6.917e-06  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  3.007e+00  1.297e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  9.406e-01  1.329e+00  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.215e-01  1.300e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.367 55.042

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/32053841/cmap_HighResolution_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2026-07-17 10:56:26.733484', job_id='32053841', GAL2='0.94', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1784310986.73', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.26e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='2185' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 17 10:56:27 PDT 2026

_V02
Working on...
/lscratch/kocevski/32053959/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits.....................!
real 22.63
user 21.13
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32053959/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits', '/lscratch/kocevski/32053959/ft2_4FGL_J1337.4+5502_daily_bin2185.fits', expMap='/lscratch/kocevski/32053959/expmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits', expCube='/lscratch/kocevski/32053959/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32053959/Model_4FGL_J1337.4+5502_daily_bin2185.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1337.4+5502'

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  7.731e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32053959/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits
Spacecraft file(s): /lscratch/kocevski/32053959/ft2_4FGL_J1337.4+5502_daily_bin2185.fits
Exposure map: /lscratch/kocevski/32053959/expmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits
Exposure cube: /lscratch/kocevski/32053959/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32053959/Model_4FGL_J1337.4+5502_daily_bin2185.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) = 6638.01248925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1230       1.0000          .0000       .10000E+07
     2 'norm      '    2.2767       1.0000          .0000       .10000E+07
     3 'Prefactor '    .74731E-03   1.0000          .0000       .10000E+07
     4 'norm      '    2.9392       1.0000          .0000       .10000E+07
     5 'Prefactor '    .12109E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.2532       1.0000          .0000       .10000E+07
     7 'norm      '    .21787E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    34.112       1.0000          .0000       .10000E+07
     9 'Prefactor '    32.757       1.0000          .0000       .10000E+07
    10 'norm      '    .37581E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .51988E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0267       1.0000          .0000       .10000E+07
    13 'norm      '    2.8698       1.0000          .0000       .10000E+07
    14 'norm      '    .13090E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .22470E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .22762E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    26.853       1.0000          .0000       .10000E+07
    18 'Prefactor '    .41784       1.0000          .0000       .10000E+07
    19 'Prefactor '    .18129E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    2.6779       1.0000          .0000       .10000E+07
    21 'Prefactor '    .18812E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    26.369       1.0000          .0000       .10000E+07
    23 'Prefactor '    29.819       1.0000          .0000       .10000E+07
    24 'Prefactor '    .38055E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    .92257       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93973       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6637.924     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     2236 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1115        4.8796       -.56870E-07    .90786E-03
   2  norm          2.2793        1.4153        .75468E-07   -.18069E-02
   3  Prefactor     .69944E-08    10.776       -.60520E-07** at limit **
   4  norm          2.9402        1.6239        .32321E-07   -.86096E-03
   5  Prefactor     .61146E-06    43.500       -.10577E-05** at limit **
   6  Prefactor     5.1957        6.3388       -.29553E-06    .12321E-02
   7  norm          .11102E-09    3.2221        .10905E-06** at limit **
   8  Prefactor     33.866        7.3692       -.99444E-07    .23616E-01
   9  Prefactor     32.966        7.8684        .10652E-06   -.12686E-01
  10  norm           .0000        .79968       -.78648E-07** at limit **
  11  Prefactor     .11319E-06    24.567        .62614E-06** at limit **
  12  Prefactor     1.0277        1.9355       -.20829E-06    .16446E-02
  13  norm          2.8678        1.4967       -.63625E-07    .21533E-02
  14  norm           .0000        .68533        .60779E-07** at limit **
  15  Prefactor     .13711E-07    9.4197       -.30761E-06** at limit **
  16  Prefactor     .22060E-05    7.7667        .14785E-06** at limit **
  17  Prefactor     28.767        28.286        .51321E-06    .62732E-01
  18  Prefactor     .38557        8.2164       -.75443E-06   -.52700E-04
  19  Prefactor     .22204E-09    21.820        .17581E-05** at limit **
  20  Prefactor     2.6717        2.0828       -.24679E-06    .23725E-02
  21  Prefactor     .16043E-06    28.239       -.33701E-06** at limit **
  22  Prefactor     25.705        34.946       -.50486E-06    .59527E-01
  23  Prefactor     29.690        1.9880       -.54197E-09    .71017E-02
  24  Prefactor     .33304E-05    6.0741        .29248E-06** at limit **
  25  Normalizat    .92147        .16985        .47294E-05    .59790E-04
  26  Prefactor     .94059        .20728       -.25902E-05    .39339E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.11152
  norm       = 2.27931
  Prefactor  = 6.99441e-09
  norm       = 2.94015
  Prefactor  = 6.11455e-07
  Prefactor  = 5.1957
  norm       = 1.11022e-10
  Prefactor  = 33.8659
  Prefactor  = 32.9658
  norm       = 0
  Prefactor  = 1.13187e-07
  Prefactor  = 1.02773
  norm       = 2.86781
  norm       = 0
  Prefactor  = 1.37113e-08
  Prefactor  = 2.20596e-06
  Prefactor  = 28.7674
  Prefactor  = 0.38557
  Prefactor  = 2.22045e-10
  Prefactor  = 2.6717
  Prefactor  = 1.60427e-07
  Prefactor  = 25.7052
  Prefactor  = 29.6899
  Prefactor  = 3.33039e-06
  Normalizat = 0.921472
  Prefactor  = 0.940594
 **********
 **   18 **HESSE 
 **********

 FCN=   6637.924     FROM HESSE     STATUS=OK           512 CALLS     2748 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1115        4.8878        .37562E-03   -1.5655    
   2  norm          2.2793        1.4146        .68025E-03   -1.5678    
   3  Prefactor     .69944E-08    10.781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9402        1.6208        .59219E-03   -1.5674    
   5  Prefactor     .61146E-06    48.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1957        6.3516        .43831E-03   -1.5662    
   7  norm          .11102E-09    3.1720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.866        40.134        .17124E-03   -1.5592    
   9  Prefactor     32.966        41.097        .17474E-03   -1.5593    
  10  norm           .0000        .80132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11319E-06    25.028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0277        2.3651        .35588E-02   -1.5688    
  13  norm          2.8678        1.5199        .59978E-03   -1.5674    
  14  norm           .0000        .68732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13711E-07    9.4474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22060E-05    12.101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.767        39.164        .19301E-03   -1.5601    
  18  Prefactor     .38557        8.6913        .87448E-03   -1.5696    
  19  Prefactor     .22204E-09    21.040        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6717        2.0989        .62244E-03   -1.5675    
  21  Prefactor     .16043E-06    29.854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.705        45.684        .19478E-03   -1.5607    
  23  Prefactor     29.690        33.579        .18316E-03   -1.5599    
  24  Prefactor     .33304E-05    12.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .92147        .14779        .45189E-01   -.95710    
  26  Prefactor     .94059        .17653        .45509E-01   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46787e-06
Minuit parameter uncertainties:
  1  4.88784
  2  1.41455
  3  0.00055014
  4  1.62078
  5  0.0108475
  6  6.35157
  7  3.97715e-05
  8  40.1342
  9  41.0976
  10  1.97855e-06
  11  0.00336625
  12  2.36506
  13  1.51988
  14  7.35513e-07
  15  0.000719222
  16  0.0103335
  17  39.1644
  18  3.66122
  19  0.000134134
  20  2.09893
  21  0.00437697
  22  45.6841
  23  33.5788
  24  0.0129982
  25  0.147851
  26  0.176641
_V02
Working on...
/lscratch/kocevski/32054103/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits.....................!
real 23.01
user 21.40
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32054103/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits', '/lscratch/kocevski/32054103/ft2_4FGL_J1337.4+5502_daily_bin2185.fits', expMap='/lscratch/kocevski/32054103/expmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits', expCube='/lscratch/kocevski/32054103/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32054103/Model_4FGL_J1337.4+5502_daily_bin2185.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1337.4+5502'

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  7.731e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32054103/ft1_filtered_4FGL_J1337.4+5502_daily_bin2185.fits
Spacecraft file(s): /lscratch/kocevski/32054103/ft2_4FGL_J1337.4+5502_daily_bin2185.fits
Exposure map: /lscratch/kocevski/32054103/expmap_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits
Exposure cube: /lscratch/kocevski/32054103/ltcube_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32054103/Model_4FGL_J1337.4+5502_daily_bin2185.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) = 6638.01248925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1230       1.0000          .0000       .10000E+07
     2 'norm      '    2.2767       1.0000          .0000       .10000E+07
     3 'Prefactor '    .74731E-03   1.0000          .0000       .10000E+07
     4 'norm      '    2.9392       1.0000          .0000       .10000E+07
     5 'Prefactor '    .12109E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.2532       1.0000          .0000       .10000E+07
     7 'norm      '    .21787E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    34.112       1.0000          .0000       .10000E+07
     9 'Prefactor '    32.757       1.0000          .0000       .10000E+07
    10 'norm      '    .37581E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .51988E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0267       1.0000          .0000       .10000E+07
    13 'norm      '    2.8698       1.0000          .0000       .10000E+07
    14 'norm      '    .13090E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .22470E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .22762E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    26.853       1.0000          .0000       .10000E+07
    18 'Prefactor '    .41784       1.0000          .0000       .10000E+07
    19 'Prefactor '    .18129E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    2.6779       1.0000          .0000       .10000E+07
    21 'Prefactor '    .18812E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    26.369       1.0000          .0000       .10000E+07
    23 'Prefactor '    29.819       1.0000          .0000       .10000E+07
    24 'Prefactor '    .38055E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    .92257       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93973       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.132e-07  3.366e-03  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  9.406e-01  1.766e-01  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.215e-01  1.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.367 55.042
Photon Flux Upper Limit: 5.33702896144e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00421542738079 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32053959/likelihoodResults_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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) = 6637.94347307
delta logL = -0.0192454421885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6637.92422764
delta logL = -1.29266481963e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6637.924     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      210 TOTAL
                     EDM=   .60E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.836        .42118E-03** at limit **
   2  Index         3.0073        1.2796        .13032E-04     .0000    
   3  Normalizat    .92147        1.2558       -.36901E-05   -.71371E-05
   4  Prefactor     .94059        1.2834        .35098E-05   -.25863E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.00726
  Normalizat = 0.921472
  Prefactor  = 0.940594
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6637.924     FROM HESSE     STATUS=FAILED         9 CALLS      219 TOTAL
                     EDM=   .60E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        19.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0222        2.0642        .13032E-04   -.40993    
   3  Normalizat    .92147        1.2558       -.36901E-05   -.95710    
   4  Prefactor     .94059        1.2834        .35098E-05   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.96172e-14
Minuit parameter uncertainties:
  1  6.91728e-06
  2  1.29684
  3  1.29951
  4  1.32879

 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6637.924     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     2236 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1115        4.8796       -.56870E-07    .90786E-03
   2  norm          2.2793        1.4153        .75468E-07   -.18069E-02
   3  Prefactor     .69944E-08    10.776       -.60520E-07** at limit **
   4  norm          2.9402        1.6239        .32321E-07   -.86096E-03
   5  Prefactor     .61146E-06    43.500       -.10577E-05** at limit **
   6  Prefactor     5.1957        6.3388       -.29553E-06    .12321E-02
   7  norm          .11102E-09    3.2221        .10905E-06** at limit **
   8  Prefactor     33.866        7.3692       -.99444E-07    .23616E-01
   9  Prefactor     32.966        7.8684        .10652E-06   -.12686E-01
  10  norm           .0000        .79968       -.78648E-07** at limit **
  11  Prefactor     .11319E-06    24.567        .62614E-06** at limit **
  12  Prefactor     1.0277        1.9355       -.20829E-06    .16446E-02
  13  norm          2.8678        1.4967       -.63625E-07    .21533E-02
  14  norm           .0000        .68533        .60779E-07** at limit **
  15  Prefactor     .13711E-07    9.4197       -.30761E-06** at limit **
  16  Prefactor     .22060E-05    7.7667        .14785E-06** at limit **
  17  Prefactor     28.767        28.286        .51321E-06    .62732E-01
  18  Prefactor     .38557        8.2164       -.75443E-06   -.52700E-04
  19  Prefactor     .22204E-09    21.820        .17581E-05** at limit **
  20  Prefactor     2.6717        2.0828       -.24679E-06    .23725E-02
  21  Prefactor     .16043E-06    28.239       -.33701E-06** at limit **
  22  Prefactor     25.705        34.946       -.50486E-06    .59527E-01
  23  Prefactor     29.690        1.9880       -.54197E-09    .71017E-02
  24  Prefactor     .33304E-05    6.0741        .29248E-06** at limit **
  25  Normalizat    .92147        .16985        .47294E-05    .59790E-04
  26  Prefactor     .94059        .20728       -.25902E-05    .39339E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.11152
  norm       = 2.27931
  Prefactor  = 6.99441e-09
  norm       = 2.94015
  Prefactor  = 6.11455e-07
  Prefactor  = 5.1957
  norm       = 1.11022e-10
  Prefactor  = 33.8659
  Prefactor  = 32.9658
  norm       = 0
  Prefactor  = 1.13187e-07
  Prefactor  = 1.02773
  norm       = 2.86781
  norm       = 0
  Prefactor  = 1.37113e-08
  Prefactor  = 2.20596e-06
  Prefactor  = 28.7674
  Prefactor  = 0.38557
  Prefactor  = 2.22045e-10
  Prefactor  = 2.6717
  Prefactor  = 1.60427e-07
  Prefactor  = 25.7052
  Prefactor  = 29.6899
  Prefactor  = 3.33039e-06
  Normalizat = 0.921472
  Prefactor  = 0.940594
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) = 6637.92422763
delta logL = 2.26100382861e-09

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  0.000e+00  6.917e-06  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  3.007e+00  1.297e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  9.406e-01  1.329e+00  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.215e-01  1.300e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.367 55.042

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/32053959/cmap_HighResolution_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2026-07-17 10:57:59.224034', job_id='32053959', GAL2='0.94', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1784311079.22', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.26e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='2185' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 17 10:57:59 PDT 2026

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

 FCN=   6637.924     FROM HESSE     STATUS=OK           512 CALLS     2748 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1115        4.8878        .37562E-03   -1.5655    
   2  norm          2.2793        1.4146        .68025E-03   -1.5678    
   3  Prefactor     .69944E-08    10.781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9402        1.6208        .59219E-03   -1.5674    
   5  Prefactor     .61146E-06    48.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1957        6.3516        .43831E-03   -1.5662    
   7  norm          .11102E-09    3.1720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.866        40.134        .17124E-03   -1.5592    
   9  Prefactor     32.966        41.097        .17474E-03   -1.5593    
  10  norm           .0000        .80132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11319E-06    25.028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0277        2.3651        .35588E-02   -1.5688    
  13  norm          2.8678        1.5199        .59978E-03   -1.5674    
  14  norm           .0000        .68732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13711E-07    9.4474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22060E-05    12.101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.767        39.164        .19301E-03   -1.5601    
  18  Prefactor     .38557        8.6913        .87448E-03   -1.5696    
  19  Prefactor     .22204E-09    21.040        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6717        2.0989        .62244E-03   -1.5675    
  21  Prefactor     .16043E-06    29.854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.705        45.684        .19478E-03   -1.5607    
  23  Prefactor     29.690        33.579        .18316E-03   -1.5599    
  24  Prefactor     .33304E-05    12.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .92147        .14779        .45189E-01   -.95710    
  26  Prefactor     .94059        .17653        .45509E-01   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46787e-06
Minuit parameter uncertainties:
  1  4.88784
  2  1.41455
  3  0.00055014
  4  1.62078
  5  0.0108475
  6  6.35157
  7  3.97715e-05
  8  40.1342
  9  41.0976
  10  1.97855e-06
  11  0.00336625
  12  2.36506
  13  1.51988
  14  7.35513e-07
  15  0.000719222
  16  0.0103335
  17  39.1644
  18  3.66122
  19  0.000134134
  20  2.09893
  21  0.00437697
  22  45.6841
  23  33.5788
  24  0.0129982
  25  0.147851
  26  0.176641
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.132e-07  3.366e-03  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  9.406e-01  1.766e-01  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.215e-01  1.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.367 55.042
Photon Flux Upper Limit: 5.33702896144e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00421542738079 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32054103/likelihoodResults_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.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) = 6637.94347307
delta logL = -0.0192454421885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6637.92422764
delta logL = -1.29266481963e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6637.924     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      210 TOTAL
                     EDM=   .60E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.836        .42118E-03** at limit **
   2  Index         3.0073        1.2796        .13032E-04     .0000    
   3  Normalizat    .92147        1.2558       -.36901E-05   -.71371E-05
   4  Prefactor     .94059        1.2834        .35098E-05   -.25863E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.00726
  Normalizat = 0.921472
  Prefactor  = 0.940594
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6637.924     FROM HESSE     STATUS=FAILED         9 CALLS      219 TOTAL
                     EDM=   .60E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        19.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0222        2.0642        .13032E-04   -.40993    
   3  Normalizat    .92147        1.2558       -.36901E-05   -.95710    
   4  Prefactor     .94059        1.2834        .35098E-05   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.96172e-14
Minuit parameter uncertainties:
  1  6.91728e-06
  2  1.29684
  3  1.29951
  4  1.32879
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) = 6637.92422763
delta logL = 2.26100382861e-09

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  0.000e+00  6.917e-06  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  3.007e+00  1.297e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  9.406e-01  1.329e+00  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.215e-01  1.300e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.367 55.042

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/32054103/cmap_HighResolution_805680001_805939201_4FGL_J1337.4+5502_daily_bin2185.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2026-07-17 10:58:58.443544', job_id='32054103', GAL2='0.94', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1784311138.44', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.26e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='2185' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 17 10:58:58 PDT 2026

