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


Performing analysis on: 4FGL_J1501.0+2238_weekly_bin908
RA = 225.257, Dec = 22.6364
tmin = 788140801, tmax = 788745601
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='18159680', job_status='RUN', time_executed='2025-12-30 01:54:12.880718', time_epoch_executed='1767088452.88' WHERE source_name='4FGL J1501.0+2238' and cadence='weekly' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18159680

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18159680/ft1_4FGL_J1501.0+2238_weekly_bin908.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18159680/ft2_4FGL_J1501.0+2238_weekly_bin908.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18159680/ft1_4FGL_J1501.0+2238_weekly_bin908.fits outfile=/lscratch/kocevski/18159680/ft1_filteredMKT_4FGL_J1501.0+2238_weekly_bin908.fits ra=225.257 dec=22.6364 rad=12.0 tmin=788140801.0 tmax=788745601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.17
user 3.62
sys 0.35

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18159680/ft2_4FGL_J1501.0+2238_weekly_bin908.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18159680/ft2_4FGL_J1501.0+2238_weekly_bin908.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/18159680/ft1_filteredMKT_4FGL_J1501.0+2238_weekly_bin908.fits evtable="EVENTS" outfile="/lscratch/kocevski/18159680/ft1_filtered_4FGL_J1501.0+2238_weekly_bin908.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.45
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 1465

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18159680/ft1_filtered_4FGL_J1501.0+2238_weekly_bin908.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18159680/ft2_4FGL_J1501.0+2238_weekly_bin908.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18159680/ltcube_788140801_788745601_4FGL_J1501.0+2238_weekly_bin908.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/18159680/ft2_4FGL_J1501.0+2238_weekly_bin908.fits
.....................!
real 15.26
user 14.77
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18159680/ft1_filtered_4FGL_J1501.0+2238_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18159680/ft2_4FGL_J1501.0+2238_weekly_bin908.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18159680/ltcube_788140801_788745601_4FGL_J1501.0+2238_weekly_bin908.fits outfile=/lscratch/kocevski/18159680/expmap_788140801_788745601_4FGL_J1501.0+2238_weekly_bin908.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/18159680/ltcube_788140801_788745601_4FGL_J1501.0+2238_weekly_bin908.fits
.....................!
real 59.91
user 55.79
sys 3.73

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

Setting source of interest to:
4FGL J1501.0+2238 @ 225.257 22.6364

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18159680/ft1_filtered_4FGL_J1501.0+2238_weekly_bin908.fits scfile=/lscratch/kocevski/18159680/ft2_4FGL_J1501.0+2238_weekly_bin908.fits outfile=/lscratch/kocevski/18159680/cmap_788140801_788745601_4FGL_J1501.0+2238_weekly_bin908.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.257 yref=22.6364 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.51
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18159680/ft1_filtered_4FGL_J1501.0+2238_weekly_bin908.fits scfile=/lscratch/kocevski/18159680/ft2_4FGL_J1501.0+2238_weekly_bin908.fits outfile=/lscratch/kocevski/18159680/cmap_HighResolution_788140801_788745601_4FGL_J1501.0+2238_weekly_bin908.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.257 yref=22.6364 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.42
user 0.19
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18159680/ft1_filtered_4FGL_J1501.0+2238_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18159680/ft2_4FGL_J1501.0+2238_weekly_bin908.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18159680/Model_4FGL_J1501.0+2238_weekly_bin908.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/18159680/ft1_filtered_4FGL_J1501.0+2238_weekly_bin908.fits.....................!
real 36.26
user 34.95
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18159680/ft1_filtered_4FGL_J1501.0+2238_weekly_bin908.fits', '/lscratch/kocevski/18159680/ft2_4FGL_J1501.0+2238_weekly_bin908.fits', expMap='/lscratch/kocevski/18159680/expmap_788140801_788745601_4FGL_J1501.0+2238_weekly_bin908.fits', expCube='/lscratch/kocevski/18159680/ltcube_788140801_788745601_4FGL_J1501.0+2238_weekly_bin908.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18159680/Model_4FGL_J1501.0+2238_weekly_bin908.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1501.0+2238'

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.674e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18159680/ft1_filtered_4FGL_J1501.0+2238_weekly_bin908.fits
Spacecraft file(s): /lscratch/kocevski/18159680/ft2_4FGL_J1501.0+2238_weekly_bin908.fits
Exposure map: /lscratch/kocevski/18159680/expmap_788140801_788745601_4FGL_J1501.0+2238_weekly_bin908.fits
Exposure cube: /lscratch/kocevski/18159680/ltcube_788140801_788745601_4FGL_J1501.0+2238_weekly_bin908.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18159680/Model_4FGL_J1501.0+2238_weekly_bin908.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) = 15728.6211607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85432E-07   1.0000          .0000       .10000E+07
     2 'norm      '    5.1608       1.0000          .0000       .10000E+07
     3 'norm      '    .42962       1.0000          .0000       .10000E+07
     4 'norm      '    .30856       1.0000          .0000       .10000E+07
     5 'Prefactor '    50.950       1.0000          .0000       .10000E+07
     6 'Prefactor '    14.077       1.0000          .0000       .10000E+07
     7 'Prefactor '    18.724       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.7830       1.0000          .0000       .10000E+07
     9 'norm      '    .21674E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    11.397       1.0000          .0000       .10000E+07
    11 'norm      '    3.5241       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.0728       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12041E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .74385E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    16.999       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.1418       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .94562       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15728.60     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1882 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.5165        .12624E-06** at limit **
   2  norm          5.1622        1.6704        .15227E-06   -.11212E-02
   3  norm          .43251        1.3852        .16988E-06    .33431E-03
   4  norm          .31716        1.9073       -.19016E-06    .10059E-02
   5  Prefactor     52.170        26.376       -.34741E-06    .44142E-03
   6  Prefactor     14.057        11.467       -.50216E-06    .11130E-02
   7  Prefactor     18.740        3.9380       -.27196E-06   -.51675E-02
   8  Prefactor     3.8508        4.4409        .67994E-06   -.20942E-02
   9  norm           .0000        7.3724       -.13164E-06** at limit **
  10  Prefactor     11.432        3.1495        .40704E-06    .60779E-02
  11  norm          3.5278        .98862        .11674E-06    .11552E-01
  12  Prefactor     1.0560        4.7231        .18781E-06   -.28801E-03
  13  Prefactor     .18319E-08    69.388       -.12937E-05** at limit **
  14  Prefactor      .0000        .39646        .32015E-06** at limit **
  15  Prefactor     17.065        15.604        .18030E-05   -.13868E-02
  16  Normalizat    1.1398        .15100        .46355E-05   -.33190E-04
  17  Prefactor     .94630        .10508       -.19274E-05   -.48172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.1622
  norm       = 0.432514
  norm       = 0.317161
  Prefactor  = 52.1701
  Prefactor  = 14.0571
  Prefactor  = 18.7398
  Prefactor  = 3.85082
  norm       = 0
  Prefactor  = 11.4324
  norm       = 3.52782
  Prefactor  = 1.05597
  Prefactor  = 1.83187e-09
  Prefactor  = 0
  Prefactor  = 17.0651
  Normalizat = 1.13985
  Prefactor  = 0.946295
 **********
 **   18 **HESSE 
 **********

 FCN=   15728.60     FROM HESSE     STATUS=OK           263 CALLS     2145 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.5163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.1622        1.6671        .44229E-03   -1.5663    
   3  norm          .43251        1.3817        .86133E-03   -1.5695    
   4  norm          .31716        1.9068        .10095E-02   -1.5697    
   5  Prefactor     52.170        26.125        .14011E-03   -1.5564    
   6  Prefactor     14.057        12.458        .26670E-03   -1.5633    
   7  Prefactor     18.740        15.557        .23118E-03   -1.5621    
   8  Prefactor     3.8508        4.4552        .51877E-03   -1.5669    
   9  norm           .0000        7.3831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.432        14.947        .29649E-03   -1.5640    
  11  norm          3.5278        1.0186        .53825E-03   -1.5670    
  12  Prefactor     1.0560        5.0540        .11700E-02   -1.5687    
  13  Prefactor     .18319E-08    68.924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        .39463        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.065        15.952        .24265E-03   -1.5625    
  16  Normalizat    1.1398        .12638        .61423E-01   -.88483    
  17  Prefactor     .94630        .88063E-01    .45584E-01   -.94542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89705e-06
Minuit parameter uncertainties:
  1  4.95158e-07
  2  1.66711
  3  1.3817
  4  1.55534
  5  26.1249
  6  12.4583
  7  15.5574
  8  4.45519
  9  7.02959e-06
  10  14.9473
  11  1.01859
  12  4.62037
  13  0.000712556
  14  1.64229e-06
  15  15.9518
  16  0.126414
  17  0.0880762
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.851e+00  4.455e+00  0.000e+00  1.000e+06 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.463e-01  8.808e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.140e+00  1.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.25e-08 +/- 1.44e-08
Energy Flux (Fixed Index): 8.60e-06 +/- 9.95e-06

TS (Fixed Index): 1.07
Ra Dec: 225.257 22.636
Photon Flux Upper Limit: 4.70055136924e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0035259186225 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18159680/likelihoodResults_788140801_788745601_4FGL_J1501.0+2238_weekly_bin908.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15728.5873406
delta logL = 0.00944137411898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15728.5857825
delta logL = 0.0109994617469

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15728.59     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      259 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5922        4.8834        .10654E-03    .64555E-02
   2  Index         2.0920        .65133        .90540E-02    .37108E-03
   3  Normalizat    1.1386        .14244        .27181E-03   -.20662E-04
   4  Prefactor     .94660        .10264        .21122E-03   -.28634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.59217
  Index      = 2.09204
  Normalizat = 1.13858
  Prefactor  = 0.946599
 **********
 **   18 **HESSE 
 **********

 FCN=   15728.59     FROM HESSE     STATUS=OK            27 CALLS      286 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5922        4.6475        .21308E-04   -1.5670    
   2  Index         2.0920        .62030        .18108E-02   -.62068    
   3  Normalizat    1.1386        .14252        .10872E-04   -.88523    
   4  Prefactor     .94660        .10271        .84489E-05   -.94531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31559e-12
Minuit parameter uncertainties:
  1  4.64754
  2  0.622729
  3  0.142565
  4  0.102731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15728.5857817
delta logL = 0.0110002530018

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.592e+00  4.648e+00  0.000e+00  1.000e+06 ( 1.000e-13)
240        Index:  2.092e+00  6.227e-01  0.000e+00  1.000e+01 (-1.000e+00)
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.466e-01  1.027e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.139e+00  1.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 225.257 22.636
Photon Index (Free Index): 2.09 +/- 0.62
Photon Flux (Free Index): 1.39e-08 +/- 1.80e-08
Energy Flux (Free Index): 7.75e-06 +/- 1.05e-05

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/18159680/cmap_HighResolution_788140801_788745601_4FGL_J1501.0+2238_weekly_bin908.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', comment='SUCCESS', photon_flux='1.25e-08', energy_flux2='7.75e-06', photon_flux_error='1.44e-08', dlogl='1.10e-02', energy_flux='8.60e-06', photon_flux2='1.39e-08', job_status='DONE', time_completed='2025-12-30 02:00:40.406067', photon_index_error2='0.62', photon_index2='2.09', ts='1.07', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='4.70e-08', energy_flux_error2='1.05e-05', EG='1.14', time_epoch_completed='1767088840.41', return_code='0', job_id='18159680', GAL2='0.95', EG2='1.14', return_code2='0', energy_flux_error='9.95e-06', photon_flux_error2='1.80e-08', ts2='1.10', photon_index='2.00' WHERE bin_id='908' AND source_name='4FGL J1501.0+2238' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 30 02:00:40 PST 2025

