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

 FCN=   7557.693     FROM HESSE     STATUS=OK           239 CALLS     1373 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4163        6.6499        .91054E-03   -1.5684    
   2  norm          5.2548        2.4970        .43823E-03   -1.5662    
   3  norm           .0000        1.4633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8471        4.3336        .51317E-03   -1.5669    
   5  Prefactor     10.466        13.726        .30968E-03   -1.5643    
   6  Prefactor     .17986E-07    118.10        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        6.4869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.1405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .32849        .19490        .62707E-03   -1.5697    
  10  norm           .0000        2.1243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .65059E-07    21.502        .20970E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .22204E-09    14.922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.354        39.411        .15723E-03   -1.5581    
  14  norm          2.6590        2.5419        .62488E-03   -1.5675    
  15  Normalizat    1.0914        .19732        .68575E-01   -.90027    
  16  Prefactor     .99081        .12435        .46150E-01   -.93037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43769e-08
Minuit parameter uncertainties:
  1  6.13781
  2  2.49699
  3  5.33042e-06
  4  4.33356
  5  13.7257
  6  0.00291309
  7  5.43135e-06
  8  1.29529e-05
  9  0.194902
  10  7.38292e-06
  11  0.00236597
  12  0.000112084
  13  39.4115
  14  2.54195
  15  0.197458
  16  0.124388
/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)
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  6.506e-08  2.366e-03  0.000e+00  1.000e+06 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.908e-01  1.244e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.091e+00  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.821 17.352
Photon Flux Upper Limit: 1.80529041738e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06066085202e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31497538/likelihoodResults_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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) = 7557.69504603
delta logL = -0.00207698766553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7557.46588786
delta logL = 0.227081185788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40250       1.0000          .0000       .10000E+07
     2 'alpha     '    4.1631       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7557.466     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40074        8.3501        .89198E-03    .20327E-01
   2  alpha         4.1647        3.9318        .50000        .66387E-04
   3  Normalizat    1.0635        .31196E-01    .69354E-01    .10784E-04
   4  Prefactor     .99468        .19861E-01    .46199E-01   -.11458E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.400736
  alpha      = 4.16471
  Normalizat = 1.06349
  Prefactor  = 0.994679
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.466     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40074        44.850        .81493E-05   -1.5695    
   2  alpha         4.1647        3.0784        .17326E-01    .72868    
   3  Normalizat    1.0635        .19730        .30686E-03   -.90933    
   4  Prefactor     .99468        .11783        .20095E-03   -.92907    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36417e-06
Minuit parameter uncertainties:
  1  8.47902
  2  7.60021
  3  0.197439
  4  0.117858
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) = 7557.46588748
delta logL = 0.227081562528

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  4.007e-01  8.479e+00  0.000e+00  1.000e+06 ( 1.000e-14)
220        alpha:  4.165e+00  7.600e+00  0.000e+00  5.000e+00 ( 1.000e+00)
221         beta:  2.414e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.947e-01  1.179e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.063e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.821 17.352

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/31497538/cmap_HighResolution_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-05', job_status='DONE', photon_flux_upper_limit='1.81e-08', time_completed='2026-07-12 20:45:12.838214', job_id='31497538', GAL2='0.99', fit_tolerance='1e-08', EG2='1.06', EG='1.09', time_epoch_completed='1783914312.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.27e-01', ts2='0.46', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='2177' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 20:45:13 PDT 2026


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

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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin2177
RA = 226.821, Dec = 17.3519
tmin = 803606401, tmax = 803865601
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='31497734', job_status='RUN', time_executed='2026-07-12 20:43:12.369418', time_epoch_executed='1783914192.37' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='2177'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31497734

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31497734/ft1_4FGL_J1507.2+1721_daily_bin2177.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31497734/ft2_4FGL_J1507.2+1721_daily_bin2177.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31497734/ft1_4FGL_J1507.2+1721_daily_bin2177.fits outfile=/lscratch/kocevski/31497734/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin2177.fits ra=226.821 dec=17.3519 rad=12.0 tmin=803606401.0 tmax=803865601.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.35
user 1.52
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31497734/ft2_4FGL_J1507.2+1721_daily_bin2177.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31497734/ft2_4FGL_J1507.2+1721_daily_bin2177.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/31497734/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin2177.fits evtable="EVENTS" outfile="/lscratch/kocevski/31497734/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.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.73
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 657

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31497734/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31497734/ft2_4FGL_J1507.2+1721_daily_bin2177.fits sctable="SC_DATA" oufile=/lscratch/kocevski/31497718/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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/31497718/ft2_4FGL_J1507.2+1721_daily_bin2177.fits
.....................!
real 8.42
user 7.64
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31497718/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits evtable="EVENTS" scfile=/lscratch/kocevski/31497718/ft2_4FGL_J1507.2+1721_daily_bin2177.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31497718/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits outfile=/lscratch/kocevski/31497718/expmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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/31497718/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits
.....................!
real 63.01
user 58.60
sys 3.61

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 144 point sources and 0 extended sources

Setting source of interest to:
4FGL J1507.2+1721 @ 226.821 17.3519

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31497718/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits scfile=/lscratch/kocevski/31497718/ft2_4FGL_J1507.2+1721_daily_bin2177.fits outfile=/lscratch/kocevski/31497718/cmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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=226.821 yref=17.3519 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.80
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31497718/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits scfile=/lscratch/kocevski/31497718/ft2_4FGL_J1507.2+1721_daily_bin2177.fits outfile=/lscratch/kocevski/31497718/cmap_HighResolution_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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=226.821 yref=17.3519 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.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31497718/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits evtable="EVENTS" scfile=/lscratch/kocevski/31497718/ft2_4FGL_J1507.2+1721_daily_bin2177.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31497718/Model_4FGL_J1507.2+1721_daily_bin2177.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_tfile=/lscratch/kocevski/31497719/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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/31497719/ft2_4FGL_J1507.2+1721_daily_bin2177.fits
.....................!
real 9.78
user 8.78
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31497719/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits evtable="EVENTS" scfile=/lscratch/kocevski/31497719/ft2_4FGL_J1507.2+1721_daily_bin2177.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31497719/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits outfile=/lscratch/kocevski/31497719/expmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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/31497719/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits
.....................!
real 75.48
user 70.27
sys 4.38

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

Setting source of interest to:
4FGL J1507.2+1721 @ 226.821 17.3519

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31497719/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits scfile=/lscratch/kocevski/31497719/ft2_4FGL_J1507.2+1721_daily_bin2177.fits outfile=/lscratch/kocevski/31497719/cmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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=226.821 yref=17.3519 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.95
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31497719/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits scfile=/lscratch/kocevski/31497719/ft2_4FGL_J1507.2+1721_daily_bin2177.fits outfile=/lscratch/kocevski/31497719/cmap_HighResolution_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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=226.821 yref=17.3519 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.98
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31497719/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits evtable="EVENTS" scfile=/lscratch/kocevski/31497719/ft2_4FGL_J1507.2+1721_daily_bin2177.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31497719/Model_4FGL_J1507.2+1721_daily_bin2177.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 GALV02
Working on...
/lscratch/kocevski/31497718/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits.....................!
real 21.30
user 19.64
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31497718/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits', '/lscratch/kocevski/31497718/ft2_4FGL_J1507.2+1721_daily_bin2177.fits', expMap='/lscratch/kocevski/31497718/expmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits', expCube='/lscratch/kocevski/31497718/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31497718/Model_4FGL_J1507.2+1721_daily_bin2177.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1507.2+1721'

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  3.297e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31497718/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits
Spacecraft file(s): /lscratch/kocevski/31497718/ft2_4FGL_J1507.2+1721_daily_bin2177.fits
Exposure map: /lscratch/kocevski/31497718/expmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits
Exposure cube: /lscratch/kocevski/31497718/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31497718/Model_4FGL_J1507.2+1721_daily_bin2177.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) = 7557.70093847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4134       1.0000          .0000       .10000E+07
     2 'norm      '    5.2551       1.0000          .0000       .10000E+07
     3 'norm      '    .10769E-07   1.0000          .0000       .10000E+07
     4 'norm      '    3.8631       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.451       1.0000          .0000       .10000E+07
     6 'Prefactor '    .60069E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .11510E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .74080E-06   1.0000          .0000       .10000E+07
     9 'norm      '    .32852       1.0000          .0000       .10000E+07
    10 'norm      '    .18746E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .98343E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .39605E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    40.460       1.0000          .0000       .10000E+07
    14 'norm      '    2.6586       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0915       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .99065       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7557.693     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1134 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4163        6.6359        .12204E-06    .21354E-02
   2  norm          5.2548        2.4943       -.73857E-07   -.38628E-03
   3  norm           .0000        1.4708        .40607E-06** at limit **
   4  norm          3.8471        4.3232        .18607E-05   -.22653E-02
   5  Prefactor     10.466        13.699       -.31910E-05    .39979E-02
   6  Prefactor     .17986E-07    119.21       -.19037E-05** at limit **
   7  Prefactor      .0000        6.4764        .38330E-06** at limit **
   8  Prefactor      .0000        3.1425       -.13760E-07** at limit **
   9  norm          .32849        .19024        .11291E-06    .49369E-01
  10  norm           .0000        2.1202       -.17641E-06** at limit **
  11  norm          .65059E-07    311.95       -.17006E-05** at limit **
  12  Prefactor     .22204E-09    14.838       -.41013E-05** at limit **
  13  Prefactor     40.354        1.8889       -.19323E-08   -.30127E-02
  14  norm          2.6590        2.5367       -.20298E-06    .27392E-03
  15  Normalizat    1.0914        .23677       -.17902E-04    .56622E-03
  16  Prefactor     .99081        .14996        .29117E-04    .67055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41629
  norm       = 5.25484
  norm       = 0
  norm       = 3.84707
  Prefactor  = 10.4659
  Prefactor  = 1.79856e-08
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.328492
  norm       = 0
  norm       = 6.50591e-08
  Prefactor  = 2.22045e-10
  Prefactor  = 40.3543
  norm       = 2.65905
  Normalizat = 1.09144
  Prefactor  = 0.990807
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.693     FROM HESSE     STATUS=OK           239 CALLS     1373 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4163        6.6499        .91054E-03   -1.5684    
   2  norm          5.2548        2.4970        .43823E-03   -1.5662    
   3  norm           .0000        1.4633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8471        4.3336        .51317E-03   -1.5669    
   5  Prefactor     10.466        13.726        .30968E-03   -1.5643    
   6  Prefactor     .17986E-07    118.10        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        6.4869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.1405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .32849        .19490        .62707E-03   -1.5697    
  10  norm           .0000        2.1243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .65059E-07    21.502        .20970E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .22204E-09    14.922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.354        39.411        .15723E-03   -1.5581    
  14  norm          2.6590        2.5419        .62488E-03   -1.5675    
  15  Normalizat    1.0914        .19732        .68575E-01   -.90027    
  16  Prefactor     .99081        .12435        .46150E-01   -.93037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43769e-08
Minuit parameter uncertainties:
  1  6.13781
  2  2.49699
  3  5.33042e-06
  4  4.33356
  5  13.7257
  6  0.00291309
  7  5.43135e-06
  8  1.29529e-05
  9  0.194902
  10  7.38292e-06
  11  0.00236597
  12  0.000112084
  13  39.4115
  14  2.54195
  15  0.197458
  16  0.124388
tfile=/lscratch/kocevski/31497734/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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/31497734/ft2_4FGL_J1507.2+1721_daily_bin2177.fits
.....................!
real 9.16
user 8.42
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31497734/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits evtable="EVENTS" scfile=/lscratch/kocevski/31497734/ft2_4FGL_J1507.2+1721_daily_bin2177.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31497734/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits outfile=/lscratch/kocevski/31497734/expmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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/31497734/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits
.....................!
real 65.88
user 61.06
sys 3.83

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

Setting source of interest to:
4FGL J1507.2+1721 @ 226.821 17.3519

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31497734/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits scfile=/lscratch/kocevski/31497734/ft2_4FGL_J1507.2+1721_daily_bin2177.fits outfile=/lscratch/kocevski/31497734/cmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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=226.821 yref=17.3519 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.76
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31497734/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits scfile=/lscratch/kocevski/31497734/ft2_4FGL_J1507.2+1721_daily_bin2177.fits outfile=/lscratch/kocevski/31497734/cmap_HighResolution_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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=226.821 yref=17.3519 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.70
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31497734/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits evtable="EVENTS" scfile=/lscratch/kocevski/31497734/ft2_4FGL_J1507.2+1721_daily_bin2177.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31497734/Model_4FGL_J1507.2+1721_daily_bin2177.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GALDone.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  6.506e-08  2.366e-03  0.000e+00  1.000e+06 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.908e-01  1.244e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.091e+00  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.821 17.352
Photon Flux Upper Limit: 1.80529041738e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06066085202e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31497718/likelihoodResults_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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) = 7557.69504603
delta logL = -0.00207698766553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7557.46588786
delta logL = 0.227081185788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40250       1.0000          .0000       .10000E+07
     2 'alpha     '    4.1631       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7557.466     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40074        8.3501        .89198E-03    .20327E-01
   2  alpha         4.1647        3.9318        .50000        .66387E-04
   3  Normalizat    1.0635        .31196E-01    .69354E-01    .10784E-04
   4  Prefactor     .99468        .19861E-01    .46199E-01   -.11458E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.400736
  alpha      = 4.16471
  Normalizat = 1.06349
  Prefactor  = 0.994679
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.466     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40074        44.850        .81493E-05   -1.5695    
   2  alpha         4.1647        3.0784        .17326E-01    .72868    
   3  Normalizat    1.0635        .19730        .30686E-03   -.90933    
   4  Prefactor     .99468        .11783        .20095E-03   -.92907    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36417e-06
Minuit parameter uncertainties:
  1  8.47902
  2  7.60021
  3  0.197439
  4  0.117858
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) = 7557.46588748
delta logL = 0.227081562528

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  4.007e-01  8.479e+00  0.000e+00  1.000e+06 ( 1.000e-14)
220        alpha:  4.165e+00  7.600e+00  0.000e+00  5.000e+00 ( 1.000e+00)
221         beta:  2.414e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.947e-01  1.179e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.063e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.821 17.352

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/31497718/cmap_HighResolution_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-05', job_status='DONE', photon_flux_upper_limit='1.81e-08', time_completed='2026-07-12 20:47:13.995165', job_id='31497718', GAL2='0.99', fit_tolerance='1e-08', EG2='1.06', EG='1.09', time_epoch_completed='1783914434.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.27e-01', ts2='0.46', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='2177' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 20:47:14 PDT 2026

_V02
Working on...
/lscratch/kocevski/31497719/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits.....................!
real 25.59
user 23.81
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31497719/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits', '/lscratch/kocevski/31497719/ft2_4FGL_J1507.2+1721_daily_bin2177.fits', expMap='/lscratch/kocevski/31497719/expmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits', expCube='/lscratch/kocevski/31497719/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31497719/Model_4FGL_J1507.2+1721_daily_bin2177.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1507.2+1721'

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  3.297e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31497719/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits
Spacecraft file(s): /lscratch/kocevski/31497719/ft2_4FGL_J1507.2+1721_daily_bin2177.fits
Exposure map: /lscratch/kocevski/31497719/expmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits
Exposure cube: /lscratch/kocevski/31497719/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31497719/Model_4FGL_J1507.2+1721_daily_bin2177.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) = 7557.70093847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4134       1.0000          .0000       .10000E+07
     2 'norm      '    5.2551       1.0000          .0000       .10000E+07
     3 'norm      '    .10769E-07   1.0000          .0000       .10000E+07
     4 'norm      '    3.8631       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.451       1.0000          .0000       .10000E+07
     6 'Prefactor '    .60069E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .11510E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .74080E-06   1.0000          .0000       .10000E+07
     9 'norm      '    .32852       1.0000          .0000       .10000E+07
    10 'norm      '    .18746E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .98343E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .39605E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    40.460       1.0000          .0000       .10000E+07
    14 'norm      '    2.6586       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0915       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .99065       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7557.693     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1134 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4163        6.6359        .12204E-06    .21354E-02
   2  norm          5.2548        2.4943       -.73857E-07   -.38628E-03
   3  norm           .0000        1.4708        .40607E-06** at limit **
   4  norm          3.8471        4.3232        .18607E-05   -.22653E-02
   5  Prefactor     10.466        13.699       -.31910E-05    .39979E-02
   6  Prefactor     .17986E-07    119.21       -.19037E-05** at limit **
   7  Prefactor      .0000        6.4764        .38330E-06** at limit **
   8  Prefactor      .0000        3.1425       -.13760E-07** at limit **
   9  norm          .32849        .19024        .11291E-06    .49369E-01
  10  norm           .0000        2.1202       -.17641E-06** at limit **
  11  norm          .65059E-07    311.95       -.17006E-05** at limit **
  12  Prefactor     .22204E-09    14.838       -.41013E-05** at limit **
  13  Prefactor     40.354        1.8889       -.19323E-08   -.30127E-02
  14  norm          2.6590        2.5367       -.20298E-06    .27392E-03
  15  Normalizat    1.0914        .23677       -.17902E-04    .56622E-03
  16  Prefactor     .99081        .14996        .29117E-04    .67055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41629
  norm       = 5.25484
  norm       = 0
  norm       = 3.84707
  Prefactor  = 10.4659
  Prefactor  = 1.79856e-08
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.328492
  norm       = 0
  norm       = 6.50591e-08
  Prefactor  = 2.22045e-10
  Prefactor  = 40.3543
  norm       = 2.65905
  Normalizat = 1.09144
  Prefactor  = 0.990807
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.693     FROM HESSE     STATUS=OK           239 CALLS     1373 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4163        6.6499        .91054E-03   -1.5684    
   2  norm          5.2548        2.4970        .43823E-03   -1.5662    
   3  norm           .0000        1.4633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8471        4.3336        .51317E-03   -1.5669    
   5  Prefactor     10.466        13.726        .30968E-03   -1.5643    
   6  Prefactor     .17986E-07    118.10        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        6.4869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.1405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .32849        .19490        .62707E-03   -1.5697    
  10  norm           .0000        2.1243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .65059E-07    21.502        .20970E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .22204E-09    14.922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.354        39.411        .15723E-03   -1.5581    
  14  norm          2.6590        2.5419        .62488E-03   -1.5675    
  15  Normalizat    1.0914        .19732        .68575E-01   -.90027    
  16  Prefactor     .99081        .12435        .46150E-01   -.93037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43769e-08
Minuit parameter uncertainties:
  1  6.13781
  2  2.49699
  3  5.33042e-06
  4  4.33356
  5  13.7257
  6  0.00291309
  7  5.43135e-06
  8  1.29529e-05
  9  0.194902
  10  7.38292e-06
  11  0.00236597
  12  0.000112084
  13  39.4115
  14  2.54195
  15  0.197458
  16  0.124388
number of points = 7650
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1507.2+1721_daily_bin2177
RA = 226.821, Dec = 17.3519
tmin = 803606401, tmax = 803865601
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='31497896', job_status='RUN', time_executed='2026-07-12 20:45:15.059425', time_epoch_executed='1783914315.06' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='2177'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31497896

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31497896/ft1_4FGL_J1507.2+1721_daily_bin2177.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31497896/ft2_4FGL_J1507.2+1721_daily_bin2177.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31497896/ft1_4FGL_J1507.2+1721_daily_bin2177.fits outfile=/lscratch/kocevski/31497896/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin2177.fits ra=226.821 dec=17.3519 rad=12.0 tmin=803606401.0 tmax=803865601.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.39
user 1.57
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31497896/ft2_4FGL_J1507.2+1721_daily_bin2177.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31497896/ft2_4FGL_J1507.2+1721_daily_bin2177.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/31497896/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin2177.fits evtable="EVENTS" outfile="/lscratch/kocevski/31497896/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.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.79
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 657

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31497896/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31497896/ft2_4FGL_J1507.2+1721_daily_bin2177.fits sctable="SC_DATA" ouDone.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  6.506e-08  2.366e-03  0.000e+00  1.000e+06 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.908e-01  1.244e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.091e+00  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.821 17.352
Photon Flux Upper Limit: 1.80529041738e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06066085202e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31497719/likelihoodResults_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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) = 7557.69504603
delta logL = -0.00207698766553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7557.46588786
delta logL = 0.227081185788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40250       1.0000          .0000       .10000E+07
     2 'alpha     '    4.1631       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7557.466     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40074        8.3501        .89198E-03    .20327E-01
   2  alpha         4.1647        3.9318        .50000        .66387E-04
   3  Normalizat    1.0635        .31196E-01    .69354E-01    .10784E-04
   4  Prefactor     .99468        .19861E-01    .46199E-01   -.11458E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.400736
  alpha      = 4.16471
  Normalizat = 1.06349
  Prefactor  = 0.994679
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.466     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40074        44.850        .81493E-05   -1.5695    
   2  alpha         4.1647        3.0784        .17326E-01    .72868    
   3  Normalizat    1.0635        .19730        .30686E-03   -.90933    
   4  Prefactor     .99468        .11783        .20095E-03   -.92907    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36417e-06
Minuit parameter uncertainties:
  1  8.47902
  2  7.60021
  3  0.197439
  4  0.117858
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) = 7557.46588748
delta logL = 0.227081562528

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  4.007e-01  8.479e+00  0.000e+00  1.000e+06 ( 1.000e-14)
220        alpha:  4.165e+00  7.600e+00  0.000e+00  5.000e+00 ( 1.000e+00)
221         beta:  2.414e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.947e-01  1.179e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.063e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.821 17.352

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/31497719/cmap_HighResolution_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-05', job_status='DONE', photon_flux_upper_limit='1.81e-08', time_completed='2026-07-12 20:47:52.467349', job_id='31497719', GAL2='0.99', fit_tolerance='1e-08', EG2='1.06', EG='1.09', time_epoch_completed='1783914472.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.27e-01', ts2='0.46', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='2177' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 20:47:52 PDT 2026

_V02
Working on...
/lscratch/kocevski/31497734/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits.....................!
real 22.70
user 21.16
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31497734/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits', '/lscratch/kocevski/31497734/ft2_4FGL_J1507.2+1721_daily_bin2177.fits', expMap='/lscratch/kocevski/31497734/expmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits', expCube='/lscratch/kocevski/31497734/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31497734/Model_4FGL_J1507.2+1721_daily_bin2177.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1507.2+1721'

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  3.297e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31497734/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits
Spacecraft file(s): /lscratch/kocevski/31497734/ft2_4FGL_J1507.2+1721_daily_bin2177.fits
Exposure map: /lscratch/kocevski/31497734/expmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits
Exposure cube: /lscratch/kocevski/31497734/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31497734/Model_4FGL_J1507.2+1721_daily_bin2177.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) = 7557.70093847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4134       1.0000          .0000       .10000E+07
     2 'norm      '    5.2551       1.0000          .0000       .10000E+07
     3 'norm      '    .10769E-07   1.0000          .0000       .10000E+07
     4 'norm      '    3.8631       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.451       1.0000          .0000       .10000E+07
     6 'Prefactor '    .60069E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .11510E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .74080E-06   1.0000          .0000       .10000E+07
     9 'norm      '    .32852       1.0000          .0000       .10000E+07
    10 'norm      '    .18746E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .98343E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .39605E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    40.460       1.0000          .0000       .10000E+07
    14 'norm      '    2.6586       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0915       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .99065       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7557.693     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1134 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4163        6.6359        .12204E-06    .21354E-02
   2  norm          5.2548        2.4943       -.73857E-07   -.38628E-03
   3  norm           .0000        1.4708        .40607E-06** at limit **
   4  norm          3.8471        4.3232        .18607E-05   -.22653E-02
   5  Prefactor     10.466        13.699       -.31910E-05    .39979E-02
   6  Prefactor     .17986E-07    119.21       -.19037E-05** at limit **
   7  Prefactor      .0000        6.4764        .38330E-06** at limit **
   8  Prefactor      .0000        3.1425       -.13760E-07** at limit **
   9  norm          .32849        .19024        .11291E-06    .49369E-01
  10  norm           .0000        2.1202       -.17641E-06** at limit **
  11  norm          .65059E-07    311.95       -.17006E-05** at limit **
  12  Prefactor     .22204E-09    14.838       -.41013E-05** at limit **
  13  Prefactor     40.354        1.8889       -.19323E-08   -.30127E-02
  14  norm          2.6590        2.5367       -.20298E-06    .27392E-03
  15  Normalizat    1.0914        .23677       -.17902E-04    .56622E-03
  16  Prefactor     .99081        .14996        .29117E-04    .67055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41629
  norm       = 5.25484
  norm       = 0
  norm       = 3.84707
  Prefactor  = 10.4659
  Prefactor  = 1.79856e-08
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.328492
  norm       = 0
  norm       = 6.50591e-08
  Prefactor  = 2.22045e-10
  Prefactor  = 40.3543
  norm       = 2.65905
  Normalizat = 1.09144
  Prefactor  = 0.990807
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.693     FROM HESSE     STATUS=OK           239 CALLS     1373 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4163        6.6499        .91054E-03   -1.5684    
   2  norm          5.2548        2.4970        .43823E-03   -1.5662    
   3  norm           .0000        1.4633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8471        4.3336        .51317E-03   -1.5669    
   5  Prefactor     10.466        13.726        .30968E-03   -1.5643    
   6  Prefactor     .17986E-07    118.10        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        6.4869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.1405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .32849        .19490        .62707E-03   -1.5697    
  10  norm           .0000        2.1243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .65059E-07    21.502        .20970E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .22204E-09    14.922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.354        39.411        .15723E-03   -1.5581    
  14  norm          2.6590        2.5419        .62488E-03   -1.5675    
  15  Normalizat    1.0914        .19732        .68575E-01   -.90027    
  16  Prefactor     .99081        .12435        .46150E-01   -.93037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43769e-08
Minuit parameter uncertainties:
  1  6.13781
  2  2.49699
  3  5.33042e-06
  4  4.33356
  5  13.7257
  6  0.00291309
  7  5.43135e-06
  8  1.29529e-05
  9  0.194902
  10  7.38292e-06
  11  0.00236597
  12  0.000112084
  13  39.4115
  14  2.54195
  15  0.197458
  16  0.124388
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  6.506e-08  2.366e-03  0.000e+00  1.000e+06 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.908e-01  1.244e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.091e+00  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.821 17.352
Photon Flux Upper Limit: 1.80529041738e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06066085202e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31497734/likelihoodResults_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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) = 7557.69504603
delta logL = -0.00207698766553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7557.46588786
delta logL = 0.227081185788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40250       1.0000          .0000       .10000E+07
     2 'alpha     '    4.1631       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7557.466     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40074        8.3501        .89198E-03    .20327E-01
   2  alpha         4.1647        3.9318        .50000        .66387E-04
   3  Normalizat    1.0635        .31196E-01    .69354E-01    .10784E-04
   4  Prefactor     .99468        .19861E-01    .46199E-01   -.11458E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.400736
  alpha      = 4.16471
  Normalizat = 1.06349
  Prefactor  = 0.994679
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.466     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40074        44.850        .81493E-05   -1.5695    
   2  alpha         4.1647        3.0784        .17326E-01    .72868    
   3  Normalizat    1.0635        .19730        .30686E-03   -.90933    
   4  Prefactor     .99468        .11783        .20095E-03   -.92907    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36417e-06
Minuit parameter uncertainties:
  1  8.47902
  2  7.60021
  3  0.197439
  4  0.117858
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) = 7557.46588748
delta logL = 0.227081562528

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  4.007e-01  8.479e+00  0.000e+00  1.000e+06 ( 1.000e-14)
220        alpha:  4.165e+00  7.600e+00  0.000e+00  5.000e+00 ( 1.000e+00)
221         beta:  2.414e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.947e-01  1.179e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.063e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.821 17.352

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/31497734/cmap_HighResolution_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-05', job_status='DONE', photon_flux_upper_limit='1.81e-08', time_completed='2026-07-12 20:48:26.421995', job_id='31497734', GAL2='0.99', fit_tolerance='1e-08', EG2='1.06', EG='1.09', time_epoch_completed='1783914506.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.27e-01', ts2='0.46', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='2177' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 20:48:26 PDT 2026

tfile=/lscratch/kocevski/31497896/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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/31497896/ft2_4FGL_J1507.2+1721_daily_bin2177.fits
.....................!
real 8.91
user 8.21
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31497896/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits evtable="EVENTS" scfile=/lscratch/kocevski/31497896/ft2_4FGL_J1507.2+1721_daily_bin2177.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31497896/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits outfile=/lscratch/kocevski/31497896/expmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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/31497896/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits
.....................!
real 68.75
user 63.93
sys 3.97

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

Setting source of interest to:
4FGL J1507.2+1721 @ 226.821 17.3519

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31497896/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits scfile=/lscratch/kocevski/31497896/ft2_4FGL_J1507.2+1721_daily_bin2177.fits outfile=/lscratch/kocevski/31497896/cmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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=226.821 yref=17.3519 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.89
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31497896/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits scfile=/lscratch/kocevski/31497896/ft2_4FGL_J1507.2+1721_daily_bin2177.fits outfile=/lscratch/kocevski/31497896/cmap_HighResolution_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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=226.821 yref=17.3519 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.82
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31497896/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits evtable="EVENTS" scfile=/lscratch/kocevski/31497896/ft2_4FGL_J1507.2+1721_daily_bin2177.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31497896/Model_4FGL_J1507.2+1721_daily_bin2177.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/31497896/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits.....................!
real 24.63
user 22.67
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31497896/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits', '/lscratch/kocevski/31497896/ft2_4FGL_J1507.2+1721_daily_bin2177.fits', expMap='/lscratch/kocevski/31497896/expmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits', expCube='/lscratch/kocevski/31497896/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31497896/Model_4FGL_J1507.2+1721_daily_bin2177.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1507.2+1721'

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  3.297e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31497896/ft1_filtered_4FGL_J1507.2+1721_daily_bin2177.fits
Spacecraft file(s): /lscratch/kocevski/31497896/ft2_4FGL_J1507.2+1721_daily_bin2177.fits
Exposure map: /lscratch/kocevski/31497896/expmap_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits
Exposure cube: /lscratch/kocevski/31497896/ltcube_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31497896/Model_4FGL_J1507.2+1721_daily_bin2177.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) = 7557.70093847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4134       1.0000          .0000       .10000E+07
     2 'norm      '    5.2551       1.0000          .0000       .10000E+07
     3 'norm      '    .10769E-07   1.0000          .0000       .10000E+07
     4 'norm      '    3.8631       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.451       1.0000          .0000       .10000E+07
     6 'Prefactor '    .60069E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .11510E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .74080E-06   1.0000          .0000       .10000E+07
     9 'norm      '    .32852       1.0000          .0000       .10000E+07
    10 'norm      '    .18746E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .98343E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .39605E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    40.460       1.0000          .0000       .10000E+07
    14 'norm      '    2.6586       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0915       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .99065       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7557.693     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1134 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4163        6.6359        .12204E-06    .21354E-02
   2  norm          5.2548        2.4943       -.73857E-07   -.38628E-03
   3  norm           .0000        1.4708        .40607E-06** at limit **
   4  norm          3.8471        4.3232        .18607E-05   -.22653E-02
   5  Prefactor     10.466        13.699       -.31910E-05    .39979E-02
   6  Prefactor     .17986E-07    119.21       -.19037E-05** at limit **
   7  Prefactor      .0000        6.4764        .38330E-06** at limit **
   8  Prefactor      .0000        3.1425       -.13760E-07** at limit **
   9  norm          .32849        .19024        .11291E-06    .49369E-01
  10  norm           .0000        2.1202       -.17641E-06** at limit **
  11  norm          .65059E-07    311.95       -.17006E-05** at limit **
  12  Prefactor     .22204E-09    14.838       -.41013E-05** at limit **
  13  Prefactor     40.354        1.8889       -.19323E-08   -.30127E-02
  14  norm          2.6590        2.5367       -.20298E-06    .27392E-03
  15  Normalizat    1.0914        .23677       -.17902E-04    .56622E-03
  16  Prefactor     .99081        .14996        .29117E-04    .67055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41629
  norm       = 5.25484
  norm       = 0
  norm       = 3.84707
  Prefactor  = 10.4659
  Prefactor  = 1.79856e-08
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.328492
  norm       = 0
  norm       = 6.50591e-08
  Prefactor  = 2.22045e-10
  Prefactor  = 40.3543
  norm       = 2.65905
  Normalizat = 1.09144
  Prefactor  = 0.990807
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.693     FROM HESSE     STATUS=OK           239 CALLS     1373 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4163        6.6499        .91054E-03   -1.5684    
   2  norm          5.2548        2.4970        .43823E-03   -1.5662    
   3  norm           .0000        1.4633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8471        4.3336        .51317E-03   -1.5669    
   5  Prefactor     10.466        13.726        .30968E-03   -1.5643    
   6  Prefactor     .17986E-07    118.10        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        6.4869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.1405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .32849        .19490        .62707E-03   -1.5697    
  10  norm           .0000        2.1243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .65059E-07    21.502        .20970E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .22204E-09    14.922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.354        39.411        .15723E-03   -1.5581    
  14  norm          2.6590        2.5419        .62488E-03   -1.5675    
  15  Normalizat    1.0914        .19732        .68575E-01   -.90027    
  16  Prefactor     .99081        .12435        .46150E-01   -.93037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43769e-08
Minuit parameter uncertainties:
  1  6.13781
  2  2.49699
  3  5.33042e-06
  4  4.33356
  5  13.7257
  6  0.00291309
  7  5.43135e-06
  8  1.29529e-05
  9  0.194902
  10  7.38292e-06
  11  0.00236597
  12  0.000112084
  13  39.4115
  14  2.54195
  15  0.197458
  16  0.124388
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  6.506e-08  2.366e-03  0.000e+00  1.000e+06 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.908e-01  1.244e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.091e+00  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.821 17.352
Photon Flux Upper Limit: 1.80529041738e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06066085202e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31497896/likelihoodResults_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.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) = 7557.69504603
delta logL = -0.00207698766553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7557.46588786
delta logL = 0.227081185788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40250       1.0000          .0000       .10000E+07
     2 'alpha     '    4.1631       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7557.466     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40074        8.3501        .89198E-03    .20327E-01
   2  alpha         4.1647        3.9318        .50000        .66387E-04
   3  Normalizat    1.0635        .31196E-01    .69354E-01    .10784E-04
   4  Prefactor     .99468        .19861E-01    .46199E-01   -.11458E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.400736
  alpha      = 4.16471
  Normalizat = 1.06349
  Prefactor  = 0.994679
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.466     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40074        44.850        .81493E-05   -1.5695    
   2  alpha         4.1647        3.0784        .17326E-01    .72868    
   3  Normalizat    1.0635        .19730        .30686E-03   -.90933    
   4  Prefactor     .99468        .11783        .20095E-03   -.92907    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36417e-06
Minuit parameter uncertainties:
  1  8.47902
  2  7.60021
  3  0.197439
  4  0.117858
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) = 7557.46588748
delta logL = 0.227081562528

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  4.007e-01  8.479e+00  0.000e+00  1.000e+06 ( 1.000e-14)
220        alpha:  4.165e+00  7.600e+00  0.000e+00  5.000e+00 ( 1.000e+00)
221         beta:  2.414e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.947e-01  1.179e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.063e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.821 17.352

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/31497896/cmap_HighResolution_803606401_803865601_4FGL_J1507.2+1721_daily_bin2177.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-05', job_status='DONE', photon_flux_upper_limit='1.81e-08', time_completed='2026-07-12 20:50:45.268013', job_id='31497896', GAL2='0.99', fit_tolerance='1e-08', EG2='1.06', EG='1.09', time_epoch_completed='1783914645.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.27e-01', ts2='0.46', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='2177' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 20:50:45 PDT 2026

