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


Performing analysis on: 4FGL_J1649.6+0411_weekly_bin912
RA = 252.406, Dec = 4.1926
tmin = 790560001, tmax = 791164801
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='19724409', job_status='RUN', time_executed='2026-01-27 02:43:05.447023', time_epoch_executed='1769510585.45' WHERE source_name='4FGL J1649.6+0411' and cadence='weekly' and bin_id='912'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19724409

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19724409/ft1_4FGL_J1649.6+0411_weekly_bin912.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19724409/ft2_4FGL_J1649.6+0411_weekly_bin912.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19724409/ft1_4FGL_J1649.6+0411_weekly_bin912.fits outfile=/lscratch/kocevski/19724409/ft1_filteredMKT_4FGL_J1649.6+0411_weekly_bin912.fits ra=252.406 dec=4.1926 rad=12.0 tmin=790560001.0 tmax=791164801.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 5.05
user 4.09
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19724409/ft2_4FGL_J1649.6+0411_weekly_bin912.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19724409/ft2_4FGL_J1649.6+0411_weekly_bin912.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/19724409/ft1_filteredMKT_4FGL_J1649.6+0411_weekly_bin912.fits evtable="EVENTS" outfile="/lscratch/kocevski/19724409/ft1_filtered_4FGL_J1649.6+0411_weekly_bin912.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.68
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 3528

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19724409/ft1_filtered_4FGL_J1649.6+0411_weekly_bin912.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19724409/ft2_4FGL_J1649.6+0411_weekly_bin912.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19724409/ltcube_790560001_791164801_4FGL_J1649.6+0411_weekly_bin912.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/19724409/ft2_4FGL_J1649.6+0411_weekly_bin912.fits
.....................!
real 15.97
user 15.15
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19724409/ft1_filtered_4FGL_J1649.6+0411_weekly_bin912.fits evtable="EVENTS" scfile=/lscratch/kocevski/19724409/ft2_4FGL_J1649.6+0411_weekly_bin912.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19724409/ltcube_790560001_791164801_4FGL_J1649.6+0411_weekly_bin912.fits outfile=/lscratch/kocevski/19724409/expmap_790560001_791164801_4FGL_J1649.6+0411_weekly_bin912.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/19724409/ltcube_790560001_791164801_4FGL_J1649.6+0411_weekly_bin912.fits
.....................!
real 60.55
user 56.29
sys 3.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 FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 163 point sources and 1 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 J1649.6+0411 @ 252.406 4.1926

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19724409/ft1_filtered_4FGL_J1649.6+0411_weekly_bin912.fits scfile=/lscratch/kocevski/19724409/ft2_4FGL_J1649.6+0411_weekly_bin912.fits outfile=/lscratch/kocevski/19724409/cmap_790560001_791164801_4FGL_J1649.6+0411_weekly_bin912.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=252.406 yref=4.1926 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.86
user 0.25
sys 0.10

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19724409/ft1_filtered_4FGL_J1649.6+0411_weekly_bin912.fits scfile=/lscratch/kocevski/19724409/ft2_4FGL_J1649.6+0411_weekly_bin912.fits outfile=/lscratch/kocevski/19724409/cmap_HighResolution_790560001_791164801_4FGL_J1649.6+0411_weekly_bin912.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=252.406 yref=4.1926 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.84
user 0.21
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19724409/ft1_filtered_4FGL_J1649.6+0411_weekly_bin912.fits evtable="EVENTS" scfile=/lscratch/kocevski/19724409/ft2_4FGL_J1649.6+0411_weekly_bin912.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19724409/Model_4FGL_J1649.6+0411_weekly_bin912.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/19724409/ft1_filtered_4FGL_J1649.6+0411_weekly_bin912.fits.....................!
real 96.14
user 93.89
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19724409/ft1_filtered_4FGL_J1649.6+0411_weekly_bin912.fits', '/lscratch/kocevski/19724409/ft2_4FGL_J1649.6+0411_weekly_bin912.fits', expMap='/lscratch/kocevski/19724409/expmap_790560001_791164801_4FGL_J1649.6+0411_weekly_bin912.fits', expCube='/lscratch/kocevski/19724409/ltcube_790560001_791164801_4FGL_J1649.6+0411_weekly_bin912.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19724409/Model_4FGL_J1649.6+0411_weekly_bin912.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1649.6+0411'

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  1.027e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.594e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  7.155e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19724409/ft1_filtered_4FGL_J1649.6+0411_weekly_bin912.fits
Spacecraft file(s): /lscratch/kocevski/19724409/ft2_4FGL_J1649.6+0411_weekly_bin912.fits
Exposure map: /lscratch/kocevski/19724409/expmap_790560001_791164801_4FGL_J1649.6+0411_weekly_bin912.fits
Exposure cube: /lscratch/kocevski/19724409/ltcube_790560001_791164801_4FGL_J1649.6+0411_weekly_bin912.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19724409/Model_4FGL_J1649.6+0411_weekly_bin912.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) = 37021.7543749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.400       1.0000          .0000       .10000E+07
     2 'Prefactor '    .32400E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    20.712       1.0000          .0000       .10000E+07
     4 'Prefactor '    .49551E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .26234E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7374       1.0000          .0000       .10000E+07
     7 'Prefactor '    .45815E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .42577E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7236       1.0000          .0000       .10000E+07
    10 'Prefactor '    .44257E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    16.553       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.8164       1.0000          .0000       .10000E+07
    13 'Prefactor '    .91910E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    12.542       1.0000          .0000       .10000E+07
    15 'norm      '    61.713       1.0000          .0000       .10000E+07
    16 'Prefactor '    51.104       1.0000          .0000       .10000E+07
    17 'norm      '    .25399E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .60674E-07   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1318       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0428       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   37021.75     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1511 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.452        10.193        .22141E-06   -.70821E-02
   2  Prefactor     .38464E-06    12.782       -.12192E-05** at limit **
   3  Prefactor     20.708        1.4064        .48792E-07    .31553E-02
   4  Prefactor      .0000        1.4619        .23825E-07** at limit **
   5  Prefactor      .0000        1.1148        .17133E-06** at limit **
   6  Prefactor     7.8543        6.0711       -.77725E-07    .86995E-03
   7  Prefactor     .97145E-08    8.6526       -.11367E-05** at limit **
   8  Prefactor      .0000        .87149        .87325E-07** at limit **
   9  Prefactor     1.7193        2.7483        .23337E-07    .82425E-04
  10  Prefactor     .11024E-04    9.4965       -.44101E-06** at limit **
  11  Prefactor     16.561        1.3500       -.21755E-07   -.32297E-01
  12  Prefactor     7.8763        4.9147        .94889E-07   -.10380E-02
  13  Prefactor     .84262E-05    12.966       -.10783E-05** at limit **
  14  Prefactor     12.348        8.5745        .16537E-06   -.16114E-01
  15  norm          61.666        2.9668        .30707E-07    .10953    
  16  Prefactor     51.579        41.184        .11127E-05   -.44117E-01
  17  norm          .15077E-06    11.868       -.18584E-05** at limit **
  18  norm           .0000        .44400       -.56170E-07** at limit **
  19  Normalizat    1.1314        .16935        .15946E-04   -.12555E-04
  20  Prefactor     1.0428        .44689E-01   -.59966E-05    .44891E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.4518
  Prefactor  = 3.84637e-07
  Prefactor  = 20.7083
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.85432
  Prefactor  = 9.71445e-09
  Prefactor  = 0
  Prefactor  = 1.71926
  Prefactor  = 1.10237e-05
  Prefactor  = 16.5609
  Prefactor  = 7.87635
  Prefactor  = 8.4262e-06
  Prefactor  = 12.3477
  norm       = 61.6662
  Prefactor  = 51.5793
  norm       = 1.50768e-07
  norm       = 0
  Normalizat = 1.13144
  Prefactor  = 1.04281
 **********
 **   18 **HESSE 
 **********

 FCN=   37021.75     FROM HESSE     STATUS=OK           331 CALLS     1842 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.452        10.169        .23983E-03   -1.5624    
   2  Prefactor     .38464E-06    13.182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.708        18.141        .21980E-03   -1.5617    
   4  Prefactor      .0000        1.4631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.1126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8543        6.0730        .36026E-03   -1.5652    
   7  Prefactor     .97145E-08    8.6663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .86768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7193        2.7760        .79969E-03   -1.5682    
  10  Prefactor     .11024E-04    19.767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.561        22.872        .24590E-03   -1.5627    
  12  Prefactor     7.8763        4.9236        .35842E-03   -1.5652    
  13  Prefactor     .84262E-05    20.979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.348        9.4039        .28260E-03   -1.5638    
  15  norm          61.666        13.232        .12730E-03   -1.5551    
  16  Prefactor     51.579        42.386        .13990E-03   -1.5564    
  17  norm          .15077E-06    11.868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .44246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1314        .15405        .11823       -.88749    
  20  Prefactor     1.0428        .40104E-01    .40350E-01   -.91316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17861e-06
Minuit parameter uncertainties:
  1  10.1695
  2  0.00450356
  3  18.141
  4  6.02466e-06
  5  5.67304e-06
  6  6.07304
  7  0.000580346
  8  2.36558e-07
  9  2.77603
  10  0.0295232
  11  22.8719
  12  4.92356
  13  0.0265915
  14  9.40393
  15  13.2319
  16  42.3863
  17  0.00267542
  18  8.55863e-07
  19  0.154116
  20  0.0401052
Done.

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

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  2.366e-07  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.594e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  7.155e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.043e+00  4.011e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.131e+00  1.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 252.406 4.193
Photon Flux Upper Limit: 3.75915302527e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00294095333411 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19724409/likelihoodResults_790560001_791164801_4FGL_J1649.6+0411_weekly_bin912.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) = 37021.7532496
delta logL = -0.00156874069944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 37021.7516809
delta logL = -4.8239598982e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.9506       1.0000          .0000       10.000    
     3 'Normalizat'    1.1314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0428       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   37021.75     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      236 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .83334        .42118E-03** at limit **
   2  Index         2.6953        1.1442       -.90622E-06     .0000    
   3  Normalizat    1.1314        1.1358        .71495E-05   -.15126E-03
   4  Prefactor     1.0428        1.2000       -.33645E-07   -.79632E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.6953
  Normalizat = 1.13145
  Prefactor  = 1.04281
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   37021.75     FROM HESSE     STATUS=FAILED         9 CALLS      245 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .83334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .82247        1.9508       -.90622E-06   -.47905    
   3  Normalizat    1.1314        1.1358        .71495E-05   -.88748    
   4  Prefactor     1.0428        1.2000       -.33645E-07   -.91316    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.91858e-11
Minuit parameter uncertainties:
  1  8.23804e-06
  2  1.15726
  3  1.16194
  4  1.23319
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) = 37021.7516809
delta logL = 0.0

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  8.238e-06  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.695e+00  1.157e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  7.155e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.043e+00  1.233e+00  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.131e+00  1.162e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 252.406 4.193

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/19724409/cmap_HighResolution_790560001_791164801_4FGL_J1649.6+0411_weekly_bin912.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-03', job_status='DONE', photon_flux_upper_limit='3.76e-08', time_completed='2026-01-27 03:00:08.815702', job_id='19724409', GAL2='1.04', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1769511608.82', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='912' AND source_name='4FGL J1649.6+0411' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 27 03:00:09 PST 2026

