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


Performing analysis on: 4FGL_J1649.6+0411_weekly_bin821
RA = 252.406, Dec = 4.1926
tmin = 735523201, tmax = 736128001
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='45355663', job_status='RUN', time_executed='2024-04-30 03:13:42.275402', time_epoch_executed='1714472022.28' WHERE source_name='4FGL J1649.6+0411' and cadence='weekly' and bin_id='821'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/45355663

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/45355663/ft1_4FGL_J1649.6+0411_weekly_bin821.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/45355663/ft2_4FGL_J1649.6+0411_weekly_bin821.fits


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

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

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

Number of photons that the gtmktime cut: 2773

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

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/45355663/ft1_filtered_4FGL_J1649.6+0411_weekly_bin821.fits evtable="EVENTS" scfile=/lscratch/kocevski/45355663/ft2_4FGL_J1649.6+0411_weekly_bin821.fits sctable="SC_DATA" expcube=/lscratch/kocevski/45355663/ltcube_735523201_736128001_4FGL_J1649.6+0411_weekly_bin821.fits outfile=/lscratch/kocevski/45355663/expmap_735523201_736128001_4FGL_J1649.6+0411_weekly_bin821.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/45355663/ltcube_735523201_736128001_4FGL_J1649.6+0411_weekly_bin821.fits
.....................!
real 59.18
user 55.39
sys 3.41

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/45355663/ft1_filtered_4FGL_J1649.6+0411_weekly_bin821.fits scfile=/lscratch/kocevski/45355663/ft2_4FGL_J1649.6+0411_weekly_bin821.fits outfile=/lscratch/kocevski/45355663/cmap_735523201_736128001_4FGL_J1649.6+0411_weekly_bin821.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.38
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/45355663/ft1_filtered_4FGL_J1649.6+0411_weekly_bin821.fits scfile=/lscratch/kocevski/45355663/ft2_4FGL_J1649.6+0411_weekly_bin821.fits outfile=/lscratch/kocevski/45355663/cmap_HighResolution_735523201_736128001_4FGL_J1649.6+0411_weekly_bin821.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.38
user 0.21
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    53.771       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13423E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    32.680       1.0000          .0000       .10000E+07
     4 'Prefactor '    .24304E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .54506E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .18196E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10655E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .10664E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.1421       1.0000          .0000       .10000E+07
    10 'Prefactor '    61.053       1.0000          .0000       .10000E+07
    11 'Prefactor '    23.104       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7501       1.0000          .0000       .10000E+07
    13 'Prefactor '    .59422E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .87809E-03   1.0000          .0000       .10000E+07
    15 'norm      '    23.916       1.0000          .0000       .10000E+07
    16 'Prefactor '    56.801       1.0000          .0000       .10000E+07
    17 'norm      '    4.0674       1.0000          .0000       .10000E+07
    18 'norm      '    .27550E-06   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1105       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97495       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=   29173.79     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1555 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          53.749        14.344        .14982E-06    .20346    
   2  Prefactor     .28311E-08    19.503       -.14821E-05** at limit **
   3  Prefactor     32.952        11.098        .20212E-06   -.35511E-02
   4  Prefactor      .0000        4.3416        .38190E-06** at limit **
   5  Prefactor      .0000        4.9646       -.29919E-06** at limit **
   6  Prefactor     .38858E-09    7.4272        .16864E-06** at limit **
   7  Prefactor     .59009E-04    81.641       -.37398E-05** at limit **
   8  Prefactor      .0000        1.3193       -.44464E-06** at limit **
   9  Prefactor     2.1278        3.9549        .40418E-07   -.13520E-03
  10  Prefactor     61.378        3.4204        .71085E-07    .15391E-01
  11  Prefactor     22.912        3.3907       -.87687E-08    .17677E-01
  12  Prefactor     9.6618        5.6628       -.13669E-06    .14452E-02
  13  Prefactor     .52341E-06    37.947        .31863E-06** at limit **
  14  Prefactor     .16098E-08    7.0365        .26564E-07** at limit **
  15  norm          24.121        8.0326       -.95249E-07    .33960E-03
  16  Prefactor     58.511        25.053        .75383E-06   -.23445    
  17  norm          4.0650        6.0743       -.29259E-06    .20888E-02
  18  norm           .0000        .62961        .10844E-06** at limit **
  19  Normalizat    1.1097        .19476       -.34494E-05    .30088E-04
  20  Prefactor     .97495        .48190E-01    .12067E-05    .11173E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 53.749
  Prefactor  = 2.83107e-09
  Prefactor  = 32.9518
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 5.90092e-05
  Prefactor  = 0
  Prefactor  = 2.12782
  Prefactor  = 61.3783
  Prefactor  = 22.9124
  Prefactor  = 9.66176
  Prefactor  = 5.23415e-07
  Prefactor  = 1.60982e-09
  norm       = 24.1213
  Prefactor  = 58.5109
  norm       = 4.06503
  norm       = 0
  Normalizat = 1.10974
  Prefactor  = 0.974954
 **********
 **   18 **HESSE 
 **********

 FCN=   29173.79     FROM HESSE     STATUS=OK           331 CALLS     1886 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          53.749        17.353        .13638E-03   -1.5561    
   2  Prefactor     .28311E-08    19.654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.952        21.854        .17495E-03   -1.5593    
   4  Prefactor      .0000        4.3326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        4.9122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .38858E-09    7.4198        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .59009E-04    100.15        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.3155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1278        3.9680        .70391E-03   -1.5679    
  10  Prefactor     61.378        42.003        .12799E-03   -1.5551    
  11  Prefactor     22.912        26.960        .20810E-03   -1.5612    
  12  Prefactor     9.6618        5.8000        .32068E-03   -1.5646    
  13  Prefactor     .52341E-06    38.433        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16098E-08    7.0209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          24.121        8.0414        .20453E-03   -1.5610    
  16  Prefactor     58.511        50.671        .13269E-03   -1.5555    
  17  norm          4.0650        6.2728        .49969E-03   -1.5668    
  18  norm           .0000        .62733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1097        .17781        .11669       -.89440    
  20  Prefactor     .97495        .43854E-01    .32399E-01   -.93569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48432e-06
Minuit parameter uncertainties:
  1  17.3528
  2  0.000471914
  3  21.8545
  4  1.76883e-05
  5  7.74104e-06
  6  0.000104831
  7  0.153753
  8  6.68893e-06
  9  3.96797
  10  42.0027
  11  26.9598
  12  5.79999
  13  0.00897024
  14  0.000212858
  15  8.04143
  16  50.6713
  17  6.27281
  18  1.30788e-06
  19  0.177901
  20  0.0438553
Done.

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

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  6.689e-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:  9.750e-01  4.386e-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.110e+00  1.779e-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.16907385406e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00404399738004 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/45355663/likelihoodResults_735523201_736128001_4FGL_J1649.6+0411_weekly_bin821.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) = 29173.7917494
delta logL = -0.00162039379211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 29173.7901306
delta logL = -1.61466232385e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10833E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.4755       1.0000          .0000       10.000    
     3 'Normalizat'    1.1097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97499       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=   29173.79     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      257 TOTAL
                     EDM=   .69E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.0162        .42118E-03** at limit **
   2  Index         1.3363        1.0086        .37988E-07     .0000    
   3  Normalizat    1.1097        1.1487        .61434E-05   -.83349E-05
   4  Prefactor     .97495        1.3157       -.20709E-05   -.33709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.33625
  Normalizat = 1.10974
  Prefactor  = 0.974954
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   29173.79     FROM HESSE     STATUS=FAILED         9 CALLS      266 TOTAL
                     EDM=   .69E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.0162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .14146        1.3594        .37988E-07   -.82235    
   3  Normalizat    1.1097        1.1487        .61434E-05   -.89440    
   4  Prefactor     .97495        1.3157       -.20709E-05   -.93569    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.85597e-14
Minuit parameter uncertainties:
  1  2.21298e-07
  2  1.02395
  3  1.17621
  4  1.36313
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) = 29173.790129
delta logL = 0.0

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  2.213e-07  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  1.336e+00  1.024e+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:  9.750e-01  1.363e+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.110e+00  1.176e+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/45355663/cmap_HighResolution_735523201_736128001_4FGL_J1649.6+0411_weekly_bin821.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-03', job_status='DONE', photon_flux_upper_limit='5.17e-08', time_completed='2024-04-30 03:28:11.443018', job_id='45355663', GAL2='0.97', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1714472891.44', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='821' AND source_name='4FGL J1649.6+0411' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 30 03:28:12 PDT 2024

