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

 FCN=   5870.376     FROM HESSE     STATUS=OK           552 CALLS     3158 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60213E-06    271.76        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0188        2.8824        .12676E-02   -1.5688    
   3  Prefactor     74.004        45.811        .11707E-03   -1.5536    
   4  Prefactor     .55511E-10    109.87        .10526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .19914        3.5895        .76907E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     85.853        80.766        .10772E-03   -1.5523    
   7  norm          14.432        4.4682        .26337E-03   -1.5632    
   8  norm          6.3607        5.0180        .39741E-03   -1.5658    
   9  Prefactor      .0000        24.369        .16747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3961        3.0771        .92916E-03   -1.5684    
  11  Prefactor      .0000        28.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.8347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .56882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .57779E-02    66.648        .97592E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.318        7.1515        .29762E-03   -1.5641    
  16  Prefactor      .0000        6.2740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4134        34.577        .43212E-03   -1.5661    
  18  Prefactor     36.921        25.266        .16499E-03   -1.5586    
  19  norm          .50182E-07    113.02        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .37637E-07    1752.3        .47648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        10.988        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        64.562        .14473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.6892        4.7367        .38851E-03   -1.5656    
  24  Prefactor      .0000        64.644        .14369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .16653E-09    112.32        .10460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .78399        .45408        .14286       -1.0067    
  27  Prefactor     1.0616        .11136        .39261E-01   -.90704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13746e-07
Minuit parameter uncertainties:
  1  0.0255856
  2  2.88245
  3  45.8108
  4  0.000115905
  5  1.69094
  6  80.7673
  7  4.46818
  8  5.01797
  9  2.51427e-06
  10  3.07706
  11  4.78619e-05
  12  6.76268e-06
  13  3.83712e-07
  14  1.24112
  15  7.15146
  16  1.45906e-07
  17  27.3631
  18  25.2659
  19  0.00476397
  20  0.0162513
  21  2.69055e-06
  22  4.41974e-05
  23  4.73669
  24  2.74883e-05
  25  0.000284976
  26  0.456295
  27  0.111381
/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) = 5870.37569437

Extracting fit parameters...

4FGL J0502.4+0609
   Spectrum: PowerLaw
175    Prefactor:  0.000e+00  4.786e-05  0.000e+00  1.000e+06 ( 1.000e-13)
176        Index:  2.650e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
177        Scale:  9.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
470    Prefactor:  1.062e+00  1.114e-01  0.000e+00  1.000e+01 ( 1.000e+00)
471        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
472        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
469   Normalization:  7.840e-01  4.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 75.618 6.163
Photon Flux Upper Limit: 1.92320222779e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0150963614316 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31093416/likelihoodResults_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.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) = 5870.39258906
delta logL = -0.016894686587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5870.37569456
delta logL = -1.84971213457e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92654E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .91403       1.0000          .0000       10.000    
     3 'Normalizat'    .78404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0615       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5870.376     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      232 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46629E-08    .20087        .42118E-03** at limit **
   2  Index         3.8793        7.8948        .45184        .10568E-08
   3  Normalizat    .78400        .12195E-02    .14286        .33704E-03
   4  Prefactor     1.0616        .36590E-03    .39277E-01    .55186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.66294e-09
  Index      = 3.87935
  Normalizat = 0.784002
  Prefactor  = 1.06157
 **********
 **   18 **HESSE 
 **********

 FCN=   5870.376     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      263 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46629E-08    .93260        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.8793        6.1827        .50000       -.22605    
   3  Normalizat    .78400        .25958E-02    .63460E-03   -1.0066    
   4  Prefactor     1.0616        .78313E-03    .16509E-03   -.90704    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67341e-11
Minuit parameter uncertainties:
  1  0.000132133
  2  2880.63
  3  0.00259582
  4  0.000783127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5870.37569437
delta logL = -5.70253178012e-10

Extracting fit parameters...

4FGL J0502.4+0609
   Spectrum: PowerLaw
175    Prefactor:  4.663e-09  1.321e-04  0.000e+00  1.000e+06 ( 1.000e-13)
176        Index:  3.879e+00  2.881e+03  0.000e+00  1.000e+01 (-1.000e+00)
177        Scale:  9.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
470    Prefactor:  1.062e+00  7.831e-04  0.000e+00  1.000e+01 ( 1.000e+00)
471        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
472        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
469   Normalization:  7.840e-01  2.596e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 75.618 6.163

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/31093416/cmap_HighResolution_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', job_status='DONE', photon_flux_upper_limit='1.92e-07', time_completed='2026-07-09 00:53:39.202262', job_id='31093416', GAL2='1.06', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1783583619.2', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-5.70e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='2175' AND source_name='4FGL J0502.4+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jul  9 00:53:39 PDT 2026

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


Performing analysis on: 4FGL_J0502.4+0609_daily_bin2175
RA = 75.6181, Dec = 6.1627
tmin = 803088001, tmax = 803347201
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='31094340', job_status='RUN', time_executed='2026-07-09 00:53:16.491317', time_epoch_executed='1783583596.49' WHERE source_name='4FGL J0502.4+0609' and cadence='daily' and bin_id='2175'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31094340

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31094340/ft1_4FGL_J0502.4+0609_daily_bin2175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31094340/ft2_4FGL_J0502.4+0609_daily_bin2175.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31094340/ft1_4FGL_J0502.4+0609_daily_bin2175.fits outfile=/lscratch/kocevski/31094340/ft1_filteredMKT_4FGL_J0502.4+0609_daily_bin2175.fits ra=75.6181 dec=6.1627 rad=12.0 tmin=803088001.0 tmax=803347201.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.34
user 1.65
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31094340/ft2_4FGL_J0502.4+0609_daily_bin2175.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31094340/ft2_4FGL_J0502.4+0609_daily_bin2175.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/31094340/ft1_filteredMKT_4FGL_J0502.4+0609_daily_bin2175.fits evtable="EVENTS" outfile="/lscratch/kocevski/31094340/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.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.70
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 513

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31094340/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31094340/ft2_4FGL_J0502.4+0609_daily_bin2175.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31094267/ltcube_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.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/31094267/ft2_4FGL_J0502.4+0609_daily_bin2175.fits
.....................!
real 9.19
user 8.75
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31094267/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits evtable="EVENTS" scfile=/lscratch/kocevski/31094267/ft2_4FGL_J0502.4+0609_daily_bin2175.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31094267/ltcube_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.fits outfile=/lscratch/kocevski/31094267/expmap_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.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/31094267/ltcube_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.fits
.....................!
real 60.62
user 56.61
sys 3.42

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

Setting source of interest to:
4FGL J0502.4+0609 @ 75.6181 6.1627

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31094267/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits scfile=/lscratch/kocevski/31094267/ft2_4FGL_J0502.4+0609_daily_bin2175.fits outfile=/lscratch/kocevski/31094267/cmap_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.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=75.6181 yref=6.1627 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.68
user 0.18
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31094267/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits scfile=/lscratch/kocevski/31094267/ft2_4FGL_J0502.4+0609_daily_bin2175.fits outfile=/lscratch/kocevski/31094267/cmap_HighResolution_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.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=75.6181 yref=6.1627 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.71
user 0.20
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31094267/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits evtable="EVENTS" scfile=/lscratch/kocevski/31094267/ft2_4FGL_J0502.4+0609_daily_bin2175.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31094267/Model_4FGL_J0502.4+0609_daily_bin2175.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/31094267/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits.....................!
real 38.55
user 37.09
sys 0.77

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31094267/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits', '/lscratch/kocevski/31094267/ft2_4FGL_J0502.4+0609_daily_bin2175.fits', expMap='/lscratch/kocevski/31094267/expmap_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.fits', expCube='/lscratch/kocevski/31094267/ltcube_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31094267/Model_4FGL_J0502.4+0609_daily_bin2175.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0502.4+0609'

4FGL J0502.4+0609
   Spectrum: PowerLaw
175    Prefactor:  7.487e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
176        Index:  2.650e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
177        Scale:  9.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31094267/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits
Spacecraft file(s): /lscratch/kocevski/31094267/ft2_4FGL_J0502.4+0609_daily_bin2175.fits
Exposure map: /lscratch/kocevski/31094267/expmap_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.fits
Exposure cube: /lscratch/kocevski/31094267/ltcube_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31094267/Model_4FGL_J0502.4+0609_daily_bin2175.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) = 5870.3837866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17282E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0240       1.0000          .0000       .10000E+07
     3 'Prefactor '    72.973       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27797       1.0000          .0000       .10000E+07
     5 'norm      '    .30686       1.0000          .0000       .10000E+07
     6 'Prefactor '    86.195       1.0000          .0000       .10000E+07
     7 'norm      '    14.434       1.0000          .0000       .10000E+07
     8 'norm      '    6.3713       1.0000          .0000       .10000E+07
     9 'Prefactor '    .24665E-01   1.0000          .0000       .10000E+07
    10 'norm      '    1.3741       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11951E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .51865E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
    14 'Prefactor '    .81239       1.0000          .0000       .10000E+07
    15 'norm      '    11.312       1.0000          .0000       .10000E+07
    16 'Prefactor '    .20026E-02   1.0000          .0000       .10000E+07
    17 'norm      '    5.4021       1.0000          .0000       .10000E+07
    18 'Prefactor '    36.743       1.0000          .0000       .10000E+07
    19 'norm      '    .25873E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .87295       1.0000          .0000       .10000E+07
    21 'Prefactor '    .23919E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .80930E-01   1.0000          .0000       .10000E+07
    23 'norm      '    6.6628       1.0000          .0000       .10000E+07
    24 'Prefactor '    .84394E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    .28255       1.0000          .0000       .10000E+07
    26 'Normalizat'    .78233       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0619       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5870.376     FROM MIGRAD    STATUS=CONVERGED    269 CALLS     2606 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60213E-06    273.02       -.15895E-05** at limit **
   2  Prefactor     1.0188        2.8074       -.86936E-08    .39996E-03
   3  Prefactor     74.004        46.516        .17115E-06   -.68219E-02
   4  Prefactor     .55511E-10    109.93       -.11375E-05** at limit **
   5  norm          .19914        49.809       -.59577E-06** at limit **
   6  Prefactor     85.853        10.267       -.12215E-06   -.73254E-01
   7  norm          14.432        4.4422       -.87171E-07    .96430E-03
   8  norm          6.3607        4.9790       -.17257E-06   -.16200E-03
   9  Prefactor      .0000        24.411       -.58416E-06** at limit **
  10  norm          1.3961        2.8507       -.22390E-06    .22702E-02
  11  Prefactor      .0000        28.444       -.56520E-06** at limit **
  12  Prefactor      .0000        6.8489       -.41238E-06** at limit **
  13  norm           .0000        .57966        .83044E-07** at limit **
  14  Prefactor     .57779E-02    651.28       -.67491E-05** at limit **
  15  norm          11.318        7.1318        .14700E-06   -.13714E-03
  16  Prefactor      .0000        6.2969        .11115E-06** at limit **
  17  norm          5.4134        34.506        .45085E-07   -.28279E-03
  18  Prefactor     36.921        25.117       -.12729E-06    .91419E-03
  19  norm          .50182E-07    112.71       -.70528E-06** at limit **
  20  Prefactor     .37637E-07    1646.9       -.10187E-04** at limit **
  21  Prefactor      .0000        11.033        .28796E-06** at limit **
  22  norm           .0000        65.015        .18212E-06** at limit **
  23  norm          6.6892        4.7288       -.18159E-07    .46011E-04
  24  Prefactor      .0000        64.659        .21926E-06** at limit **
  25  Prefactor     .16653E-09    111.82        .20969E-05** at limit **
  26  Normalizat    .78399        .43188        .18292E-05    .37060E-04
  27  Prefactor     1.0616        .11581        .14049E-05    .71389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.02129e-07
  Prefactor  = 1.01884
  Prefactor  = 74.0045
  Prefactor  = 5.55112e-11
  norm       = 0.199142
  Prefactor  = 85.8534
  norm       = 14.4324
  norm       = 6.36074
  Prefactor  = 0
  norm       = 1.39606
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0.00577794
  norm       = 11.3181
  Prefactor  = 0
  norm       = 5.41343
  Prefactor  = 36.9213
  norm       = 5.01821e-08
  Prefactor  = 3.76366e-08
  Prefactor  = 0
  norm       = 0
  norm       = 6.68917
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Normalizat = 0.783994
  Prefactor  = 1.06157
 **********
 **   18 **HESSE 
 **********

 FCN=   5870.376     FROM HESSE     STATUS=OK           552 CALLS     3158 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60213E-06    271.76        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0188        2.8824        .12676E-02   -1.5688    
   3  Prefactor     74.004        45.811        .11707E-03   -1.5536    
   4  Prefactor     .55511E-10    109.87        .10526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .19914        3.5895        .76907E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     85.853        80.766        .10772E-03   -1.5523    
   7  norm          14.432        4.4682        .26337E-03   -1.5632    
   8  norm          6.3607        5.0180        .39741E-03   -1.5658    
   9  Prefactor      .0000        24.369        .16747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3961        3.0771        .92916E-03   -1.5684    
  11  Prefactor      .0000        28.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.8347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .56882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .57779E-02    66.648        .97592E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.318        7.1515        .29762E-03   -1.5641    
  16  Prefactor      .0000        6.2740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4134        34.577        .43212E-03   -1.5661    
  18  Prefactor     36.921        25.266        .16499E-03   -1.5586    
  19  norm          .50182E-07    113.02        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .37637E-07    1752.3        .47648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        10.988        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        64.562        .14473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.6892        4.7367        .38851E-03   -1.5656    
  24  Prefactor      .0000        64.644        .14369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .16653E-09    112.32        .10460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .78399        .45408        .14286       -1.0067    
  27  Prefactor     1.0616        .11136        .39261E-01   -.90704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13746e-07
Minuit parameter uncertainties:
  1  0.0255856
  2  2.88245
  3  45.8108
  4  0.000115905
  5  1.69094
  6  80.7673
  7  4.46818
  8  5.01797
  9  2.51427e-06
  10  3.07706
  11  4.78619e-05
  12  6.76268e-06
  13  3.83712e-07
  14  1.24112
  15  7.15146
  16  1.45906e-07
  17  27.3631
  18  25.2659
  19  0.00476397
  20  0.0162513
  21  2.69055e-06
  22  4.41974e-05
  23  4.73669
  24  2.74883e-05
  25  0.000284976
  26  0.456295
  27  0.111381
Done.

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

Extracting fit parameters...

4FGL J0502.4+0609
   Spectrum: PowerLaw
175    Prefactor:  0.000e+00  4.786e-05  0.000e+00  1.000e+06 ( 1.000e-13)
176        Index:  2.650e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
177        Scale:  9.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
470    Prefactor:  1.062e+00  1.114e-01  0.000e+00  1.000e+01 ( 1.000e+00)
471        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
472        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
469   Normalization:  7.840e-01  4.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 75.618 6.163
Photon Flux Upper Limit: 1.92320222779e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0150963614316 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31094267/likelihoodResults_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.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) = 5870.39258906
delta logL = -0.016894686587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5870.37569456
delta logL = -1.84971213457e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92654E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .91403       1.0000          .0000       10.000    
     3 'Normalizat'    .78404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0615       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5870.376     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      232 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46629E-08    .20087        .42118E-03** at limit **
   2  Index         3.8793        7.8948        .45184        .10568E-08
   3  Normalizat    .78400        .12195E-02    .14286        .33704E-03
   4  Prefactor     1.0616        .36590E-03    .39277E-01    .55186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.66294e-09
  Index      = 3.87935
  Normalizat = 0.784002
  Prefactor  = 1.06157
 **********
 **   18 **HESSE 
 **********

 FCN=   5870.376     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      263 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46629E-08    .93260        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.8793        6.1827        .50000       -.22605    
   3  Normalizat    .78400        .25958E-02    .63460E-03   -1.0066    
   4  Prefactor     1.0616        .78313E-03    .16509E-03   -.90704    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67341e-11
Minuit parameter uncertainties:
  1  0.000132133
  2  2880.63
  3  0.00259582
  4  0.000783127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5870.37569437
delta logL = -5.70253178012e-10

Extracting fit parameters...

4FGL J0502.4+0609
   Spectrum: PowerLaw
175    Prefactor:  4.663e-09  1.321e-04  0.000e+00  1.000e+06 ( 1.000e-13)
176        Index:  3.879e+00  2.881e+03  0.000e+00  1.000e+01 (-1.000e+00)
177        Scale:  9.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
470    Prefactor:  1.062e+00  7.831e-04  0.000e+00  1.000e+01 ( 1.000e+00)
471        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
472        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
469   Normalization:  7.840e-01  2.596e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 75.618 6.163

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/31094267/cmap_HighResolution_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', job_status='DONE', photon_flux_upper_limit='1.92e-07', time_completed='2026-07-09 00:56:40.237968', job_id='31094267', GAL2='1.06', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1783583800.24', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-5.70e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='2175' AND source_name='4FGL J0502.4+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jul  9 00:56:40 PDT 2026

ile=/lscratch/kocevski/31094340/ltcube_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.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/31094340/ft2_4FGL_J0502.4+0609_daily_bin2175.fits
.....................!
real 11.31
user 10.24
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31094340/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits evtable="EVENTS" scfile=/lscratch/kocevski/31094340/ft2_4FGL_J0502.4+0609_daily_bin2175.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31094340/ltcube_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.fits outfile=/lscratch/kocevski/31094340/expmap_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.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/31094340/ltcube_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.fits
.....................!
real 75.78
user 70.66
sys 4.13

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

Setting source of interest to:
4FGL J0502.4+0609 @ 75.6181 6.1627

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31094340/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits scfile=/lscratch/kocevski/31094340/ft2_4FGL_J0502.4+0609_daily_bin2175.fits outfile=/lscratch/kocevski/31094340/cmap_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.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=75.6181 yref=6.1627 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.69
user 0.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31094340/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits scfile=/lscratch/kocevski/31094340/ft2_4FGL_J0502.4+0609_daily_bin2175.fits outfile=/lscratch/kocevski/31094340/cmap_HighResolution_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.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=75.6181 yref=6.1627 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.84
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31094340/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits evtable="EVENTS" scfile=/lscratch/kocevski/31094340/ft2_4FGL_J0502.4+0609_daily_bin2175.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31094340/Model_4FGL_J0502.4+0609_daily_bin2175.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/31094340/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits.....................!
real 48.75
user 46.12
sys 1.74

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31094340/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits', '/lscratch/kocevski/31094340/ft2_4FGL_J0502.4+0609_daily_bin2175.fits', expMap='/lscratch/kocevski/31094340/expmap_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.fits', expCube='/lscratch/kocevski/31094340/ltcube_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31094340/Model_4FGL_J0502.4+0609_daily_bin2175.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0502.4+0609'

4FGL J0502.4+0609
   Spectrum: PowerLaw
175    Prefactor:  7.487e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
176        Index:  2.650e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
177        Scale:  9.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31094340/ft1_filtered_4FGL_J0502.4+0609_daily_bin2175.fits
Spacecraft file(s): /lscratch/kocevski/31094340/ft2_4FGL_J0502.4+0609_daily_bin2175.fits
Exposure map: /lscratch/kocevski/31094340/expmap_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.fits
Exposure cube: /lscratch/kocevski/31094340/ltcube_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31094340/Model_4FGL_J0502.4+0609_daily_bin2175.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) = 5870.3837866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17282E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0240       1.0000          .0000       .10000E+07
     3 'Prefactor '    72.973       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27797       1.0000          .0000       .10000E+07
     5 'norm      '    .30686       1.0000          .0000       .10000E+07
     6 'Prefactor '    86.195       1.0000          .0000       .10000E+07
     7 'norm      '    14.434       1.0000          .0000       .10000E+07
     8 'norm      '    6.3713       1.0000          .0000       .10000E+07
     9 'Prefactor '    .24665E-01   1.0000          .0000       .10000E+07
    10 'norm      '    1.3741       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11951E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .51865E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
    14 'Prefactor '    .81239       1.0000          .0000       .10000E+07
    15 'norm      '    11.312       1.0000          .0000       .10000E+07
    16 'Prefactor '    .20026E-02   1.0000          .0000       .10000E+07
    17 'norm      '    5.4021       1.0000          .0000       .10000E+07
    18 'Prefactor '    36.743       1.0000          .0000       .10000E+07
    19 'norm      '    .25873E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .87295       1.0000          .0000       .10000E+07
    21 'Prefactor '    .23919E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .80930E-01   1.0000          .0000       .10000E+07
    23 'norm      '    6.6628       1.0000          .0000       .10000E+07
    24 'Prefactor '    .84394E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    .28255       1.0000          .0000       .10000E+07
    26 'Normalizat'    .78233       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0619       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5870.376     FROM MIGRAD    STATUS=CONVERGED    269 CALLS     2606 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60213E-06    273.02       -.15895E-05** at limit **
   2  Prefactor     1.0188        2.8074       -.86936E-08    .39996E-03
   3  Prefactor     74.004        46.516        .17115E-06   -.68219E-02
   4  Prefactor     .55511E-10    109.93       -.11375E-05** at limit **
   5  norm          .19914        49.809       -.59577E-06** at limit **
   6  Prefactor     85.853        10.267       -.12215E-06   -.73254E-01
   7  norm          14.432        4.4422       -.87171E-07    .96430E-03
   8  norm          6.3607        4.9790       -.17257E-06   -.16200E-03
   9  Prefactor      .0000        24.411       -.58416E-06** at limit **
  10  norm          1.3961        2.8507       -.22390E-06    .22702E-02
  11  Prefactor      .0000        28.444       -.56520E-06** at limit **
  12  Prefactor      .0000        6.8489       -.41238E-06** at limit **
  13  norm           .0000        .57966        .83044E-07** at limit **
  14  Prefactor     .57779E-02    651.28       -.67491E-05** at limit **
  15  norm          11.318        7.1318        .14700E-06   -.13714E-03
  16  Prefactor      .0000        6.2969        .11115E-06** at limit **
  17  norm          5.4134        34.506        .45085E-07   -.28279E-03
  18  Prefactor     36.921        25.117       -.12729E-06    .91419E-03
  19  norm          .50182E-07    112.71       -.70528E-06** at limit **
  20  Prefactor     .37637E-07    1646.9       -.10187E-04** at limit **
  21  Prefactor      .0000        11.033        .28796E-06** at limit **
  22  norm           .0000        65.015        .18212E-06** at limit **
  23  norm          6.6892        4.7288       -.18159E-07    .46011E-04
  24  Prefactor      .0000        64.659        .21926E-06** at limit **
  25  Prefactor     .16653E-09    111.82        .20969E-05** at limit **
  26  Normalizat    .78399        .43188        .18292E-05    .37060E-04
  27  Prefactor     1.0616        .11581        .14049E-05    .71389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.02129e-07
  Prefactor  = 1.01884
  Prefactor  = 74.0045
  Prefactor  = 5.55112e-11
  norm       = 0.199142
  Prefactor  = 85.8534
  norm       = 14.4324
  norm       = 6.36074
  Prefactor  = 0
  norm       = 1.39606
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0.00577794
  norm       = 11.3181
  Prefactor  = 0
  norm       = 5.41343
  Prefactor  = 36.9213
  norm       = 5.01821e-08
  Prefactor  = 3.76366e-08
  Prefactor  = 0
  norm       = 0
  norm       = 6.68917
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Normalizat = 0.783994
  Prefactor  = 1.06157
 **********
 **   18 **HESSE 
 **********

 FCN=   5870.376     FROM HESSE     STATUS=OK           552 CALLS     3158 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60213E-06    271.76        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0188        2.8824        .12676E-02   -1.5688    
   3  Prefactor     74.004        45.811        .11707E-03   -1.5536    
   4  Prefactor     .55511E-10    109.87        .10526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .19914        3.5895        .76907E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     85.853        80.766        .10772E-03   -1.5523    
   7  norm          14.432        4.4682        .26337E-03   -1.5632    
   8  norm          6.3607        5.0180        .39741E-03   -1.5658    
   9  Prefactor      .0000        24.369        .16747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3961        3.0771        .92916E-03   -1.5684    
  11  Prefactor      .0000        28.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.8347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .56882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .57779E-02    66.648        .97592E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.318        7.1515        .29762E-03   -1.5641    
  16  Prefactor      .0000        6.2740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4134        34.577        .43212E-03   -1.5661    
  18  Prefactor     36.921        25.266        .16499E-03   -1.5586    
  19  norm          .50182E-07    113.02        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .37637E-07    1752.3        .47648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        10.988        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        64.562        .14473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.6892        4.7367        .38851E-03   -1.5656    
  24  Prefactor      .0000        64.644        .14369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .16653E-09    112.32        .10460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .78399        .45408        .14286       -1.0067    
  27  Prefactor     1.0616        .11136        .39261E-01   -.90704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13746e-07
Minuit parameter uncertainties:
  1  0.0255856
  2  2.88245
  3  45.8108
  4  0.000115905
  5  1.69094
  6  80.7673
  7  4.46818
  8  5.01797
  9  2.51427e-06
  10  3.07706
  11  4.78619e-05
  12  6.76268e-06
  13  3.83712e-07
  14  1.24112
  15  7.15146
  16  1.45906e-07
  17  27.3631
  18  25.2659
  19  0.00476397
  20  0.0162513
  21  2.69055e-06
  22  4.41974e-05
  23  4.73669
  24  2.74883e-05
  25  0.000284976
  26  0.456295
  27  0.111381
Done.

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

Extracting fit parameters...

4FGL J0502.4+0609
   Spectrum: PowerLaw
175    Prefactor:  0.000e+00  4.786e-05  0.000e+00  1.000e+06 ( 1.000e-13)
176        Index:  2.650e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
177        Scale:  9.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
470    Prefactor:  1.062e+00  1.114e-01  0.000e+00  1.000e+01 ( 1.000e+00)
471        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
472        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
469   Normalization:  7.840e-01  4.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 75.618 6.163
Photon Flux Upper Limit: 1.92320222779e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0150963614316 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31094340/likelihoodResults_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.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) = 5870.39258906
delta logL = -0.016894686587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5870.37569456
delta logL = -1.84971213457e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92654E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .91403       1.0000          .0000       10.000    
     3 'Normalizat'    .78404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0615       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5870.376     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      232 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46629E-08    .20087        .42118E-03** at limit **
   2  Index         3.8793        7.8948        .45184        .10568E-08
   3  Normalizat    .78400        .12195E-02    .14286        .33704E-03
   4  Prefactor     1.0616        .36590E-03    .39277E-01    .55186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.66294e-09
  Index      = 3.87935
  Normalizat = 0.784002
  Prefactor  = 1.06157
 **********
 **   18 **HESSE 
 **********

 FCN=   5870.376     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      263 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46629E-08    .93260        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.8793        6.1827        .50000       -.22605    
   3  Normalizat    .78400        .25958E-02    .63460E-03   -1.0066    
   4  Prefactor     1.0616        .78313E-03    .16509E-03   -.90704    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67341e-11
Minuit parameter uncertainties:
  1  0.000132133
  2  2880.63
  3  0.00259582
  4  0.000783127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5870.37569437
delta logL = -5.70253178012e-10

Extracting fit parameters...

4FGL J0502.4+0609
   Spectrum: PowerLaw
175    Prefactor:  4.663e-09  1.321e-04  0.000e+00  1.000e+06 ( 1.000e-13)
176        Index:  3.879e+00  2.881e+03  0.000e+00  1.000e+01 (-1.000e+00)
177        Scale:  9.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
470    Prefactor:  1.062e+00  7.831e-04  0.000e+00  1.000e+01 ( 1.000e+00)
471        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
472        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
469   Normalization:  7.840e-01  2.596e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 75.618 6.163

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/31094340/cmap_HighResolution_803088001_803347201_4FGL_J0502.4+0609_daily_bin2175.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', job_status='DONE', photon_flux_upper_limit='1.92e-07', time_completed='2026-07-09 00:59:06.901140', job_id='31094340', GAL2='1.06', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1783583946.9', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-5.70e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='2175' AND source_name='4FGL J0502.4+0609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jul  9 00:59:07 PDT 2026

