/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_J1811.0+1608_weekly_bin906
RA = 272.75, Dec = 16.1478
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='17380137', job_status='RUN', time_executed='2025-12-16 02:56:03.275572', time_epoch_executed='1765882563.28' WHERE source_name='4FGL J1811.0+1608' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17380137

Creating custom pfile directory:
/lscratch/kocevski/17380137/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/17380137/ft1_4FGL_J1811.0+1608_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/17380137/ft2_4FGL_J1811.0+1608_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17380137/ft1_4FGL_J1811.0+1608_weekly_bin906.fits outfile=/lscratch/kocevski/17380137/ft1_filteredMKT_4FGL_J1811.0+1608_weekly_bin906.fits ra=272.75 dec=16.1478 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 6.25
user 5.27
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17380137/ft2_4FGL_J1811.0+1608_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17380137/ft2_4FGL_J1811.0+1608_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/17380137/ft1_filteredMKT_4FGL_J1811.0+1608_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17380137/ft1_filtered_4FGL_J1811.0+1608_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.89
user 0.25
sys 0.14

Number of photons that the gtmktime cut: 3686

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17380137/ft1_filtered_4FGL_J1811.0+1608_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17380137/ft2_4FGL_J1811.0+1608_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17380137/ltcube_786931201_787536001_4FGL_J1811.0+1608_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/17380137/ft2_4FGL_J1811.0+1608_weekly_bin906.fits
.....................!
real 19.53
user 18.47
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17380137/ft1_filtered_4FGL_J1811.0+1608_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380137/ft2_4FGL_J1811.0+1608_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17380137/ltcube_786931201_787536001_4FGL_J1811.0+1608_weekly_bin906.fits outfile=/lscratch/kocevski/17380137/expmap_786931201_787536001_4FGL_J1811.0+1608_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/17380137/ltcube_786931201_787536001_4FGL_J1811.0+1608_weekly_bin906.fits
.....................!
real 71.74
user 66.06
sys 4.41

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 G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source W 51C in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W51C.fits is the correct path to the extended template.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Added 266 point sources and 5 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 J1811.0+1608 @ 272.75 16.1478

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17380137/ft1_filtered_4FGL_J1811.0+1608_weekly_bin906.fits scfile=/lscratch/kocevski/17380137/ft2_4FGL_J1811.0+1608_weekly_bin906.fits outfile=/lscratch/kocevski/17380137/cmap_786931201_787536001_4FGL_J1811.0+1608_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=272.75 yref=16.1478 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.83
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17380137/ft1_filtered_4FGL_J1811.0+1608_weekly_bin906.fits scfile=/lscratch/kocevski/17380137/ft2_4FGL_J1811.0+1608_weekly_bin906.fits outfile=/lscratch/kocevski/17380137/cmap_HighResolution_786931201_787536001_4FGL_J1811.0+1608_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=272.75 yref=16.1478 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.78
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17380137/ft1_filtered_4FGL_J1811.0+1608_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380137/ft2_4FGL_J1811.0+1608_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17380137/Model_4FGL_J1811.0+1608_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 G42.8+0.6
adding source GAL_V02
adding source HESS J1857+026
adding source Kes 79
adding source W 44
adding source W 51C
Working on...
/lscratch/kocevski/17380137/ft1_filtered_4FGL_J1811.0+1608_weekly_bin906.fits.....................!
real 278.57
user 275.06
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17380137/ft1_filtered_4FGL_J1811.0+1608_weekly_bin906.fits', '/lscratch/kocevski/17380137/ft2_4FGL_J1811.0+1608_weekly_bin906.fits', expMap='/lscratch/kocevski/17380137/expmap_786931201_787536001_4FGL_J1811.0+1608_weekly_bin906.fits', expCube='/lscratch/kocevski/17380137/ltcube_786931201_787536001_4FGL_J1811.0+1608_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17380137/Model_4FGL_J1811.0+1608_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1811.0+1608'

4FGL J1811.0+1608
   Spectrum: PowerLaw
311    Prefactor:  3.442e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
312        Index:  2.068e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  3.085e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17380137/ft1_filtered_4FGL_J1811.0+1608_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17380137/ft2_4FGL_J1811.0+1608_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17380137/expmap_786931201_787536001_4FGL_J1811.0+1608_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17380137/ltcube_786931201_787536001_4FGL_J1811.0+1608_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17380137/Model_4FGL_J1811.0+1608_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) = 36339.1375999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.083       1.0000          .0000       .10000E+07
     2 'Prefactor '    18.393       1.0000          .0000       .10000E+07
     3 'norm      '    .17558E-06   1.0000          .0000       .10000E+07
     4 'norm      '    3.2518       1.0000          .0000       .10000E+07
     5 'Prefactor '    .16653E-09   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.747       1.0000          .0000       .10000E+07
     7 'norm      '    3.9126       1.0000          .0000       .10000E+07
     8 'norm      '    4.3183       1.0000          .0000       .10000E+07
     9 'Prefactor '    15.930       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.6856       1.0000          .0000       .10000E+07
    11 'Prefactor '    25.889       1.0000          .0000       .10000E+07
    12 'norm      '    3.6553       1.0000          .0000       .10000E+07
    13 'Normalizat'    1.0820       1.0000         .10000E-01   10.000    
    14 'Prefactor '    1.0310       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   36339.11     FROM MIGRAD    STATUS=CONVERGED     59 CALLS     1050 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.086        1.2981       -.52953E-07    .63788E-01
   2  Prefactor     18.393        3.1595        .10548E-08   -.12567E-01
   3  norm           .0000        37.613       -.19678E-06** at limit **
   4  norm          3.2518        .71777       -.21711E-07    .65915E-02
   5  Prefactor      .0000        1.3901       -.19524E-06** at limit **
   6  Prefactor     17.748        1.0221       -.17339E-07    .14129E-01
   7  norm          3.9111        3.7740        .64951E-06   -.60698E-01
   8  norm          4.3185        3.8030        .16933E-06    .12383E-01
   9  Prefactor     15.930        1.0148        .15013E-07   -.11212E-01
  10  Prefactor     2.6857        4.7203        .18720E-06    .22438E-01
  11  Prefactor     25.889        1.0009        .93654E-09   -.75610E-03
  12  norm          3.6548        3.4256       -.58768E-06   -.62719E-01
  13  Normalizat    1.0820        .18632       -.41264E-05    .54286E-04
  14  Prefactor     1.0310        .38164E-01    .12243E-05    .22973E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 28.0857
  Prefactor  = 18.3926
  norm       = 0
  norm       = 3.25179
  Prefactor  = 0
  Prefactor  = 17.7479
  norm       = 3.91107
  norm       = 4.31853
  Prefactor  = 15.9296
  Prefactor  = 2.68567
  Prefactor  = 25.8887
  norm       = 3.65476
  Normalizat = 1.08204
  Prefactor  = 1.03102
 **********
 **   18 **HESSE 
 **********

 FCN=   36339.11     FROM HESSE     STATUS=OK           200 CALLS     1250 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.086        14.117        .18874E-03   -1.5602    
   2  Prefactor     18.393        3.3691        .23326E-03   -1.5622    
   3  norm           .0000        37.485        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2518        .72013        .56139E-03   -1.5672    
   5  Prefactor      .0000        1.3879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.748        19.409        .23747E-03   -1.5624    
   7  norm          3.9111        7.0284        .50980E-03   -1.5668    
   8  norm          4.3185        3.8070        .48452E-03   -1.5666    
   9  Prefactor     15.930        16.092        .25067E-03   -1.5628    
  10  Prefactor     2.6857        4.8684        .62149E-03   -1.5675    
  11  Prefactor     25.889        15.089        .19658E-03   -1.5606    
  12  norm          3.6548        3.8338        .52811E-03   -1.5670    
  13  Normalizat    1.0820        .17828        .14656       -.90330    
  14  Prefactor     1.0310        .36557E-01    .30568E-01   -.91702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03455e-07
Minuit parameter uncertainties:
  1  14.117
  2  3.36914
  3  4.91261e-05
  4  0.720134
  5  2.3271e-07
  6  19.4092
  7  7.02842
  8  3.80702
  9  16.0921
  10  4.86844
  11  15.0888
  12  3.83382
  13  0.178383
  14  0.0365578
Done.

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

Extracting fit parameters...

4FGL J1811.0+1608
   Spectrum: PowerLaw
311    Prefactor:  1.775e+01  1.941e+01  0.000e+00  1.000e+06 ( 1.000e-14)
312        Index:  2.068e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  3.085e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
945    Prefactor:  1.031e+00  3.656e-02  0.000e+00  1.000e+01 ( 1.000e+00)
946        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
947        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
941   Normalization:  1.082e+00  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 272.750 16.148
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 2.00e-08 +/- 2.19e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.29e-05

TS (Fixed Index): 1.24
Ra Dec: 272.750 16.148
Photon Flux Upper Limit: 6.96935194895e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00525634492776 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17380137/likelihoodResults_786931201_787536001_4FGL_J1811.0+1608_weekly_bin906.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 36338.9899694
delta logL = 0.120525390739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 36338.9816053
delta logL = 0.128889423126

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   36338.98     FROM MIGRAD    STATUS=FAILED        98 CALLS      326 TOTAL
                     EDM=   .27E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.591        503.89        .11758E-04   -.52910E-02
   2  Index         2.4381        6.0451        .12939E-01    .35036E-02
   3  Normalizat    1.0681        .26654        .65470E-03    .50122E-03
   4  Prefactor     1.0320        .42511E-01    .13502E-03    .20391E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   36338.98     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      413 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.591        503.89        .20616E-04   -.52910E-02
   2  Index         2.4381        6.0451        .74893E-03    .35036E-02
   3  Normalizat    1.0681        .26654        .15984E-03    .50122E-03
   4  Prefactor     1.0320        .42511E-01    .30285E-04    .20391E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   36338.98     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      448 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.590        20.826        .47030E-06   -.62050E-02
   2  Index         2.4381        .82015        .25878E-02   -.17309E-03
   3  Normalizat    1.0681        .18729        .26188E-04    .48413E-03
   4  Prefactor     1.0320        .37813E-01    .27004E-04    .19770E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5904
  Index      = 2.43812
  Normalizat = 1.06805
  Prefactor  = 1.03198
 **********
 **   18 **HESSE 
 **********

 FCN=   36338.98     FROM HESSE     STATUS=OK            23 CALLS      471 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.590        18.953        .37288E-06   -1.5640    
   2  Index         2.4381        .74658        .10351E-03   -.53795    
   3  Normalizat    1.0681        .18681        .52376E-05   -.90784    
   4  Prefactor     1.0320        .37773E-01    .54008E-05   -.91671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.36193e-10
Minuit parameter uncertainties:
  1  18.9534
  2  0.750397
  3  0.186921
  4  0.0377741
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) = 36338.9816037
delta logL = 0.128891070075

Extracting fit parameters...

4FGL J1811.0+1608
   Spectrum: PowerLaw
311    Prefactor:  1.159e+01  1.895e+01  0.000e+00  1.000e+06 ( 1.000e-14)
312        Index:  2.438e+00  7.504e-01  0.000e+00  1.000e+01 (-1.000e+00)
313        Scale:  3.085e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
945    Prefactor:  1.032e+00  3.777e-02  0.000e+00  1.000e+01 ( 1.000e+00)
946        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
947        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
941   Normalization:  1.068e+00  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 272.750 16.148
Photon Index (Free Index): 2.44 +/- 0.75
Photon Flux (Free Index): 3.45e-08 +/- 4.01e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.03e-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/17380137/cmap_HighResolution_786931201_787536001_4FGL_J1811.0+1608_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-03', comment='SUCCESS', photon_flux='2.00e-08', energy_flux2='1.08e-05', photon_flux_error='2.19e-08', dlogl='1.29e-01', energy_flux='1.18e-05', photon_flux2='3.45e-08', job_status='DONE', time_completed='2025-12-16 03:20:09.358112', photon_index_error2='0.75', photon_index2='2.44', ts='1.24', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='6.97e-08', energy_flux_error2='1.03e-05', EG='1.08', time_epoch_completed='1765884009.36', return_code='0', job_id='17380137', GAL2='1.03', EG2='1.07', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='4.01e-08', ts2='1.51', photon_index='2.07' WHERE bin_id='906' AND source_name='4FGL J1811.0+1608' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:20:09 PST 2025

