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


Performing analysis on: 4FGL_J1824.1+5651_weekly_bin801
RA = 276.039, Dec = 56.8585
tmin = 723427201, tmax = 724032001
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='35831454', job_status='RUN', time_executed='2023-12-12 02:10:55.230996', time_epoch_executed='1702375855.23' WHERE source_name='4FGL J1824.1+5651' and cadence='weekly' and bin_id='801'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35831454

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35831454/ft1_4FGL_J1824.1+5651_weekly_bin801.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35831454/ft2_4FGL_J1824.1+5651_weekly_bin801.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35831454/ft1_4FGL_J1824.1+5651_weekly_bin801.fits outfile=/lscratch/kocevski/35831454/ft1_filteredMKT_4FGL_J1824.1+5651_weekly_bin801.fits ra=276.039 dec=56.8585 rad=12.0 tmin=723427201.0 tmax=724032001.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.73
user 4.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/35831454/ft2_4FGL_J1824.1+5651_weekly_bin801.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/35831454/ft1_filteredMKT_4FGL_J1824.1+5651_weekly_bin801.fits evtable="EVENTS" outfile="/lscratch/kocevski/35831454/ft1_filtered_4FGL_J1824.1+5651_weekly_bin801.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.40
user 0.21
sys 0.15

Number of photons that the gtmktime cut: 3199

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/35831454/ft1_filtered_4FGL_J1824.1+5651_weekly_bin801.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35831454/ft2_4FGL_J1824.1+5651_weekly_bin801.fits sctable="SC_DATA" outfile=/lscratch/kocevski/35831454/ltcube_723427201_724032001_4FGL_J1824.1+5651_weekly_bin801.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/35831454/ft2_4FGL_J1824.1+5651_weekly_bin801.fits
.....................!
real 18.77
user 18.25
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35831454/ft1_filtered_4FGL_J1824.1+5651_weekly_bin801.fits evtable="EVENTS" scfile=/lscratch/kocevski/35831454/ft2_4FGL_J1824.1+5651_weekly_bin801.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35831454/ltcube_723427201_724032001_4FGL_J1824.1+5651_weekly_bin801.fits outfile=/lscratch/kocevski/35831454/expmap_723427201_724032001_4FGL_J1824.1+5651_weekly_bin801.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/35831454/ltcube_723427201_724032001_4FGL_J1824.1+5651_weekly_bin801.fits
.....................!
real 69.37
user 64.55
sys 4.06

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/35831454/ft1_filtered_4FGL_J1824.1+5651_weekly_bin801.fits scfile=/lscratch/kocevski/35831454/ft2_4FGL_J1824.1+5651_weekly_bin801.fits outfile=/lscratch/kocevski/35831454/cmap_723427201_724032001_4FGL_J1824.1+5651_weekly_bin801.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.48
user 0.25
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35831454/ft1_filtered_4FGL_J1824.1+5651_weekly_bin801.fits scfile=/lscratch/kocevski/35831454/ft2_4FGL_J1824.1+5651_weekly_bin801.fits outfile=/lscratch/kocevski/35831454/cmap_HighResolution_723427201_724032001_4FGL_J1824.1+5651_weekly_bin801.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.43
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/35831454/ft1_filtered_4FGL_J1824.1+5651_weekly_bin801.fits evtable="EVENTS" scfile=/lscratch/kocevski/35831454/ft2_4FGL_J1824.1+5651_weekly_bin801.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35831454/Model_4FGL_J1824.1+5651_weekly_bin801.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/35831454/ft1_filtered_4FGL_J1824.1+5651_weekly_bin801.fits.....................!
real 113.65
user 111.73
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35831454/ft1_filtered_4FGL_J1824.1+5651_weekly_bin801.fits', '/lscratch/kocevski/35831454/ft2_4FGL_J1824.1+5651_weekly_bin801.fits', expMap='/lscratch/kocevski/35831454/expmap_723427201_724032001_4FGL_J1824.1+5651_weekly_bin801.fits', expCube='/lscratch/kocevski/35831454/ltcube_723427201_724032001_4FGL_J1824.1+5651_weekly_bin801.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35831454/Model_4FGL_J1824.1+5651_weekly_bin801.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/35831454/ft1_filtered_4FGL_J1824.1+5651_weekly_bin801.fits
Spacecraft file(s): /lscratch/kocevski/35831454/ft2_4FGL_J1824.1+5651_weekly_bin801.fits
Exposure map: /lscratch/kocevski/35831454/expmap_723427201_724032001_4FGL_J1824.1+5651_weekly_bin801.fits
Exposure cube: /lscratch/kocevski/35831454/ltcube_723427201_724032001_4FGL_J1824.1+5651_weekly_bin801.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35831454/Model_4FGL_J1824.1+5651_weekly_bin801.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) = 32882.3866143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13851E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.9728       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.7301       1.0000          .0000       .10000E+07
     4 'Prefactor '    .72275       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10253E-06   1.0000          .0000       .10000E+07
     6 'norm      '    4.2071       1.0000          .0000       .10000E+07
     7 'Prefactor '    21.103       1.0000          .0000       .10000E+07
     8 'Prefactor '    9.1271       1.0000          .0000       .10000E+07
     9 'Prefactor '    31.860       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10482E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .87055E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.6435       1.0000          .0000       .10000E+07
    13 'Prefactor '    103.83       1.0000          .0000       .10000E+07
    14 'Prefactor '    .94125E-02   1.0000          .0000       .10000E+07
    15 'norm      '    3.6197       1.0000          .0000       .10000E+07
    16 'norm      '    8.2054       1.0000          .0000       .10000E+07
    17 'norm      '    21.366       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.8743       1.0000          .0000       .10000E+07
    19 'Prefactor '    6.6709       1.0000          .0000       .10000E+07
    20 'Prefactor '    19.660       1.0000          .0000       .10000E+07
    21 'norm      '    .43299E-08   1.0000          .0000       .10000E+07
    22 'Prefactor '    .61062E-09   1.0000          .0000       .10000E+07
    23 'norm      '    3.2938       1.0000          .0000       .10000E+07
    24 'norm      '    3.5760       1.0000          .0000       .10000E+07
    25 'norm      '    .84729E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1702       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87211       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=   32882.29     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     1972 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88818E-09    3.7696        .13231E-06** at limit **
   2  Prefactor     1.9716        2.6887       -.66776E-08    .13572E-03
   3  Prefactor     4.7301        3.6027        .97350E-08    .39789E-03
   4  Prefactor     .72257        .71436       -.15919E-07    .15029E-02
   5  Prefactor     .49183E-07    10.518        .11297E-06** at limit **
   6  norm          4.1997        2.8923        .31074E-07   -.12960E-02
   7  Prefactor     21.336        1.9627       -.78042E-08    .18962    
   8  Prefactor     9.1518        3.1775        .61357E-09   -.64524E-03
   9  Prefactor     31.182        24.620       -.43141E-06    .23993E-01
  10  Prefactor     .14960E-06    16.937       -.10932E-06** at limit **
  11  Prefactor     .19984E-08    3.0780       -.30032E-07** at limit **
  12  Prefactor     6.6023        6.7481       -.13943E-06    .27233E-02
  13  Prefactor     104.97        51.759        .85393E-06   -.19243    
  14  Prefactor     .78710E-03    93.133       -.36026E-05** at limit **
  15  norm          3.6181        2.6063       -.11001E-07    .14491E-03
  16  norm          8.2000        4.9610        .32429E-07    .39752E-03
  17  norm          21.366        6.7268       -.86317E-07    .34258E-02
  18  Prefactor     1.8794        5.9980       -.24789E-06    .77736E-03
  19  Prefactor     6.4998        8.5034       -.90532E-07    .78149E-02
  20  Prefactor     19.395        5.7394       -.13415E-06    .88998E-02
  21  norm          .11102E-09    1.5042       -.58304E-07** at limit **
  22  Prefactor      .0000        .24418       -.88716E-08** at limit **
  23  norm          3.2934        1.2065       -.36089E-07    .10670E-02
  24  norm          3.5756        2.1376       -.36660E-07    .17630E-02
  25  norm          .26090E-08    4.3024       -.61593E-07** at limit **
  26  Normalizat    1.1705        .12131       -.16817E-06    .38046E-03
  27  Prefactor     .87208        .67467E-01   -.13791E-08    .44539E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.88178e-10
  Prefactor  = 1.97161
  Prefactor  = 4.73014
  Prefactor  = 0.72257
  Prefactor  = 4.91829e-08
  norm       = 4.19973
  Prefactor  = 21.3361
  Prefactor  = 9.15177
  Prefactor  = 31.182
  Prefactor  = 1.49603e-07
  Prefactor  = 1.9984e-09
  Prefactor  = 6.60233
  Prefactor  = 104.971
  Prefactor  = 0.000787097
  norm       = 3.61807
  norm       = 8.19997
  norm       = 21.3663
  Prefactor  = 1.87941
  Prefactor  = 6.49985
  Prefactor  = 19.3954
  norm       = 1.11022e-10
  Prefactor  = 0
  norm       = 3.29339
  norm       = 3.57556
  norm       = 2.60902e-09
  Normalizat = 1.17047
  Prefactor  = 0.872081
 **********
 **   18 **HESSE 
 **********

 FCN=   32882.29     FROM HESSE     STATUS=OK           556 CALLS     2528 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88818E-09    3.7634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9716        2.7033        .73788E-03   -1.5680    
   3  Prefactor     4.7301        3.6119        .46242E-03   -1.5664    
   4  Prefactor     .72257        .70786        .58880E-03   -1.5691    
   5  Prefactor     .49183E-07    10.525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1997        2.9111        .49107E-03   -1.5667    
   7  Prefactor     21.336        16.191        .21775E-03   -1.5616    
   8  Prefactor     9.1518        3.1937        .33151E-03   -1.5647    
   9  Prefactor     31.182        25.354        .17719E-03   -1.5596    
  10  Prefactor     .14960E-06    16.998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .19984E-08    3.0894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6023        6.7473        .38908E-03   -1.5657    
  13  Prefactor     104.97        65.974        .98144E-04   -1.5503    
  14  Prefactor     .78710E-03    1.6002        .61362E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6181        2.6072        .53080E-03   -1.5670    
  16  norm          8.2000        4.9603        .34975E-03   -1.5651    
  17  norm          21.366        6.7255        .21640E-03   -1.5616    
  18  Prefactor     1.8794        5.9911        .76033E-03   -1.5681    
  19  Prefactor     6.4998        8.7209        .38827E-03   -1.5657    
  20  Prefactor     19.395        25.398        .22561E-03   -1.5620    
  21  norm          .11102E-09    1.4475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        .24316        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.2934        1.2058        .55762E-03   -1.5672    
  24  norm          3.5756        2.1381        .53417E-03   -1.5670    
  25  norm          .26090E-08    4.2976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1705        .10316        .71457E-01   -.87520    
  27  Prefactor     .87208        .57172E-01    .44648E-01   -.97124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1151e-06
Minuit parameter uncertainties:
  1  0.000114068
  2  2.70332
  3  3.61185
  4  0.70786
  5  0.00143876
  6  2.91112
  7  16.1914
  8  3.19373
  9  25.3539
  10  0.00318952
  11  0.000156477
  12  6.74727
  13  65.9746
  14  0.0709782
  15  2.60719
  16  4.96026
  17  6.72555
  18  5.99112
  19  8.72094
  20  25.3977
  21  2.36683e-05
  22  2.50476e-07
  23  1.20583
  24  2.13808
  25  0.000212763
  26  0.103179
  27  0.0571762
Done.

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

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  3.618e+00  2.607e+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:  8.721e-01  5.718e-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.170e+00  1.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.57
Ra Dec: 276.039 56.858
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.69e-08 +/- 1.22e-08
Energy Flux (Fixed Index): 5.91e-06 +/- 4.26e-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) = 32881.5792894
delta logL = 0.713478003447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 32881.4244177
delta logL = 0.86834963291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8868       1.0000          .0000       .10000E+07
     2 'alpha     '    1.4319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86959       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.

 FCN=   32881.42     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      223 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8859        1.5683        .75737E-03   -.28919E-02
   2  alpha         1.4317        .32721        .47346       -.18460E-03
   3  Normalizat    1.1813        .97152E-01    .71190E-01    .63218E-04
   4  Prefactor     .86960        .56594E-01    .44616E-01    .39177E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88589
  alpha      = 1.43167
  Normalizat = 1.18133
  Prefactor  = 0.869602
 **********
 **   18 **HESSE 
 **********

 FCN=   32881.42     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8859        2.3472        .19863E-04   -1.5680    
   2  alpha         1.4317        .60153        .25280E-01   -.44154    
   3  Normalizat    1.1813        .11378        .31501E-03   -.87182    
   4  Prefactor     .86960        .66351E-01    .20931E-03   -.97212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96039e-08
Minuit parameter uncertainties:
  1  2.34716
  2  0.608869
  3  0.113808
  4  0.0663576
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) = 32881.4244176
delta logL = 0.868349775948

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  1.886e+00  2.347e+00  0.000e+00  1.000e+06 ( 1.000e-12)
384        alpha:  1.432e+00  6.089e-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:  8.696e-01  6.636e-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.181e+00  1.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.28
Ra Dec: 276.039 56.858
Photon Index (Free Index): 1.43 +/- 0.61
Photon Flux (Free Index): 4.93e-09 +/- 6.37e-09
Energy Flux (Free Index): 1.04e-05 +/- 1.13e-05

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/35831454/cmap_HighResolution_723427201_724032001_4FGL_J1824.1+5651_weekly_bin801.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.69e-08', energy_flux2='1.04e-05', photon_flux_error='1.22e-08', dlogl='8.68e-01', energy_flux='5.91e-06', photon_flux2='4.93e-09', job_status='DONE', time_completed='2023-12-12 02:26:40.160445', photon_index_error2='0.61', photon_index2='1.43', ts='4.57', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.17', time_epoch_completed='1702376800.16', return_code='0', job_id='35831454', GAL2='0.87', EG2='1.18', return_code2='0', energy_flux_error='4.26e-06', photon_flux_error2='6.37e-09', ts2='6.28', photon_index='2.30' WHERE bin_id='801' AND source_name='4FGL J1824.1+5651' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 12 02:26:40 PST 2023

