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

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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin2044
RA = 225.895, Dec = 47.9959
tmin = 769132801, tmax = 769392001
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='5101180', job_status='RUN', time_executed='2025-05-20 01:49:50.448418', time_epoch_executed='1747730990.45' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='2044'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/5101180

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/5101180/ft1_4FGL_J1503.5+4759_daily_bin2044.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/5101180/ft2_4FGL_J1503.5+4759_daily_bin2044.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/5101180/ft1_4FGL_J1503.5+4759_daily_bin2044.fits outfile=/lscratch/kocevski/5101180/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin2044.fits ra=225.895 dec=47.9959 rad=12.0 tmin=769132801.0 tmax=769392001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.57
user 3.06
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/5101180/ft2_4FGL_J1503.5+4759_daily_bin2044.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/5101180/ft2_4FGL_J1503.5+4759_daily_bin2044.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/5101180/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin2044.fits evtable="EVENTS" outfile="/lscratch/kocevski/5101180/ft1_filtered_4FGL_J1503.5+4759_daily_bin2044.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 588

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/5101180/ft1_filtered_4FGL_J1503.5+4759_daily_bin2044.fits" evtable="EVENTS" scfile=/lscratch/kocevski/5101180/ft2_4FGL_J1503.5+4759_daily_bin2044.fits sctable="SC_DATA" outfile=/lscratch/kocevski/5101180/ltcube_769132801_769392001_4FGL_J1503.5+4759_daily_bin2044.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/5101180/ft2_4FGL_J1503.5+4759_daily_bin2044.fits
.....................!
real 10.17
user 7.72
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/5101180/ft1_filtered_4FGL_J1503.5+4759_daily_bin2044.fits evtable="EVENTS" scfile=/lscratch/kocevski/5101180/ft2_4FGL_J1503.5+4759_daily_bin2044.fits sctable="SC_DATA" expcube=/lscratch/kocevski/5101180/ltcube_769132801_769392001_4FGL_J1503.5+4759_daily_bin2044.fits outfile=/lscratch/kocevski/5101180/expmap_769132801_769392001_4FGL_J1503.5+4759_daily_bin2044.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/5101180/ltcube_769132801_769392001_4FGL_J1503.5+4759_daily_bin2044.fits
.....................!
real 72.70
user 65.82
sys 3.91

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

Setting source of interest to:
4FGL J1503.5+4759 @ 225.895 47.9959

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/5101180/ft1_filtered_4FGL_J1503.5+4759_daily_bin2044.fits scfile=/lscratch/kocevski/5101180/ft2_4FGL_J1503.5+4759_daily_bin2044.fits outfile=/lscratch/kocevski/5101180/cmap_769132801_769392001_4FGL_J1503.5+4759_daily_bin2044.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=225.895 yref=47.9959 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 5.09
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/5101180/ft1_filtered_4FGL_J1503.5+4759_daily_bin2044.fits scfile=/lscratch/kocevski/5101180/ft2_4FGL_J1503.5+4759_daily_bin2044.fits outfile=/lscratch/kocevski/5101180/cmap_HighResolution_769132801_769392001_4FGL_J1503.5+4759_daily_bin2044.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=225.895 yref=47.9959 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.20
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/5101180/ft1_filtered_4FGL_J1503.5+4759_daily_bin2044.fits evtable="EVENTS" scfile=/lscratch/kocevski/5101180/ft2_4FGL_J1503.5+4759_daily_bin2044.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/5101180/Model_4FGL_J1503.5+4759_daily_bin2044.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/5101180/ft1_filtered_4FGL_J1503.5+4759_daily_bin2044.fits.....................!
real 22.78
user 20.28
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/5101180/ft1_filtered_4FGL_J1503.5+4759_daily_bin2044.fits', '/lscratch/kocevski/5101180/ft2_4FGL_J1503.5+4759_daily_bin2044.fits', expMap='/lscratch/kocevski/5101180/expmap_769132801_769392001_4FGL_J1503.5+4759_daily_bin2044.fits', expCube='/lscratch/kocevski/5101180/ltcube_769132801_769392001_4FGL_J1503.5+4759_daily_bin2044.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/5101180/Model_4FGL_J1503.5+4759_daily_bin2044.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1503.5+4759'

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  2.127e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/5101180/ft1_filtered_4FGL_J1503.5+4759_daily_bin2044.fits
Spacecraft file(s): /lscratch/kocevski/5101180/ft2_4FGL_J1503.5+4759_daily_bin2044.fits
Exposure map: /lscratch/kocevski/5101180/expmap_769132801_769392001_4FGL_J1503.5+4759_daily_bin2044.fits
Exposure cube: /lscratch/kocevski/5101180/ltcube_769132801_769392001_4FGL_J1503.5+4759_daily_bin2044.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/5101180/Model_4FGL_J1503.5+4759_daily_bin2044.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) = 6494.34161941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71875E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .57659E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .27637E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .73888E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .12165E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    11.995       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.9098       1.0000          .0000       .10000E+07
     8 'Prefactor '    52.223       1.0000          .0000       .10000E+07
     9 'Prefactor '    .58542E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .46906E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .77493E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .61001       1.0000          .0000       .10000E+07
    13 'Prefactor '    .55168E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    14.614       1.0000          .0000       .10000E+07
    15 'Prefactor '    .76361       1.0000          .0000       .10000E+07
    16 'norm      '    .11783E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    3.6630       1.0000          .0000       .10000E+07
    18 'norm      '    .58549       1.0000          .0000       .10000E+07
    19 'Prefactor '    .43334E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .94795E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    9.3360       1.0000          .0000       .10000E+07
    22 'Prefactor '    .12581E-02   1.0000          .0000       .10000E+07
    23 'norm      '    22.202       1.0000          .0000       .10000E+07
    24 'Prefactor '    .14453E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .20660E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    .18241E-02   1.0000          .0000       .10000E+07
    27 'Normalizat'    .64994       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.4053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6494.328     FROM MIGRAD    STATUS=CONVERGED    208 CALLS     2688 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    11.800        .14717E-05** at limit **
   2  Prefactor     .50238E-07    36.092       -.34525E-05** at limit **
   3  Prefactor     .96706E-06    4.5411        .35109E-06** at limit **
   4  Prefactor     .73830E-08    59.919        .46551E-05** at limit **
   5  Prefactor      .0000        1.3495        .17290E-06** at limit **
   6  Prefactor     11.997        1.3014       -.23997E-08   -.64442E-02
   7  Prefactor     7.9491        4.3458       -.48919E-06   -.89694E-02
   8  Prefactor     53.656        58.045        .27037E-05    .32592E-02
   9  Prefactor     .13878E-08    7.5849        .36909E-06** at limit **
  10  norm          .17736E-06    22.739        .27876E-05** at limit **
  11  Prefactor     .48295E-08    29.285       -.14891E-05** at limit **
  12  norm          .60965        1.1037       -.83421E-10   -.27382E-02
  13  Prefactor     .55511E-10    3.0191       -.35342E-06** at limit **
  14  Prefactor     14.617        3.3128        .49546E-07   -.12562E-01
  15  Prefactor     .76506        7.7937       -.52206E-07   -.85456E-03
  16  norm           .0000        .46363        .59876E-07** at limit **
  17  Prefactor     3.6429        5.7623       -.43655E-07    .50842E-02
  18  norm          .58548        2.4563       -.47244E-06   -.15126E-02
  19  Prefactor      .0000        2.4417       -.13330E-07** at limit **
  20  Prefactor     .76489E-04    144.76       -.93680E-05** at limit **
  21  Prefactor     9.3323        11.921        .27714E-05    .72409E-02
  22  Prefactor     .29421E-08    11.019       -.19848E-05** at limit **
  23  norm          22.189        1.1804        .30010E-07    .26498E-02
  24  Prefactor     .99920E-09    8.6036        .90217E-06** at limit **
  25  Prefactor     .27756E-09    4.6976        .36979E-06** at limit **
  26  Prefactor     .36915E-07    17.161       -.25257E-05** at limit **
  27  Normalizat    .64930        .18858       -.11512E-04    .24803E-04
  28  Prefactor     1.4056        .21537        .60989E-05    .53528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 5.02376e-08
  Prefactor  = 9.6706e-07
  Prefactor  = 7.38298e-09
  Prefactor  = 0
  Prefactor  = 11.9973
  Prefactor  = 7.94907
  Prefactor  = 53.656
  Prefactor  = 1.38778e-09
  norm       = 1.77358e-07
  Prefactor  = 4.82947e-09
  norm       = 0.609652
  Prefactor  = 5.55112e-11
  Prefactor  = 14.6166
  Prefactor  = 0.765065
  norm       = 0
  Prefactor  = 3.6429
  norm       = 0.585477
  Prefactor  = 0
  Prefactor  = 7.64892e-05
  Prefactor  = 9.33233
  Prefactor  = 2.94209e-09
  norm       = 22.189
  Prefactor  = 9.99201e-10
  Prefactor  = 2.77556e-10
  Prefactor  = 3.69149e-08
  Normalizat = 0.649297
  Prefactor  = 1.40559
 **********
 **   18 **HESSE 
 **********

 FCN=   6494.328     FROM HESSE     STATUS=OK           589 CALLS     3277 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    11.841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .50238E-07    36.705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .96706E-06    3.6051        .54344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .73830E-08    59.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.3322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.997        14.556        .28899E-03   -1.5639    
   7  Prefactor     7.9491        21.556        .35628E-03   -1.5652    
   8  Prefactor     53.656        60.810        .13839E-03   -1.5561    
   9  Prefactor     .13878E-08    7.6161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .17736E-06    24.993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .48295E-08    28.316        .14578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .60965        1.1268        .68336E-03   -1.5692    
  13  Prefactor     .55511E-10    3.0226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.617        13.146        .26174E-03   -1.5631    
  15  Prefactor     .76506        7.8222        .55688E-03   -1.5690    
  16  norm           .0000        .46200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6429        8.5986        .52753E-03   -1.5670    
  18  norm          .58548        2.4790        .70538E-03   -1.5693    
  19  Prefactor      .0000        2.4415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .76489E-04    48.393        .19342E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.3323        11.989        .32775E-03   -1.5647    
  22  Prefactor     .29421E-08    11.125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          22.189        19.476        .21229E-03   -1.5614    
  24  Prefactor     .99920E-09    8.6130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .27756E-09    4.7214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .36915E-07    18.014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .64930        .16073        .61016E-01   -1.0593    
  28  Prefactor     1.4056        .17896        .50039E-01   -.80219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78375e-07
Minuit parameter uncertainties:
  1  9.43388e-05
  2  0.00271568
  3  0.00373434
  4  0.00132826
  5  1.06565e-06
  6  14.5558
  7  21.5559
  8  60.8103
  9  0.000204185
  10  0.00421087
  11  0.000738025
  12  1.12684
  13  2.44795e-05
  14  13.1464
  15  4.89264
  16  2.72669e-07
  17  8.59864
  18  2.4095
  19  8.74336e-06
  20  0.121681
  21  11.9886
  22  0.000360282
  23  19.4756
  24  0.00018788
  25  7.37485e-05
  26  0.00163092
  27  0.160851
  28  0.179036
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  7.651e-01  4.893e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.406e+00  1.790e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  6.493e-01  1.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 225.895 47.996
Photon Flux Upper Limit: 6.36652259828e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00485813960711 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/5101180/likelihoodResults_769132801_769392001_4FGL_J1503.5+4759_daily_bin2044.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6494.18999177
delta logL = 0.138185667021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6494.16673387
delta logL = 0.161443566028

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6494.167     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      244 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36890        13.188        .93061E-03    .20414E-01
   2  Index         3.3373        3.0872        .12256        .15384E-03
   3  Normalizat    .62818        .27813E-01    .61964E-01    .21943E-04
   4  Prefactor     1.4171        .32360E-01    .49859E-01   -.87602E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.368901
  Index      = 3.33727
  Normalizat = 0.628176
  Prefactor  = 1.41712
 **********
 **   18 **HESSE 
 **********

 FCN=   6494.167     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36890        53.905        .81730E-05   -1.5696    
   2  Index         3.3373        5.7330        .80316E-02   -.33900    
   3  Normalizat    .62818        .15031        .27414E-03   -1.0680    
   4  Prefactor     1.4171        .17230        .22041E-03   -.79888    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.67184e-09
Minuit parameter uncertainties:
  1  8.9187
  2  10.0274
  3  0.150405
  4  0.172371
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) = 6494.16672848
delta logL = 0.161448954836

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  3.689e-01  8.919e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  3.337e+00  1.003e+01  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.417e+00  1.724e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  6.282e-01  1.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 225.895 47.996

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/5101180/cmap_HighResolution_769132801_769392001_4FGL_J1503.5+4759_daily_bin2044.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.37e-08', time_completed='2025-05-20 02:01:13.301532', job_id='5101180', GAL2='1.42', fit_tolerance='1e-08', EG2='0.63', EG='0.65', time_epoch_completed='1747731673.3', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='1.61e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='2044' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May 20 02:01:14 PDT 2025

