/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 = 7457
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1503.6-6427_daily_bin2102
RA = 225.91, Dec = -64.4517
tmin = 784166401, tmax = 784425601
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='15220967', job_status='RUN', time_executed='2025-11-10 00:55:41.470577', time_epoch_executed='1762764941.47' WHERE source_name='4FGL J1503.6-6427' and cadence='daily' and bin_id='2102'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/15220967

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/15220967/ft1_4FGL_J1503.6-6427_daily_bin2102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/15220967/ft2_4FGL_J1503.6-6427_daily_bin2102.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/15220967/ft1_4FGL_J1503.6-6427_daily_bin2102.fits outfile=/lscratch/kocevski/15220967/ft1_filteredMKT_4FGL_J1503.6-6427_daily_bin2102.fits ra=225.91 dec=-64.4517 rad=12.0 tmin=784166401.0 tmax=784425601.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.56
user 1.91
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/15220967/ft2_4FGL_J1503.6-6427_daily_bin2102.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/15220967/ft2_4FGL_J1503.6-6427_daily_bin2102.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/15220967/ft1_filteredMKT_4FGL_J1503.6-6427_daily_bin2102.fits evtable="EVENTS" outfile="/lscratch/kocevski/15220967/ft1_filtered_4FGL_J1503.6-6427_daily_bin2102.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.85
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 4431

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/15220967/ft1_filtered_4FGL_J1503.6-6427_daily_bin2102.fits" evtable="EVENTS" scfile=/lscratch/kocevski/15220967/ft2_4FGL_J1503.6-6427_daily_bin2102.fits sctable="SC_DATA" outfile=/lscratch/kocevski/15220967/ltcube_784166401_784425601_4FGL_J1503.6-6427_daily_bin2102.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/15220967/ft2_4FGL_J1503.6-6427_daily_bin2102.fits
.....................!
real 8.31
user 7.67
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/15220967/ft1_filtered_4FGL_J1503.6-6427_daily_bin2102.fits evtable="EVENTS" scfile=/lscratch/kocevski/15220967/ft2_4FGL_J1503.6-6427_daily_bin2102.fits sctable="SC_DATA" expcube=/lscratch/kocevski/15220967/ltcube_784166401_784425601_4FGL_J1503.6-6427_daily_bin2102.fits outfile=/lscratch/kocevski/15220967/expmap_784166401_784425601_4FGL_J1503.6-6427_daily_bin2102.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/15220967/ltcube_784166401_784425601_4FGL_J1503.6-6427_daily_bin2102.fits
.....................!
real 68.05
user 63.46
sys 4.00

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
Extended source RCW 86 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Added 380 point sources and 19 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1503.6-6427 @ 225.91 -64.4517

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/15220967/ft1_filtered_4FGL_J1503.6-6427_daily_bin2102.fits scfile=/lscratch/kocevski/15220967/ft2_4FGL_J1503.6-6427_daily_bin2102.fits outfile=/lscratch/kocevski/15220967/cmap_784166401_784425601_4FGL_J1503.6-6427_daily_bin2102.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.91 yref=-64.4517 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.77
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/15220967/ft1_filtered_4FGL_J1503.6-6427_daily_bin2102.fits scfile=/lscratch/kocevski/15220967/ft2_4FGL_J1503.6-6427_daily_bin2102.fits outfile=/lscratch/kocevski/15220967/cmap_HighResolution_784166401_784425601_4FGL_J1503.6-6427_daily_bin2102.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.91 yref=-64.4517 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.83
user 0.21
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/15220967/ft1_filtered_4FGL_J1503.6-6427_daily_bin2102.fits evtable="EVENTS" scfile=/lscratch/kocevski/15220967/ft2_4FGL_J1503.6-6427_daily_bin2102.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/15220967/Model_4FGL_J1503.6-6427_daily_bin2102.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 FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RCW 86
Working on...
/lscratch/kocevski/15220967/ft1_filtered_4FGL_J1503.6-6427_daily_bin2102.fits.....................!
real 794.59
user 789.79
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/15220967/ft1_filtered_4FGL_J1503.6-6427_daily_bin2102.fits', '/lscratch/kocevski/15220967/ft2_4FGL_J1503.6-6427_daily_bin2102.fits', expMap='/lscratch/kocevski/15220967/expmap_784166401_784425601_4FGL_J1503.6-6427_daily_bin2102.fits', expCube='/lscratch/kocevski/15220967/ltcube_784166401_784425601_4FGL_J1503.6-6427_daily_bin2102.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/15220967/Model_4FGL_J1503.6-6427_daily_bin2102.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1503.6-6427'

4FGL J1503.6-6427
   Spectrum: PowerLaw
675    Prefactor:  3.829e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
676        Index:  2.489e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
677        Scale:  1.371e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/15220967/ft1_filtered_4FGL_J1503.6-6427_daily_bin2102.fits
Spacecraft file(s): /lscratch/kocevski/15220967/ft2_4FGL_J1503.6-6427_daily_bin2102.fits
Exposure map: /lscratch/kocevski/15220967/expmap_784166401_784425601_4FGL_J1503.6-6427_daily_bin2102.fits
Exposure cube: /lscratch/kocevski/15220967/ltcube_784166401_784425601_4FGL_J1503.6-6427_daily_bin2102.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/15220967/Model_4FGL_J1503.6-6427_daily_bin2102.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) = 22788.3881021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97816E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .12768E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .12990E-07   1.0000          .0000       .10000E+07
     4 'norm      '    .64948E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     6 'norm      '    4.0920       1.0000          .0000       .10000E+07
     7 'norm      '    7.2599       1.0000          .0000       .10000E+07
     8 'norm      '    16.818       1.0000          .0000       .10000E+07
     9 'norm      '    3.9041       1.0000          .0000       .10000E+07
    10 'norm      '    8.8544       1.0000          .0000       .10000E+07
    11 'Prefactor '    23.822       1.0000          .0000       .10000E+07
    12 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    13 'Prefactor '    .71107E-01   1.0000          .0000       10.000    
    14 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1425E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22787.38     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      687 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    1.7687       -.11492E-06** at limit **
   2  norm           .0000        .75713        .32591E-07** at limit **
   3  Prefactor      .0000        .26768       -.33595E-07** at limit **
   4  norm           .0000        .40793       -.32274E-07** at limit **
   5  Prefactor      .0000        .79536        .22505E-07** at limit **
   6  norm          4.0995        2.0682        .11830E-06   -.90719E-02
   7  norm          7.3374        9.1222       -.54313E-07    .31358E-01
   8  norm          16.810        4.9869       -.16050E-06    .43219E-01
   9  norm          3.9030        3.0932       -.41762E-07    .48757E-03
  10  norm          8.8558        3.4287       -.14635E-06   -.11846    
  11  Prefactor     23.871        6.6900        .11557E-06   -.68952E-01
  12  Normalizat    .10000E-01    .60141E-02    .21327E-05** at limit **
  13  Prefactor     .71103E-01    .67936E-02    .50158E-09   -.85735E-04
  14  Prefactor     .10000E+07    126.62       -.43118E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 4.09945
  norm       = 7.3374
  norm       = 16.8105
  norm       = 3.90304
  norm       = 8.85579
  Prefactor  = 23.8707
  Normalizat = 0.01
  Prefactor  = 0.0711032
  Prefactor  = 1e+06
 **********
 **   18 **HESSE 
 **********

 FCN=   22787.38     FROM HESSE     STATUS=OK           190 CALLS      877 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    1.7704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .75714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        .26775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .40809        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .79544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0995        9.1717        .49814E-03   -1.5667    
   7  norm          7.3374        10.735        .37203E-03   -1.5654    
   8  norm          16.810        8.5159        .24395E-03   -1.5626    
   9  norm          3.9030        3.1071        .51038E-03   -1.5668    
  10  norm          8.8558        4.7635        .33660E-03   -1.5648    
  11  Prefactor     23.871        10.128        .20493E-03   -1.5610    
  12  Normalizat    .10000E-01    .59086E-02    .16374       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .71103E-01    .68739E-02    .33244E-01   -1.4020    
  14  Prefactor     .10000E+07    126.73        .10984E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88166e-08
Minuit parameter uncertainties:
  1  1.69656e-05
  2  3.15475e-06
  3  1.88368e-06
  4  2.24748e-06
  5  1.95601e-06
  6  9.17177
  7  10.7354
  8  8.51591
  9  3.10715
  10  4.76352
  11  10.1285
  12  5.63972e-08
  13  0.00687398
  14  0.00169144
Done.

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

Extracting fit parameters...

4FGL J1503.6-6427
   Spectrum: PowerLaw
675    Prefactor:  0.000e+00  1.956e-06  0.000e+00  1.000e+06 ( 1.000e-13)
676        Index:  2.489e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
677        Scale:  1.371e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1386    Prefactor:  7.110e-02  6.874e-03  0.000e+00  1.000e+01 ( 1.000e+00)
1387        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1388        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1355   Normalization:  1.000e-02  5.640e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 225.910 -64.452
Photon Flux Upper Limit: 2.15924978792e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00167821391208 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/15220967/likelihoodResults_784166401_784425601_4FGL_J1503.6-6427_daily_bin2102.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) = 22787.3883269
delta logL = -0.0104482495371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 22787.3778789
delta logL = -2.1625237423e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   22787.38     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      249 TOTAL
                     EDM=   .56E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6032        .42118E-03** at limit **
   2  Index         2.0797        1.5718        .16631E-05     .0000    
   3  Normalizat    .10000E-01    .25505        .24255E-05** at limit **
   4  Prefactor     .71103E-01    .27421       -.95622E-06    .20093E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.0797
  Normalizat = 0.01
  Prefactor  = 0.0711032
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   22787.38     FROM HESSE     STATUS=FAILED         9 CALLS      258 TOTAL
                     EDM=   .56E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .47003        1.8376        .16631E-05   -.62372    
   3  Normalizat    .10000E-01    .25505        .24255E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .71103E-01    .27421       -.95622E-06   -1.4020    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.57844e-12
Minuit parameter uncertainties:
  1  7.55112e-06
  2  1.61396
  3  1.02886e-07
  4  0.279327
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) = 22787.3778787
delta logL = 0.0

Extracting fit parameters...

4FGL J1503.6-6427
   Spectrum: PowerLaw
675    Prefactor:  0.000e+00  7.551e-06  0.000e+00  1.000e+06 ( 1.000e-13)
676        Index:  2.080e+00  1.614e+00  0.000e+00  1.000e+01 (-1.000e+00)
677        Scale:  1.371e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1386    Prefactor:  7.110e-02  2.793e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1387        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1388        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1355   Normalization:  1.000e-02  1.029e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 225.910 -64.452

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/15220967/cmap_HighResolution_784166401_784425601_4FGL_J1503.6-6427_daily_bin2102.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-03', job_status='DONE', photon_flux_upper_limit='2.16e-08', time_completed='2025-11-10 01:31:48.509416', job_id='15220967', GAL2='0.07', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1762767108.51', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.07', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='2102' AND source_name='4FGL J1503.6-6427' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Nov 10 01:31:48 PST 2025

