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


Performing analysis on: 4FGL_J0647.7-6058_daily_bin2157
RA = 101.931, Dec = -60.9781
tmin = 798422401, tmax = 798681601
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='25725705', job_status='RUN', time_executed='2026-04-24 00:17:13.500687', time_epoch_executed='1777015033.5' WHERE source_name='4FGL J0647.7-6058' and cadence='daily' and bin_id='2157'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/25725705

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/25725705/ft1_4FGL_J0647.7-6058_daily_bin2157.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/25725705/ft2_4FGL_J0647.7-6058_daily_bin2157.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/25725705/ft1_4FGL_J0647.7-6058_daily_bin2157.fits outfile=/lscratch/kocevski/25725705/ft1_filteredMKT_4FGL_J0647.7-6058_daily_bin2157.fits ra=101.931 dec=-60.9781 rad=12.0 tmin=798422401.0 tmax=798681601.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.79
user 1.96
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/25725705/ft2_4FGL_J0647.7-6058_daily_bin2157.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/25725705/ft2_4FGL_J0647.7-6058_daily_bin2157.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/25725705/ft1_filteredMKT_4FGL_J0647.7-6058_daily_bin2157.fits evtable="EVENTS" outfile="/lscratch/kocevski/25725705/ft1_filtered_4FGL_J0647.7-6058_daily_bin2157.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 1.00
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 839

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/25725705/ft1_filtered_4FGL_J0647.7-6058_daily_bin2157.fits" evtable="EVENTS" scfile=/lscratch/kocevski/25725705/ft2_4FGL_J0647.7-6058_daily_bin2157.fits sctable="SC_DATA" outfile=/lscratch/kocevski/25725705/ltcube_798422401_798681601_4FGL_J0647.7-6058_daily_bin2157.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/25725705/ft2_4FGL_J0647.7-6058_daily_bin2157.fits
.....................!
real 11.67
user 10.57
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/25725705/ft1_filtered_4FGL_J0647.7-6058_daily_bin2157.fits evtable="EVENTS" scfile=/lscratch/kocevski/25725705/ft2_4FGL_J0647.7-6058_daily_bin2157.fits sctable="SC_DATA" expcube=/lscratch/kocevski/25725705/ltcube_798422401_798681601_4FGL_J0647.7-6058_daily_bin2157.fits outfile=/lscratch/kocevski/25725705/expmap_798422401_798681601_4FGL_J0647.7-6058_daily_bin2157.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/25725705/ltcube_798422401_798681601_4FGL_J0647.7-6058_daily_bin2157.fits
.....................!
real 76.71
user 69.23
sys 4.14

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 LMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-North.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-FarWest.fits is the correct path to the extended template.
Added 210 point sources and 4 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 J0647.7-6058 @ 101.931 -60.9781

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/25725705/ft1_filtered_4FGL_J0647.7-6058_daily_bin2157.fits scfile=/lscratch/kocevski/25725705/ft2_4FGL_J0647.7-6058_daily_bin2157.fits outfile=/lscratch/kocevski/25725705/cmap_798422401_798681601_4FGL_J0647.7-6058_daily_bin2157.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=101.931 yref=-60.9781 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 1.37
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/25725705/ft1_filtered_4FGL_J0647.7-6058_daily_bin2157.fits scfile=/lscratch/kocevski/25725705/ft2_4FGL_J0647.7-6058_daily_bin2157.fits outfile=/lscratch/kocevski/25725705/cmap_HighResolution_798422401_798681601_4FGL_J0647.7-6058_daily_bin2157.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=101.931 yref=-60.9781 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.79
user 0.22
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/25725705/ft1_filtered_4FGL_J0647.7-6058_daily_bin2157.fits evtable="EVENTS" scfile=/lscratch/kocevski/25725705/ft2_4FGL_J0647.7-6058_daily_bin2157.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/25725705/Model_4FGL_J0647.7-6058_daily_bin2157.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/lscratch/kocevski/25725705/ft1_filtered_4FGL_J0647.7-6058_daily_bin2157.fits.....................!
real 2101.60
user 2043.42
sys 4.99

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/25725705/ft1_filtered_4FGL_J0647.7-6058_daily_bin2157.fits', '/lscratch/kocevski/25725705/ft2_4FGL_J0647.7-6058_daily_bin2157.fits', expMap='/lscratch/kocevski/25725705/expmap_798422401_798681601_4FGL_J0647.7-6058_daily_bin2157.fits', expCube='/lscratch/kocevski/25725705/ltcube_798422401_798681601_4FGL_J0647.7-6058_daily_bin2157.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/25725705/Model_4FGL_J0647.7-6058_daily_bin2157.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0647.7-6058'

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  9.082e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/25725705/ft1_filtered_4FGL_J0647.7-6058_daily_bin2157.fits
Spacecraft file(s): /lscratch/kocevski/25725705/ft2_4FGL_J0647.7-6058_daily_bin2157.fits
Exposure map: /lscratch/kocevski/25725705/expmap_798422401_798681601_4FGL_J0647.7-6058_daily_bin2157.fits
Exposure cube: /lscratch/kocevski/25725705/ltcube_798422401_798681601_4FGL_J0647.7-6058_daily_bin2157.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/25725705/Model_4FGL_J0647.7-6058_daily_bin2157.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) = 8661.67207737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.029       1.0000          .0000       .10000E+07
     2 'norm      '    .95337E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .55796       1.0000          .0000       .10000E+07
     4 'norm      '    7.2300       1.0000          .0000       .10000E+07
     5 'norm      '    27.456       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.8245       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.3641       1.0000          .0000       .10000E+07
     8 'Prefactor '    .49304E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .64233       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10306E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .87192E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    9.9531       1.0000          .0000       .10000E+07
    13 'norm      '    1.7075       1.0000          .0000       .10000E+07
    14 'Prefactor '    .87065E-04   1.0000          .0000       .10000E+07
    15 'norm      '    4.7030       1.0000          .0000       .10000E+07
    16 'Prefactor '    .20250E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    6.6181       1.0000          .0000       .10000E+07
    18 'Prefactor '    20.204       1.0000          .0000       .10000E+07
    19 'Prefactor '    .44055E-03   1.0000          .0000       .10000E+07
    20 'norm      '    3.6651       1.0000          .0000       .10000E+07
    21 'Prefactor '    7.6446       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.6099       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69684       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8661.646     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     1503 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.707        19.191        .86909E-07   -.64973E-03
   2  norm           .0000        2.3362       -.45356E-07** at limit **
   3  Prefactor     .57130        3.2854       -.88909E-07    .37766E-04
   4  norm          7.1959        6.3040        .57764E-07   -.13951E-03
   5  norm          27.491        10.458       -.27089E-07   -.32158E-02
   6  Prefactor     4.9142        17.899       -.64312E-08    .10568E-02
   7  Prefactor     6.4337        10.867        .60037E-07   -.50866E-02
   8  Prefactor     .55511E-10    7.1853        .42388E-07** at limit **
   9  Prefactor     .60016        7.7320       -.98825E-07   -.88983E-03
  10  Prefactor      .0000        2.7298        .12529E-06** at limit **
  11  Prefactor      .0000        64.519       -.19806E-06** at limit **
  12  Prefactor     10.088        15.126       -.54295E-07    .78916E-03
  13  norm          1.7058        1.7284        .77280E-09   -.50750E-04
  14  Prefactor      .0000        19.443        .32741E-07** at limit **
  15  norm          4.7100        3.0512        .67341E-07   -.43192E-03
  16  Prefactor      .0000        5.5054       -.34281E-07** at limit **
  17  Prefactor     6.6508        7.3496        .33813E-07    .88848E-02
  18  Prefactor     27.671        64.384       -.29434E-06    .10903E-03
  19  Prefactor     .11102E-09    111.15        .61565E-07** at limit **
  20  norm          3.6853        4.3102        .26482E-07   -.30934E-03
  21  Prefactor     7.7034        6.5472        .71842E-08   -.11263E-01
  22  Normalizat    1.6083        .24375        .15281E-05   -.11050E-04
  23  Prefactor     .69585        .94653E-01   -.21330E-06   -.14347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7071
  norm       = 0
  Prefactor  = 0.571304
  norm       = 7.19592
  norm       = 27.4908
  Prefactor  = 4.9142
  Prefactor  = 6.43367
  Prefactor  = 5.55112e-11
  Prefactor  = 0.600161
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 10.0876
  norm       = 1.70579
  Prefactor  = 0
  norm       = 4.70999
  Prefactor  = 0
  Prefactor  = 6.65079
  Prefactor  = 27.671
  Prefactor  = 1.11022e-10
  norm       = 3.68526
  Prefactor  = 7.7034
  Normalizat = 1.60834
  Prefactor  = 0.695851
 **********
 **   18 **HESSE 
 **********

 FCN=   8661.646     FROM HESSE     STATUS=OK           422 CALLS     1925 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.707        20.227        .30142E-03   -1.5640    
   2  norm           .0000        2.3244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57130        3.3290        .73081E-03   -1.5693    
   4  norm          7.1959        6.3241        .37280E-03   -1.5654    
   5  norm          27.491        10.509        .19088E-03   -1.5603    
   6  Prefactor     4.9142        17.980        .45777E-03   -1.5664    
   7  Prefactor     6.4337        12.548        .39764E-03   -1.5657    
   8  Prefactor     .55511E-10    7.1996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .60016        37.741        .65519E-03   -1.5692    
  10  Prefactor      .0000        2.7294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        64.435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.088        16.957        .31737E-03   -1.5644    
  13  norm          1.7058        1.7150        .80433E-03   -1.5682    
  14  Prefactor      .0000        19.444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7100        3.0516        .46378E-03   -1.5665    
  16  Prefactor      .0000        5.4931        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.6508        10.369        .38984E-03   -1.5656    
  18  Prefactor     27.671        64.156        .22254E-03   -1.5603    
  19  Prefactor     .11102E-09    111.05        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.6853        4.3335        .52737E-03   -1.5670    
  21  Prefactor     7.7034        10.722        .36246E-03   -1.5652    
  22  Normalizat    1.6083        .21368        .71087E-01   -.74778    
  23  Prefactor     .69585        .82743E-01    .42359E-01   -1.0369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78867e-06
Minuit parameter uncertainties:
  1  20.2273
  2  5.37499e-07
  3  2.75815
  4  6.3241
  5  10.5089
  6  17.9807
  7  12.5478
  8  4.25884e-05
  9  9.51856
  10  3.79449e-06
  11  7.67155e-05
  12  16.9571
  13  1.71504
  14  1.31102e-07
  15  3.0516
  16  2.1982e-05
  17  10.3687
  18  64.1573
  19  0.000220651
  20  4.33352
  21  10.7223
  22  0.213797
  23  0.082758
Done.

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

Extracting fit parameters...

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  0.000e+00  1.311e-07  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
684    Prefactor:  6.959e-01  8.276e-02  0.000e+00  1.000e+01 ( 1.000e+00)
685        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
686        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.608e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 101.931 -60.978
Photon Flux Upper Limit: 7.92155471936e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00613968022281 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/25725705/likelihoodResults_798422401_798681601_4FGL_J0647.7-6058_daily_bin2157.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8661.67102654
delta logL = -0.0248986654315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8661.64612808
delta logL = -2.06693584914e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30431E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .72995       1.0000          .0000       10.000    
     3 'Normalizat'    1.6085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69581       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8661.646     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      205 TOTAL
                     EDM=   .16E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.556       -.59169E-07** at limit **
   2  Index         2.9313        6.3772        .57254E-06     .0000    
   3  Normalizat    1.6083        .22442        .38914E-05   -.15291E-04
   4  Prefactor     .69585        .91660E-01   -.17248E-05   -.18010E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.93133
  Normalizat = 1.60834
  Prefactor  = 0.695851
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8661.646     FROM HESSE     STATUS=FAILED        11 CALLS      216 TOTAL
                     EDM=   .16E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .97240        2.1455        .57254E-06   -.42655    
   3  Normalizat    1.6083        1.0400        .38914E-05   -.74778    
   4  Prefactor     .69585        1.0456       -.17248E-05   -1.0369    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.64417e-13
Minuit parameter uncertainties:
  1  1.68057e-06
  2  1.94819
  3  1.05447
  4  1.07746
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) = 8661.64612788
delta logL = 0.0

Extracting fit parameters...

4FGL J0647.7-6058
   Spectrum: PowerLaw
345    Prefactor:  0.000e+00  1.681e-06  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.931e+00  1.948e+00  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  8.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
684    Prefactor:  6.959e-01  1.077e+00  0.000e+00  1.000e+01 ( 1.000e+00)
685        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
686        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.608e+00  1.054e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 101.931 -60.978

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/25725705/cmap_HighResolution_798422401_798681601_4FGL_J0647.7-6058_daily_bin2157.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2026-04-24 00:58:55.959476', job_id='25725705', GAL2='0.70', fit_tolerance='1e-08', EG2='1.61', EG='1.61', time_epoch_completed='1777017535.96', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='2157' AND source_name='4FGL J0647.7-6058' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 24 00:58:56 PDT 2026

