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


Performing analysis on: 4FGL_J1649.4+5235_weekly_bin854
RA = 252.364, Dec = 52.5901
tmin = 755481601, tmax = 756086401
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='60352460', job_status='RUN', time_executed='2024-12-17 00:51:57.269012', time_epoch_executed='1734425517.27' WHERE source_name='4FGL J1649.4+5235' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60352460

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60352460/ft1_4FGL_J1649.4+5235_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60352460/ft2_4FGL_J1649.4+5235_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60352460/ft1_4FGL_J1649.4+5235_weekly_bin854.fits outfile=/lscratch/kocevski/60352460/ft1_filteredMKT_4FGL_J1649.4+5235_weekly_bin854.fits ra=252.364 dec=52.5901 rad=12.0 tmin=755481601.0 tmax=756086401.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.59
user 4.21
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60352460/ft2_4FGL_J1649.4+5235_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60352460/ft2_4FGL_J1649.4+5235_weekly_bin854.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/60352460/ft1_filteredMKT_4FGL_J1649.4+5235_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60352460/ft1_filtered_4FGL_J1649.4+5235_weekly_bin854.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.38
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 1493

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60352460/ft1_filtered_4FGL_J1649.4+5235_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60352460/ft2_4FGL_J1649.4+5235_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60352460/ltcube_755481601_756086401_4FGL_J1649.4+5235_weekly_bin854.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/60352460/ft2_4FGL_J1649.4+5235_weekly_bin854.fits
.....................!
real 15.26
user 14.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60352460/ft1_filtered_4FGL_J1649.4+5235_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352460/ft2_4FGL_J1649.4+5235_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60352460/ltcube_755481601_756086401_4FGL_J1649.4+5235_weekly_bin854.fits outfile=/lscratch/kocevski/60352460/expmap_755481601_756086401_4FGL_J1649.4+5235_weekly_bin854.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/60352460/ltcube_755481601_756086401_4FGL_J1649.4+5235_weekly_bin854.fits
.....................!
real 63.56
user 59.50
sys 3.66

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
Added 220 point sources and 0 extended sources

Setting source of interest to:
4FGL J1649.4+5235 @ 252.364 52.5901

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60352460/ft1_filtered_4FGL_J1649.4+5235_weekly_bin854.fits scfile=/lscratch/kocevski/60352460/ft2_4FGL_J1649.4+5235_weekly_bin854.fits outfile=/lscratch/kocevski/60352460/cmap_755481601_756086401_4FGL_J1649.4+5235_weekly_bin854.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.364 yref=52.5901 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60352460/ft1_filtered_4FGL_J1649.4+5235_weekly_bin854.fits scfile=/lscratch/kocevski/60352460/ft2_4FGL_J1649.4+5235_weekly_bin854.fits outfile=/lscratch/kocevski/60352460/cmap_HighResolution_755481601_756086401_4FGL_J1649.4+5235_weekly_bin854.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.364 yref=52.5901 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.39
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60352460/ft1_filtered_4FGL_J1649.4+5235_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352460/ft2_4FGL_J1649.4+5235_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60352460/Model_4FGL_J1649.4+5235_weekly_bin854.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 GAL_V02
Working on...
/lscratch/kocevski/60352460/ft1_filtered_4FGL_J1649.4+5235_weekly_bin854.fits.....................!
real 42.64
user 41.69
sys 0.67

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60352460/ft1_filtered_4FGL_J1649.4+5235_weekly_bin854.fits', '/lscratch/kocevski/60352460/ft2_4FGL_J1649.4+5235_weekly_bin854.fits', expMap='/lscratch/kocevski/60352460/expmap_755481601_756086401_4FGL_J1649.4+5235_weekly_bin854.fits', expCube='/lscratch/kocevski/60352460/ltcube_755481601_756086401_4FGL_J1649.4+5235_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60352460/Model_4FGL_J1649.4+5235_weekly_bin854.xml', optimizer='MINUIT')

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

4FGL J1649.4+5235
   Spectrum: PowerLaw
368    Prefactor:  5.175e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
369        Index:  2.084e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.469e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60352460/ft1_filtered_4FGL_J1649.4+5235_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60352460/ft2_4FGL_J1649.4+5235_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60352460/expmap_755481601_756086401_4FGL_J1649.4+5235_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60352460/ltcube_755481601_756086401_4FGL_J1649.4+5235_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60352460/Model_4FGL_J1649.4+5235_weekly_bin854.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) = 15864.6669538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49297E-03   1.0000          .0000       .10000E+07
     2 'norm      '    26.609       1.0000          .0000       .10000E+07
     3 'Prefactor '    .60369E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.2049       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.5220       1.0000          .0000       .10000E+07
     6 'Prefactor '    .84112       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.3567       1.0000          .0000       .10000E+07
     8 'Prefactor '    .84932E-08   1.0000          .0000       .10000E+07
     9 'norm      '    5.1582       1.0000          .0000       .10000E+07
    10 'norm      '    .18541E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.3563       1.0000          .0000       .10000E+07
    12 'Prefactor '    .29232E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .54944E-03   1.0000          .0000       .10000E+07
    14 'norm      '    19.663       1.0000          .0000       .10000E+07
    15 'Prefactor '    .22549E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .13428E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.1574       1.0000          .0000       .10000E+07
    18 'Prefactor '    .89554       1.0000          .0000       .10000E+07
    19 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
    20 'Prefactor '    2.9136       1.0000          .0000       .10000E+07
    21 'norm      '    .44419       1.0000          .0000       .10000E+07
    22 'Prefactor '    4.5165       1.0000          .0000       .10000E+07
    23 'Prefactor '    5.1036       1.0000          .0000       .10000E+07
    24 'norm      '    3.2440       1.0000          .0000       .10000E+07
    25 'Prefactor '    1.4167       1.0000          .0000       .10000E+07
    26 'Prefactor '    .46404E-01   1.0000          .0000       .10000E+07
    27 'norm      '    .13317E-05   1.0000          .0000       .10000E+07
    28 'Prefactor '    .19310E-02   1.0000          .0000       .10000E+07
    29 'Prefactor '    5.6230       1.0000          .0000       .10000E+07
    30 'Prefactor '    35.152       1.0000          .0000       .10000E+07
    31 'Prefactor '    8.7864       1.0000          .0000       .10000E+07
    32 'Prefactor '    .84130E-03   1.0000          .0000       .10000E+07
    33 'Normalizat'    1.1139       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .91406       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15862.29     FROM MIGRAD    STATUS=CONVERGED    227 CALLS     2009 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66608E-06    2.5599        .54864E-06** at limit **
   2  norm          26.565        6.1449       -.60962E-07   -.38739E-03
   3  Prefactor     .11713E-07    5.1160        .16798E-06** at limit **
   4  Prefactor     1.1647        317.62        .57554E-05    .60223E-02
   5  Prefactor     4.5668        3.6531       -.70956E-06    .17555E-02
   6  Prefactor     .59333        36.320        .65329E-05   -.49223E-01
   7  Prefactor     3.3825        3.4098       -.17896E-08   -.68459E-03
   8  Prefactor      .0000        1.1123       -.25489E-06** at limit **
   9  norm          5.1018        7.7370       -.16481E-05   -.13763E-01
  10  norm          .44409E-09    2.5144       -.17464E-06** at limit **
  11  Prefactor     3.3575        2.2022        .42578E-07   -.66653E-03
  12  Prefactor     .13323E-08    3.6034        .43669E-06** at limit **
  13  norm          .27939E-06    4.4530       -.14324E-06** at limit **
  14  norm          19.612        6.2757       -.13928E-06   -.41550E-02
  15  Prefactor      .0000        .71760       -.22999E-06** at limit **
  16  Prefactor      .0000        .62353        .23675E-06** at limit **
  17  Prefactor     5.1660        4.5929        .15316E-06    .55867E-04
  18  Prefactor     .95522        16.920        .39842E-05    .56602E-01
  19  norm           .0000        .12332       -.25612E-07** at limit **
  20  Prefactor     2.8808        4.2714        .22539E-07    .84785E-04
  21  norm          .44404        .39438        .19118E-07   -.52994E-03
  22  Prefactor     4.5109        3.2507        .14455E-06   -.98988E-04
  23  Prefactor     5.1075        5.0486       -.12690E-06   -.74955E-03
  24  norm          3.2422        1.1721        .56551E-07   -.42615E-03
  25  Prefactor     1.4148        1.6140        .88153E-07    .17306E-03
  26  Prefactor     .92260E-07    27.713        .23475E-05** at limit **
  27  norm          .33307E-09    2.0580        .19540E-06** at limit **
  28  Prefactor     .42744E-08    14.805       -.27160E-06** at limit **
  29  Prefactor     5.6331        3.0874        .81844E-07    .21903E-03
  30  Prefactor     34.265        29.609        .23346E-06    .43800E-01
  31  Prefactor     8.9078        5.9614       -.10833E-05    .19077E-01
  32  Prefactor     .47184E-08    8.1593       -.20042E-06** at limit **
  33  Normalizat    1.1151        .14690       -.93631E-05   -.17457E-03
  34  Prefactor     .91401        .12471        .46797E-05   -.14552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.66078e-07
  norm       = 26.5652
  Prefactor  = 1.17129e-08
  Prefactor  = 1.16472
  Prefactor  = 4.56681
  Prefactor  = 0.593326
  Prefactor  = 3.3825
  Prefactor  = 0
  norm       = 5.1018
  norm       = 4.44089e-10
  Prefactor  = 3.35753
  Prefactor  = 1.33227e-09
  norm       = 2.79388e-07
  norm       = 19.6119
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.16604
  Prefactor  = 0.95522
  norm       = 0
  Prefactor  = 2.88082
  norm       = 0.44404
  Prefactor  = 4.51088
  Prefactor  = 5.10751
  norm       = 3.24216
  Prefactor  = 1.4148
  Prefactor  = 9.22595e-08
  norm       = 3.33067e-10
  Prefactor  = 4.27436e-09
  Prefactor  = 5.63309
  Prefactor  = 34.2651
  Prefactor  = 8.90785
  Prefactor  = 4.71845e-09
  Normalizat = 1.11513
  Prefactor  = 0.91401
 **********
 **   18 **HESSE 
 **********

 FCN=   15862.29     FROM HESSE     STATUS=OK           808 CALLS     2817 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66608E-06    6.3550        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          26.565        6.1393        .19390E-03   -1.5605    
   3  Prefactor     .11713E-07    5.1936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1647        342.79        .56570E-03   -1.5686    
   5  Prefactor     4.5668        4.4462        .47320E-03   -1.5665    
   6  Prefactor     .59333        145.37        .49919E-03   -1.5693    
   7  Prefactor     3.3825        3.4342        .55212E-03   -1.5671    
   8  Prefactor      .0000        1.1078        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.1018        7.7720        .44241E-03   -1.5663    
  10  norm          .44409E-09    2.5222        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.3575        2.2166        .55216E-03   -1.5671    
  12  Prefactor     .13323E-08    3.5726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27939E-06    6.1312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          19.612        6.2909        .22559E-03   -1.5619    
  15  Prefactor      .0000        .71216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        .61981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.1660        4.5981        .44244E-03   -1.5663    
  18  Prefactor     .95522        24.227        .46069E-03   -1.5688    
  19  norm           .0000        .12262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8808        4.3679        .59495E-03   -1.5674    
  21  norm          .44404        .45620        .16682E-02   -1.5695    
  22  Prefactor     4.5109        3.2671        .47349E-03   -1.5665    
  23  Prefactor     5.1075        5.1199        .44481E-03   -1.5663    
  24  norm          3.2422        1.1781        .56210E-03   -1.5672    
  25  Prefactor     1.4148        1.6288        .90903E-03   -1.5684    
  26  Prefactor     .92260E-07    27.701        .15687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .33307E-09    2.0492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .42744E-08    14.812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     5.6331        3.0951        .42340E-03   -1.5660    
  30  Prefactor     34.265        30.131        .16868E-03   -1.5591    
  31  Prefactor     8.9078        72.687        .33791E-03   -1.5648    
  32  Prefactor     .47184E-08    8.1904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.1151        .12453        .57523E-01   -.89268    
  34  Prefactor     .91401        .10571        .45184E-01   -.95653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19508e-06
Minuit parameter uncertainties:
  1  0.00411479
  2  6.1393
  3  0.000493007
  4  39.9648
  5  4.44624
  6  18.575
  7  3.43419
  8  9.37497e-06
  9  7.772
  10  6.8234e-05
  11  2.21657
  12  0.00013703
  13  0.00261766
  14  6.29088
  15  6.24532e-07
  16  9.64425e-07
  17  4.59812
  18  9.62129
  19  9.84591e-08
  20  4.36789
  21  0.456196
  22  3.26715
  23  5.11989
  24  1.17814
  25  1.62882
  26  0.00319761
  27  5.22172e-05
  28  0.000503223
  29  3.09507
  30  30.1307
  31  50.8923
  32  0.00039305
  33  0.124566
  34  0.105738
Done.

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

Extracting fit parameters...

4FGL J1649.4+5235
   Spectrum: PowerLaw
368    Prefactor:  5.166e+00  4.598e+00  0.000e+00  1.000e+06 ( 1.000e-13)
369        Index:  2.084e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.469e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
709    Prefactor:  9.140e-01  1.057e-01  0.000e+00  1.000e+01 ( 1.000e+00)
710        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
711        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
708   Normalization:  1.115e+00  1.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.67
Ra Dec: 252.364 52.590
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 1.29e-08 +/- 1.15e-08
Energy Flux (Fixed Index): 7.32e-06 +/- 6.52e-06

TS (Fixed Index): 3.67
Ra Dec: 252.364 52.590
Photon Flux Upper Limit: 4.213693371e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00318189649264 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60352460/likelihoodResults_755481601_756086401_4FGL_J1649.4+5235_weekly_bin854.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) = 15862.2746341
delta logL = 0.0143731199641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15862.2732644
delta logL = 0.0157428641887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4214       1.0000          .0000       .10000E+07
     2 'Index     '    1.9748       1.0000          .0000       10.000    
     3 'Normalizat'    1.1168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91346       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15862.27     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      243 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4218        5.0746        .17253E-04   -.11037E-01
   2  Index         1.9748        .61696        .11568E-01   -.26729E-03
   3  Normalizat    1.1168        .13665        .25421E-03    .44776E-03
   4  Prefactor     .91346        .12262        .24851E-03    .50386E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.42184
  Index      = 1.97479
  Normalizat = 1.11682
  Prefactor  = 0.91346
 **********
 **   18 **HESSE 
 **********

 FCN=   15862.27     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4218        5.0131        .34507E-05   -1.5661    
   2  Index         1.9748        .60965        .46274E-03   -.64982    
   3  Normalizat    1.1168        .13675        .10168E-04   -.89214    
   4  Prefactor     .91346        .12273        .99404E-05   -.95672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20542e-09
Minuit parameter uncertainties:
  1  5.01311
  2  0.612061
  3  0.13679
  4  0.122768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15862.2732643
delta logL = 0.0157428682251

Extracting fit parameters...

4FGL J1649.4+5235
   Spectrum: PowerLaw
368    Prefactor:  5.422e+00  5.013e+00  0.000e+00  1.000e+06 ( 1.000e-13)
369        Index:  1.975e+00  6.121e-01  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  1.469e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
709    Prefactor:  9.135e-01  1.228e-01  0.000e+00  1.000e+01 ( 1.000e+00)
710        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
711        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
708   Normalization:  1.117e+00  1.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.70
Ra Dec: 252.364 52.590
Photon Index (Free Index): 1.97 +/- 0.61
Photon Flux (Free Index): 1.12e-08 +/- 1.38e-08
Energy Flux (Free Index): 8.25e-06 +/- 9.52e-06

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/60352460/cmap_HighResolution_755481601_756086401_4FGL_J1649.4+5235_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-03', comment='SUCCESS', photon_flux='1.29e-08', energy_flux2='8.25e-06', photon_flux_error='1.15e-08', dlogl='1.57e-02', energy_flux='7.32e-06', photon_flux2='1.12e-08', job_status='DONE', time_completed='2024-12-17 01:02:51.998241', photon_index_error2='0.61', photon_index2='1.97', ts='3.67', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='4.21e-08', energy_flux_error2='9.52e-06', EG='1.12', time_epoch_completed='1734426172.0', return_code='0', job_id='60352460', GAL2='0.91', EG2='1.12', return_code2='0', energy_flux_error='6.52e-06', photon_flux_error2='1.38e-08', ts2='3.70', photon_index='2.08' WHERE bin_id='854' AND source_name='4FGL J1649.4+5235' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:02:52 PST 2024

