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


Performing analysis on: 4FGL_J1824.1+5651_weekly_bin906
RA = 276.039, Dec = 56.8585
tmin = 786931201, tmax = 787536001
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='17380152', job_status='RUN', time_executed='2025-12-16 02:56:15.818029', time_epoch_executed='1765882575.82' WHERE source_name='4FGL J1824.1+5651' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17380152

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17380152/ft1_4FGL_J1824.1+5651_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17380152/ft2_4FGL_J1824.1+5651_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17380152/ft1_4FGL_J1824.1+5651_weekly_bin906.fits outfile=/lscratch/kocevski/17380152/ft1_filteredMKT_4FGL_J1824.1+5651_weekly_bin906.fits ra=276.039 dec=56.8585 rad=12.0 tmin=786931201.0 tmax=787536001.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 5.97
user 5.23
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17380152/ft2_4FGL_J1824.1+5651_weekly_bin906.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/17380152/ft1_filteredMKT_4FGL_J1824.1+5651_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17380152/ft1_filtered_4FGL_J1824.1+5651_weekly_bin906.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.79
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 2412

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

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17380152/ft1_filtered_4FGL_J1824.1+5651_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380152/ft2_4FGL_J1824.1+5651_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17380152/ltcube_786931201_787536001_4FGL_J1824.1+5651_weekly_bin906.fits outfile=/lscratch/kocevski/17380152/expmap_786931201_787536001_4FGL_J1824.1+5651_weekly_bin906.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/17380152/ltcube_786931201_787536001_4FGL_J1824.1+5651_weekly_bin906.fits
.....................!
real 70.97
user 65.64
sys 4.21

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/17380152/ft1_filtered_4FGL_J1824.1+5651_weekly_bin906.fits scfile=/lscratch/kocevski/17380152/ft2_4FGL_J1824.1+5651_weekly_bin906.fits outfile=/lscratch/kocevski/17380152/cmap_786931201_787536001_4FGL_J1824.1+5651_weekly_bin906.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.76
user 0.24
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87316E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .64380E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .23094E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.8812       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11737E-02   1.0000          .0000       .10000E+07
     6 'norm      '    5.5152       1.0000          .0000       .10000E+07
     7 'Prefactor '    .49979E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    27.935       1.0000          .0000       .10000E+07
     9 'Prefactor '    22.530       1.0000          .0000       .10000E+07
    10 'Prefactor '    .68301E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .44797E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .26227E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .37124E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.3785       1.0000          .0000       .10000E+07
    15 'norm      '    7.3332       1.0000          .0000       .10000E+07
    16 'norm      '    3.1512       1.0000          .0000       .10000E+07
    17 'norm      '    6.1984       1.0000          .0000       .10000E+07
    18 'Prefactor '    .58847E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.6638       1.0000          .0000       .10000E+07
    20 'Prefactor '    .48785E-02   1.0000          .0000       .10000E+07
    21 'norm      '    5.0589       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.9108       1.0000          .0000       .10000E+07
    23 'norm      '    2.8740       1.0000          .0000       .10000E+07
    24 'norm      '    .55450E-04   1.0000          .0000       .10000E+07
    25 'norm      '    9.8623       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1123       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .91381       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=   24592.76     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1886 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.1043        .10641E-06** at limit **
   2  Prefactor      .0000        1.4354       -.50759E-07** at limit **
   3  Prefactor      .0000        1.8157       -.14490E-06** at limit **
   4  Prefactor     4.8826        2.3941       -.25589E-07    .14343E-03
   5  Prefactor     .17203E-06    8.5290        .96812E-08** at limit **
   6  norm          5.5124        3.8447        .39986E-07   -.16690E-03
   7  Prefactor     .45258E-06    23.186        .20496E-06** at limit **
   8  Prefactor     27.920        4.6622        .98640E-09   -.70002E-03
   9  Prefactor     22.312        1.4219        .72666E-09    .63294E-02
  10  Prefactor     .26999E-05    11.405       -.20691E-06** at limit **
  11  Prefactor      .0000        2.5756       -.12983E-06** at limit **
  12  Prefactor     .33140E-07    7.4207        .45729E-06** at limit **
  13  Prefactor     .18929E-07    89.378        .23744E-05** at limit **
  14  Prefactor     3.3825        3.8010       -.76052E-07    .12111E-02
  15  norm          7.3064        3.8367       -.19918E-07    .12985E-03
  16  norm          3.1552        3.1729       -.16340E-06    .10947E-02
  17  norm          6.1825        4.9543        .25213E-07   -.83626E-04
  18  Prefactor     .31430E-06    7.8269        .58394E-07** at limit **
  19  Prefactor     3.6587        9.2164       -.13092E-06   -.11243E-01
  20  Prefactor     .45006E-05    9.2290       -.27900E-06** at limit **
  21  norm          5.0568        2.0075       -.35126E-07    .13251E-02
  22  Prefactor     1.9110        1.3213       -.45379E-07    .14780E-02
  23  norm          2.8732        1.4252        .24750E-07   -.12145E-02
  24  norm           .0000        1.4742       -.36519E-07** at limit **
  25  norm          9.8309        6.6489        .11337E-06   -.87572E-03
  26  Normalizat    1.1123        .13979        .18148E-05   -.32780E-04
  27  Prefactor     .91391        .80462E-01   -.54058E-06   -.38215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.8826
  Prefactor  = 1.72029e-07
  norm       = 5.51239
  Prefactor  = 4.52582e-07
  Prefactor  = 27.9195
  Prefactor  = 22.3123
  Prefactor  = 2.6999e-06
  Prefactor  = 0
  Prefactor  = 3.31402e-08
  Prefactor  = 1.89293e-08
  Prefactor  = 3.38252
  norm       = 7.30641
  norm       = 3.15515
  norm       = 6.18249
  Prefactor  = 3.14304e-07
  Prefactor  = 3.6587
  Prefactor  = 4.50057e-06
  norm       = 5.05679
  Prefactor  = 1.911
  norm       = 2.87316
  norm       = 0
  norm       = 9.83088
  Normalizat = 1.11232
  Prefactor  = 0.913906
 **********
 **   18 **HESSE 
 **********

 FCN=   24592.76     FROM HESSE     STATUS=OK           542 CALLS     2428 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.1023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.4322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.8061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8826        2.3941        .45504E-03   -1.5664    
   5  Prefactor     .17203E-06    8.8854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.5124        3.8594        .42759E-03   -1.5661    
   7  Prefactor     .45258E-06    24.067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.920        4.7456        .18923E-03   -1.5602    
   9  Prefactor     22.312        22.304        .21073E-03   -1.5613    
  10  Prefactor     .26999E-05    16.960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.5727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .33140E-07    7.4914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .18929E-07    89.384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.3825        3.8234        .55025E-03   -1.5671    
  15  norm          7.3064        3.8389        .37015E-03   -1.5654    
  16  norm          3.1552        3.1822        .57076E-03   -1.5672    
  17  norm          6.1825        4.9600        .40299E-03   -1.5658    
  18  Prefactor     .31430E-06    8.4240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6587        9.3415        .52747E-03   -1.5670    
  20  Prefactor     .45006E-05    18.416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.0568        2.0184        .44681E-03   -1.5663    
  22  Prefactor     1.9110        1.3293        .75174E-03   -1.5680    
  23  norm          2.8732        1.4245        .59930E-03   -1.5674    
  24  norm           .0000        1.4712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.8309        6.6467        .31884E-03   -1.5645    
  26  Normalizat    1.1123        .11904        .74779E-01   -.89357    
  27  Prefactor     .91391        .68346E-01    .45181E-01   -.95657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62246e-07
Minuit parameter uncertainties:
  1  1.26379e-05
  2  7.3083e-07
  3  4.5747e-06
  4  2.39414
  5  0.00247267
  6  3.85943
  7  0.00660093
  8  4.7456
  9  22.3041
  10  0.0135336
  11  1.40827e-05
  12  0.000996353
  13  0.00260054
  14  3.82343
  15  3.83888
  16  3.18222
  17  4.96003
  18  0.00325449
  19  9.3415
  20  0.0182078
  21  2.01842
  22  1.32932
  23  1.42454
  24  6.20065e-07
  25  6.6467
  26  0.119074
  27  0.0683529
Done.

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

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  7.306e+00  3.839e+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.139e-01  6.835e-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.112e+00  1.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.06
Ra Dec: 276.039 56.858
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.41e-08 +/- 1.79e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 6.27e-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) = 24592.7013873
delta logL = 0.0593338489562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24592.7006052
delta logL = 0.0601159240723

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3128       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1307       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91192       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=   24592.70     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3180        116.10        .37066E-03    .18766E-02
   2  alpha         2.1314        3.0555        .41734       -.36641E-04
   3  Normalizat    1.1182        .18125        .74616E-01    .56152E-04
   4  Prefactor     .91193        .86790E-01    .45157E-01    .22816E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.31801
  alpha      = 2.13145
  Normalizat = 1.11825
  Prefactor  = 0.911931
 **********
 **   18 **HESSE 
 **********

 FCN=   24592.70     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3180        3.9485        .14827E-04   -1.5654    
   2  alpha         2.1314        .48790        .23997E-01   -.14796    
   3  Normalizat    1.1182        .13637        .33023E-03   -.89168    
   4  Prefactor     .91193        .79417E-01    .21071E-03   -.95725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51698e-10
Minuit parameter uncertainties:
  1  3.94848
  2  0.491127
  3  0.136416
  4  0.0794272
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) = 24592.7006033
delta logL = 0.0601178142424

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  7.318e+00  3.948e+00  0.000e+00  1.000e+06 ( 1.000e-12)
384        alpha:  2.131e+00  4.911e-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.119e-01  7.943e-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  1.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.16
Ra Dec: 276.039 56.858
Photon Index (Free Index): 2.13 +/- 0.49
Photon Flux (Free Index): 2.88e-08 +/- 2.11e-08
Energy Flux (Free Index): 1.27e-05 +/- 7.52e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/17380152/cmap_HighResolution_786931201_787536001_4FGL_J1824.1+5651_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.41e-08', energy_flux2='1.27e-05', photon_flux_error='1.79e-08', dlogl='6.01e-02', energy_flux='1.19e-05', photon_flux2='2.88e-08', job_status='DONE', time_completed='2025-12-16 03:13:03.714284', photon_index_error2='0.49', photon_index2='2.13', ts='8.06', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='7.52e-06', EG='1.11', time_epoch_completed='1765883583.71', return_code='0', job_id='17380152', GAL2='0.91', EG2='1.12', return_code2='0', energy_flux_error='6.27e-06', photon_flux_error2='2.11e-08', ts2='8.16', photon_index='2.30' WHERE bin_id='906' AND source_name='4FGL J1824.1+5651' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:13:03 PST 2025

