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


Performing analysis on: 4FGL_J1717.6-5154_daily_bin2109
RA = 259.403, Dec = -51.909
tmin = 785980801, tmax = 786240001
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='16432287', job_status='RUN', time_executed='2025-12-01 00:57:58.100700', time_epoch_executed='1764579478.1' WHERE source_name='4FGL J1717.6-5154' and cadence='daily' and bin_id='2109'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/16432287

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/16432287/ft1_4FGL_J1717.6-5154_daily_bin2109.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/16432287/ft2_4FGL_J1717.6-5154_daily_bin2109.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/16432287/ft1_4FGL_J1717.6-5154_daily_bin2109.fits outfile=/lscratch/kocevski/16432287/ft1_filteredMKT_4FGL_J1717.6-5154_daily_bin2109.fits ra=259.403 dec=-51.909 rad=12.0 tmin=785980801.0 tmax=786240001.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.08
user 1.57
sys 0.14

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/16432287/ft2_4FGL_J1717.6-5154_daily_bin2109.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/16432287/ft2_4FGL_J1717.6-5154_daily_bin2109.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/16432287/ft1_filteredMKT_4FGL_J1717.6-5154_daily_bin2109.fits evtable="EVENTS" outfile="/lscratch/kocevski/16432287/ft1_filtered_4FGL_J1717.6-5154_daily_bin2109.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.55
user 0.21
sys 0.11

Number of photons that the gtmktime cut: 1115

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/16432287/ft1_filtered_4FGL_J1717.6-5154_daily_bin2109.fits" evtable="EVENTS" scfile=/lscratch/kocevski/16432287/ft2_4FGL_J1717.6-5154_daily_bin2109.fits sctable="SC_DATA" outfile=/lscratch/kocevski/16432287/ltcube_785980801_786240001_4FGL_J1717.6-5154_daily_bin2109.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/16432287/ft2_4FGL_J1717.6-5154_daily_bin2109.fits
.....................!
real 9.22
user 8.65
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/16432287/ft1_filtered_4FGL_J1717.6-5154_daily_bin2109.fits evtable="EVENTS" scfile=/lscratch/kocevski/16432287/ft2_4FGL_J1717.6-5154_daily_bin2109.fits sctable="SC_DATA" expcube=/lscratch/kocevski/16432287/ltcube_785980801_786240001_4FGL_J1717.6-5154_daily_bin2109.fits outfile=/lscratch/kocevski/16432287/expmap_785980801_786240001_4FGL_J1717.6-5154_daily_bin2109.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/16432287/ltcube_785980801_786240001_4FGL_J1717.6-5154_daily_bin2109.fits
.....................!
real 72.14
user 67.42
sys 4.10

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 FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source RX J1713.7-3946 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Added 464 point sources and 17 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 J1717.6-5154 @ 259.403 -51.909

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/16432287/ft1_filtered_4FGL_J1717.6-5154_daily_bin2109.fits scfile=/lscratch/kocevski/16432287/ft2_4FGL_J1717.6-5154_daily_bin2109.fits outfile=/lscratch/kocevski/16432287/cmap_785980801_786240001_4FGL_J1717.6-5154_daily_bin2109.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=259.403 yref=-51.909 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.54
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/16432287/ft1_filtered_4FGL_J1717.6-5154_daily_bin2109.fits scfile=/lscratch/kocevski/16432287/ft2_4FGL_J1717.6-5154_daily_bin2109.fits outfile=/lscratch/kocevski/16432287/cmap_HighResolution_785980801_786240001_4FGL_J1717.6-5154_daily_bin2109.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=259.403 yref=-51.909 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.22
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/16432287/ft1_filtered_4FGL_J1717.6-5154_daily_bin2109.fits evtable="EVENTS" scfile=/lscratch/kocevski/16432287/ft2_4FGL_J1717.6-5154_daily_bin2109.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/16432287/Model_4FGL_J1717.6-5154_daily_bin2109.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 J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RX J1713.7-3946
Working on...
/lscratch/kocevski/16432287/ft1_filtered_4FGL_J1717.6-5154_daily_bin2109.fits.....................!
real 251.94
user 250.02
sys 0.72

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/16432287/ft1_filtered_4FGL_J1717.6-5154_daily_bin2109.fits', '/lscratch/kocevski/16432287/ft2_4FGL_J1717.6-5154_daily_bin2109.fits', expMap='/lscratch/kocevski/16432287/expmap_785980801_786240001_4FGL_J1717.6-5154_daily_bin2109.fits', expCube='/lscratch/kocevski/16432287/ltcube_785980801_786240001_4FGL_J1717.6-5154_daily_bin2109.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/16432287/Model_4FGL_J1717.6-5154_daily_bin2109.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1717.6-5154'

4FGL J1717.6-5154
   Spectrum: LogParabola
960         norm:  1.794e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
961        alpha:  2.518e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
962         beta:  3.865e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
963           Eb:  9.930e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/16432287/ft1_filtered_4FGL_J1717.6-5154_daily_bin2109.fits
Spacecraft file(s): /lscratch/kocevski/16432287/ft2_4FGL_J1717.6-5154_daily_bin2109.fits
Exposure map: /lscratch/kocevski/16432287/expmap_785980801_786240001_4FGL_J1717.6-5154_daily_bin2109.fits
Exposure cube: /lscratch/kocevski/16432287/ltcube_785980801_786240001_4FGL_J1717.6-5154_daily_bin2109.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/16432287/Model_4FGL_J1717.6-5154_daily_bin2109.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) = 10108.5304239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    166.21       1.0000          .0000       .10000E+07
     2 'Prefactor '    6819.4       1.0000          .0000       .10000E+07
     3 'norm      '    17.979       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8810       1.0000          .0000       .10000E+07
     5 'norm      '    .20706E-06   1.0000          .0000       .10000E+07
     6 'norm      '    2.4489       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11889E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.304       1.0000          .0000       .10000E+07
     9 'Prefactor '    .48576E-02   1.0000          .0000       .10000E+07
    10 'norm      '    53.156       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.583       1.0000          .0000       .10000E+07
    12 'Prefactor '    30.435       1.0000          .0000       .10000E+07
    13 'norm      '    .34204       1.0000          .0000       .10000E+07
    14 'Prefactor '    13.572       1.0000          .0000       .10000E+07
    15 'Prefactor '    .12369E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .40338E-05   1.0000          .0000       .10000E+07
    17 'norm      '    4.5479       1.0000          .0000       .10000E+07
    18 'norm      '    .16714E-06   1.0000          .0000       .10000E+07
    19 'Normalizat'    .37248       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90137       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1723E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10108.52     FROM MIGRAD    STATUS=CONVERGED    225 CALLS     2478 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          168.63        66.003       -.65858E-06   -.17306E-03
   2  Prefactor     6886.4        997.86       -.59687E-06   -.90441E-04
   3  norm          17.667        16.377        .62497E-07    .18846E-04
   4  Prefactor     2.8690        3.1854       -.80627E-08   -.24024E-04
   5  norm           .0000        .99105        .18432E-09** at limit **
   6  norm          2.3347        12.726       -.10107E-06   -.32940E-04
   7  Prefactor     .10000E-03    5.2089       -.39451E-06** at limit **
   8  Prefactor     20.281        11.513       -.10544E-06    .35667E-04
   9  Prefactor      .0000        20.747        .16958E-07** at limit **
  10  norm          53.302        59.503        .23725E-06   -.24645E-03
  11  Prefactor     10.527        22.288       -.36279E-06   -.42581E-03
  12  Prefactor     31.794        153.86       -.19630E-05   -.15324E-03
  13  norm          .49759        166.05       -.21613E-05   -.26378E-03
  14  Prefactor     13.614        26.217       -.40073E-06   -.16515E-03
  15  Prefactor      .0000        17.492        .87202E-07** at limit **
  16  norm           .0000        1.9167        .10227E-07** at limit **
  17  norm          4.6021        5.3276       -.11952E-06   -.16450E-03
  18  norm           .0000        .87764        .44592E-07** at limit **
  19  Normalizat    .37114        .41435        .23150E-04   -.63479E-05
  20  Prefactor     .90023        .57970E-01    .54756E-06   -.55656E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 168.631
  Prefactor  = 6886.37
  norm       = 17.6672
  Prefactor  = 2.86903
  norm       = 0
  norm       = 2.3347
  Prefactor  = 0.0001
  Prefactor  = 20.2812
  Prefactor  = 0
  norm       = 53.3023
  Prefactor  = 10.5274
  Prefactor  = 31.7944
  norm       = 0.497592
  Prefactor  = 13.6141
  Prefactor  = 0
  norm       = 0
  norm       = 4.60208
  norm       = 0
  Normalizat = 0.371135
  Prefactor  = 0.900232
 **********
 **   18 **HESSE 
 **********

 FCN=   10108.52     FROM HESSE     STATUS=OK           343 CALLS     2821 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          168.63        66.430        .77572E-04   -1.5448    
   2  Prefactor     6886.4        996.14        .12151E-04   -1.4046    
   3  norm          17.667        16.410        .23594E-03   -1.5624    
   4  Prefactor     2.8690        3.1944        .59853E-03   -1.5674    
   5  norm           .0000        .99134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3347        12.751        .65342E-03   -1.5677    
   7  Prefactor     .10000E-03    5.1667        .10322E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.281        12.131        .22200E-03   -1.5618    
   9  Prefactor      .0000        20.752        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          53.302        59.676        .13717E-03   -1.5562    
  11  Prefactor     10.527        23.050        .30775E-03   -1.5643    
  12  Prefactor     31.794        158.48        .18129E-03   -1.5595    
  13  norm          .49759        13.629        .11202E-01   -1.5694    
  14  Prefactor     13.614        26.805        .27163E-03   -1.5634    
  15  Prefactor      .0000        17.477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        1.9208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.6021        5.6195        .47181E-03   -1.5665    
  18  norm           .0000        .86297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .37114        .59826        .31039       -1.1882    
  20  Prefactor     .90023        .74164E-01    .29855E-01   -.96133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13618e-07
Minuit parameter uncertainties:
  1  66.43
  2  996.159
  3  16.4101
  4  3.19441
  5  6.43972e-08
  6  10.9124
  7  1.49539e-07
  8  12.1307
  9  5.17084e-06
  10  59.6766
  11  23.0503
  12  141.974
  13  5.20841
  14  26.805
  15  5.11461e-06
  16  3.45281e-07
  17  5.61948
  18  1.50191e-07
  19  0.609028
  20  0.0741722
Done.

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

Extracting fit parameters...

4FGL J1717.6-5154
   Spectrum: LogParabola
960         norm:  2.335e+00  1.091e+01  0.000e+00  1.000e+06 ( 1.000e-12)
961        alpha:  2.518e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
962         beta:  3.865e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
963           Eb:  9.930e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1692    Prefactor:  9.002e-01  7.417e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1660   Normalization:  3.711e-01  6.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 259.403 -51.909
Photon Flux Upper Limit: 2.25601262057e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.01687416189e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/16432287/likelihoodResults_785980801_786240001_4FGL_J1717.6-5154_daily_bin2109.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) = 10108.1112775
delta logL = 0.406720644341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10108.0825071
delta logL = 0.435491098453

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5895       1.0000          .0000       .10000E+07
     2 'alpha     '    4.0980       1.0000          .0000       5.0000    
     3 'Normalizat'    .33372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89788       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1723E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10108.08     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      251 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5894        39.878        .84142E-03    .14087E-01
   2  alpha         4.0979        4.2892        .50000        .90340E-04
   3  Normalizat    .33425        .11841        .32582        .10502E-03
   4  Prefactor     .89781        .17368E-01    .29858E-01    .19066E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58942
  alpha      = 4.09786
  Normalizat = 0.334254
  Prefactor  = 0.897811
 **********
 **   18 **HESSE 
 **********

 FCN=   10108.08     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      286 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5894        103.57        .13698E-04   -1.5683    
   2  alpha         4.0979        2.8121        .31647E-01    .69339    
   3  Normalizat    .33425        .38328        .14040E-01   -1.2085    
   4  Prefactor     .89781        .55681E-01    .13194E-03   -.96218    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.06554e-06
Minuit parameter uncertainties:
  1  25.6614
  2  9.47865
  3  0.386338
  4  0.0556848
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) = 10108.082506
delta logL = 0.435492197714

Extracting fit parameters...

4FGL J1717.6-5154
   Spectrum: LogParabola
960         norm:  1.589e+00  2.566e+01  0.000e+00  1.000e+06 ( 1.000e-12)
961        alpha:  4.098e+00  9.479e+00  0.000e+00  5.000e+00 ( 1.000e+00)
962         beta:  3.865e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
963           Eb:  9.930e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1692    Prefactor:  8.978e-01  5.568e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1660   Normalization:  3.343e-01  3.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 259.403 -51.909

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/16432287/cmap_HighResolution_785980801_786240001_4FGL_J1717.6-5154_daily_bin2109.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.02e-05', job_status='DONE', photon_flux_upper_limit='2.26e-07', time_completed='2025-12-01 01:18:18.256941', job_id='16432287', GAL2='0.90', fit_tolerance='1e-08', EG2='0.33', EG='0.37', time_epoch_completed='1764580698.26', return_code2='102', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.35e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='2109' AND source_name='4FGL J1717.6-5154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  1 01:18:18 PST 2025

