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


Performing analysis on: 4FGL_J1506.1+3731_weekly_bin858
RA = 226.535, Dec = 37.5183
tmin = 757900801, tmax = 758505601
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='61725998', job_status='RUN', time_executed='2025-01-14 03:11:18.238638', time_epoch_executed='1736853078.24' WHERE source_name='4FGL J1506.1+3731' and cadence='weekly' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/61725998

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/61725998/ft1_4FGL_J1506.1+3731_weekly_bin858.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/61725998/ft2_4FGL_J1506.1+3731_weekly_bin858.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/61725998/ft1_4FGL_J1506.1+3731_weekly_bin858.fits outfile=/lscratch/kocevski/61725998/ft1_filteredMKT_4FGL_J1506.1+3731_weekly_bin858.fits ra=226.535 dec=37.5183 rad=12.0 tmin=757900801.0 tmax=758505601.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 3.94
user 3.47
sys 0.33

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/61725998/ft2_4FGL_J1506.1+3731_weekly_bin858.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/61725998/ft2_4FGL_J1506.1+3731_weekly_bin858.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/61725998/ft1_filteredMKT_4FGL_J1506.1+3731_weekly_bin858.fits evtable="EVENTS" outfile="/lscratch/kocevski/61725998/ft1_filtered_4FGL_J1506.1+3731_weekly_bin858.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.44
user 0.25
sys 0.14

Number of photons that the gtmktime cut: 2312

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/61725998/ft1_filtered_4FGL_J1506.1+3731_weekly_bin858.fits" evtable="EVENTS" scfile=/lscratch/kocevski/61725998/ft2_4FGL_J1506.1+3731_weekly_bin858.fits sctable="SC_DATA" outfile=/lscratch/kocevski/61725998/ltcube_757900801_758505601_4FGL_J1506.1+3731_weekly_bin858.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/61725998/ft2_4FGL_J1506.1+3731_weekly_bin858.fits
.....................!
real 20.59
user 19.98
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/61725998/ft1_filtered_4FGL_J1506.1+3731_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61725998/ft2_4FGL_J1506.1+3731_weekly_bin858.fits sctable="SC_DATA" expcube=/lscratch/kocevski/61725998/ltcube_757900801_758505601_4FGL_J1506.1+3731_weekly_bin858.fits outfile=/lscratch/kocevski/61725998/expmap_757900801_758505601_4FGL_J1506.1+3731_weekly_bin858.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/61725998/ltcube_757900801_758505601_4FGL_J1506.1+3731_weekly_bin858.fits
.....................!
real 64.02
user 59.67
sys 3.87

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

Setting source of interest to:
4FGL J1506.1+3731 @ 226.535 37.5183

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/61725998/ft1_filtered_4FGL_J1506.1+3731_weekly_bin858.fits scfile=/lscratch/kocevski/61725998/ft2_4FGL_J1506.1+3731_weekly_bin858.fits outfile=/lscratch/kocevski/61725998/cmap_757900801_758505601_4FGL_J1506.1+3731_weekly_bin858.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.535 yref=37.5183 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.21
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/61725998/ft1_filtered_4FGL_J1506.1+3731_weekly_bin858.fits scfile=/lscratch/kocevski/61725998/ft2_4FGL_J1506.1+3731_weekly_bin858.fits outfile=/lscratch/kocevski/61725998/cmap_HighResolution_757900801_758505601_4FGL_J1506.1+3731_weekly_bin858.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.535 yref=37.5183 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.41
user 0.21
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/61725998/ft1_filtered_4FGL_J1506.1+3731_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61725998/ft2_4FGL_J1506.1+3731_weekly_bin858.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/61725998/Model_4FGL_J1506.1+3731_weekly_bin858.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/61725998/ft1_filtered_4FGL_J1506.1+3731_weekly_bin858.fits.....................!
real 55.29
user 53.67
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/61725998/ft1_filtered_4FGL_J1506.1+3731_weekly_bin858.fits', '/lscratch/kocevski/61725998/ft2_4FGL_J1506.1+3731_weekly_bin858.fits', expMap='/lscratch/kocevski/61725998/expmap_757900801_758505601_4FGL_J1506.1+3731_weekly_bin858.fits', expCube='/lscratch/kocevski/61725998/ltcube_757900801_758505601_4FGL_J1506.1+3731_weekly_bin858.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/61725998/Model_4FGL_J1506.1+3731_weekly_bin858.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1506.1+3731'

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.445e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  2.398e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.019e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/61725998/ft1_filtered_4FGL_J1506.1+3731_weekly_bin858.fits
Spacecraft file(s): /lscratch/kocevski/61725998/ft2_4FGL_J1506.1+3731_weekly_bin858.fits
Exposure map: /lscratch/kocevski/61725998/expmap_757900801_758505601_4FGL_J1506.1+3731_weekly_bin858.fits
Exposure cube: /lscratch/kocevski/61725998/ltcube_757900801_758505601_4FGL_J1506.1+3731_weekly_bin858.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/61725998/Model_4FGL_J1506.1+3731_weekly_bin858.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) = 24869.6000576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44853E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    17.686       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.165       1.0000          .0000       .10000E+07
     4 'Prefactor '    9.8183       1.0000          .0000       .10000E+07
     5 'norm      '    .96000       1.0000          .0000       .10000E+07
     6 'norm      '    4.2033       1.0000          .0000       .10000E+07
     7 'Prefactor '    33.312       1.0000          .0000       .10000E+07
     8 'norm      '    .14932E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    26.010       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.2275       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.9287       1.0000          .0000       .10000E+07
    12 'norm      '    1.0258       1.0000          .0000       .10000E+07
    13 'norm      '    1.8454       1.0000          .0000       .10000E+07
    14 'Prefactor '    .20854E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    17.414       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.0394       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.3100       1.0000          .0000       .10000E+07
    18 'norm      '    3.1442       1.0000          .0000       .10000E+07
    19 'Prefactor '    .46529E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.1665       1.0000          .0000       .10000E+07
    21 'norm      '    .78715E-07   1.0000          .0000       .10000E+07
    22 'Prefactor '    .11874E-04   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0004       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90665       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24869.56     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     1558 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .45138        .51329E-07** at limit **
   2  Prefactor     17.687        4.8494       -.53085E-08   -.12052E-01
   3  Prefactor     10.256        3.7446       -.38719E-08    .58492E-02
   4  Prefactor     9.8202        2.2284        .97348E-08    .45195E-03
   5  norm          1.0035        2.1837        .35352E-08    .12000E-01
   6  norm          4.1931        2.5254        .32868E-07    .12051E-02
   7  Prefactor     33.111        13.745       -.12576E-07   -.12530E-01
   8  norm          .84377E-08    1.0983        .10191E-07** at limit **
   9  Prefactor     26.018        1.8288        .11584E-08   -.17467E-01
  10  Prefactor     2.2279        2.0150       -.57273E-08   -.11658E-03
  11  Prefactor     2.9321        2.2470       -.12255E-07   -.23996E-03
  12  norm          1.0261        .61962       -.13977E-08   -.32372E-03
  13  norm          1.8448        1.2874        .28414E-07    .11673E-02
  14  Prefactor     .17764E-08    2.5924        .17004E-07** at limit **
  15  Prefactor     17.314        7.4541       -.13738E-07    .35654E-01
  16  Prefactor     5.0658        1.6330        .11469E-07    .24445E-02
  17  Prefactor     2.3009        4.1233        .60965E-07   -.25731E-03
  18  norm          3.1446        .59411        .24520E-08    .62161E-03
  19  Prefactor      .0000        2.5499        .12191E-07** at limit **
  20  Prefactor     4.1311        11.104       -.18012E-07   -.36409E-02
  21  norm          .12768E-08    2.9584       -.76141E-09** at limit **
  22  Prefactor     .55511E-10    2.0861        .33072E-07** at limit **
  23  Normalizat    1.0004        .10373       -.53588E-06    .43018E-04
  24  Prefactor     .90671        .10096        .63774E-06    .62285E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 17.6865
  Prefactor  = 10.2555
  Prefactor  = 9.82019
  norm       = 1.00345
  norm       = 4.19311
  Prefactor  = 33.1111
  norm       = 8.43769e-09
  Prefactor  = 26.0184
  Prefactor  = 2.22789
  Prefactor  = 2.93207
  norm       = 1.0261
  norm       = 1.84478
  Prefactor  = 1.77636e-09
  Prefactor  = 17.3137
  Prefactor  = 5.06584
  Prefactor  = 2.30088
  norm       = 3.1446
  Prefactor  = 0
  Prefactor  = 4.13111
  norm       = 1.27676e-09
  Prefactor  = 5.55112e-11
  Normalizat = 1.00038
  Prefactor  = 0.906707
 **********
 **   18 **HESSE 
 **********

 FCN=   24869.56     FROM HESSE     STATUS=OK           455 CALLS     2013 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .45044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.687        9.1163        .23788E-03   -1.5624    
   3  Prefactor     10.256        9.2839        .31403E-03   -1.5644    
   4  Prefactor     9.8202        2.2274        .31956E-03   -1.5645    
   5  norm          1.0035        9.5895        .42344E-03   -1.5688    
   6  norm          4.1931        2.5351        .49130E-03   -1.5667    
   7  Prefactor     33.111        15.955        .17328E-03   -1.5593    
   8  norm          .84377E-08    3.4919        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.018        7.6184        .19612E-03   -1.5606    
  10  Prefactor     2.2279        2.0405        .68860E-03   -1.5678    
  11  Prefactor     2.9321        2.2511        .59331E-03   -1.5674    
  12  norm          1.0261        .68846        .21191E-02   -1.5688    
  13  norm          1.8448        1.3063        .76737E-03   -1.5681    
  14  Prefactor     .17764E-08    3.0173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.314        17.366        .23974E-03   -1.5625    
  16  Prefactor     5.0658        8.4502        .44769E-03   -1.5663    
  17  Prefactor     2.3009        4.9727        .67479E-03   -1.5678    
  18  norm          3.1446        .59561        .57142E-03   -1.5672    
  19  Prefactor      .0000        2.5584        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.1311        11.486        .49353E-03   -1.5667    
  21  norm          .12768E-08    3.4597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .55511E-10    2.0995        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0004        .88336E-01    .46172E-01   -.93018    
  24  Prefactor     .90671        .85350E-01    .45090E-01   -.95907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91192e-07
Minuit parameter uncertainties:
  1  1.42351e-06
  2  9.11635
  3  9.28392
  4  2.22739
  5  6.20408
  6  2.53506
  7  15.9549
  8  0.000343165
  9  7.61841
  10  2.04052
  11  2.25114
  12  0.688463
  13  1.30634
  14  0.000147339
  15  17.3656
  16  8.45017
  17  4.97269
  18  0.595613
  19  7.90795e-06
  20  11.4856
  21  0.000132474
  22  2.11631e-05
  23  0.0883488
  24  0.0853624
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.026e+00  6.885e-01  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  2.398e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.019e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.067e-01  8.536e-02  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.000e+00  8.835e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.41
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.20e-08 +/- 1.48e-08
Energy Flux (Fixed Index): 6.43e-06 +/- 4.32e-06

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) = 24869.5388427
delta logL = 0.0209836708527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24869.53812
delta logL = 0.0217064380522

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   24869.54     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      206 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0075        2.1975        .44027E-03    .19254E-01
   2  alpha         2.2733        1.5763        .41367       -.68481E-04
   3  Normalizat    1.0037        .84809E-01    .46214E-01   -.68605E-04
   4  Prefactor     .90448        .88050E-01    .45062E-01    .18368E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00747
  alpha      = 2.27327
  Normalizat = 1.00373
  Prefactor  = 0.904482
 **********
 **   18 **HESSE 
 **********

 FCN=   24869.54     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0075        .62418        .92966E-05   -1.5688    
   2  alpha         2.2733        .58540        .29140E-01   -.90816E-01
   3  Normalizat    1.0037        .99076E-01    .23441E-03   -.92905    
   4  Prefactor     .90448        .10017        .24998E-03   -.95985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36576e-09
Minuit parameter uncertainties:
  1  0.624176
  2  0.590929
  3  0.0990941
  4  0.100188
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) = 24869.53812
delta logL = 0.0217064457756

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.007e+00  6.242e-01  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  2.273e+00  5.909e-01  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  1.019e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.045e-01  1.002e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.004e+00  9.909e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.45
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.27 +/- 0.59
Photon Flux (Free Index): 1.98e-08 +/- 1.58e-08
Energy Flux (Free Index): 6.50e-06 +/- 3.99e-06

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/61725998/cmap_HighResolution_757900801_758505601_4FGL_J1506.1+3731_weekly_bin858.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.20e-08', energy_flux2='6.50e-06', photon_flux_error='1.48e-08', dlogl='2.17e-02', energy_flux='6.43e-06', photon_flux2='1.98e-08', job_status='DONE', time_completed='2025-01-14 03:20:58.612317', photon_index_error2='0.59', photon_index2='2.27', ts='4.41', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='3.99e-06', EG='1.00', time_epoch_completed='1736853658.61', return_code='0', job_id='61725998', GAL2='0.90', EG2='1.00', return_code2='0', energy_flux_error='4.32e-06', photon_flux_error2='1.58e-08', ts2='4.45', photon_index='2.40' WHERE bin_id='858' AND source_name='4FGL J1506.1+3731' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 14 03:20:58 PST 2025

