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


Performing analysis on: 4FGL_J1746.8-5235_daily_bin2176
RA = 266.72, Dec = -52.5868
tmin = 803347201, tmax = 803606401
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='31600236', job_status='RUN', time_executed='2026-07-13 21:19:02.048513', time_epoch_executed='1784002742.05' WHERE source_name='4FGL J1746.8-5235' and cadence='daily' and bin_id='2176'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31600236

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31600236/ft1_4FGL_J1746.8-5235_daily_bin2176.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31600236/ft2_4FGL_J1746.8-5235_daily_bin2176.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31600236/ft1_4FGL_J1746.8-5235_daily_bin2176.fits outfile=/lscratch/kocevski/31600236/ft1_filteredMKT_4FGL_J1746.8-5235_daily_bin2176.fits ra=266.72 dec=-52.5868 rad=12.0 tmin=803347201.0 tmax=803606401.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.90
user 1.41
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31600236/ft2_4FGL_J1746.8-5235_daily_bin2176.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31600236/ft2_4FGL_J1746.8-5235_daily_bin2176.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/31600236/ft1_filteredMKT_4FGL_J1746.8-5235_daily_bin2176.fits evtable="EVENTS" outfile="/lscratch/kocevski/31600236/ft1_filtered_4FGL_J1746.8-5235_daily_bin2176.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.79
user 0.17
sys 0.13

Number of photons that the gtmktime cut: 257

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31600236/ft1_filtered_4FGL_J1746.8-5235_daily_bin2176.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31600236/ft2_4FGL_J1746.8-5235_daily_bin2176.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31600236/ltcube_803347201_803606401_4FGL_J1746.8-5235_daily_bin2176.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/31600236/ft2_4FGL_J1746.8-5235_daily_bin2176.fits
.....................!
real 7.58
user 7.05
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31600236/ft1_filtered_4FGL_J1746.8-5235_daily_bin2176.fits evtable="EVENTS" scfile=/lscratch/kocevski/31600236/ft2_4FGL_J1746.8-5235_daily_bin2176.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31600236/ltcube_803347201_803606401_4FGL_J1746.8-5235_daily_bin2176.fits outfile=/lscratch/kocevski/31600236/expmap_803347201_803606401_4FGL_J1746.8-5235_daily_bin2176.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/31600236/ltcube_803347201_803606401_4FGL_J1746.8-5235_daily_bin2176.fits
.....................!
real 62.82
user 58.46
sys 3.75

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 FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Added 448 point sources and 14 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 J1746.8-5235 @ 266.72 -52.5868

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31600236/ft1_filtered_4FGL_J1746.8-5235_daily_bin2176.fits scfile=/lscratch/kocevski/31600236/ft2_4FGL_J1746.8-5235_daily_bin2176.fits outfile=/lscratch/kocevski/31600236/cmap_803347201_803606401_4FGL_J1746.8-5235_daily_bin2176.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=266.72 yref=-52.5868 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.59
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31600236/ft1_filtered_4FGL_J1746.8-5235_daily_bin2176.fits scfile=/lscratch/kocevski/31600236/ft2_4FGL_J1746.8-5235_daily_bin2176.fits outfile=/lscratch/kocevski/31600236/cmap_HighResolution_803347201_803606401_4FGL_J1746.8-5235_daily_bin2176.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=266.72 yref=-52.5868 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.76
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31600236/ft1_filtered_4FGL_J1746.8-5235_daily_bin2176.fits evtable="EVENTS" scfile=/lscratch/kocevski/31600236/ft2_4FGL_J1746.8-5235_daily_bin2176.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31600236/Model_4FGL_J1746.8-5235_daily_bin2176.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 J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RX J1713.7-3946
Working on...
/lscratch/kocevski/31600236/ft1_filtered_4FGL_J1746.8-5235_daily_bin2176.fits......................!
real 54.47
user 53.28
sys 0.61

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31600236/ft1_filtered_4FGL_J1746.8-5235_daily_bin2176.fits', '/lscratch/kocevski/31600236/ft2_4FGL_J1746.8-5235_daily_bin2176.fits', expMap='/lscratch/kocevski/31600236/expmap_803347201_803606401_4FGL_J1746.8-5235_daily_bin2176.fits', expCube='/lscratch/kocevski/31600236/ltcube_803347201_803606401_4FGL_J1746.8-5235_daily_bin2176.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31600236/Model_4FGL_J1746.8-5235_daily_bin2176.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1746.8-5235'

4FGL J1746.8-5235
   Spectrum: LogParabola
1108         norm:  7.065e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
1109        alpha:  2.509e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1110         beta:  2.471e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
1111           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31600236/ft1_filtered_4FGL_J1746.8-5235_daily_bin2176.fits
Spacecraft file(s): /lscratch/kocevski/31600236/ft2_4FGL_J1746.8-5235_daily_bin2176.fits
Exposure map: /lscratch/kocevski/31600236/expmap_803347201_803606401_4FGL_J1746.8-5235_daily_bin2176.fits
Exposure cube: /lscratch/kocevski/31600236/ltcube_803347201_803606401_4FGL_J1746.8-5235_daily_bin2176.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31600236/Model_4FGL_J1746.8-5235_daily_bin2176.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) = 2619.15806032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16401       1.0000          .0000       .10000E+07
     2 'norm      '    .58352E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .25859E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .81923       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .96806E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .25539E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .53802E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.1106       1.0000          .0000       .10000E+07
     9 'Prefactor '    .60360       1.0000          .0000       .10000E+07
    10 'norm      '    .27368E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.6456       1.0000          .0000       .10000E+07
    12 'Prefactor '    .17451E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    8151.5       1.0000          .0000       .10000E+07
    14 'norm      '    .45397E-01   1.0000          .0000       .10000E+07
    15 'norm      '    1276.1       1.0000          .0000       .10000E+07
    16 'norm      '    .29096E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .80524       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.3831       1.0000          .0000       .10000E+07
    19 'Prefactor '    11.996       1.0000          .0000       .10000E+07
    20 'Prefactor '    .25165       1.0000          .0000       .10000E+07
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76847       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1654E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2618.518     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     2036 TOTAL
                     EDM=   .38E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57956E-01    82.995       -.92366E-06** at limit **
   2  norm           .0000        6.9967       -.42964E-08** at limit **
   3  norm           .0000        26.272       -.10760E-07** at limit **
   4  Prefactor     5.4173        202.66        .15139E-06    .15298E-05
   5  Prefactor      .0000        51.506        .38876E-07** at limit **
   6  Prefactor      .0000        70.786       -.44688E-08** at limit **
   7  norm          .11102E-09    293.16       -.40058E-07** at limit **
   8  Prefactor     .11102E-09    160.63       -.10217E-07** at limit **
   9  Prefactor     .16653E-09    546.36       -.20623E-07** at limit **
  10  norm           .0000        185.56       -.58972E-08** at limit **
  11  Prefactor      .0000        438.97        .62702E-07** at limit **
  12  Prefactor      .0000        107.92        .75043E-08** at limit **
  13  Prefactor     8229.0        219.13        .53918E-08    .48188E-01
  14  norm          .11102E-09    4148.9        .25507E-05** at limit **
  15  norm          2058.6        2466.7        .12223E-06   -.21496E-02
  16  norm           .0000        10.921       -.18141E-08** at limit **
  17  norm          .52736E-08    2515.5       -.37805E-06** at limit **
  18  Prefactor     .44409E-09    730.48       -.27389E-07** at limit **
  19  Prefactor     .44409E-09    1050.3        .80058E-06** at limit **
  20  Prefactor      .0000        1116.2       -.24982E-07** at limit **
  21  Normalizat    .10000E-01    .34665        .28798E-06** at limit **
  22  Prefactor     .76394        .66208E-01    .58223E-06   -.21136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0579558
  norm       = 0
  norm       = 0
  Prefactor  = 5.41731
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.11022e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 1.66533e-10
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 8229.01
  norm       = 1.11022e-10
  norm       = 2058.59
  norm       = 0
  norm       = 5.27356e-09
  Prefactor  = 4.44089e-10
  Prefactor  = 4.44089e-10
  Prefactor  = 0
  Normalizat = 0.01
  Prefactor  = 0.763939
 **********
 **   18 **HESSE 
 **********

 FCN=   2618.518     FROM HESSE     STATUS=OK           386 CALLS     2422 TOTAL
                     EDM=   .61E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57956E-01    2.5611        .72363E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        6.8336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        25.922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4173        280.90        .12511E-01   -1.5242    
   5  Prefactor      .0000        43.196        .14016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        68.791        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .11102E-09    275.37        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11102E-09    158.90        .70983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16653E-09    504.42        .68906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        180.59        .16593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        432.01        .46671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        28.196        .86917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8229.0        14386.        .11121E-04   -1.3891    
  14  norm          .11102E-09    4266.5        .15729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2058.6        3082.5        .28011E-04   -1.4800    
  16  norm           .0000        10.563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .52736E-08    2468.4        .52545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .44409E-09    708.44        .54986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .44409E-09    990.64        .28898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        1100.0        .10920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .27496        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .76394        .67590E-01    .25772E-01   -1.0107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05894e-05
Minuit parameter uncertainties:
  1  0.77054
  2  9.16721e-06
  3  1.52643e-05
  4  78.41
  5  2.01038e-05
  6  4.46191e-05
  7  0.000319034
  8  0.000289244
  9  0.000545268
  10  1.31902e-05
  11  1.44386e-05
  12  1.82676e-08
  13  14447
  14  0.0013361
  15  3084.86
  16  2.18801e-05
  17  0.0072018
  18  0.00115513
  19  0.00135296
  20  0.000230931
  21  1.76788e-08
  22  0.0675971
Done.

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

Extracting fit parameters...

4FGL J1746.8-5235
   Spectrum: LogParabola
1108         norm:  1.110e-10  3.190e-04  0.000e+00  1.000e+06 ( 1.000e-13)
1109        alpha:  2.509e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1110         beta:  2.471e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
1111           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1629    Prefactor:  7.639e-01  6.760e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1630        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1631        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1601   Normalization:  1.000e-02  1.768e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 266.720 -52.587
Photon Flux Upper Limit: 1.60108497411e-06 ph cm-2 s-1
Energy Flux Upper Limit: 0.000612835749863 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31600236/likelihoodResults_803347201_803606401_4FGL_J1746.8-5235_daily_bin2176.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) = 2618.52014546
delta logL = -0.00174742882427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2618.51839823
delta logL = -1.93161213247e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2618.518     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      191 TOTAL
                     EDM=   .33E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    286.06        .42118E-03** at limit **
   2  alpha         3.5196        .94348        .19683E-02   -.10729E-12
   3  Normalizat    .10000E-01    .25505        .21208E-05** at limit **
   4  Prefactor     .76394        1.1133        .31989E-06   -.20179E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  alpha      = 3.51955
  Normalizat = 0.01
  Prefactor  = 0.763939
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2618.518     FROM HESSE     STATUS=FAILED         9 CALLS      200 TOTAL
                     EDM=   .33E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    286.06        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2755        1.1529        .19683E-02    .42007    
   3  Normalizat    .10000E-01    .25505        .21208E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .76394        1.1133        .31989E-06   -1.0107    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.34405e-13
Minuit parameter uncertainties:
  1  0.000221787
  2  0.972651
  3  1.68922e-07
  4  1.14875
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) = 2618.51839804
delta logL = 0.0

Extracting fit parameters...

4FGL J1746.8-5235
   Spectrum: LogParabola
1108         norm:  5.551e-11  2.218e-04  0.000e+00  1.000e+06 ( 1.000e-13)
1109        alpha:  3.520e+00  9.727e-01  0.000e+00  5.000e+00 ( 1.000e+00)
1110         beta:  2.471e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
1111           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1629    Prefactor:  7.639e-01  1.149e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1630        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1631        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1601   Normalization:  1.000e-02  1.689e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 266.720 -52.587

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/31600236/cmap_HighResolution_803347201_803606401_4FGL_J1746.8-5235_daily_bin2176.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-04', job_status='DONE', photon_flux_upper_limit='1.60e-06', time_completed='2026-07-13 21:25:48.442860', job_id='31600236', GAL2='0.76', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1784003148.44', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='2176' AND source_name='4FGL J1746.8-5235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 13 21:25:48 PDT 2026

