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


Performing analysis on: 4FGL_J1633.8+0701_weekly_bin853
RA = 248.454, Dec = 7.0309
tmin = 754876801, tmax = 755481601
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='59978231', job_status='RUN', time_executed='2024-12-10 00:56:18.164322', time_epoch_executed='1733820978.16' WHERE source_name='4FGL J1633.8+0701' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59978231

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59978231/ft1_4FGL_J1633.8+0701_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59978231/ft2_4FGL_J1633.8+0701_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59978231/ft1_4FGL_J1633.8+0701_weekly_bin853.fits outfile=/lscratch/kocevski/59978231/ft1_filteredMKT_4FGL_J1633.8+0701_weekly_bin853.fits ra=248.454 dec=7.0309 rad=12.0 tmin=754876801.0 tmax=755481601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.61
user 3.21
sys 0.29

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59978231/ft2_4FGL_J1633.8+0701_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59978231/ft2_4FGL_J1633.8+0701_weekly_bin853.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/59978231/ft1_filteredMKT_4FGL_J1633.8+0701_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59978231/ft1_filtered_4FGL_J1633.8+0701_weekly_bin853.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.50
user 0.24
sys 0.16

Number of photons that the gtmktime cut: 2408

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59978231/ft1_filtered_4FGL_J1633.8+0701_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59978231/ft2_4FGL_J1633.8+0701_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59978231/ltcube_754876801_755481601_4FGL_J1633.8+0701_weekly_bin853.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/59978231/ft2_4FGL_J1633.8+0701_weekly_bin853.fits
.....................!
real 22.03
user 21.40
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59978231/ft1_filtered_4FGL_J1633.8+0701_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978231/ft2_4FGL_J1633.8+0701_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59978231/ltcube_754876801_755481601_4FGL_J1633.8+0701_weekly_bin853.fits outfile=/lscratch/kocevski/59978231/expmap_754876801_755481601_4FGL_J1633.8+0701_weekly_bin853.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/59978231/ltcube_754876801_755481601_4FGL_J1633.8+0701_weekly_bin853.fits
.....................!
real 71.49
user 66.84
sys 4.22

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 J1633.8+0701 @ 248.454 7.0309

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59978231/ft1_filtered_4FGL_J1633.8+0701_weekly_bin853.fits scfile=/lscratch/kocevski/59978231/ft2_4FGL_J1633.8+0701_weekly_bin853.fits outfile=/lscratch/kocevski/59978231/cmap_754876801_755481601_4FGL_J1633.8+0701_weekly_bin853.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=248.454 yref=7.0309 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.43
user 0.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59978231/ft1_filtered_4FGL_J1633.8+0701_weekly_bin853.fits scfile=/lscratch/kocevski/59978231/ft2_4FGL_J1633.8+0701_weekly_bin853.fits outfile=/lscratch/kocevski/59978231/cmap_HighResolution_754876801_755481601_4FGL_J1633.8+0701_weekly_bin853.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=248.454 yref=7.0309 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.46
user 0.24
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59978231/ft1_filtered_4FGL_J1633.8+0701_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978231/ft2_4FGL_J1633.8+0701_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59978231/Model_4FGL_J1633.8+0701_weekly_bin853.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/59978231/ft1_filtered_4FGL_J1633.8+0701_weekly_bin853.fits.....................!
real 76.55
user 74.91
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59978231/ft1_filtered_4FGL_J1633.8+0701_weekly_bin853.fits', '/lscratch/kocevski/59978231/ft2_4FGL_J1633.8+0701_weekly_bin853.fits', expMap='/lscratch/kocevski/59978231/expmap_754876801_755481601_4FGL_J1633.8+0701_weekly_bin853.fits', expCube='/lscratch/kocevski/59978231/ltcube_754876801_755481601_4FGL_J1633.8+0701_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59978231/Model_4FGL_J1633.8+0701_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1633.8+0701'

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.015e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
246        Index:  2.146e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
247        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59978231/ft1_filtered_4FGL_J1633.8+0701_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59978231/ft2_4FGL_J1633.8+0701_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59978231/expmap_754876801_755481601_4FGL_J1633.8+0701_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59978231/ltcube_754876801_755481601_4FGL_J1633.8+0701_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59978231/Model_4FGL_J1633.8+0701_weekly_bin853.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) = 26435.6650312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2582       1.0000          .0000       .10000E+07
     2 'norm      '    .33362E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .50725E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .19991E-05   1.0000          .0000       .10000E+07
     5 'norm      '    5.4952       1.0000          .0000       .10000E+07
     6 'norm      '    56.034       1.0000          .0000       .10000E+07
     7 'Prefactor '    39.532       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12915E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17229E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .29241       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20087E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .80612E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .20330E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .44718       1.0000          .0000       .10000E+07
    15 'Prefactor '    52.107       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.6850       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .92033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26435.66     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1307 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2558        4.3785        .10799E-06    .45870E-02
   2  norm          .55511E-10    3.0451        .32983E-05** at limit **
   3  Prefactor     .77716E-09    9.9432       -.13162E-05** at limit **
   4  norm          .99920E-09    9.9319       -.21484E-05** at limit **
   5  norm          5.4949        1.1991       -.45335E-06   -.20029E-02
   6  norm          56.057        13.065       -.14032E-05   -.38142E-02
   7  Prefactor     39.794        37.323       -.76127E-05   -.10322E-02
   8  Prefactor     .27200E-08    25.276       -.44537E-06** at limit **
   9  Prefactor      .0000        2.6441        .22438E-05** at limit **
  10  Prefactor     .28691        8.2470        .92020E-05   -.10614E-02
  11  Prefactor     .61062E-09    6.9942        .77888E-06** at limit **
  12  Prefactor     .69944E-08    18.884        .18490E-05** at limit **
  13  Prefactor     .10547E-08    23.718        .43234E-05** at limit **
  14  Prefactor     .45975        8.4837        .54166E-05    .39540E-02
  15  Prefactor     49.232        101.06       -.10403E-04    .10661E-03
  16  Normalizat    1.6846        .19384       -.16889E-05    .12829E-03
  17  Prefactor     .92055        .63378E-01    .16422E-04    .13373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.25583
  norm       = 5.55112e-11
  Prefactor  = 7.77156e-10
  norm       = 9.99201e-10
  norm       = 5.49488
  norm       = 56.0571
  Prefactor  = 39.7941
  Prefactor  = 2.72005e-09
  Prefactor  = 0
  Prefactor  = 0.286912
  Prefactor  = 6.10623e-10
  Prefactor  = 6.99441e-09
  Prefactor  = 1.05471e-09
  Prefactor  = 0.459753
  Prefactor  = 49.2319
  Normalizat = 1.68459
  Prefactor  = 0.920551
 **********
 **   18 **HESSE 
 **********

 FCN=   26435.66     FROM HESSE     STATUS=OK           269 CALLS     1576 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2558        4.3823        .43810E-03   -1.5662    
   2  norm          .55511E-10    2.9816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .77716E-09    9.9520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .99920E-09    9.7606        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4949        1.2015        .42838E-03   -1.5661    
   6  norm          56.057        12.987        .13360E-03   -1.5558    
   7  Prefactor     39.794        37.385        .15906E-03   -1.5582    
   8  Prefactor     .27200E-08    25.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        2.6324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .28691        1.5870        .78482E-02   -1.5697    
  11  Prefactor     .61062E-09    6.8497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .69944E-08    1.8543        .61122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10547E-08    23.630        .17015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .45975        1.7002        .84212E-02   -1.5694    
  15  Prefactor     49.232        101.70        .13854E-03   -1.5568    
  16  Normalizat    1.6846        .16465        .90967E-01   -.72716    
  17  Prefactor     .92055        .52886E-01    .45264E-01   -.95427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66862e-09
Minuit parameter uncertainties:
  1  4.38231
  2  1.95968e-05
  3  0.000178551
  4  0.000194987
  5  1.20147
  6  12.9867
  7  37.3848
  8  0.000523876
  9  9.23311e-07
  10  1.34957
  11  0.000131108
  12  0.000227385
  13  0.000315141
  14  1.70023
  15  101.701
  16  0.164699
  17  0.0528887
Done.

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

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  2.869e-01  1.350e+00  0.000e+00  1.000e+06 ( 1.000e-13)
246        Index:  2.146e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
247        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  9.206e-01  5.289e-02  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.685e+00  1.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 248.454 7.031
Photon Flux Upper Limit: 4.64859132374e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0035274168165 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/59978231/likelihoodResults_754876801_755481601_4FGL_J1633.8+0701_weekly_bin853.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) = 26435.2015469
delta logL = 0.454872998434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26435.2014238
delta logL = 0.454996153036

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   26435.20     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      252 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2414        1.9208        .10066E-02    .50697E-02
   2  Index         1.0670        .60095        .39006       -.27442E-03
   3  Normalizat    1.6840        .15610        .90969E-01    .40503E-04
   4  Prefactor     .92036        .52422E-01    .45263E-01    .35683E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.24142
  Index      = 1.067
  Normalizat = 1.68397
  Prefactor  = 0.920364
 **********
 **   18 **HESSE 
 **********

 FCN=   26435.20     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2414        2.1986        .26450E-04   -1.5686    
   2  Index         1.0670        .75611        .30043E-01   -.90528    
   3  Normalizat    1.6840        .18530        .40279E-03   -.72732    
   4  Prefactor     .92036        .62348E-01    .17459E-03   -.95433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73755e-10
Minuit parameter uncertainties:
  1  2.19857
  2  0.763879
  3  0.185372
  4  0.0623524
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) = 26435.2014218
delta logL = 0.454998112265

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.241e+00  2.199e+00  0.000e+00  1.000e+06 ( 1.000e-13)
246        Index:  1.067e+00  7.639e-01  0.000e+00  1.000e+01 (-1.000e+00)
247        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  9.204e-01  6.235e-02  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.684e+00  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 248.454 7.031

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/59978231/cmap_HighResolution_754876801_755481601_4FGL_J1633.8+0701_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', job_status='DONE', photon_flux_upper_limit='4.65e-08', time_completed='2024-12-10 01:05:08.688448', job_id='59978231', GAL2='0.92', fit_tolerance='1e-08', EG2='1.68', EG='1.68', time_epoch_completed='1733821508.69', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.55e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='853' AND source_name='4FGL J1633.8+0701' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 01:05:08 PST 2024

