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


Performing analysis on: 4FGL_J0720.0-6237_daily_bin1826
RA = 110.018, Dec = -62.6173
tmin = 712627201, tmax = 712886401
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='28585683', job_status='RUN', time_executed='2023-09-19 13:35:46.309449', time_epoch_executed='1695155746.31' WHERE source_name='4FGL J0720.0-6237' and cadence='daily' and bin_id='1826'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28585683

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28585683/ft1_4FGL_J0720.0-6237_daily_bin1826.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28585683/ft2_4FGL_J0720.0-6237_daily_bin1826.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28585683/ft1_4FGL_J0720.0-6237_daily_bin1826.fits outfile=/lscratch/kocevski/28585683/ft1_filteredMKT_4FGL_J0720.0-6237_daily_bin1826.fits ra=110.018 dec=-62.6173 rad=12.0 tmin=712627201.0 tmax=712886401.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.08
user 1.59
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28585683/ft2_4FGL_J0720.0-6237_daily_bin1826.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28585683/ft2_4FGL_J0720.0-6237_daily_bin1826.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/28585683/ft1_filteredMKT_4FGL_J0720.0-6237_daily_bin1826.fits evtable="EVENTS" outfile="/lscratch/kocevski/28585683/ft1_filtered_4FGL_J0720.0-6237_daily_bin1826.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.52
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1635

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28585683/ft1_filtered_4FGL_J0720.0-6237_daily_bin1826.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28585683/ft2_4FGL_J0720.0-6237_daily_bin1826.fits sctable="SC_DATA" outfile=/lscratch/kocevski/28585683/ltcube_712627201_712886401_4FGL_J0720.0-6237_daily_bin1826.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/28585683/ft2_4FGL_J0720.0-6237_daily_bin1826.fits
.....................!
real 9.94
user 9.51
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28585683/ft1_filtered_4FGL_J0720.0-6237_daily_bin1826.fits evtable="EVENTS" scfile=/lscratch/kocevski/28585683/ft2_4FGL_J0720.0-6237_daily_bin1826.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28585683/ltcube_712627201_712886401_4FGL_J0720.0-6237_daily_bin1826.fits outfile=/lscratch/kocevski/28585683/expmap_712627201_712886401_4FGL_J0720.0-6237_daily_bin1826.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/28585683/ltcube_712627201_712886401_4FGL_J0720.0-6237_daily_bin1826.fits
.....................!
real 64.56
user 60.63
sys 3.44

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 LMC-30DorWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-North.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source Puppis A in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Extended source Vela Junior in ROI with RadialDisk spatial model.
Added 218 point sources and 7 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 J0720.0-6237 @ 110.018 -62.6173

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28585683/ft1_filtered_4FGL_J0720.0-6237_daily_bin1826.fits scfile=/lscratch/kocevski/28585683/ft2_4FGL_J0720.0-6237_daily_bin1826.fits outfile=/lscratch/kocevski/28585683/cmap_712627201_712886401_4FGL_J0720.0-6237_daily_bin1826.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=110.018 yref=-62.6173 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.52
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28585683/ft1_filtered_4FGL_J0720.0-6237_daily_bin1826.fits scfile=/lscratch/kocevski/28585683/ft2_4FGL_J0720.0-6237_daily_bin1826.fits outfile=/lscratch/kocevski/28585683/cmap_HighResolution_712627201_712886401_4FGL_J0720.0-6237_daily_bin1826.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=110.018 yref=-62.6173 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.39
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28585683/ft1_filtered_4FGL_J0720.0-6237_daily_bin1826.fits evtable="EVENTS" scfile=/lscratch/kocevski/28585683/ft2_4FGL_J0720.0-6237_daily_bin1826.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28585683/Model_4FGL_J0720.0-6237_daily_bin1826.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 LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source Puppis A
adding source Vela Junior
adding source Vela X
Working on...
/lscratch/kocevski/28585683/ft1_filtered_4FGL_J0720.0-6237_daily_bin1826.fits.....................!
real 3298.06
user 3275.35
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28585683/ft1_filtered_4FGL_J0720.0-6237_daily_bin1826.fits', '/lscratch/kocevski/28585683/ft2_4FGL_J0720.0-6237_daily_bin1826.fits', expMap='/lscratch/kocevski/28585683/expmap_712627201_712886401_4FGL_J0720.0-6237_daily_bin1826.fits', expCube='/lscratch/kocevski/28585683/ltcube_712627201_712886401_4FGL_J0720.0-6237_daily_bin1826.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28585683/Model_4FGL_J0720.0-6237_daily_bin1826.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0720.0-6237'

4FGL J0720.0-6237
   Spectrum: PowerLaw
349    Prefactor:  2.270e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
350        Index:  3.129e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  2.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28585683/ft1_filtered_4FGL_J0720.0-6237_daily_bin1826.fits
Spacecraft file(s): /lscratch/kocevski/28585683/ft2_4FGL_J0720.0-6237_daily_bin1826.fits
Exposure map: /lscratch/kocevski/28585683/expmap_712627201_712886401_4FGL_J0720.0-6237_daily_bin1826.fits
Exposure cube: /lscratch/kocevski/28585683/ltcube_712627201_712886401_4FGL_J0720.0-6237_daily_bin1826.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28585683/Model_4FGL_J0720.0-6237_daily_bin1826.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) = 16783.1864013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1561       1.0000          .0000       .10000E+07
     2 'Prefactor '    .65818E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    20.527       1.0000          .0000       .10000E+07
     4 'Prefactor '    .32656E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.9682       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.9183       1.0000          .0000       .10000E+07
     7 'Prefactor '    160.00       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.2950       1.0000          .0000       .10000E+07
     9 'norm      '    .12246E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    13.713       1.0000          .0000       .10000E+07
    11 'norm      '    .60407E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .14422E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .30495E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .64803       1.0000          .0000       .10000E+07
    15 'Prefactor '    126.10       1.0000          .0000       .10000E+07
    16 'norm      '    .13582E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.3703       1.0000          .0000       .10000E+07
    18 'norm      '    .15150E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .12571E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.2100       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0302       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16783.18     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1710 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1572        6.4087        .33290E-07   -.10493E-03
   2  Prefactor     .83267E-08    4.2341       -.62271E-07** at limit **
   3  Prefactor     20.551        2.8342       -.28896E-07    .12120    
   4  Prefactor     .27756E-09    2.9155       -.10169E-06** at limit **
   5  Prefactor     3.9860        6.6739       -.78896E-08   -.10639E-01
   6  Prefactor     4.9171        7.5766       -.11532E-06   -.16655E-01
   7  Prefactor     161.12        72.082        .16500E-07    .22159    
   8  Prefactor     3.2686        13.751       -.49192E-06   -.10596E-01
   9  norm           .0000        .80897       -.13753E-07** at limit **
  10  Prefactor     13.737        1.9955        .29293E-07   -.80017E-01
  11  norm           .0000        1.3923        .40351E-07** at limit **
  12  Prefactor      .0000        2.8240       -.10754E-06** at limit **
  13  Prefactor     .66613E-09    12.453        .38976E-06** at limit **
  14  Prefactor     .16653E-09    124.67        .63327E-07** at limit **
  15  Prefactor     123.83        143.31       -.43733E-07    .99558E-01
  16  norm           .0000        3.3914       -.10878E-06** at limit **
  17  Prefactor     1.3677        5.9149        .97813E-07    .19048E-03
  18  norm          .99920E-09    5.6294       -.11935E-06** at limit **
  19  Prefactor     .55511E-08    4.1959        .14030E-06** at limit **
  20  Normalizat    1.2101        .19899        .20312E-05   -.50713E-04
  21  Prefactor     1.0302        .69073E-01   -.97096E-06   -.31578E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.15717
  Prefactor  = 8.32667e-09
  Prefactor  = 20.5507
  Prefactor  = 2.77556e-10
  Prefactor  = 3.98602
  Prefactor  = 4.9171
  Prefactor  = 161.123
  Prefactor  = 3.26864
  norm       = 0
  Prefactor  = 13.7371
  norm       = 0
  Prefactor  = 0
  Prefactor  = 6.66134e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 123.833
  norm       = 0
  Prefactor  = 1.36767
  norm       = 9.99201e-10
  Prefactor  = 5.55112e-09
  Normalizat = 1.2101
  Prefactor  = 1.03023
 **********
 **   18 **HESSE 
 **********

 FCN=   16783.18     FROM HESSE     STATUS=OK           353 CALLS     2063 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1572        6.4143        .35082E-03   -1.5651    
   2  Prefactor     .83267E-08    4.2849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.551        11.371        .22079E-03   -1.5617    
   4  Prefactor     .27756E-09    2.9146        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9860        6.9747        .50610E-03   -1.5668    
   6  Prefactor     4.9171        7.6179        .45329E-03   -1.5664    
   7  Prefactor     161.12        135.10        .79064E-04   -1.5454    
   8  Prefactor     3.2686        14.969        .55751E-03   -1.5672    
   9  norm           .0000        .80778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.737        12.527        .27022E-03   -1.5634    
  11  norm           .0000        1.3847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.8183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .66613E-09    12.340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16653E-09    124.34        .65031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     123.83        170.20        .89058E-04   -1.5485    
  16  norm           .0000        3.3788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.3677        5.8865        .93105E-03   -1.5685    
  18  norm          .99920E-09    5.6225        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-08    4.2235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2101        .17665        .92735E-01   -.86291    
  21  Prefactor     1.0302        .60659E-01    .41240E-01   -.91729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18067e-06
Minuit parameter uncertainties:
  1  6.41433
  2  0.000377741
  3  11.3711
  4  5.44835e-05
  5  6.97472
  6  7.61791
  7  135.103
  8  13.99
  9  1.11952e-06
  10  12.5267
  11  5.32145e-06
  12  9.10862e-06
  13  0.000183923
  14  0.000293416
  15  170.211
  16  1.44324e-05
  17  5.67481
  18  0.000148421
  19  0.000306579
  20  0.176739
  21  0.0606635
Done.

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

Extracting fit parameters...

4FGL J0720.0-6237
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  9.109e-06  0.000e+00  1.000e+06 ( 1.000e-11)
350        Index:  3.129e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  2.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
717    Prefactor:  1.030e+00  6.066e-02  0.000e+00  1.000e+01 ( 1.000e+00)
718        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
719        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
716   Normalization:  1.210e+00  1.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 110.018 -62.617
Photon Flux Upper Limit: 6.49363430567e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00522749286077 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28585683/likelihoodResults_712627201_712886401_4FGL_J0720.0-6237_daily_bin1826.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) = 16783.3593459
delta logL = -0.175682320514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16783.1836637
delta logL = -1.45089870784e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10314E-06   1.0000          .0000       .10000E+07
     2 'Index     '    3.0411       1.0000          .0000       10.000    
     3 'Normalizat'    1.2102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0302       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   16783.18     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      229 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.7895        .42118E-03** at limit **
   2  Index         3.2419        1.0221       -.37487E-05     .0000    
   3  Normalizat    1.2101        1.1029       -.14497E-05   -.12118E-03
   4  Prefactor     1.0302        1.2185       -.44701E-05   -.41690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.24187
  Normalizat = 1.2101
  Prefactor  = 1.03023
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16783.18     FROM HESSE     STATUS=FAILED         9 CALLS      238 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.7895        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1806        2.1037       -.37487E-05   -.35931    
   3  Normalizat    1.2101        1.1029       -.14497E-05   -.86291    
   4  Prefactor     1.0302        1.2185       -.44701E-05   -.91729    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.14171e-11
Minuit parameter uncertainties:
  1  7.69023e-06
  2  1.03043
  3  1.12526
  4  1.25371
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) = 16783.1836636
delta logL = 0.0

Extracting fit parameters...

4FGL J0720.0-6237
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  7.690e-06  0.000e+00  1.000e+06 ( 1.000e-11)
350        Index:  3.242e+00  1.030e+00  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  2.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
717    Prefactor:  1.030e+00  1.254e+00  0.000e+00  1.000e+01 ( 1.000e+00)
718        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
719        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
716   Normalization:  1.210e+00  1.125e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 110.018 -62.617

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/28585683/cmap_HighResolution_712627201_712886401_4FGL_J0720.0-6237_daily_bin1826.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', job_status='DONE', photon_flux_upper_limit='6.49e-08', time_completed='2023-09-19 14:39:38.979903', job_id='28585683', GAL2='1.03', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1695159578.98', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='3.13' WHERE bin_id='1826' AND source_name='4FGL J0720.0-6237' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 19 14:39:39 PDT 2023

