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


Performing analysis on: 4FGL_J1649.6+0411_weekly_bin906
RA = 252.406, Dec = 4.1926
tmin = 786931201, tmax = 787536001
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='17379950', job_status='RUN', time_executed='2025-12-16 02:51:05.636238', time_epoch_executed='1765882265.64' WHERE source_name='4FGL J1649.6+0411' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17379950

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17379950/ft1_4FGL_J1649.6+0411_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17379950/ft2_4FGL_J1649.6+0411_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17379950/ft1_4FGL_J1649.6+0411_weekly_bin906.fits outfile=/lscratch/kocevski/17379950/ft1_filteredMKT_4FGL_J1649.6+0411_weekly_bin906.fits ra=252.406 dec=4.1926 rad=12.0 tmin=786931201.0 tmax=787536001.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.26
user 4.34
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17379950/ft2_4FGL_J1649.6+0411_weekly_bin906.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/17379950/ft1_filteredMKT_4FGL_J1649.6+0411_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17379950/ft1_filtered_4FGL_J1649.6+0411_weekly_bin906.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.98
user 0.19
sys 0.12

Number of photons that the gtmktime cut: 2477

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17379950/ft1_filtered_4FGL_J1649.6+0411_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17379950/ft2_4FGL_J1649.6+0411_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17379950/ltcube_786931201_787536001_4FGL_J1649.6+0411_weekly_bin906.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/17379950/ft2_4FGL_J1649.6+0411_weekly_bin906.fits
.....................!
real 16.04
user 15.08
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17379950/ft1_filtered_4FGL_J1649.6+0411_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379950/ft2_4FGL_J1649.6+0411_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17379950/ltcube_786931201_787536001_4FGL_J1649.6+0411_weekly_bin906.fits outfile=/lscratch/kocevski/17379950/expmap_786931201_787536001_4FGL_J1649.6+0411_weekly_bin906.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/17379950/ltcube_786931201_787536001_4FGL_J1649.6+0411_weekly_bin906.fits
.....................!
real 60.48
user 55.92
sys 3.67

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/17379950/ft1_filtered_4FGL_J1649.6+0411_weekly_bin906.fits scfile=/lscratch/kocevski/17379950/ft2_4FGL_J1649.6+0411_weekly_bin906.fits outfile=/lscratch/kocevski/17379950/cmap_786931201_787536001_4FGL_J1649.6+0411_weekly_bin906.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 1.02
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17379950/ft1_filtered_4FGL_J1649.6+0411_weekly_bin906.fits scfile=/lscratch/kocevski/17379950/ft2_4FGL_J1649.6+0411_weekly_bin906.fits outfile=/lscratch/kocevski/17379950/cmap_HighResolution_786931201_787536001_4FGL_J1649.6+0411_weekly_bin906.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 1.06
user 0.20
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    82.764       1.0000          .0000       .10000E+07
     2 'Prefactor '    .68086E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .22705E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .38247E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.3952       1.0000          .0000       .10000E+07
     6 'Prefactor '    .52223E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .20034E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .35805E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    6.9190       1.0000          .0000       .10000E+07
    10 'Prefactor '    52.486       1.0000          .0000       .10000E+07
    11 'Prefactor '    .12807E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    7.6043       1.0000          .0000       .10000E+07
    13 'Prefactor '    91.280       1.0000          .0000       .10000E+07
    14 'Prefactor '    17.043       1.0000          .0000       .10000E+07
    15 'norm      '    25.588       1.0000          .0000       .10000E+07
    16 'Prefactor '    8.7988       1.0000          .0000       .10000E+07
    17 'norm      '    2.9028       1.0000          .0000       .10000E+07
    18 'norm      '    .19984E-06   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.3026       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0094       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=   26568.23     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1582 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          82.752        21.346       -.22004E-05   -.15290    
   2  Prefactor     .27756E-09    35.838       -.26689E-06** at limit **
   3  Prefactor      .0000        5.4836       -.15262E-05** at limit **
   4  Prefactor     .55511E-10    3.0681       -.28838E-06** at limit **
   5  Prefactor     1.3986        4.5260       -.29571E-06    .59815E-03
   6  Prefactor     .62964E-05    105.60        .28377E-05** at limit **
   7  Prefactor      .0000        15.266        .25497E-06** at limit **
   8  Prefactor      .0000        1.3624       -.23434E-06** at limit **
   9  Prefactor     6.8978        4.3895       -.20615E-06   -.21637E-03
  10  Prefactor     52.777        12.597        .12635E-05    .57483E-01
  11  Prefactor     .67335E-07    26.770       -.77455E-06** at limit **
  12  Prefactor     7.5929        5.0930       -.23389E-06   -.28560E-03
  13  Prefactor     90.976        51.855       -.59368E-05    .21039    
  14  Prefactor     17.029        10.991        .13554E-06   -.28311E-02
  15  norm          25.588        10.104        .64114E-06    .35111E-02
  16  Prefactor     9.4765        48.516        .10662E-04    .70948E-01
  17  norm          2.8792        4.5854       -.26055E-06   -.21467E-03
  18  norm           .0000        1.0961       -.18316E-06** at limit **
  19  Normalizat    1.3024        .20889        .23058E-04   -.65806E-04
  20  Prefactor     1.0095        .52070E-01   -.30009E-05    .15773E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 82.7519
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 1.39858
  Prefactor  = 6.29635e-06
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 6.89783
  Prefactor  = 52.7771
  Prefactor  = 6.7335e-08
  Prefactor  = 7.59286
  Prefactor  = 90.9758
  Prefactor  = 17.029
  norm       = 25.588
  Prefactor  = 9.47655
  norm       = 2.87916
  norm       = 0
  Normalizat = 1.30237
  Prefactor  = 1.00946
 **********
 **   18 **HESSE 
 **********

 FCN=   26568.23     FROM HESSE     STATUS=OK           339 CALLS     1921 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          82.752        21.327        .10993E-03   -1.5526    
   2  Prefactor     .27756E-09    35.501        .14882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        5.4904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    3.0731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3986        4.5362        .91900E-03   -1.5684    
   6  Prefactor     .62964E-05    5.1144        .94514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        15.118        .17034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.3620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8978        4.3896        .38117E-03   -1.5655    
  10  Prefactor     52.777        46.529        .13804E-03   -1.5563    
  11  Prefactor     .67335E-07    26.796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.5929        5.1647        .36343E-03   -1.5653    
  13  Prefactor     90.976        107.14        .10467E-03   -1.5517    
  14  Prefactor     17.029        11.024        .24234E-03   -1.5625    
  15  norm          25.588        10.108        .19773E-03   -1.5607    
  16  Prefactor     9.4765        67.456        .33767E-03   -1.5646    
  17  norm          2.8792        4.6243        .59613E-03   -1.5674    
  18  norm           .0000        1.0943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3024        .18531        .11597       -.83496    
  20  Prefactor     1.0095        .46091E-01    .43414E-01   -.92415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36918e-06
Minuit parameter uncertainties:
  1  21.327
  2  0.000206132
  3  1.94853e-05
  4  2.32682e-05
  5  4.53625
  6  0.0113494
  7  1.93357e-05
  8  2.30743e-06
  9  4.38959
  10  46.5295
  11  0.00268683
  12  5.16475
  13  107.143
  14  11.0243
  15  10.1077
  16  50.5675
  17  4.62433
  18  9.04314e-06
  19  0.185403
  20  0.0460928
Done.

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

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  2.307e-06  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.009e+00  4.609e-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.302e+00  1.854e-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.64843909862e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00441902622425 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17379950/likelihoodResults_786931201_787536001_4FGL_J1649.6+0411_weekly_bin906.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) = 26568.2317952
delta logL = -0.00116045233153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26568.2306352
delta logL = -4.34127287008e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13989E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.3721       1.0000          .0000       10.000    
     3 'Normalizat'    1.3023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0095       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=   26568.23     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      251 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .84777        .42118E-03** at limit **
   2  Index         1.3589        1.0603       -.30312E-04     .0000    
   3  Normalizat    1.3024        1.0789        .75828E-05   -.14322E-03
   4  Prefactor     1.0095        1.2669       -.31280E-07   -.60605E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.35889
  Normalizat = 1.30237
  Prefactor  = 1.00946
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26568.23     FROM HESSE     STATUS=FAILED         9 CALLS      260 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .84777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .14940        1.3882       -.30312E-04   -.81572    
   3  Normalizat    1.3024        1.0789        .75828E-05   -.83496    
   4  Prefactor     1.0095        1.2669       -.31280E-07   -.92415    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.64175e-11
Minuit parameter uncertainties:
  1  5.64995e-06
  2  1.07797
  3  1.09844
  4  1.30752
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) = 26568.2306347
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  5.650e-06  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  1.359e+00  1.078e+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.009e+00  1.308e+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.302e+00  1.098e+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/17379950/cmap_HighResolution_786931201_787536001_4FGL_J1649.6+0411_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2025-12-16 03:05:46.292576', job_id='17379950', GAL2='1.01', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1765883146.29', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='906' AND source_name='4FGL J1649.6+0411' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:05:46 PST 2025

