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


Performing analysis on: 4FGL_J1635.2+3808_weekly_bin824
RA = 248.817, Dec = 38.1401
tmin = 737337601, tmax = 737942401
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='48578547', job_status='RUN', time_executed='2024-05-21 00:55:58.875252', time_epoch_executed='1716278158.88' WHERE source_name='4FGL J1635.2+3808' and cadence='weekly' and bin_id='824'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/48578547

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

Retrieving the FT1 file...

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

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

Retrieving 104 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/48578547/ft1_4FGL_J1635.2+3808_weekly_bin824.fits


Retrieving the FT1 file...

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

Retrieving 104 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/48578547/ft2_4FGL_J1635.2+3808_weekly_bin824.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/48578547/ft1_4FGL_J1635.2+3808_weekly_bin824.fits outfile=/lscratch/kocevski/48578547/ft1_filteredMKT_4FGL_J1635.2+3808_weekly_bin824.fits ra=248.817 dec=38.1401 rad=12.0 tmin=737337601.0 tmax=737942401.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.28
user 3.96
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/48578547/ft2_4FGL_J1635.2+3808_weekly_bin824.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/48578547/ft2_4FGL_J1635.2+3808_weekly_bin824.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/48578547/ft1_filteredMKT_4FGL_J1635.2+3808_weekly_bin824.fits evtable="EVENTS" outfile="/lscratch/kocevski/48578547/ft1_filtered_4FGL_J1635.2+3808_weekly_bin824.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.39
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 1886

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/48578547/ft1_filtered_4FGL_J1635.2+3808_weekly_bin824.fits" evtable="EVENTS" scfile=/lscratch/kocevski/48578547/ft2_4FGL_J1635.2+3808_weekly_bin824.fits sctable="SC_DATA" outfile=/lscratch/kocevski/48578547/ltcube_737337601_737942401_4FGL_J1635.2+3808_weekly_bin824.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/48578547/ft2_4FGL_J1635.2+3808_weekly_bin824.fits
.....................!
real 16.11
user 15.71
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/48578547/ft1_filtered_4FGL_J1635.2+3808_weekly_bin824.fits evtable="EVENTS" scfile=/lscratch/kocevski/48578547/ft2_4FGL_J1635.2+3808_weekly_bin824.fits sctable="SC_DATA" expcube=/lscratch/kocevski/48578547/ltcube_737337601_737942401_4FGL_J1635.2+3808_weekly_bin824.fits outfile=/lscratch/kocevski/48578547/expmap_737337601_737942401_4FGL_J1635.2+3808_weekly_bin824.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/48578547/ltcube_737337601_737942401_4FGL_J1635.2+3808_weekly_bin824.fits
.....................!
real 59.60
user 55.83
sys 3.46

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

Setting source of interest to:
4FGL J1635.2+3808 @ 248.817 38.1401

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/48578547/ft1_filtered_4FGL_J1635.2+3808_weekly_bin824.fits scfile=/lscratch/kocevski/48578547/ft2_4FGL_J1635.2+3808_weekly_bin824.fits outfile=/lscratch/kocevski/48578547/cmap_737337601_737942401_4FGL_J1635.2+3808_weekly_bin824.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.817 yref=38.1401 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.37
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/48578547/ft1_filtered_4FGL_J1635.2+3808_weekly_bin824.fits scfile=/lscratch/kocevski/48578547/ft2_4FGL_J1635.2+3808_weekly_bin824.fits outfile=/lscratch/kocevski/48578547/cmap_HighResolution_737337601_737942401_4FGL_J1635.2+3808_weekly_bin824.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.817 yref=38.1401 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.42
user 0.22
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/48578547/ft1_filtered_4FGL_J1635.2+3808_weekly_bin824.fits evtable="EVENTS" scfile=/lscratch/kocevski/48578547/ft2_4FGL_J1635.2+3808_weekly_bin824.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/48578547/Model_4FGL_J1635.2+3808_weekly_bin824.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/48578547/ft1_filtered_4FGL_J1635.2+3808_weekly_bin824.fits.....................!
real 45.36
user 43.97
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/48578547/ft1_filtered_4FGL_J1635.2+3808_weekly_bin824.fits', '/lscratch/kocevski/48578547/ft2_4FGL_J1635.2+3808_weekly_bin824.fits', expMap='/lscratch/kocevski/48578547/expmap_737337601_737942401_4FGL_J1635.2+3808_weekly_bin824.fits', expCube='/lscratch/kocevski/48578547/ltcube_737337601_737942401_4FGL_J1635.2+3808_weekly_bin824.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/48578547/Model_4FGL_J1635.2+3808_weekly_bin824.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1635.2+3808'

4FGL J1635.2+3808
   Spectrum: LogParabola
275         norm:  1.022e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-10)
276        alpha:  2.330e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  1.274e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  5.275e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/48578547/ft1_filtered_4FGL_J1635.2+3808_weekly_bin824.fits
Spacecraft file(s): /lscratch/kocevski/48578547/ft2_4FGL_J1635.2+3808_weekly_bin824.fits
Exposure map: /lscratch/kocevski/48578547/expmap_737337601_737942401_4FGL_J1635.2+3808_weekly_bin824.fits
Exposure cube: /lscratch/kocevski/48578547/ltcube_737337601_737942401_4FGL_J1635.2+3808_weekly_bin824.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/48578547/Model_4FGL_J1635.2+3808_weekly_bin824.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) = 20169.3330554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11314E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .26156E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .56927E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.8601       1.0000          .0000       .10000E+07
     5 'Prefactor '    5.3463       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.1191       1.0000          .0000       .10000E+07
     7 'norm      '    .14495       1.0000          .0000       .10000E+07
     8 'norm      '    .68849E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    27.425       1.0000          .0000       .10000E+07
    10 'Prefactor '    .57510E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .20040E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .27756E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.7270       1.0000          .0000       .10000E+07
    14 'Prefactor '    .15389E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.1805       1.0000          .0000       .10000E+07
    16 'Prefactor '    .85554E-06   1.0000          .0000       .10000E+07
    17 'norm      '    6.5960       1.0000          .0000       .10000E+07
    18 'norm      '    .20820       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.7476       1.0000          .0000       .10000E+07
    20 'norm      '    .24143       1.0000          .0000       .10000E+07
    21 'norm      '    .12396E-05   1.0000          .0000       .10000E+07
    22 'norm      '    9.6930       1.0000          .0000       .10000E+07
    23 'Normalizat'    .98415       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88421       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20167.35     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1197 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79381E-07    3.4998       -.76315E-08** at limit **
   2  Prefactor     .97811E-07    11.315        .51592E-06** at limit **
   3  Prefactor      .0000        .46078       -.49904E-07** at limit **
   4  Prefactor     1.8863        2.3644        .68049E-07    .64344E-02
   5  Prefactor     5.1486        5.8525        .11965E-06   -.75518E-01
   6  Prefactor     1.1191        1.0766        .57837E-07    .46754E-02
   7  norm          .14474        .67684E-01    .96184E-08** at limit **
   8  norm          .14873        .69795       -.34760E-07** at limit **
   9  Prefactor     27.522        1.2779        .45755E-08   -.12622E-01
  10  Prefactor     .55511E-10    .57664       -.91865E-07** at limit **
  11  norm          .72164E-09    9.9304       -.19615E-06** at limit **
  12  Prefactor      .0000        .76730       -.13212E-07** at limit **
  13  Prefactor     4.7271        .82152        .15017E-07    .66765E-02
  14  Prefactor     .91094E-07    3.5101       -.18753E-08** at limit **
  15  Prefactor     6.1818        2.3697        .37235E-07    .21634E-02
  16  Prefactor      .0000        .35228       -.64791E-07** at limit **
  17  norm          6.5957        1.2553        .11648E-07    .26694E-02
  18  norm          .20793        .32687        .38402E-07** at limit **
  19  Prefactor     2.7514        2.8077        .56139E-07    .75497E-03
  20  norm          .24139        .22901        .21764E-07** at limit **
  21  norm           .0000        1.2260       -.11726E-06** at limit **
  22  norm          9.6914        3.7495        .50318E-08    .86757E-03
  23  Normalizat    .98432        .12283       -.14166E-05   -.85172E-04
  24  Prefactor     .88404        .98062E-01   -.56382E-06   -.13898E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.93809e-08
  Prefactor  = 9.78106e-08
  Prefactor  = 0
  Prefactor  = 1.88629
  Prefactor  = 5.14858
  Prefactor  = 1.11913
  norm       = 0.144739
  norm       = 0.148729
  Prefactor  = 27.5222
  Prefactor  = 5.55112e-11
  norm       = 7.21645e-10
  Prefactor  = 0
  Prefactor  = 4.72712
  Prefactor  = 9.10938e-08
  Prefactor  = 6.18185
  Prefactor  = 0
  norm       = 6.59567
  norm       = 0.207926
  Prefactor  = 2.75141
  norm       = 0.241391
  norm       = 0
  norm       = 9.69139
  Normalizat = 0.984324
  Prefactor  = 0.884038
 **********
 **   18 **HESSE 
 **********

 FCN=   20167.35     FROM HESSE     STATUS=OK           467 CALLS     1664 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79381E-07    3.9139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .97811E-07    4.3687        .11156E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        .46108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8863        2.7558        .76378E-03   -1.5680    
   5  Prefactor     5.1486        11.630        .43441E-03   -1.5663    
   6  Prefactor     1.1191        1.0781        .11106E-02   -1.5687    
   7  norm          .14474        .75163E-01    .53700E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .14873        2.9530        .91234E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.522        10.059        .19099E-03   -1.5603    
  10  Prefactor     .55511E-10    .83971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .72164E-09    9.9331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        .42875        .23422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7271        .97293        .46257E-03   -1.5664    
  14  Prefactor     .91094E-07    3.9601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1818        2.3929        .40357E-03   -1.5658    
  16  Prefactor      .0000        .83064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.5957        1.2587        .39050E-03   -1.5657    
  18  norm          .20793        .31551        .22670E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7514        2.8671        .61391E-03   -1.5675    
  20  norm          .24139        .29178        .16423E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        1.2277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.6914        3.7504        .32163E-03   -1.5646    
  23  Normalizat    .98432        .10607        .45968E-01   -.93557    
  24  Prefactor     .88404        .83212E-01    .44803E-01   -.96701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14662e-07
Minuit parameter uncertainties:
  1  0.00111459
  2  0.00130727
  3  1.71616e-06
  4  2.75581
  5  11.6301
  6  1.07815
  7  0.0751628
  8  1.32544
  9  10.0592
  10  1.43452e-05
  11  0.000167116
  12  2.94517e-06
  13  0.97293
  14  0.0012011
  15  2.39288
  16  6.3481e-06
  17  1.25869
  18  0.315511
  19  2.86708
  20  0.291781
  21  5.87093e-06
  22  3.75036
  23  0.106095
  24  0.0832243
Done.

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

Extracting fit parameters...

4FGL J1635.2+3808
   Spectrum: LogParabola
275         norm:  1.447e-01  7.516e-02  0.000e+00  1.000e+06 ( 1.000e-10)
276        alpha:  2.330e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  1.274e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  5.275e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
638    Prefactor:  8.840e-01  8.322e-02  0.000e+00  1.000e+01 ( 1.000e+00)
639        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
640        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
637   Normalization:  9.843e-01  1.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.07
Ra Dec: 248.817 38.140
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 4.43e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 7.37e-06

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) = 20167.1250318
delta logL = 0.226932096321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20167.1081764
delta logL = 0.243787453273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13479       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6410       1.0000          .0000       5.0000    
     3 'Normalizat'    .97158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89091       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20167.11     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13479        .64833        .48527E-03** at limit **
   2  alpha         2.6411        3.7750        .41235        .92013E-04
   3  Normalizat    .97162        .29525E-01    .45810E-01    .44259E-04
   4  Prefactor     .89088        .24195E-01    .44889E-01    .30113E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.134789
  alpha      = 2.64109
  Normalizat = 0.971625
  Prefactor  = 0.890883
 **********
 **   18 **HESSE 
 **********

 FCN=   20167.11     FROM HESSE     STATUS=OK            35 CALLS      246 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13479        .67693E-01    .22075E-04   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6411        .47315        .18591E-01    .56467E-01
   3  Normalizat    .97162        .12027        .26230E-03   -.93987    
   4  Prefactor     .89088        .97862E-01    .22368E-03   -.96460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63454e-09
Minuit parameter uncertainties:
  1  0.0676931
  2  0.476027
  3  0.120301
  4  0.0978818
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) = 20167.1081763
delta logL = 0.243787554351

Extracting fit parameters...

4FGL J1635.2+3808
   Spectrum: LogParabola
275         norm:  1.348e-01  6.769e-02  0.000e+00  1.000e+06 ( 1.000e-10)
276        alpha:  2.641e+00  4.760e-01  0.000e+00  5.000e+00 ( 1.000e+00)
277         beta:  1.274e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  5.275e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
638    Prefactor:  8.909e-01  9.788e-02  0.000e+00  1.000e+01 ( 1.000e+00)
639        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
640        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
637   Normalization:  9.716e-01  1.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.76
Ra Dec: 248.817 38.140
Photon Index (Free Index): 2.64 +/- 0.48
Photon Flux (Free Index): 5.54e-08 +/- 2.67e-08
Energy Flux (Free Index): 1.39e-05 +/- 6.11e-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/48578547/cmap_HighResolution_737337601_737942401_4FGL_J1635.2+3808_weekly_bin824.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.43e-08', energy_flux2='1.39e-05', photon_flux_error='2.30e-08', dlogl='2.44e-01', energy_flux='1.42e-05', photon_flux2='5.54e-08', job_status='DONE', time_completed='2024-05-21 01:03:12.947074', photon_index_error2='0.48', photon_index2='2.64', ts='8.07', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='6.11e-06', EG='0.98', time_epoch_completed='1716278592.95', return_code='0', job_id='48578547', GAL2='0.89', EG2='0.97', return_code2='0', energy_flux_error='7.37e-06', photon_flux_error2='2.67e-08', ts2='8.76', photon_index='2.33' WHERE bin_id='824' AND source_name='4FGL J1635.2+3808' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 21 01:03:12 PDT 2024

