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


Performing analysis on: 4FGL_J0746.6-4754_weekly_bin926
RA = 116.669, Dec = -47.9155
tmin = 799027201, tmax = 799632001
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='26195495', job_status='RUN', time_executed='2026-05-05 00:39:01.515325', time_epoch_executed='1777966741.52' WHERE source_name='4FGL J0746.6-4754' and cadence='weekly' and bin_id='926'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26195495

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26195495/ft1_4FGL_J0746.6-4754_weekly_bin926.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26195495/ft2_4FGL_J0746.6-4754_weekly_bin926.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26195495/ft1_4FGL_J0746.6-4754_weekly_bin926.fits outfile=/lscratch/kocevski/26195495/ft1_filteredMKT_4FGL_J0746.6-4754_weekly_bin926.fits ra=116.669 dec=-47.9155 rad=12.0 tmin=799027201.0 tmax=799632001.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 3.71
user 3.36
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26195495/ft2_4FGL_J0746.6-4754_weekly_bin926.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26195495/ft2_4FGL_J0746.6-4754_weekly_bin926.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/26195495/ft1_filteredMKT_4FGL_J0746.6-4754_weekly_bin926.fits evtable="EVENTS" outfile="/lscratch/kocevski/26195495/ft1_filtered_4FGL_J0746.6-4754_weekly_bin926.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.44
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 9258

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26195495/ft1_filtered_4FGL_J0746.6-4754_weekly_bin926.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26195495/ft2_4FGL_J0746.6-4754_weekly_bin926.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26195495/ltcube_799027201_799632001_4FGL_J0746.6-4754_weekly_bin926.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/26195495/ft2_4FGL_J0746.6-4754_weekly_bin926.fits
.....................!
real 17.85
user 17.36
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26195495/ft1_filtered_4FGL_J0746.6-4754_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26195495/ft2_4FGL_J0746.6-4754_weekly_bin926.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26195495/ltcube_799027201_799632001_4FGL_J0746.6-4754_weekly_bin926.fits outfile=/lscratch/kocevski/26195495/expmap_799027201_799632001_4FGL_J0746.6-4754_weekly_bin926.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/26195495/ltcube_799027201_799632001_4FGL_J0746.6-4754_weekly_bin926.fits
.....................!
real 63.46
user 59.06
sys 3.78

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 Puppis A in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Extended source Vela Junior in ROI with RadialDisk spatial model.
Added 218 point sources and 3 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 J0746.6-4754 @ 116.669 -47.9155

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26195495/ft1_filtered_4FGL_J0746.6-4754_weekly_bin926.fits scfile=/lscratch/kocevski/26195495/ft2_4FGL_J0746.6-4754_weekly_bin926.fits outfile=/lscratch/kocevski/26195495/cmap_799027201_799632001_4FGL_J0746.6-4754_weekly_bin926.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=116.669 yref=-47.9155 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.50
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26195495/ft1_filtered_4FGL_J0746.6-4754_weekly_bin926.fits scfile=/lscratch/kocevski/26195495/ft2_4FGL_J0746.6-4754_weekly_bin926.fits outfile=/lscratch/kocevski/26195495/cmap_HighResolution_799027201_799632001_4FGL_J0746.6-4754_weekly_bin926.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=116.669 yref=-47.9155 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.50
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26195495/ft1_filtered_4FGL_J0746.6-4754_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26195495/ft2_4FGL_J0746.6-4754_weekly_bin926.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26195495/Model_4FGL_J0746.6-4754_weekly_bin926.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 Puppis A
adding source Vela Junior
adding source Vela X
Working on...
/lscratch/kocevski/26195495/ft1_filtered_4FGL_J0746.6-4754_weekly_bin926.fits.....................!
real 418.73
user 414.60
sys 1.52

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26195495/ft1_filtered_4FGL_J0746.6-4754_weekly_bin926.fits', '/lscratch/kocevski/26195495/ft2_4FGL_J0746.6-4754_weekly_bin926.fits', expMap='/lscratch/kocevski/26195495/expmap_799027201_799632001_4FGL_J0746.6-4754_weekly_bin926.fits', expCube='/lscratch/kocevski/26195495/ltcube_799027201_799632001_4FGL_J0746.6-4754_weekly_bin926.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26195495/Model_4FGL_J0746.6-4754_weekly_bin926.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0746.6-4754'

4FGL J0746.6-4754
   Spectrum: PowerLaw
353    Prefactor:  2.126e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
354        Index:  2.010e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  2.378e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26195495/ft1_filtered_4FGL_J0746.6-4754_weekly_bin926.fits
Spacecraft file(s): /lscratch/kocevski/26195495/ft2_4FGL_J0746.6-4754_weekly_bin926.fits
Exposure map: /lscratch/kocevski/26195495/expmap_799027201_799632001_4FGL_J0746.6-4754_weekly_bin926.fits
Exposure cube: /lscratch/kocevski/26195495/ltcube_799027201_799632001_4FGL_J0746.6-4754_weekly_bin926.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26195495/Model_4FGL_J0746.6-4754_weekly_bin926.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) = 75592.7834465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31374E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.6558       1.0000          .0000       .10000E+07
     3 'norm      '    .88697E-05   1.0000          .0000       .10000E+07
     4 'norm      '    9.8952       1.0000          .0000       .10000E+07
     5 'norm      '    4.3968       1.0000          .0000       .10000E+07
     6 'norm      '    .11851E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.6840       1.0000          .0000       .10000E+07
     8 'Prefactor '    .49525E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    11.422       1.0000          .0000       .10000E+07
    10 'norm      '    .54246       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.5712       1.0000          .0000       .10000E+07
    12 'Prefactor '    10.434       1.0000          .0000       .10000E+07
    13 'Prefactor '    .96922E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .25688E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .38299E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .23027E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .71837E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .97876       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0593       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   75592.73     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1175 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        20.288        .27004E-09** at limit **
   2  Prefactor     2.7061        12.157       -.41933E-07    .41736E-02
   3  norm           .0000        1.6468        .39246E-08** at limit **
   4  norm          9.9086        11.103       -.76926E-07   -.66046E-02
   5  norm          4.3548        3.8731       -.47321E-08    .35370E-03
   6  norm          .23870E-08    27.991        .45028E-06** at limit **
   7  Prefactor     6.6961        5.2482       -.53559E-08    .32474E-03
   8  Prefactor     .55511E-10    177.33        .36405E-06** at limit **
   9  Prefactor     11.559        14.748        .24260E-07   -.37916E-02
  10  norm          .54280        2.0508       -.12812E-06    .70070E-03
  11  Prefactor     2.5536        4.3461        .72536E-08    .27194E-03
  12  Prefactor     10.018        6.2209       -.27288E-08    .31924E-01
  13  Prefactor      .0000        .64316       -.22065E-07** at limit **
  14  norm           .0000        1.8384        .41288E-07** at limit **
  15  norm          .28422E-07    14.648       -.31524E-07** at limit **
  16  Prefactor     .10769E-07    13.976       -.45993E-07** at limit **
  17  Prefactor      .0000        4.1922        .12966E-06** at limit **
  18  Normalizat    .97893        .15085       -.25919E-05    .27102E-04
  19  Prefactor     1.0594        .26808E-01    .48994E-06   -.99367E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 2.70614
  norm       = 0
  norm       = 9.90864
  norm       = 4.35478
  norm       = 2.38698e-09
  Prefactor  = 6.6961
  Prefactor  = 5.55112e-11
  Prefactor  = 11.5586
  norm       = 0.542801
  Prefactor  = 2.55362
  Prefactor  = 10.0175
  Prefactor  = 0
  norm       = 0
  norm       = 2.84217e-08
  Prefactor  = 1.07692e-08
  Prefactor  = 0
  Normalizat = 0.978928
  Prefactor  = 1.05942
 **********
 **   18 **HESSE 
 **********

 FCN=   75592.73     FROM HESSE     STATUS=OK           306 CALLS     1481 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        20.264        .16379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7061        12.403        .62523E-03   -1.5675    
   3  norm           .0000        1.6403        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.9086        11.178        .31831E-03   -1.5645    
   5  norm          4.3548        3.8893        .48006E-03   -1.5666    
   6  norm          .23870E-08    27.305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6961        5.2961        .38789E-03   -1.5656    
   8  Prefactor     .55511E-10    178.45        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.559        14.800        .29617E-03   -1.5640    
  10  norm          .54280        2.0567        .74548E-03   -1.5693    
  11  Prefactor     2.5536        4.3902        .63628E-03   -1.5676    
  12  Prefactor     10.018        19.318        .30994E-03   -1.5645    
  13  Prefactor      .0000        .64490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.8166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .28422E-07    15.332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10769E-07    14.226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        4.2036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .97893        .15225        .21064       -.93740    
  19  Prefactor     1.0594        .26410E-01    .39393E-01   -.90774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58138e-08
Minuit parameter uncertainties:
  1  5.92759e-07
  2  11.587
  3  4.19291e-07
  4  11.1777
  5  3.88926
  6  0.000509502
  7  5.2961
  8  0.000220291
  9  14.8004
  10  2.05673
  11  4.39022
  12  19.3186
  13  5.88243e-07
  14  7.72762e-07
  15  0.00132084
  16  0.00078247
  17  5.03103e-07
  18  0.152316
  19  0.0264108
Done.

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

Extracting fit parameters...

4FGL J0746.6-4754
   Spectrum: PowerLaw
353    Prefactor:  0.000e+00  5.882e-07  0.000e+00  1.000e+06 ( 1.000e-13)
354        Index:  2.010e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  2.378e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  1.059e+00  2.641e-02  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  9.789e-01  1.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 116.669 -47.916
Photon Flux Upper Limit: 2.11338631942e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00158631262403 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/26195495/likelihoodResults_799027201_799632001_4FGL_J0746.6-4754_weekly_bin926.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) = 75592.7373374
delta logL = -0.00315669857082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 75592.7341807
delta logL = -9.74978320301e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13323E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.4790       1.0000          .0000       10.000    
     3 'Normalizat'    .97893       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0594       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   75592.73     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      243 TOTAL
                     EDM=   .77E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .15300        .42118E-03** at limit **
   2  Index         3.0092        1.3577       -.55745E-05     .0000    
   3  Normalizat    .97893        1.3099       -.24149E-05    .69520E-05
   4  Prefactor     1.0594        1.1811        .60511E-06   -.37442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.00923
  Normalizat = 0.978928
  Prefactor  = 1.05942
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   75592.73     FROM HESSE     STATUS=FAILED         9 CALLS      252 TOTAL
                     EDM=   .77E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .15300        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0235        2.0750       -.55745E-05   -.40950    
   3  Normalizat    .97893        1.3099       -.24149E-05   -.93740    
   4  Prefactor     1.0594        1.1811        .60511E-06   -.90774    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.65835e-12
Minuit parameter uncertainties:
  1  2.87978e-07
  2  1.37837
  3  1.35709
  4  1.21219
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) = 75592.7341807
delta logL = 0.0

Extracting fit parameters...

4FGL J0746.6-4754
   Spectrum: PowerLaw
353    Prefactor:  0.000e+00  2.880e-07  0.000e+00  1.000e+06 ( 1.000e-13)
354        Index:  3.009e+00  1.378e+00  0.000e+00  1.000e+01 (-1.000e+00)
355        Scale:  2.378e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  1.059e+00  1.212e+00  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  9.789e-01  1.357e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 116.669 -47.916

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/26195495/cmap_HighResolution_799027201_799632001_4FGL_J0746.6-4754_weekly_bin926.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-03', job_status='DONE', photon_flux_upper_limit='2.11e-08', time_completed='2026-05-05 01:13:40.163858', job_id='26195495', GAL2='1.06', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1777968820.16', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='926' AND source_name='4FGL J0746.6-4754' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  5 01:13:40 PDT 2026

