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


Performing analysis on: 4FGL_J1916.7-1516_weekly_bin931
RA = 289.176, Dec = -15.2779
tmin = 802051201, tmax = 802656001
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='28178911', job_status='RUN', time_executed='2026-06-09 17:36:24.940054', time_epoch_executed='1781051784.94' WHERE source_name='4FGL J1916.7-1516' and cadence='weekly' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28178911

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28178911/ft1_4FGL_J1916.7-1516_weekly_bin931.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28178911/ft2_4FGL_J1916.7-1516_weekly_bin931.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28178911/ft1_4FGL_J1916.7-1516_weekly_bin931.fits outfile=/lscratch/kocevski/28178911/ft1_filteredMKT_4FGL_J1916.7-1516_weekly_bin931.fits ra=289.176 dec=-15.2779 rad=12.0 tmin=802051201.0 tmax=802656001.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 5.36
user 4.92
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28178911/ft2_4FGL_J1916.7-1516_weekly_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28178911/ft2_4FGL_J1916.7-1516_weekly_bin931.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/28178911/ft1_filteredMKT_4FGL_J1916.7-1516_weekly_bin931.fits evtable="EVENTS" outfile="/lscratch/kocevski/28178911/ft1_filtered_4FGL_J1916.7-1516_weekly_bin931.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.57
user 0.23
sys 0.12

Number of photons that the gtmktime cut: 6840

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28178911/ft1_filtered_4FGL_J1916.7-1516_weekly_bin931.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28178911/ft2_4FGL_J1916.7-1516_weekly_bin931.fits sctable="SC_DATA" outfile=/lscratch/kocevski/28178911/ltcube_802051201_802656001_4FGL_J1916.7-1516_weekly_bin931.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/28178911/ft2_4FGL_J1916.7-1516_weekly_bin931.fits
.....................!
real 18.75
user 18.23
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28178911/ft1_filtered_4FGL_J1916.7-1516_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28178911/ft2_4FGL_J1916.7-1516_weekly_bin931.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28178911/ltcube_802051201_802656001_4FGL_J1916.7-1516_weekly_bin931.fits outfile=/lscratch/kocevski/28178911/expmap_802051201_802656001_4FGL_J1916.7-1516_weekly_bin931.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/28178911/ltcube_802051201_802656001_4FGL_J1916.7-1516_weekly_bin931.fits
.....................!
real 69.94
user 65.30
sys 3.94

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W44.fits is the correct path to the extended template.
Extended source W 28 in ROI with RadialDisk spatial model.
Extended source HESS J1804-216 in ROI with RadialDisk spatial model.
Extended source W 30 in ROI with RadialDisk spatial model.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Added 391 point sources and 16 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1916.7-1516 @ 289.176 -15.2779

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28178911/ft1_filtered_4FGL_J1916.7-1516_weekly_bin931.fits scfile=/lscratch/kocevski/28178911/ft2_4FGL_J1916.7-1516_weekly_bin931.fits outfile=/lscratch/kocevski/28178911/cmap_802051201_802656001_4FGL_J1916.7-1516_weekly_bin931.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=289.176 yref=-15.2779 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.57
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28178911/ft1_filtered_4FGL_J1916.7-1516_weekly_bin931.fits scfile=/lscratch/kocevski/28178911/ft2_4FGL_J1916.7-1516_weekly_bin931.fits outfile=/lscratch/kocevski/28178911/cmap_HighResolution_802051201_802656001_4FGL_J1916.7-1516_weekly_bin931.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=289.176 yref=-15.2779 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.55
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28178911/ft1_filtered_4FGL_J1916.7-1516_weekly_bin931.fits evtable="EVENTS" scfile=/lscratch/kocevski/28178911/ft2_4FGL_J1916.7-1516_weekly_bin931.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28178911/Model_4FGL_J1916.7-1516_weekly_bin931.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source G24.7+0.6
adding source GAL_V02
adding source HESS J1804-216
adding source HESS J1808-204
adding source HESS J1809-193
adding source HESS J1813-178
adding source HESS J1825-137
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 28
adding source W 30
adding source W 41
adding source W 44
Working on...
/lscratch/kocevski/28178911/ft1_filtered_4FGL_J1916.7-1516_weekly_bin931.fits....................!
real 652.07
user 646.86
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28178911/ft1_filtered_4FGL_J1916.7-1516_weekly_bin931.fits', '/lscratch/kocevski/28178911/ft2_4FGL_J1916.7-1516_weekly_bin931.fits', expMap='/lscratch/kocevski/28178911/expmap_802051201_802656001_4FGL_J1916.7-1516_weekly_bin931.fits', expCube='/lscratch/kocevski/28178911/ltcube_802051201_802656001_4FGL_J1916.7-1516_weekly_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28178911/Model_4FGL_J1916.7-1516_weekly_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1916.7-1516'

4FGL J1916.7-1516
   Spectrum: PowerLaw
1106    Prefactor:  8.018e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
1107        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1108        Scale:  8.840e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28178911/ft1_filtered_4FGL_J1916.7-1516_weekly_bin931.fits
Spacecraft file(s): /lscratch/kocevski/28178911/ft2_4FGL_J1916.7-1516_weekly_bin931.fits
Exposure map: /lscratch/kocevski/28178911/expmap_802051201_802656001_4FGL_J1916.7-1516_weekly_bin931.fits
Exposure cube: /lscratch/kocevski/28178911/ltcube_802051201_802656001_4FGL_J1916.7-1516_weekly_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28178911/Model_4FGL_J1916.7-1516_weekly_bin931.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) = 64432.3446634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.709       1.0000          .0000       .10000E+07
     2 'Prefactor '    .80706E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .22838E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .25234       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36736E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.6261       1.0000          .0000       .10000E+07
     7 'norm      '    5.2743       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21946E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    10.722       1.0000          .0000       .10000E+07
    10 'norm      '    .74267       1.0000          .0000       .10000E+07
    11 'norm      '    1.5245       1.0000          .0000       .10000E+07
    12 'Prefactor '    17.376       1.0000          .0000       .10000E+07
    13 'Prefactor '    .48344E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4380       1.0000          .0000       .10000E+07
    15 'Prefactor '    23.692       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.6538       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2104       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97856       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1471E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   64432.32     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     1082 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.709        2.1353       -.29078E-07   -.30850E-02
   2  Prefactor     .44409E-09    12.434        .90174E-06** at limit **
   3  norm           .0000        9.3426        .79501E-06** at limit **
   4  norm          .25232        .25470        .53837E-07    .70950E-03
   5  Prefactor     .11102E-09    3.5442       -.26805E-06** at limit **
   6  Prefactor     2.6258        1.5405        .41502E-07    .26830E-03
   7  norm          5.2918        1.2037       -.21153E-06    .62138E-02
   8  Prefactor     .55511E-10    19.303        .14896E-05** at limit **
   9  Prefactor     10.719        4.6314       -.35722E-07   -.27392E-03
  10  norm          .74290        1.1650        .75308E-07   -.22204E-03
  11  norm          1.5228        2.8893       -.58533E-06   -.37559E-02
  12  Prefactor     17.347        8.9598        .15334E-05    .67562E-03
  13  Prefactor     .11102E-09    3.1563        .49626E-06** at limit **
  14  Prefactor     2.4384        2.1477        .15786E-06    .77706E-02
  15  Prefactor     23.659        1.1391        .84661E-07   -.14719E-01
  16  Prefactor     1.6539        1.1131       -.15100E-06    .26319E-02
  17  Normalizat    1.2105        .18894        .13698E-05   -.14085E-03
  18  Prefactor     .97856        .22045E-01   -.31365E-07   -.14348E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 18.7088
  Prefactor  = 4.44089e-10
  norm       = 0
  norm       = 0.252323
  Prefactor  = 1.11022e-10
  Prefactor  = 2.62585
  norm       = 5.29179
  Prefactor  = 5.55112e-11
  Prefactor  = 10.7192
  norm       = 0.742902
  norm       = 1.52277
  Prefactor  = 17.3475
  Prefactor  = 1.11022e-10
  Prefactor  = 2.43842
  Prefactor  = 23.6593
  Prefactor  = 1.65393
  Normalizat = 1.21054
  Prefactor  = 0.97856
 **********
 **   18 **HESSE 
 **********

 FCN=   64432.32     FROM HESSE     STATUS=OK           298 CALLS     1380 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.709        2.1361        .23128E-03   -1.5621    
   2  Prefactor     .44409E-09    12.499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .71673        .74911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .25232        .29717        .32204E-02   -1.5698    
   5  Prefactor     .11102E-09    3.5645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6258        1.5524        .62905E-03   -1.5676    
   7  norm          5.2918        12.293        .43742E-03   -1.5662    
   8  Prefactor     .55511E-10    19.309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.719        4.6795        .30574E-03   -1.5642    
  10  norm          .74290        1.1784        .57310E-03   -1.5691    
  11  norm          1.5228        2.9267        .86463E-03   -1.5683    
  12  Prefactor     17.347        8.9964        .24000E-03   -1.5625    
  13  Prefactor     .11102E-09    3.1692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4384        2.1703        .65502E-03   -1.5677    
  15  Prefactor     23.659        15.631        .20550E-03   -1.5611    
  16  Prefactor     1.6539        1.1361        .82046E-03   -1.5682    
  17  Normalizat    1.2105        .19400        .21217       -.86278    
  18  Prefactor     .97856        .21856E-01    .28691E-01   -.93448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40994e-06
Minuit parameter uncertainties:
  1  2.13613
  2  0.000152129
  3  7.58068e-06
  4  0.297175
  5  3.54063e-05
  6  1.5524
  7  12.2935
  8  6.3838e-05
  9  4.67947
  10  1.17841
  11  2.9267
  12  8.99639
  13  3.86159e-05
  14  2.17026
  15  15.6308
  16  1.13614
  17  0.194115
  18  0.0218566
Done.

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

Extracting fit parameters...

4FGL J1916.7-1516
   Spectrum: PowerLaw
1106    Prefactor:  5.551e-11  6.384e-05  0.000e+00  1.000e+06 ( 1.000e-13)
1107        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1108        Scale:  8.840e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1421    Prefactor:  9.786e-01  2.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1422        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1423        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1410   Normalization:  1.211e+00  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 289.176 -15.278
Photon Flux Upper Limit: 8.36919520115e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00656451309924 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28178911/likelihoodResults_802051201_802656001_4FGL_J1916.7-1516_weekly_bin931.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) = 64432.3499666
delta logL = -0.0253083039934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 64432.3246674
delta logL = -9.07151115825e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   64432.32     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      257 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        88.781       -.25342E-05** at limit **
   2  Index         3.4217        3.2117        .38064E-04     .0000    
   3  Normalizat    1.2105        .17657       -.46466E-05    .87786E-04
   4  Prefactor     .97856        .21554E-01    .35133E-06    .13201E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.42167
  Normalizat = 1.21054
  Prefactor  = 0.97856
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   64432.32     FROM HESSE     STATUS=FAILED        17 CALLS      274 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.8742        .85471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3064        2.1494        .38064E-04   -.32116    
   3  Normalizat    1.2105        1.1026       -.46466E-05   -.86278    
   4  Prefactor     .97856        1.3190        .35133E-06   -.93448    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.60741e-11
Minuit parameter uncertainties:
  1  2.01641e-05
  2  0.988452
  3  1.12496
  4  1.36671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 64432.3246583
delta logL = 0.0

Extracting fit parameters...

4FGL J1916.7-1516
   Spectrum: PowerLaw
1106    Prefactor:  0.000e+00  2.016e-05  0.000e+00  1.000e+06 ( 1.000e-13)
1107        Index:  3.422e+00  9.885e-01  0.000e+00  1.000e+01 (-1.000e+00)
1108        Scale:  8.840e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1421    Prefactor:  9.786e-01  1.367e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1422        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1423        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1410   Normalization:  1.211e+00  1.125e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 289.176 -15.278

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/28178911/cmap_HighResolution_802051201_802656001_4FGL_J1916.7-1516_weekly_bin931.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-03', job_status='DONE', photon_flux_upper_limit='8.37e-08', time_completed='2026-06-09 18:26:27.790103', job_id='28178911', GAL2='0.98', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1781054787.79', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='931' AND source_name='4FGL J1916.7-1516' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  9 18:26:28 PDT 2026

