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


Performing analysis on: 4FGL_J1647.4-6438_daily_bin2126
RA = 251.87, Dec = -64.6454
tmin = 790387201, tmax = 790646401
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='19299292', job_status='RUN', time_executed='2026-01-21 00:47:55.001449', time_epoch_executed='1768985275.0' WHERE source_name='4FGL J1647.4-6438' and cadence='daily' and bin_id='2126'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19299292

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19299292/ft1_4FGL_J1647.4-6438_daily_bin2126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19299292/ft2_4FGL_J1647.4-6438_daily_bin2126.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19299292/ft1_4FGL_J1647.4-6438_daily_bin2126.fits outfile=/lscratch/kocevski/19299292/ft1_filteredMKT_4FGL_J1647.4-6438_daily_bin2126.fits ra=251.87 dec=-64.6454 rad=12.0 tmin=790387201.0 tmax=790646401.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 1.86
user 1.18
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19299292/ft2_4FGL_J1647.4-6438_daily_bin2126.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19299292/ft2_4FGL_J1647.4-6438_daily_bin2126.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/19299292/ft1_filteredMKT_4FGL_J1647.4-6438_daily_bin2126.fits evtable="EVENTS" outfile="/lscratch/kocevski/19299292/ft1_filtered_4FGL_J1647.4-6438_daily_bin2126.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.84
user 0.18
sys 0.12

Number of photons that the gtmktime cut: 2289

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19299292/ft1_filtered_4FGL_J1647.4-6438_daily_bin2126.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19299292/ft2_4FGL_J1647.4-6438_daily_bin2126.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19299292/ltcube_790387201_790646401_4FGL_J1647.4-6438_daily_bin2126.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/19299292/ft2_4FGL_J1647.4-6438_daily_bin2126.fits
.....................!
real 8.31
user 7.61
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19299292/ft1_filtered_4FGL_J1647.4-6438_daily_bin2126.fits evtable="EVENTS" scfile=/lscratch/kocevski/19299292/ft2_4FGL_J1647.4-6438_daily_bin2126.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19299292/ltcube_790387201_790646401_4FGL_J1647.4-6438_daily_bin2126.fits outfile=/lscratch/kocevski/19299292/expmap_790387201_790646401_4FGL_J1647.4-6438_daily_bin2126.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/19299292/ltcube_790387201_790646401_4FGL_J1647.4-6438_daily_bin2126.fits
.....................!
real 60.90
user 56.83
sys 3.36

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 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.
Extended source HESS J1534-571 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 FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RCW86.fits is the correct path to the extended template.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
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 FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Added 396 point sources and 19 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 J1647.4-6438 @ 251.87 -64.6454

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19299292/ft1_filtered_4FGL_J1647.4-6438_daily_bin2126.fits scfile=/lscratch/kocevski/19299292/ft2_4FGL_J1647.4-6438_daily_bin2126.fits outfile=/lscratch/kocevski/19299292/cmap_790387201_790646401_4FGL_J1647.4-6438_daily_bin2126.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=251.87 yref=-64.6454 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.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19299292/ft1_filtered_4FGL_J1647.4-6438_daily_bin2126.fits scfile=/lscratch/kocevski/19299292/ft2_4FGL_J1647.4-6438_daily_bin2126.fits outfile=/lscratch/kocevski/19299292/cmap_HighResolution_790387201_790646401_4FGL_J1647.4-6438_daily_bin2126.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=251.87 yref=-64.6454 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.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19299292/ft1_filtered_4FGL_J1647.4-6438_daily_bin2126.fits evtable="EVENTS" scfile=/lscratch/kocevski/19299292/ft2_4FGL_J1647.4-6438_daily_bin2126.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19299292/Model_4FGL_J1647.4-6438_daily_bin2126.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 J1409.1-6121
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 G337.0-0.1
adding source GAL_V02
adding source HESS J1356-645
adding source HESS J1420-607
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 RCW 86
Working on...
/lscratch/kocevski/19299292/ft1_filtered_4FGL_J1647.4-6438_daily_bin2126.fits.....................!
real 374.94
user 371.21
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19299292/ft1_filtered_4FGL_J1647.4-6438_daily_bin2126.fits', '/lscratch/kocevski/19299292/ft2_4FGL_J1647.4-6438_daily_bin2126.fits', expMap='/lscratch/kocevski/19299292/expmap_790387201_790646401_4FGL_J1647.4-6438_daily_bin2126.fits', expCube='/lscratch/kocevski/19299292/ltcube_790387201_790646401_4FGL_J1647.4-6438_daily_bin2126.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19299292/Model_4FGL_J1647.4-6438_daily_bin2126.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1647.4-6438'

4FGL J1647.4-6438
   Spectrum: PowerLaw
886    Prefactor:  3.667e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
887        Index:  2.285e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
888        Scale:  1.482e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19299292/ft1_filtered_4FGL_J1647.4-6438_daily_bin2126.fits
Spacecraft file(s): /lscratch/kocevski/19299292/ft2_4FGL_J1647.4-6438_daily_bin2126.fits
Exposure map: /lscratch/kocevski/19299292/expmap_790387201_790646401_4FGL_J1647.4-6438_daily_bin2126.fits
Exposure cube: /lscratch/kocevski/19299292/ltcube_790387201_790646401_4FGL_J1647.4-6438_daily_bin2126.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19299292/Model_4FGL_J1647.4-6438_daily_bin2126.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) = 19943.0791663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.679       1.0000          .0000       .10000E+07
     2 'norm      '    25.041       1.0000          .0000       .10000E+07
     3 'norm      '    1.3407       1.0000          .0000       .10000E+07
     4 'norm      '    .22632E-06   1.0000          .0000       .10000E+07
     5 'norm      '    .18818E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .18632E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .89254E-01   1.0000          .0000       .10000E+07
     8 'norm      '    7.9885       1.0000          .0000       .10000E+07
     9 'Prefactor '    .21702E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .98021E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .30557E-02   1.0000          .0000       .10000E+07
    13 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    14 'Prefactor '    .77903       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1479E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19943.08     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1292 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.681        9.5400        .44105E-06    .11742    
   2  norm          25.054        7.1381       -.29292E-06    .18047    
   3  norm          1.4024        4.5050        .41840E-06   -.45709E-03
   4  norm           .0000        .83329        .14004E-07** at limit **
   5  norm           .0000        1.3471        .20236E-09** at limit **
   6  Prefactor      .0000        2.3015        .26431E-08** at limit **
   7  norm           .0000        28.611       -.10353E-07** at limit **
   8  norm          8.4364        3.8692       -.16003E-07    .42069E-02
   9  Prefactor     .18319E-08    65.323        .16798E-06** at limit **
  10  Prefactor     .10000E+07    2580.0        .88937E-05** at limit **
  11  Prefactor      .0000        6.2773        .41025E-07** at limit **
  12  Prefactor      .0000        4.4904       -.79351E-07** at limit **
  13  Normalizat    .10000E-01    .19801E-01    .97307E-07** at limit **
  14  Prefactor     .77900        .23079E-01   -.33275E-06    .16858E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.681
  norm       = 25.0538
  norm       = 1.40242
  norm       = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 8.43642
  Prefactor  = 1.83187e-09
  Prefactor  = 1e+06
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.01
  Prefactor  = 0.778998
 **********
 **   18 **HESSE 
 **********

 FCN=   19943.08     FROM HESSE     STATUS=OK           190 CALLS     1482 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.681        11.397        .21997E-03   -1.5617    
   2  norm          25.054        13.119        .19988E-03   -1.5608    
   3  norm          1.4024        4.5515        .94625E-03   -1.5684    
   4  norm           .0000        .83264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.3478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        2.3020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        28.607        .14227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.4364        45.589        .35451E-03   -1.5650    
   9  Prefactor     .18319E-08    65.913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E+07    2613.9        .90912E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        6.2778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        4.4931        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Normalizat    .10000E-01    .19030E-01    .27775       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .77900        .23842E-01    .26520E-01   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16981e-06
Minuit parameter uncertainties:
  1  11.3973
  2  13.1187
  3  4.55148
  4  7.48488e-08
  5  4.82832e-07
  6  9.22338e-07
  7  3.04133e-06
  8  39.2235
  9  0.000690485
  10  0.0936098
  11  2.14727e-05
  12  7.69916e-06
  13  1.17306e-09
  14  0.0238428
Done.

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

Extracting fit parameters...

4FGL J1647.4-6438
   Spectrum: PowerLaw
886    Prefactor:  0.000e+00  9.223e-07  0.000e+00  1.000e+06 ( 1.000e-13)
887        Index:  2.285e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
888        Scale:  1.482e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1443    Prefactor:  7.790e-01  2.384e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1444        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1445        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1410   Normalization:  1.000e-02  1.173e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 251.870 -64.645
Photon Flux Upper Limit: 5.06434677163e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00388234474825 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19299292/likelihoodResults_790387201_790646401_4FGL_J1647.4-6438_daily_bin2126.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) = 19943.081078
delta logL = -0.00402981994921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19943.0770482
delta logL = -4.44997567683e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19943.08     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      239 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.7822        .19794E-06** at limit **
   2  Index         1.9090        2.2234       -.12479E-04     .0000    
   3  Normalizat    .10000E-01    .19488E-01   -.33776E-06** at limit **
   4  Prefactor     .77900        .22779E-01    .10040E-05    .88788E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.90898
  Normalizat = 0.01
  Prefactor  = 0.778998
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   19943.08     FROM HESSE     STATUS=FAILED        11 CALLS      250 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.7758        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .38375        1.7884       -.12479E-04   -.66645    
   3  Normalizat    .10000E-01    .25505       -.33776E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77900        1.1281        .10040E-05   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.07891e-12
Minuit parameter uncertainties:
  1  4.34601e-06
  2  1.63338
  3  1.4289e-07
  4  1.16434
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) = 19943.0770482
delta logL = 0.0

Extracting fit parameters...

4FGL J1647.4-6438
   Spectrum: PowerLaw
886    Prefactor:  0.000e+00  4.346e-06  0.000e+00  1.000e+06 ( 1.000e-13)
887        Index:  1.909e+00  1.633e+00  0.000e+00  1.000e+01 (-1.000e+00)
888        Scale:  1.482e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1443    Prefactor:  7.790e-01  1.164e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1444        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1445        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1410   Normalization:  1.000e-02  1.429e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 251.870 -64.645

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/19299292/cmap_HighResolution_790387201_790646401_4FGL_J1647.4-6438_daily_bin2126.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2026-01-21 01:09:41.126203', job_id='19299292', GAL2='0.78', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1768986581.13', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='2126' AND source_name='4FGL J1647.4-6438' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 21 01:09:41 PST 2026

