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


Performing analysis on: 4FGL_J1649.6+0411_weekly_bin897
RA = 252.406, Dec = 4.1926
tmin = 781488001, tmax = 782092801
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='14091844', job_status='RUN', time_executed='2025-10-20 11:50:17.402174', time_epoch_executed='1760986217.4' WHERE source_name='4FGL J1649.6+0411' and cadence='weekly' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/14091844

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/14091844/ft1_4FGL_J1649.6+0411_weekly_bin897.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/14091844/ft2_4FGL_J1649.6+0411_weekly_bin897.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/14091844/ft1_4FGL_J1649.6+0411_weekly_bin897.fits outfile=/lscratch/kocevski/14091844/ft1_filteredMKT_4FGL_J1649.6+0411_weekly_bin897.fits ra=252.406 dec=4.1926 rad=12.0 tmin=781488001.0 tmax=782092801.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 4.54
user 3.92
sys 0.31

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

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

Number of photons that the gtmktime cut: 3605

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/14091844/ft1_filtered_4FGL_J1649.6+0411_weekly_bin897.fits" evtable="EVENTS" scfile=/lscratch/kocevski/14091844/ft2_4FGL_J1649.6+0411_weekly_bin897.fits sctable="SC_DATA" outfile=/lscratch/kocevski/14091844/ltcube_781488001_782092801_4FGL_J1649.6+0411_weekly_bin897.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/14091844/ft2_4FGL_J1649.6+0411_weekly_bin897.fits
.....................!
real 17.98
user 17.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/14091844/ft1_filtered_4FGL_J1649.6+0411_weekly_bin897.fits evtable="EVENTS" scfile=/lscratch/kocevski/14091844/ft2_4FGL_J1649.6+0411_weekly_bin897.fits sctable="SC_DATA" expcube=/lscratch/kocevski/14091844/ltcube_781488001_782092801_4FGL_J1649.6+0411_weekly_bin897.fits outfile=/lscratch/kocevski/14091844/expmap_781488001_782092801_4FGL_J1649.6+0411_weekly_bin897.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/14091844/ltcube_781488001_782092801_4FGL_J1649.6+0411_weekly_bin897.fits
.....................!
real 68.87
user 64.33
sys 3.94

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/14091844/ft1_filtered_4FGL_J1649.6+0411_weekly_bin897.fits scfile=/lscratch/kocevski/14091844/ft2_4FGL_J1649.6+0411_weekly_bin897.fits outfile=/lscratch/kocevski/14091844/cmap_781488001_782092801_4FGL_J1649.6+0411_weekly_bin897.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.70
user 0.24
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/14091844/ft1_filtered_4FGL_J1649.6+0411_weekly_bin897.fits scfile=/lscratch/kocevski/14091844/ft2_4FGL_J1649.6+0411_weekly_bin897.fits outfile=/lscratch/kocevski/14091844/cmap_HighResolution_781488001_782092801_4FGL_J1649.6+0411_weekly_bin897.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.62
user 0.23
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    154.17       1.0000          .0000       .10000E+07
     2 'Prefactor '    .50559E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .45747       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.7068       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.1870       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.4909       1.0000          .0000       .10000E+07
     7 'Prefactor '    .80025E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .26978E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4237       1.0000          .0000       .10000E+07
    10 'Prefactor '    .19708E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    5.6383       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14683E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .58678E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    8.0041       1.0000          .0000       .10000E+07
    15 'norm      '    25.204       1.0000          .0000       .10000E+07
    16 'Prefactor '    .19115E-02   1.0000          .0000       .10000E+07
    17 'norm      '    30.127       1.0000          .0000       .10000E+07
    18 'norm      '     .0000       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0689       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0250       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=   37517.49     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1302 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          154.17        9.1722        .18535E-06    .95742E-01
   2  Prefactor      .0000        11.063        .15035E-06** at limit **
   3  Prefactor     .51403E-07    709.16       -.29101E-04** at limit **
   4  Prefactor     2.7297        4.1238        .71235E-07    .98762E-04
   5  Prefactor     4.1869        3.9094        .12372E-06    .64383E-03
   6  Prefactor     2.4388        8.2098       -.28514E-06   -.10510E-03
   7  Prefactor     .49127E-07    17.009       -.63176E-06** at limit **
   8  Prefactor      .0000        2.6474       -.31909E-07** at limit **
   9  Prefactor     1.4290        3.5597       -.16583E-06    .87921E-03
  10  Prefactor     .51070E-08    12.139       -.32595E-06** at limit **
  11  Prefactor     5.5713        13.673       -.13762E-05   -.74025E-03
  12  Prefactor     .11990E-07    42.735       -.47891E-05** at limit **
  13  Prefactor     .11130E-06    23.523        .10160E-05** at limit **
  14  Prefactor     7.9935        6.2178        .42759E-07    .67534E-03
  15  norm          25.207        8.2376       -.23214E-06   -.10525E-02
  16  Prefactor      .0000        16.188        .69270E-06** at limit **
  17  norm          30.116        6.3719        .89123E-07    .30002E-03
  18  norm           .0000        .39832        .72717E-07** at limit **
  19  Normalizat    1.0697        .16980       -.58250E-05    .61051E-04
  20  Prefactor     1.0250        .44438E-01    .16996E-05    .40557E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 154.171
  Prefactor  = 0
  Prefactor  = 5.14033e-08
  Prefactor  = 2.72973
  Prefactor  = 4.18686
  Prefactor  = 2.43884
  Prefactor  = 4.91274e-08
  Prefactor  = 0
  Prefactor  = 1.42897
  Prefactor  = 5.10703e-09
  Prefactor  = 5.57127
  Prefactor  = 1.19904e-08
  Prefactor  = 1.113e-07
  Prefactor  = 7.9935
  norm       = 25.2065
  Prefactor  = 0
  norm       = 30.1163
  norm       = 0
  Normalizat = 1.06974
  Prefactor  = 1.025
 **********
 **   18 **HESSE 
 **********

 FCN=   37517.49     FROM HESSE     STATUS=OK           345 CALLS     1647 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          154.17        20.963        .80545E-04   -1.5460    
   2  Prefactor      .0000        11.088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .51403E-07    8.5517        .13695E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7297        4.2375        .61886E-03   -1.5675    
   5  Prefactor     4.1869        3.9294        .49228E-03   -1.5667    
   6  Prefactor     2.4388        8.1977        .64737E-03   -1.5677    
   7  Prefactor     .49127E-07    29.990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.6297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4290        3.6085        .90591E-03   -1.5684    
  10  Prefactor     .51070E-08    30.249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5713        13.650        .42282E-03   -1.5661    
  12  Prefactor     .11990E-07    2.2909        .62921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11130E-06    27.507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9935        6.2453        .35416E-03   -1.5651    
  15  norm          25.207        8.2639        .19923E-03   -1.5608    
  16  Prefactor      .0000        16.300        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          30.116        6.3815        .18222E-03   -1.5598    
  18  norm           .0000        .39855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0697        .15889        .12128       -.90729    
  20  Prefactor     1.0250        .39417E-01    .41671E-01   -.91901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86823e-07
Minuit parameter uncertainties:
  1  20.9635
  2  1.30063e-05
  3  0.00132574
  4  4.23755
  5  3.92943
  6  8.19773
  7  0.00242706
  8  1.3564e-06
  9  3.60853
  10  0.00078446
  11  13.6506
  12  0.000331295
  13  0.00349942
  14  6.24531
  15  8.2639
  16  3.77143e-05
  17  6.38152
  18  1.54904e-06
  19  0.158962
  20  0.0394179
Done.

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

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  1.356e-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.025e+00  3.942e-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.070e+00  1.590e-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.69531114143e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00445569631713 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/14091844/likelihoodResults_781488001_782092801_4FGL_J1649.6+0411_weekly_bin897.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) = 37517.5106125
delta logL = -0.0174441535419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 37517.4931687
delta logL = -4.13732777815e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20509E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.8341       1.0000          .0000       10.000    
     3 'Normalizat'    1.0697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0250       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=   37517.49     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      236 TOTAL
                     EDM=   .39E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.5287        .22988E-06** at limit **
   2  Index         2.5310        1.2350        .10341E-04     .0000    
   3  Normalizat    1.0697        .16219       -.12293E-04    .66276E-04
   4  Prefactor     1.0250        .43351E-01    .25906E-05    .20806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.531
  Normalizat = 1.06974
  Prefactor  = 1.025
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   37517.49     FROM HESSE     STATUS=FAILED        11 CALLS      247 TOTAL
                     EDM=   .39E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.5215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .72266        1.8707        .10341E-04   -.51646    
   3  Normalizat    1.0697        1.1808       -.12293E-04   -.90729    
   4  Prefactor     1.0250        1.2277        .25906E-05   -.91901    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.87329e-12
Minuit parameter uncertainties:
  1  9.36051e-06
  2  0.97894
  3  1.21192
  4  1.26399
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) = 37517.4931683
delta logL = 0.0

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  9.361e-06  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.531e+00  9.789e-01  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.025e+00  1.264e+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.070e+00  1.212e+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/14091844/cmap_HighResolution_781488001_782092801_4FGL_J1649.6+0411_weekly_bin897.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2025-10-20 12:06:51.782609', job_id='14091844', GAL2='1.02', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1760987211.78', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='897' AND source_name='4FGL J1649.6+0411' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Oct 20 12:06:51 PDT 2025

