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


Performing analysis on: 4FGL_J1807.9-6412_daily_bin1982
RA = 271.993, Dec = -64.209
tmin = 753062401, tmax = 753321601
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='58811250', job_status='RUN', time_executed='2024-11-15 00:41:04.428518', time_epoch_executed='1731660064.43' WHERE source_name='4FGL J1807.9-6412' and cadence='daily' and bin_id='1982'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/58811250

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/58811250/ft1_4FGL_J1807.9-6412_daily_bin1982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/58811250/ft2_4FGL_J1807.9-6412_daily_bin1982.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/58811250/ft1_4FGL_J1807.9-6412_daily_bin1982.fits outfile=/lscratch/kocevski/58811250/ft1_filteredMKT_4FGL_J1807.9-6412_daily_bin1982.fits ra=271.993 dec=-64.209 rad=12.0 tmin=753062401.0 tmax=753321601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.29
user 2.04
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/58811250/ft2_4FGL_J1807.9-6412_daily_bin1982.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/58811250/ft2_4FGL_J1807.9-6412_daily_bin1982.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/58811250/ft1_filteredMKT_4FGL_J1807.9-6412_daily_bin1982.fits evtable="EVENTS" outfile="/lscratch/kocevski/58811250/ft1_filtered_4FGL_J1807.9-6412_daily_bin1982.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.12

Number of photons that the gtmktime cut: 1345

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/58811250/ft1_filtered_4FGL_J1807.9-6412_daily_bin1982.fits" evtable="EVENTS" scfile=/lscratch/kocevski/58811250/ft2_4FGL_J1807.9-6412_daily_bin1982.fits sctable="SC_DATA" outfile=/lscratch/kocevski/58811250/ltcube_753062401_753321601_4FGL_J1807.9-6412_daily_bin1982.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/58811250/ft2_4FGL_J1807.9-6412_daily_bin1982.fits
.....................!
real 11.18
user 10.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/58811250/ft1_filtered_4FGL_J1807.9-6412_daily_bin1982.fits evtable="EVENTS" scfile=/lscratch/kocevski/58811250/ft2_4FGL_J1807.9-6412_daily_bin1982.fits sctable="SC_DATA" expcube=/lscratch/kocevski/58811250/ltcube_753062401_753321601_4FGL_J1807.9-6412_daily_bin1982.fits outfile=/lscratch/kocevski/58811250/expmap_753062401_753321601_4FGL_J1807.9-6412_daily_bin1982.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/58811250/ltcube_753062401_753321601_4FGL_J1807.9-6412_daily_bin1982.fits
.....................!
real 69.46
user 65.24
sys 3.80

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 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 305 point sources and 15 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 J1807.9-6412 @ 271.993 -64.209

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/58811250/ft1_filtered_4FGL_J1807.9-6412_daily_bin1982.fits scfile=/lscratch/kocevski/58811250/ft2_4FGL_J1807.9-6412_daily_bin1982.fits outfile=/lscratch/kocevski/58811250/cmap_753062401_753321601_4FGL_J1807.9-6412_daily_bin1982.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=271.993 yref=-64.209 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.41
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/58811250/ft1_filtered_4FGL_J1807.9-6412_daily_bin1982.fits scfile=/lscratch/kocevski/58811250/ft2_4FGL_J1807.9-6412_daily_bin1982.fits outfile=/lscratch/kocevski/58811250/cmap_HighResolution_753062401_753321601_4FGL_J1807.9-6412_daily_bin1982.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=271.993 yref=-64.209 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.54
user 0.24
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/58811250/ft1_filtered_4FGL_J1807.9-6412_daily_bin1982.fits evtable="EVENTS" scfile=/lscratch/kocevski/58811250/ft2_4FGL_J1807.9-6412_daily_bin1982.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/58811250/Model_4FGL_J1807.9-6412_daily_bin1982.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
Working on...
/lscratch/kocevski/58811250/ft1_filtered_4FGL_J1807.9-6412_daily_bin1982.fits.....................!
real 202.45
user 200.30
sys 0.80

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/58811250/ft1_filtered_4FGL_J1807.9-6412_daily_bin1982.fits', '/lscratch/kocevski/58811250/ft2_4FGL_J1807.9-6412_daily_bin1982.fits', expMap='/lscratch/kocevski/58811250/expmap_753062401_753321601_4FGL_J1807.9-6412_daily_bin1982.fits', expCube='/lscratch/kocevski/58811250/ltcube_753062401_753321601_4FGL_J1807.9-6412_daily_bin1982.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/58811250/Model_4FGL_J1807.9-6412_daily_bin1982.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1807.9-6412'

4FGL J1807.9-6412
   Spectrum: PowerLaw
752    Prefactor:  2.359e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
753        Index:  2.523e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
754        Scale:  1.207e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/58811250/ft1_filtered_4FGL_J1807.9-6412_daily_bin1982.fits
Spacecraft file(s): /lscratch/kocevski/58811250/ft2_4FGL_J1807.9-6412_daily_bin1982.fits
Exposure map: /lscratch/kocevski/58811250/expmap_753062401_753321601_4FGL_J1807.9-6412_daily_bin1982.fits
Exposure cube: /lscratch/kocevski/58811250/ltcube_753062401_753321601_4FGL_J1807.9-6412_daily_bin1982.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/58811250/Model_4FGL_J1807.9-6412_daily_bin1982.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) = 13551.9241086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1983       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.3823       1.0000          .0000       .10000E+07
     3 'norm      '    1.2575       1.0000          .0000       .10000E+07
     4 'norm      '    .13141E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .24108E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .58393E-03   1.0000          .0000       .10000E+07
     7 'norm      '    28.625       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.7137       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11356       1.0000          .0000       .10000E+07
    10 'Prefactor '    .49332E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .14051E-04   1.0000          .0000       .10000E+07
    12 'norm      '    8.3930       1.0000          .0000       .10000E+07
    13 'norm      '    .56788E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.0422       1.0000          .0000       .10000E+07
    15 'norm      '    .35497E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    67.327       1.0000          .0000       .10000E+07
    17 'Prefactor '    .10777E-02   1.0000          .0000       .10000E+07
    18 'norm      '    2.7942       1.0000          .0000       .10000E+07
    19 'Prefactor '    6.1508       1.0000          .0000       .10000E+07
    20 'norm      '    .32803       1.0000          .0000       .10000E+07
    21 'Normalizat'    .59828       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0913       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1126E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13551.92     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1911 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1844        5.8078        .79551E-06    .42702E-03
   2  Prefactor     7.3700        8.6514       -.11835E-06   -.12559E-02
   3  norm          1.2576        2.9923        .27062E-06    .36318E-03
   4  norm          .45232E-05    15.660       -.13987E-05** at limit **
   5  Prefactor      .0000        2.4595       -.46141E-06** at limit **
   6  Prefactor     .36821E-06    6.8879       -.26165E-05** at limit **
   7  norm          28.761        11.132       -.59765E-06   -.15087E-01
   8  Prefactor     3.7073        11.077        .15343E-05    .20899E-01
   9  Prefactor     .23592E-07    48.785       -.24290E-05** at limit **
  10  Prefactor     .55511E-10    8.2280        .18026E-06** at limit **
  11  Prefactor      .0000        4.0802       -.67139E-06** at limit **
  12  norm          8.3950        5.1210        .37269E-06    .91720E-03
  13  norm          .46664E-01    2.7032       -.31589E-06** at limit **
  14  Prefactor     7.7647        100.49        .20489E-06   -.21133E-01
  15  norm          .66758E-06    17.656        .40907E-07** at limit **
  16  Prefactor     66.753        25.877        .95172E-06   -.20868    
  17  Prefactor     .50915E-05    10.858       -.32395E-05** at limit **
  18  norm          2.7942        4.4502       -.56179E-07   -.38120E-03
  19  Prefactor     6.1501        9.2216        .41248E-06    .84203E-02
  20  norm          .32753        1.0004       -.25695E-06    .38645E-03
  21  Normalizat    .59819        .25811       -.13554E-04    .25582E-04
  22  Prefactor     1.0914        .76280E-01    .33746E-06    .14116E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.18441
  Prefactor  = 7.36997
  norm       = 1.25762
  norm       = 4.52322e-06
  Prefactor  = 0
  Prefactor  = 3.68205e-07
  norm       = 28.7614
  Prefactor  = 3.70733
  Prefactor  = 2.35922e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 8.39499
  norm       = 0.0466636
  Prefactor  = 7.76473
  norm       = 6.67577e-07
  Prefactor  = 66.7528
  Prefactor  = 5.09148e-06
  norm       = 2.7942
  Prefactor  = 6.15015
  norm       = 0.327529
  Normalizat = 0.598193
  Prefactor  = 1.09135
 **********
 **   18 **HESSE 
 **********

 FCN=   13551.92     FROM HESSE     STATUS=OK           392 CALLS     2303 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1844        5.7979        .44067E-03   -1.5662    
   2  Prefactor     7.3700        8.6447        .36890E-03   -1.5654    
   3  norm          1.2576        3.0220        .99506E-03   -1.5686    
   4  norm          .45232E-05    21.281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        2.4577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .36821E-06    20.772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          28.761        27.931        .18694E-03   -1.5601    
   8  Prefactor     3.7073        11.164        .52377E-03   -1.5669    
   9  Prefactor     .23592E-07    48.589        .13578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    8.2217        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.0757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.3950        5.1301        .34579E-03   -1.5650    
  13  norm          .46664E-01    .56715        .23357E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.7647        108.44        .40823E-03   -1.5652    
  15  norm          .66758E-06    18.065        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     66.753        42.990        .12188E-03   -1.5545    
  17  Prefactor     .50915E-05    19.765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.7942        4.4946        .60839E-03   -1.5675    
  19  Prefactor     6.1501        9.2547        .40456E-03   -1.5658    
  20  norm          .32753        1.0035        .98348E-03   -1.5697    
  21  Normalizat    .59819        .25440        .13675       -1.0806    
  22  Prefactor     1.0914        .72397E-01    .37926E-01   -.89743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00402e-06
Minuit parameter uncertainties:
  1  5.79793
  2  8.64476
  3  3.02204
  4  0.0196223
  5  3.8587e-07
  6  0.00553135
  7  27.931
  8  11.1644
  9  0.0021425
  10  3.06174e-05
  11  7.70942e-07
  12  5.13012
  13  0.325364
  14  58.0361
  15  0.00694544
  16  42.9897
  17  0.0200631
  18  4.49463
  19  9.25471
  20  1.00355
  21  0.254904
  22  0.0724036
Done.

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

Extracting fit parameters...

4FGL J1807.9-6412
   Spectrum: PowerLaw
752    Prefactor:  0.000e+00  7.709e-07  0.000e+00  1.000e+06 ( 1.000e-13)
753        Index:  2.523e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
754        Scale:  1.207e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1099    Prefactor:  1.091e+00  7.240e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1100        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1101        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1070   Normalization:  5.982e-01  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 271.993 -64.209
Photon Flux Upper Limit: 6.43001293586e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00500839354544 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/58811250/likelihoodResults_753062401_753321601_4FGL_J1807.9-6412_daily_bin1982.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) = 13551.9181139
delta logL = -0.000276807621049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13551.9178373
delta logL = -1.98482666747e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13551.92     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      245 TOTAL
                     EDM=   .92E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.8301        .42118E-03** at limit **
   2  Index         2.9363        1.5001        .30068E-05     .0000    
   3  Normalizat    .59819        .93557       -.20705E-05    .10649E-04
   4  Prefactor     1.0914        1.1544        .11452E-05    .67849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.93625
  Normalizat = 0.598193
  Prefactor  = 1.09135
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13551.92     FROM HESSE     STATUS=FAILED         9 CALLS      254 TOTAL
                     EDM=   .92E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.8301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .97561        2.0758        .30068E-05   -.42547    
   3  Normalizat    .59819        .93557       -.20705E-05   -1.0806    
   4  Prefactor     1.0914        1.1544        .11452E-05   -.89743    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.19548e-13
Minuit parameter uncertainties:
  1  5.12071e-06
  2  1.52861
  3  0.962191
  4  1.18255
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) = 13551.9178371
delta logL = 0.0

Extracting fit parameters...

4FGL J1807.9-6412
   Spectrum: PowerLaw
752    Prefactor:  0.000e+00  5.121e-06  0.000e+00  1.000e+06 ( 1.000e-13)
753        Index:  2.936e+00  1.529e+00  0.000e+00  1.000e+01 (-1.000e+00)
754        Scale:  1.207e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1099    Prefactor:  1.091e+00  1.183e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1100        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1101        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1070   Normalization:  5.982e-01  9.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 271.993 -64.209

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/58811250/cmap_HighResolution_753062401_753321601_4FGL_J1807.9-6412_daily_bin1982.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2024-11-15 00:56:26.154818', job_id='58811250', GAL2='1.09', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1731660986.15', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1982' AND source_name='4FGL J1807.9-6412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Nov 15 00:56:26 PST 2024

