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


Performing analysis on: 4FGL_J1649.6+0411_weekly_bin911
RA = 252.406, Dec = 4.1926
tmin = 789955201, tmax = 790560001
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='19244610', job_status='RUN', time_executed='2026-01-20 01:12:10.493091', time_epoch_executed='1768900330.49' WHERE source_name='4FGL J1649.6+0411' and cadence='weekly' and bin_id='911'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19244610

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19244610/ft1_4FGL_J1649.6+0411_weekly_bin911.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19244610/ft2_4FGL_J1649.6+0411_weekly_bin911.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19244610/ft1_4FGL_J1649.6+0411_weekly_bin911.fits outfile=/lscratch/kocevski/19244610/ft1_filteredMKT_4FGL_J1649.6+0411_weekly_bin911.fits ra=252.406 dec=4.1926 rad=12.0 tmin=789955201.0 tmax=790560001.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.31
user 2.83
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19244610/ft2_4FGL_J1649.6+0411_weekly_bin911.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/19244610/ft1_filteredMKT_4FGL_J1649.6+0411_weekly_bin911.fits evtable="EVENTS" outfile="/lscratch/kocevski/19244610/ft1_filtered_4FGL_J1649.6+0411_weekly_bin911.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.59
user 0.24
sys 0.14

Number of photons that the gtmktime cut: 3382

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19244610/ft1_filtered_4FGL_J1649.6+0411_weekly_bin911.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19244610/ft2_4FGL_J1649.6+0411_weekly_bin911.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19244610/ltcube_789955201_790560001_4FGL_J1649.6+0411_weekly_bin911.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/19244610/ft2_4FGL_J1649.6+0411_weekly_bin911.fits
.....................!
real 22.42
user 21.81
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19244610/ft1_filtered_4FGL_J1649.6+0411_weekly_bin911.fits evtable="EVENTS" scfile=/lscratch/kocevski/19244610/ft2_4FGL_J1649.6+0411_weekly_bin911.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19244610/ltcube_789955201_790560001_4FGL_J1649.6+0411_weekly_bin911.fits outfile=/lscratch/kocevski/19244610/expmap_789955201_790560001_4FGL_J1649.6+0411_weekly_bin911.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/19244610/ltcube_789955201_790560001_4FGL_J1649.6+0411_weekly_bin911.fits
.....................!
real 65.65
user 61.61
sys 3.56

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/19244610/ft1_filtered_4FGL_J1649.6+0411_weekly_bin911.fits scfile=/lscratch/kocevski/19244610/ft2_4FGL_J1649.6+0411_weekly_bin911.fits outfile=/lscratch/kocevski/19244610/cmap_789955201_790560001_4FGL_J1649.6+0411_weekly_bin911.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.52
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19244610/ft1_filtered_4FGL_J1649.6+0411_weekly_bin911.fits scfile=/lscratch/kocevski/19244610/ft2_4FGL_J1649.6+0411_weekly_bin911.fits outfile=/lscratch/kocevski/19244610/cmap_HighResolution_789955201_790560001_4FGL_J1649.6+0411_weekly_bin911.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.73
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19244610/ft1_filtered_4FGL_J1649.6+0411_weekly_bin911.fits evtable="EVENTS" scfile=/lscratch/kocevski/19244610/ft2_4FGL_J1649.6+0411_weekly_bin911.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19244610/Model_4FGL_J1649.6+0411_weekly_bin911.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/19244610/ft1_filtered_4FGL_J1649.6+0411_weekly_bin911.fits.....................!
real 100.50
user 98.73
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19244610/ft1_filtered_4FGL_J1649.6+0411_weekly_bin911.fits', '/lscratch/kocevski/19244610/ft2_4FGL_J1649.6+0411_weekly_bin911.fits', expMap='/lscratch/kocevski/19244610/expmap_789955201_790560001_4FGL_J1649.6+0411_weekly_bin911.fits', expCube='/lscratch/kocevski/19244610/ltcube_789955201_790560001_4FGL_J1649.6+0411_weekly_bin911.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19244610/Model_4FGL_J1649.6+0411_weekly_bin911.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/19244610/ft1_filtered_4FGL_J1649.6+0411_weekly_bin911.fits
Spacecraft file(s): /lscratch/kocevski/19244610/ft2_4FGL_J1649.6+0411_weekly_bin911.fits
Exposure map: /lscratch/kocevski/19244610/expmap_789955201_790560001_4FGL_J1649.6+0411_weekly_bin911.fits
Exposure cube: /lscratch/kocevski/19244610/ltcube_789955201_790560001_4FGL_J1649.6+0411_weekly_bin911.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19244610/Model_4FGL_J1649.6+0411_weekly_bin911.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) = 35738.1211406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.121       1.0000          .0000       .10000E+07
     2 'Prefactor '    12.010       1.0000          .0000       .10000E+07
     3 'Prefactor '    .93289E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.6675       1.0000          .0000       .10000E+07
     5 'Prefactor '    .78937E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.1222       1.0000          .0000       .10000E+07
     7 'Prefactor '    .76075E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13395E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .32141E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .39883E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11696E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.9549       1.0000          .0000       .10000E+07
    13 'Prefactor '    .42904E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    10.778       1.0000          .0000       .10000E+07
    15 'norm      '    34.207       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12307E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .62817E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .40357E-07   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2050       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0128       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=   35738.00     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1237 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.127        11.445        .76680E-07   -.19027E-01
   2  Prefactor     12.049        1.0418       -.96902E-08   -.68422E-03
   3  Prefactor      .0000        10.270        .59681E-06** at limit **
   4  Prefactor     4.6675        3.3992       -.29667E-07   -.59945E-04
   5  Prefactor      .0000        .84416        .25594E-06** at limit **
   6  Prefactor     6.0727        9.5322        .46357E-06    .21116E-03
   7  Prefactor     .23326E-06    17.973        .35989E-06** at limit **
   8  Prefactor      .0000        2.3212        .32527E-06** at limit **
   9  Prefactor      .0000        1.0452       -.12231E-06** at limit **
  10  Prefactor     .89773E-06    18.473        .17552E-06** at limit **
  11  Prefactor     .20484E-06    38.777       -.64475E-06** at limit **
  12  Prefactor     6.9567        5.0750       -.65036E-07    .96499E-03
  13  Prefactor     .13711E-05    9.6234        .23954E-06** at limit **
  14  Prefactor     10.771        7.5943        .22279E-07   -.28466E-01
  15  norm          34.204        4.2994        .19963E-07    .10775    
  16  Prefactor     .61617E-07    59.071       -.29676E-05** at limit **
  17  norm           .0000        5.8216        .99398E-07** at limit **
  18  norm           .0000        1.1031       -.16292E-06** at limit **
  19  Normalizat    1.2049        .16637        .17829E-05    .10752E-04
  20  Prefactor     1.0129        .45028E-01    .52768E-07    .96968E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 27.1268
  Prefactor  = 12.0494
  Prefactor  = 0
  Prefactor  = 4.66749
  Prefactor  = 0
  Prefactor  = 6.07273
  Prefactor  = 2.33258e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 8.97726e-07
  Prefactor  = 2.04836e-07
  Prefactor  = 6.95666
  Prefactor  = 1.37113e-06
  Prefactor  = 10.7706
  norm       = 34.2045
  Prefactor  = 6.16174e-08
  norm       = 0
  norm       = 0
  Normalizat = 1.20494
  Prefactor  = 1.01285
 **********
 **   18 **HESSE 
 **********

 FCN=   35738.00     FROM HESSE     STATUS=OK           327 CALLS     1564 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.127        11.621        .19206E-03   -1.5604    
   2  Prefactor     12.049        16.018        .28880E-03   -1.5639    
   3  Prefactor      .0000        10.248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6675        3.4007        .46558E-03   -1.5665    
   5  Prefactor      .0000        .84412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0727        9.5248        .40552E-03   -1.5659    
   7  Prefactor     .23326E-06    20.495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.3027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.0435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .89773E-06    25.591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .20484E-06    39.966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9567        5.0672        .38018E-03   -1.5655    
  13  Prefactor     .13711E-05    22.256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.771        8.9171        .30493E-03   -1.5642    
  15  norm          34.204        10.688        .17100E-03   -1.5591    
  16  Prefactor     .61617E-07    59.346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        5.7932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        1.0888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2049        .14603        .11073       -.86450    
  20  Prefactor     1.0129        .39197E-01    .42947E-01   -.92302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78515e-07
Minuit parameter uncertainties:
  1  11.6211
  2  16.0176
  3  3.1313e-05
  4  3.40071
  5  3.17016e-06
  6  9.52479
  7  0.00437268
  8  1.01029e-05
  9  2.68128e-06
  10  0.00958611
  11  0.00572249
  12  5.06717
  13  0.0110482
  14  8.91707
  15  10.6879
  16  0.0038245
  17  2.47184e-05
  18  2.36489e-06
  19  0.146081
  20  0.0391981
Done.

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

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  1.010e-05  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.013e+00  3.920e-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.205e+00  1.461e-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: 5.68429300862e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00444707633964 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19244610/likelihoodResults_789955201_790560001_4FGL_J1649.6+0411_weekly_bin911.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) = 35738.0021408
delta logL = -0.0016290104686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 35738.0005168
delta logL = -5.03585033584e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11546E-04   1.0000          .0000       .10000E+07
     2 'Index     '    2.9034       1.0000          .0000       10.000    
     3 'Normalizat'    1.2052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0128       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=   35738.00     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      255 TOTAL
                     EDM=   .93E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.3745        .42118E-03** at limit **
   2  Index         2.9396        1.0092        .37110E-05     .0000    
   3  Normalizat    1.2049        1.1045       -.18036E-05    .80480E-05
   4  Prefactor     1.0129        1.2561        .23949E-06   -.50081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.93956
  Normalizat = 1.20494
  Prefactor  = 1.01285
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   35738.00     FROM HESSE     STATUS=FAILED         9 CALLS      264 TOTAL
                     EDM=   .93E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.3745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .97776        2.0130        .37110E-05   -.42474    
   3  Normalizat    1.2049        1.1045       -.18036E-05   -.86450    
   4  Prefactor     1.0129        1.2561        .23949E-06   -.92302    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.32515e-13
Minuit parameter uncertainties:
  1  4.33198e-06
  2  1.01765
  3  1.12703
  4  1.29555
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) = 35738.0005118
delta logL = 0.0

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  4.332e-06  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.940e+00  1.018e+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.013e+00  1.296e+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.205e+00  1.127e+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/19244610/cmap_HighResolution_789955201_790560001_4FGL_J1649.6+0411_weekly_bin911.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.68e-08', time_completed='2026-01-20 01:23:57.790522', job_id='19244610', GAL2='1.01', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1768901037.79', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='911' AND source_name='4FGL J1649.6+0411' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 20 01:23:58 PST 2026

