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


Performing analysis on: 4FGL_J1803.4-6510_weekly_bin866
RA = 270.864, Dec = -65.1732
tmin = 762739201, tmax = 763344001
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='66988995', job_status='RUN', time_executed='2025-03-11 01:08:17.477781', time_epoch_executed='1741680497.48' WHERE source_name='4FGL J1803.4-6510' and cadence='weekly' and bin_id='866'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/66988995

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/66988995/ft1_4FGL_J1803.4-6510_weekly_bin866.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/66988995/ft2_4FGL_J1803.4-6510_weekly_bin866.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/66988995/ft1_4FGL_J1803.4-6510_weekly_bin866.fits outfile=/lscratch/kocevski/66988995/ft1_filteredMKT_4FGL_J1803.4-6510_weekly_bin866.fits ra=270.864 dec=-65.1732 rad=12.0 tmin=762739201.0 tmax=763344001.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.38
user 4.96
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/66988995/ft2_4FGL_J1803.4-6510_weekly_bin866.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/66988995/ft2_4FGL_J1803.4-6510_weekly_bin866.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/66988995/ft1_filteredMKT_4FGL_J1803.4-6510_weekly_bin866.fits evtable="EVENTS" outfile="/lscratch/kocevski/66988995/ft1_filtered_4FGL_J1803.4-6510_weekly_bin866.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.47
user 0.21
sys 0.11

Number of photons that the gtmktime cut: 3313

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/66988995/ft1_filtered_4FGL_J1803.4-6510_weekly_bin866.fits" evtable="EVENTS" scfile=/lscratch/kocevski/66988995/ft2_4FGL_J1803.4-6510_weekly_bin866.fits sctable="SC_DATA" outfile=/lscratch/kocevski/66988995/ltcube_762739201_763344001_4FGL_J1803.4-6510_weekly_bin866.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/66988995/ft2_4FGL_J1803.4-6510_weekly_bin866.fits
.....................!
real 21.00
user 20.37
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/66988995/ft1_filtered_4FGL_J1803.4-6510_weekly_bin866.fits evtable="EVENTS" scfile=/lscratch/kocevski/66988995/ft2_4FGL_J1803.4-6510_weekly_bin866.fits sctable="SC_DATA" expcube=/lscratch/kocevski/66988995/ltcube_762739201_763344001_4FGL_J1803.4-6510_weekly_bin866.fits outfile=/lscratch/kocevski/66988995/expmap_762739201_763344001_4FGL_J1803.4-6510_weekly_bin866.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/66988995/ltcube_762739201_763344001_4FGL_J1803.4-6510_weekly_bin866.fits
.....................!
real 67.67
user 63.57
sys 3.69

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 FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Added 303 point sources and 16 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 J1803.4-6510 @ 270.864 -65.1732

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/66988995/ft1_filtered_4FGL_J1803.4-6510_weekly_bin866.fits scfile=/lscratch/kocevski/66988995/ft2_4FGL_J1803.4-6510_weekly_bin866.fits outfile=/lscratch/kocevski/66988995/cmap_762739201_763344001_4FGL_J1803.4-6510_weekly_bin866.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=270.864 yref=-65.1732 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.50
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/66988995/ft1_filtered_4FGL_J1803.4-6510_weekly_bin866.fits scfile=/lscratch/kocevski/66988995/ft2_4FGL_J1803.4-6510_weekly_bin866.fits outfile=/lscratch/kocevski/66988995/cmap_HighResolution_762739201_763344001_4FGL_J1803.4-6510_weekly_bin866.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=270.864 yref=-65.1732 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.46
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/66988995/ft1_filtered_4FGL_J1803.4-6510_weekly_bin866.fits evtable="EVENTS" scfile=/lscratch/kocevski/66988995/ft2_4FGL_J1803.4-6510_weekly_bin866.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/66988995/Model_4FGL_J1803.4-6510_weekly_bin866.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 FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RCW 86
Working on...
/lscratch/kocevski/66988995/ft1_filtered_4FGL_J1803.4-6510_weekly_bin866.fits.....................!
real 508.99
user 503.82
sys 2.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/66988995/ft1_filtered_4FGL_J1803.4-6510_weekly_bin866.fits', '/lscratch/kocevski/66988995/ft2_4FGL_J1803.4-6510_weekly_bin866.fits', expMap='/lscratch/kocevski/66988995/expmap_762739201_763344001_4FGL_J1803.4-6510_weekly_bin866.fits', expCube='/lscratch/kocevski/66988995/ltcube_762739201_763344001_4FGL_J1803.4-6510_weekly_bin866.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/66988995/Model_4FGL_J1803.4-6510_weekly_bin866.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1803.4-6510'

4FGL J1803.4-6510
   Spectrum: PowerLaw
748    Prefactor:  4.100e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
749        Index:  2.498e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
750        Scale:  1.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/66988995/ft1_filtered_4FGL_J1803.4-6510_weekly_bin866.fits
Spacecraft file(s): /lscratch/kocevski/66988995/ft2_4FGL_J1803.4-6510_weekly_bin866.fits
Exposure map: /lscratch/kocevski/66988995/expmap_762739201_763344001_4FGL_J1803.4-6510_weekly_bin866.fits
Exposure cube: /lscratch/kocevski/66988995/ltcube_762739201_763344001_4FGL_J1803.4-6510_weekly_bin866.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/66988995/Model_4FGL_J1803.4-6510_weekly_bin866.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) = 33320.4114201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5483       1.0000          .0000       .10000E+07
     2 'norm      '    .17729E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    8.6117       1.0000          .0000       .10000E+07
     4 'norm      '    .31086E-07   1.0000          .0000       .10000E+07
     5 'norm      '    68.239       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13239E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .62771E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.0622       1.0000          .0000       .10000E+07
     9 'Prefactor '    .17576E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .15864E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .24299E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .24002E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .45072E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .37318E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    43.581       1.0000          .0000       .10000E+07
    16 'norm      '    17.373       1.0000          .0000       .10000E+07
    17 'Prefactor '    .21012E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    26.878       1.0000          .0000       .10000E+07
    19 'norm      '    .54035       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1839       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87964       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1120E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   33320.41     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     1765 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5473        2.6105       -.57975E-08    .28188E-04
   2  norm          .38858E-09    12.864        .54140E-07** at limit **
   3  Prefactor     8.6090        7.2204       -.19444E-06   -.74553E-02
   4  norm           .0000        1.3329        .14444E-06** at limit **
   5  norm          68.163        5.5406       -.43456E-07   -.99765E-01
   6  Prefactor      .0000        1.8743       -.80357E-07** at limit **
   7  Prefactor      .0000        3.8504        .10356E-06** at limit **
   8  Prefactor     4.0991        6.0096       -.59039E-07    .17191E-03
   9  Prefactor      .0000        3.3088        .68477E-07** at limit **
  10  Prefactor     .18600E-05    420.35       -.37298E-05** at limit **
  11  norm          .23605E-01    .61871        .56624E-07** at limit **
  12  Prefactor     .55511E-10    12.076        .56341E-06** at limit **
  13  norm           .0000        27.059        .91075E-06** at limit **
  14  Prefactor     .55511E-10    5.7701        .13184E-06** at limit **
  15  Prefactor     43.584        1.0547       -.61622E-08    .11191E-01
  16  norm          17.312        5.7824       -.18754E-07   -.10962E-03
  17  Prefactor     .55511E-10    5.1358       -.13125E-06** at limit **
  18  Prefactor     26.896        1.5870       -.16823E-08    .16707E-01
  19  norm          .53995        .65147        .27748E-07    .10515E-02
  20  Normalizat    1.1844        .16267        .27665E-06    .34464E-04
  21  Prefactor     .87956        .45007E-01    .42259E-06    .10214E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.5473
  norm       = 3.88578e-10
  Prefactor  = 8.60899
  norm       = 0
  norm       = 68.1634
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.09911
  Prefactor  = 0
  Prefactor  = 1.86001e-06
  norm       = 0.0236045
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 43.5835
  norm       = 17.312
  Prefactor  = 5.55112e-11
  Prefactor  = 26.8959
  norm       = 0.539945
  Normalizat = 1.1844
  Prefactor  = 0.879564
 **********
 **   18 **HESSE 
 **********

 FCN=   33320.41     FROM HESSE     STATUS=OK           377 CALLS     2142 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5473        2.6146        .53633E-03   -1.5670    
   2  norm          .38858E-09    12.459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.6090        7.2374        .34135E-03   -1.5649    
   4  norm           .0000        1.3248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          68.163        35.698        .12106E-03   -1.5543    
   6  Prefactor      .0000        1.8704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.8860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.0991        6.0315        .50002E-03   -1.5667    
   9  Prefactor      .0000        3.3451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .18600E-05    2.7922        .79131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .23605E-01    .12095        .23913E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    12.177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        3.4708        .15742E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    5.8346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     43.584        36.227        .15149E-03   -1.5576    
  16  norm          17.312        5.7875        .24002E-03   -1.5625    
  17  Prefactor     .55511E-10    5.1294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.896        14.816        .19292E-03   -1.5604    
  19  norm          .53995        .66409        .74750E-03   -1.5693    
  20  Normalizat    1.1844        .14605        .99593E-01   -.87086    
  21  Prefactor     .87956        .39212E-01    .31525E-01   -.96859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98074e-07
Minuit parameter uncertainties:
  1  2.61456
  2  0.000140973
  3  7.2374
  4  3.44418e-06
  5  35.698
  6  2.17497e-07
  7  2.71848e-06
  8  6.03151
  9  1.00394e-06
  10  0.00455783
  11  0.106864
  12  4.26823e-05
  13  9.31955e-06
  14  3.87433e-05
  15  36.2273
  16  5.78749
  17  3.49686e-05
  18  14.8158
  19  0.664085
  20  0.146102
  21  0.0392136
Done.

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

Extracting fit parameters...

4FGL J1803.4-6510
   Spectrum: PowerLaw
748    Prefactor:  0.000e+00  1.004e-06  0.000e+00  1.000e+06 ( 1.000e-13)
749        Index:  2.498e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
750        Scale:  1.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1090    Prefactor:  8.796e-01  3.921e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1091        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1092        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1061   Normalization:  1.184e+00  1.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 270.864 -65.173
Photon Flux Upper Limit: 3.51283289564e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00273187883356 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/66988995/likelihoodResults_762739201_763344001_4FGL_J1803.4-6510_weekly_bin866.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): 102
logL (Free Index) = 33320.4093514
delta logL = -0.000216601583816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 33320.4091351
delta logL = -2.92529875878e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18552E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .49253       1.0000          .0000       10.000    
     3 'Normalizat'    1.1844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87956       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1120E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   33320.41     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      268 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6949        .42118E-03** at limit **
   2  Index         3.1860        1.7959        .17396E-04     .0000    
   3  Normalizat    1.1844        1.1119        .45977E-05   -.42481E-04
   4  Prefactor     .87956        1.2254       -.14658E-05   -.11839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.18598
  Normalizat = 1.1844
  Prefactor  = 0.879564
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   33320.41     FROM HESSE     STATUS=FAILED         9 CALLS      277 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1422        2.1839        .17396E-04   -.37127    
   3  Normalizat    1.1844        1.1119        .45977E-05   -.87086    
   4  Prefactor     .87956        1.2254       -.14658E-05   -.96859    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.5366e-12
Minuit parameter uncertainties:
  1  1.37589e-06
  2  1.84358
  3  1.13534
  4  1.26729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 33320.4091348
delta logL = 0.0

Extracting fit parameters...

4FGL J1803.4-6510
   Spectrum: PowerLaw
748    Prefactor:  0.000e+00  1.376e-06  0.000e+00  1.000e+06 ( 1.000e-13)
749        Index:  3.186e+00  1.844e+00  0.000e+00  1.000e+01 (-1.000e+00)
750        Scale:  1.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1090    Prefactor:  8.796e-01  1.267e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1091        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1092        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1061   Normalization:  1.184e+00  1.135e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 270.864 -65.173

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/66988995/cmap_HighResolution_762739201_763344001_4FGL_J1803.4-6510_weekly_bin866.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-03', job_status='DONE', photon_flux_upper_limit='3.51e-08', time_completed='2025-03-11 01:39:46.350586', job_id='66988995', GAL2='0.88', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1741682386.35', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='866' AND source_name='4FGL J1803.4-6510' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 11 01:39:46 PDT 2025

