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


Performing analysis on: 4FGL_J1824.1+5651_weekly_bin823
RA = 276.039, Dec = 56.8585
tmin = 736732801, tmax = 737337601
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='47871173', job_status='RUN', time_executed='2024-05-14 01:00:57.589620', time_epoch_executed='1715673657.59' WHERE source_name='4FGL J1824.1+5651' and cadence='weekly' and bin_id='823'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/47871173

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/47871173/ft1_4FGL_J1824.1+5651_weekly_bin823.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/47871173/ft2_4FGL_J1824.1+5651_weekly_bin823.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/47871173/ft1_4FGL_J1824.1+5651_weekly_bin823.fits outfile=/lscratch/kocevski/47871173/ft1_filteredMKT_4FGL_J1824.1+5651_weekly_bin823.fits ra=276.039 dec=56.8585 rad=12.0 tmin=736732801.0 tmax=737337601.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 2.75
user 2.52
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/47871173/ft2_4FGL_J1824.1+5651_weekly_bin823.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/47871173/ft2_4FGL_J1824.1+5651_weekly_bin823.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/47871173/ft1_filteredMKT_4FGL_J1824.1+5651_weekly_bin823.fits evtable="EVENTS" outfile="/lscratch/kocevski/47871173/ft1_filtered_4FGL_J1824.1+5651_weekly_bin823.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.19
sys 0.14

Number of photons that the gtmktime cut: 4714

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/47871173/ft1_filtered_4FGL_J1824.1+5651_weekly_bin823.fits" evtable="EVENTS" scfile=/lscratch/kocevski/47871173/ft2_4FGL_J1824.1+5651_weekly_bin823.fits sctable="SC_DATA" outfile=/lscratch/kocevski/47871173/ltcube_736732801_737337601_4FGL_J1824.1+5651_weekly_bin823.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/47871173/ft2_4FGL_J1824.1+5651_weekly_bin823.fits
.....................!
real 16.54
user 16.23
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/47871173/ft1_filtered_4FGL_J1824.1+5651_weekly_bin823.fits evtable="EVENTS" scfile=/lscratch/kocevski/47871173/ft2_4FGL_J1824.1+5651_weekly_bin823.fits sctable="SC_DATA" expcube=/lscratch/kocevski/47871173/ltcube_736732801_737337601_4FGL_J1824.1+5651_weekly_bin823.fits outfile=/lscratch/kocevski/47871173/expmap_736732801_737337601_4FGL_J1824.1+5651_weekly_bin823.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/47871173/ltcube_736732801_737337601_4FGL_J1824.1+5651_weekly_bin823.fits
.....................!
real 58.72
user 55.33
sys 3.18

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 HB 21 in ROI with RadialDisk spatial model.
Added 201 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 J1824.1+5651 @ 276.039 56.8585

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/47871173/ft1_filtered_4FGL_J1824.1+5651_weekly_bin823.fits scfile=/lscratch/kocevski/47871173/ft2_4FGL_J1824.1+5651_weekly_bin823.fits outfile=/lscratch/kocevski/47871173/cmap_736732801_737337601_4FGL_J1824.1+5651_weekly_bin823.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=276.039 yref=56.8585 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

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/47871173/ft1_filtered_4FGL_J1824.1+5651_weekly_bin823.fits scfile=/lscratch/kocevski/47871173/ft2_4FGL_J1824.1+5651_weekly_bin823.fits outfile=/lscratch/kocevski/47871173/cmap_HighResolution_736732801_737337601_4FGL_J1824.1+5651_weekly_bin823.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=276.039 yref=56.8585 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.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/47871173/ft1_filtered_4FGL_J1824.1+5651_weekly_bin823.fits evtable="EVENTS" scfile=/lscratch/kocevski/47871173/ft2_4FGL_J1824.1+5651_weekly_bin823.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/47871173/Model_4FGL_J1824.1+5651_weekly_bin823.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
adding source HB 21
Working on...
/lscratch/kocevski/47871173/ft1_filtered_4FGL_J1824.1+5651_weekly_bin823.fits.....................!
real 138.11
user 136.82
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/47871173/ft1_filtered_4FGL_J1824.1+5651_weekly_bin823.fits', '/lscratch/kocevski/47871173/ft2_4FGL_J1824.1+5651_weekly_bin823.fits', expMap='/lscratch/kocevski/47871173/expmap_736732801_737337601_4FGL_J1824.1+5651_weekly_bin823.fits', expCube='/lscratch/kocevski/47871173/ltcube_736732801_737337601_4FGL_J1824.1+5651_weekly_bin823.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/47871173/Model_4FGL_J1824.1+5651_weekly_bin823.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1824.1+5651'

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  9.045e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
384        alpha:  2.304e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
385         beta:  6.472e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
386           Eb:  6.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/47871173/ft1_filtered_4FGL_J1824.1+5651_weekly_bin823.fits
Spacecraft file(s): /lscratch/kocevski/47871173/ft2_4FGL_J1824.1+5651_weekly_bin823.fits
Exposure map: /lscratch/kocevski/47871173/expmap_736732801_737337601_4FGL_J1824.1+5651_weekly_bin823.fits
Exposure cube: /lscratch/kocevski/47871173/ltcube_736732801_737337601_4FGL_J1824.1+5651_weekly_bin823.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/47871173/Model_4FGL_J1824.1+5651_weekly_bin823.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) = 47995.8616459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2925       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.4808       1.0000          .0000       .10000E+07
     3 'Prefactor '    .72992E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.7521       1.0000          .0000       .10000E+07
     5 'Prefactor '    .31193E-05   1.0000          .0000       .10000E+07
     6 'norm      '    1.6579       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.6485       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.5493       1.0000          .0000       .10000E+07
     9 'Prefactor '    41.340       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12430E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .65697E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.2680       1.0000          .0000       .10000E+07
    13 'Prefactor '    .76606E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.2061       1.0000          .0000       .10000E+07
    15 'norm      '    5.7441       1.0000          .0000       .10000E+07
    16 'norm      '    10.648       1.0000          .0000       .10000E+07
    17 'norm      '    13.668       1.0000          .0000       .10000E+07
    18 'Prefactor '    .60328E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    6.2294       1.0000          .0000       .10000E+07
    20 'Prefactor '    .93606E-04   1.0000          .0000       .10000E+07
    21 'norm      '    1.6591       1.0000          .0000       .10000E+07
    22 'Prefactor '    .75315       1.0000          .0000       .10000E+07
    23 'norm      '    3.4762       1.0000          .0000       .10000E+07
    24 'norm      '    .57085E-01   1.0000          .0000       .10000E+07
    25 'norm      '    5.6715       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1183       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .91408       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   47995.79     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1859 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2837        2.9277        .10105E-06   -.13898E-02
   2  Prefactor     1.4801        2.2448       -.26087E-06   -.48243E-03
   3  Prefactor      .0000        .85367        .10692E-06** at limit **
   4  Prefactor     1.7522        1.0856        .17827E-06    .31089E-02
   5  Prefactor     .64138E-06    5.3744       -.17640E-06** at limit **
   6  norm          1.6573        2.0675       -.21675E-06   -.15480E-02
   7  Prefactor     5.6224        1.0494       -.11705E-08   -.45389E-02
   8  Prefactor     6.5546        2.2125        .12674E-06   -.12728E-02
   9  Prefactor     41.139        1.3617        .19272E-07   -.10261    
  10  Prefactor     .57176E-08    23.872       -.49703E-06** at limit **
  11  Prefactor      .0000        2.2742        .31209E-06** at limit **
  12  Prefactor     6.2675        3.9545       -.36406E-06   -.54734E-01
  13  Prefactor     .46629E-07    10.031        .48629E-06** at limit **
  14  Prefactor     3.2061        2.2549       -.13625E-06   -.11008E-02
  15  norm          5.7404        2.6723       -.47503E-07   -.94205E-03
  16  norm          10.664        3.9520        .30480E-07    .17391E-01
  17  norm          13.672        3.2182        .18011E-06   -.71670E-01
  18  Prefactor      .0000        1.3304        .82479E-07** at limit **
  19  Prefactor     6.2272        5.3203       -.14851E-06    .21759E-02
  20  Prefactor     .10154E-05    3.7063       -.16533E-06** at limit **
  21  norm          1.6593        .95089        .24439E-07   -.12533E-02
  22  Prefactor     .75295        .61352        .75901E-07    .40050E-02
  23  norm          3.4758        .89663       -.58332E-07   -.90374E-02
  24  norm          .41292E-01    6.7961        .27385E-06** at limit **
  25  norm          5.6836        4.0622        .58786E-07    .40658E-02
  26  Normalizat    1.1183        .98876E-01    .19964E-07   -.44239E-04
  27  Prefactor     .91410        .55823E-01    .11836E-05   -.13387E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.28374
  Prefactor  = 1.48014
  Prefactor  = 0
  Prefactor  = 1.75224
  Prefactor  = 6.41376e-07
  norm       = 1.65728
  Prefactor  = 5.62245
  Prefactor  = 6.55463
  Prefactor  = 41.139
  Prefactor  = 5.71765e-09
  Prefactor  = 0
  Prefactor  = 6.26753
  Prefactor  = 4.66294e-08
  Prefactor  = 3.2061
  norm       = 5.74038
  norm       = 10.6639
  norm       = 13.6719
  Prefactor  = 0
  Prefactor  = 6.22717
  Prefactor  = 1.01535e-06
  norm       = 1.65933
  Prefactor  = 0.752947
  norm       = 3.47582
  norm       = 0.0412916
  norm       = 5.68361
  Normalizat = 1.11829
  Prefactor  = 0.9141
 **********
 **   18 **HESSE 
 **********

 FCN=   47995.79     FROM HESSE     STATUS=OK           556 CALLS     2415 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2837        6.2296        .55774E-03   -1.5672    
   2  Prefactor     1.4801        2.2661        .88165E-03   -1.5684    
   3  Prefactor      .0000        .85646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7522        1.0871        .79172E-03   -1.5681    
   5  Prefactor     .64138E-06    8.7237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6573        2.1295        .81920E-03   -1.5682    
   7  Prefactor     5.6224        20.847        .42243E-03   -1.5661    
   8  Prefactor     6.5546        2.2882        .39190E-03   -1.5657    
   9  Prefactor     41.139        20.904        .15554E-03   -1.5580    
  10  Prefactor     .57176E-08    24.137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.2804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2675        4.6557        .40071E-03   -1.5658    
  13  Prefactor     .46629E-07    10.347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2061        2.2739        .56558E-03   -1.5672    
  15  norm          5.7404        2.6741        .41885E-03   -1.5660    
  16  norm          10.664        4.1202        .30680E-03   -1.5643    
  17  norm          13.672        5.2131        .27067E-03   -1.5634    
  18  Prefactor      .0000        1.3363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.2272        6.1618        .40197E-03   -1.5658    
  20  Prefactor     .10154E-05    8.9400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6593        .96172        .81883E-03   -1.5682    
  22  Prefactor     .75295        .61521        .56494E-03   -1.5691    
  23  norm          3.4758        .89838        .54211E-03   -1.5671    
  24  norm          .41292E-01    .53628        .51487E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.6836        4.0631        .42156E-03   -1.5660    
  26  Normalizat    1.1183        .84838E-01    .72399E-01   -.89167    
  27  Prefactor     .91410        .47252E-01    .45184E-01   -.95650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32521e-05
Minuit parameter uncertainties:
  1  6.22958
  2  2.26611
  3  1.04338e-06
  4  1.08713
  5  0.00473094
  6  2.12953
  7  20.8473
  8  2.28819
  9  20.9041
  10  0.000741239
  11  3.39776e-06
  12  4.65566
  13  0.00138948
  14  2.27395
  15  2.67409
  16  4.12023
  17  5.21309
  18  9.80003e-07
  19  6.16182
  20  0.0060257
  21  0.961716
  22  0.615215
  23  0.898382
  24  0.297617
  25  4.06311
  26  0.0848482
  27  0.047254
Done.

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

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  5.740e+00  2.674e+00  0.000e+00  1.000e+06 ( 1.000e-12)
384        alpha:  2.304e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
385         beta:  6.472e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
386           Eb:  6.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  9.141e-01  4.725e-02  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.118e+00  8.485e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.05
Ra Dec: 276.039 56.858
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.68e-08 +/- 1.25e-08
Energy Flux (Fixed Index): 9.37e-06 +/- 4.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) = 47995.6353709
delta logL = 0.152322788119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 47995.6333506
delta logL = 0.154343139198

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   47995.63     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      285 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4419        2.8220        .86102E-04   -.16056E-02
   2  alpha         2.5555        .49221        .26998E-01    .29211E-04
   3  Normalizat    1.1101        .95186E-01    .32135E-03    .42454E-05
   4  Prefactor     .91694        .55069E-01    .20382E-03    .15172E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.44188
  alpha      = 2.55548
  Normalizat = 1.11015
  Prefactor  = 0.916944
 **********
 **   18 **HESSE 
 **********

 FCN=   47995.63     FROM HESSE     STATUS=OK            27 CALLS      312 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4419        2.6572        .34441E-05   -1.5661    
   2  alpha         2.5555        .46360        .10799E-02    .22192E-01
   3  Normalizat    1.1101        .95163E-01    .64269E-04   -.89427    
   4  Prefactor     .91694        .55064E-01    .40764E-04   -.95552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45283e-12
Minuit parameter uncertainties:
  1  2.65715
  2  0.466296
  3  0.0951774
  4  0.0550677
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) = 47995.6333506
delta logL = 0.154343154936

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  5.442e+00  2.657e+00  0.000e+00  1.000e+06 ( 1.000e-12)
384        alpha:  2.555e+00  4.663e-01  0.000e+00  5.000e+00 ( 1.000e+00)
385         beta:  6.472e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
386           Eb:  6.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  9.169e-01  5.507e-02  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.110e+00  9.518e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.43
Ra Dec: 276.039 56.858
Photon Index (Free Index): 2.56 +/- 0.47
Photon Flux (Free Index): 3.35e-08 +/- 1.85e-08
Energy Flux (Free Index): 9.10e-06 +/- 4.06e-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/47871173/cmap_HighResolution_736732801_737337601_4FGL_J1824.1+5651_weekly_bin823.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.68e-08', energy_flux2='9.10e-06', photon_flux_error='1.25e-08', dlogl='1.54e-01', energy_flux='9.37e-06', photon_flux2='3.35e-08', job_status='DONE', time_completed='2024-05-14 01:18:15.471606', photon_index_error2='0.47', photon_index2='2.56', ts='7.05', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='4.06e-06', EG='1.12', time_epoch_completed='1715674695.47', return_code='0', job_id='47871173', GAL2='0.92', EG2='1.11', return_code2='0', energy_flux_error='4.37e-06', photon_flux_error2='1.85e-08', ts2='7.43', photon_index='2.30' WHERE bin_id='823' AND source_name='4FGL J1824.1+5651' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 14 01:18:15 PDT 2024

