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


Performing analysis on: 4FGL_J0720.0-6237_daily_bin1869
RA = 110.018, Dec = -62.6173
tmin = 723772801, tmax = 724032001
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='35826194', job_status='RUN', time_executed='2023-12-12 00:11:38.086887', time_epoch_executed='1702368698.09' WHERE source_name='4FGL J0720.0-6237' and cadence='daily' and bin_id='1869'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35826194

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35826194/ft1_4FGL_J0720.0-6237_daily_bin1869.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35826194/ft2_4FGL_J0720.0-6237_daily_bin1869.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35826194/ft1_4FGL_J0720.0-6237_daily_bin1869.fits outfile=/lscratch/kocevski/35826194/ft1_filteredMKT_4FGL_J0720.0-6237_daily_bin1869.fits ra=110.018 dec=-62.6173 rad=12.0 tmin=723772801.0 tmax=724032001.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 3.03
user 2.67
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/35826194/ft2_4FGL_J0720.0-6237_daily_bin1869.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/35826194/ft1_filteredMKT_4FGL_J0720.0-6237_daily_bin1869.fits evtable="EVENTS" outfile="/lscratch/kocevski/35826194/ft1_filtered_4FGL_J0720.0-6237_daily_bin1869.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.43
user 0.21
sys 0.15

Number of photons that the gtmktime cut: 1245

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/35826194/ft1_filtered_4FGL_J0720.0-6237_daily_bin1869.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35826194/ft2_4FGL_J0720.0-6237_daily_bin1869.fits sctable="SC_DATA" outfile=/lscratch/kocevski/35826194/ltcube_723772801_724032001_4FGL_J0720.0-6237_daily_bin1869.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/35826194/ft2_4FGL_J0720.0-6237_daily_bin1869.fits
.....................!
real 12.42
user 12.02
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35826194/ft1_filtered_4FGL_J0720.0-6237_daily_bin1869.fits evtable="EVENTS" scfile=/lscratch/kocevski/35826194/ft2_4FGL_J0720.0-6237_daily_bin1869.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35826194/ltcube_723772801_724032001_4FGL_J0720.0-6237_daily_bin1869.fits outfile=/lscratch/kocevski/35826194/expmap_723772801_724032001_4FGL_J0720.0-6237_daily_bin1869.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/35826194/ltcube_723772801_724032001_4FGL_J0720.0-6237_daily_bin1869.fits
.....................!
real 63.63
user 60.04
sys 3.15

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/35826194/ft1_filtered_4FGL_J0720.0-6237_daily_bin1869.fits scfile=/lscratch/kocevski/35826194/ft2_4FGL_J0720.0-6237_daily_bin1869.fits outfile=/lscratch/kocevski/35826194/cmap_723772801_724032001_4FGL_J0720.0-6237_daily_bin1869.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.40
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35826194/ft1_filtered_4FGL_J0720.0-6237_daily_bin1869.fits scfile=/lscratch/kocevski/35826194/ft2_4FGL_J0720.0-6237_daily_bin1869.fits outfile=/lscratch/kocevski/35826194/cmap_HighResolution_723772801_724032001_4FGL_J0720.0-6237_daily_bin1869.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.46
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/35826194/ft1_filtered_4FGL_J0720.0-6237_daily_bin1869.fits evtable="EVENTS" scfile=/lscratch/kocevski/35826194/ft2_4FGL_J0720.0-6237_daily_bin1869.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35826194/Model_4FGL_J0720.0-6237_daily_bin1869.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/35826194/ft1_filtered_4FGL_J0720.0-6237_daily_bin1869.fits.....................!
real 2366.98
user 2355.32
sys 0.78

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35826194/ft1_filtered_4FGL_J0720.0-6237_daily_bin1869.fits', '/lscratch/kocevski/35826194/ft2_4FGL_J0720.0-6237_daily_bin1869.fits', expMap='/lscratch/kocevski/35826194/expmap_723772801_724032001_4FGL_J0720.0-6237_daily_bin1869.fits', expCube='/lscratch/kocevski/35826194/ltcube_723772801_724032001_4FGL_J0720.0-6237_daily_bin1869.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35826194/Model_4FGL_J0720.0-6237_daily_bin1869.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/35826194/ft1_filtered_4FGL_J0720.0-6237_daily_bin1869.fits
Spacecraft file(s): /lscratch/kocevski/35826194/ft2_4FGL_J0720.0-6237_daily_bin1869.fits
Exposure map: /lscratch/kocevski/35826194/expmap_723772801_724032001_4FGL_J0720.0-6237_daily_bin1869.fits
Exposure cube: /lscratch/kocevski/35826194/ltcube_723772801_724032001_4FGL_J0720.0-6237_daily_bin1869.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35826194/Model_4FGL_J0720.0-6237_daily_bin1869.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) = 12769.4773412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31814E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11440E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15472E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .15619E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .23839E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .62288E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    12.370       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.2546       1.0000          .0000       .10000E+07
     9 'norm      '    .90452       1.0000          .0000       .10000E+07
    10 'Prefactor '    .47440E-02   1.0000          .0000       .10000E+07
    11 'norm      '    2.1760       1.0000          .0000       .10000E+07
    12 'Prefactor '    .68516E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.8933       1.0000          .0000       .10000E+07
    14 'Prefactor '    37.826       1.0000          .0000       .10000E+07
    15 'Prefactor '    .19714E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .14611E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .27343E-04   1.0000          .0000       .10000E+07
    18 'norm      '    5.3568       1.0000          .0000       .10000E+07
    19 'Prefactor '    14.466       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0100       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95634       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=   12769.40     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     1346 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        9.5081       -.11076E-06** at limit **
   2  Prefactor     .30531E-08    21.722       -.40805E-06** at limit **
   3  Prefactor      .0000        6.0720        .40741E-08** at limit **
   4  Prefactor      .0000        11.418        .91271E-07** at limit **
   5  Prefactor      .0000        5.1974       -.19066E-07** at limit **
   6  Prefactor      .0000        3.7593        .15593E-07** at limit **
   7  Prefactor     7.7031        325.65       -.53801E-05    .59045E-02
   8  Prefactor     4.3173        10.188        .24517E-06   -.13667E-02
   9  norm          .88969        1.6791       -.58480E-08    .97095E-04
  10  Prefactor     .40723E-04    77.637       -.18688E-06** at limit **
  11  norm          2.1755        1.9437       -.10729E-07   -.31744E-03
  12  Prefactor      .0000        4.6255        .92534E-07** at limit **
  13  Prefactor     6.8601        4.7870        .64215E-08    .22378E-03
  14  Prefactor     40.394        19.745       -.92316E-08   -.24903    
  15  Prefactor     .25560E-04    107.91       -.10670E-05** at limit **
  16  norm           .0000        1.2247        .26049E-09** at limit **
  17  Prefactor      .0000        1.6777        .13227E-07** at limit **
  18  norm          5.3715        4.3823       -.13460E-07   -.58944E-03
  19  Prefactor     14.445        12.115        .57288E-07   -.11151E-02
  20  Normalizat    1.0101        .19809        .11232E-05    .87529E-04
  21  Prefactor     .95628        .72506E-01    .66565E-07    .22538E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 3.05311e-09
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.70309
  Prefactor  = 4.31729
  norm       = 0.889686
  Prefactor  = 4.07231e-05
  norm       = 2.17553
  Prefactor  = 0
  Prefactor  = 6.86014
  Prefactor  = 40.3943
  Prefactor  = 2.55604e-05
  norm       = 0
  Prefactor  = 0
  norm       = 5.37151
  Prefactor  = 14.4452
  Normalizat = 1.01006
  Prefactor  = 0.956283
 **********
 **   18 **HESSE 
 **********

 FCN=   12769.40     FROM HESSE     STATUS=OK           355 CALLS     1701 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        9.3093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .30531E-08    21.697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        6.0990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        11.391        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        5.2066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        3.7692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.7031        330.81        .28456E-03   -1.5652    
   8  Prefactor     4.3173        10.303        .48824E-03   -1.5666    
   9  norm          .88969        1.6952        .45448E-03   -1.5689    
  10  Prefactor     .40723E-04    87.692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1755        1.9470        .69769E-03   -1.5678    
  12  Prefactor      .0000        4.6192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.8601        4.7846        .38189E-03   -1.5656    
  14  Prefactor     40.394        46.687        .16261E-03   -1.5581    
  15  Prefactor     .25560E-04    115.15        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        1.2213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        1.6790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.3715        4.3758        .43397E-03   -1.5662    
  19  Prefactor     14.445        12.097        .26308E-03   -1.5632    
  20  Normalizat    1.0101        .17836        .89790E-01   -.92694    
  21  Prefactor     .95628        .64718E-01    .33333E-01   -.94201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07323e-06
Minuit parameter uncertainties:
  1  2.68164e-05
  2  0.00051375
  3  1.03142e-05
  4  2.30855e-05
  5  1.09463e-05
  6  1.69674e-07
  7  100.967
  8  10.3026
  9  1.6952
  10  0.119519
  11  1.94699
  12  1.33504e-05
  13  4.78464
  14  46.6873
  15  0.108505
  16  2.75819e-07
  17  1.19097e-06
  18  4.37579
  19  12.0974
  20  0.178466
  21  0.0647233
Done.

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

Extracting fit parameters...

4FGL J0720.0-6237
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  1.335e-05  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:  9.563e-01  6.472e-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.010e+00  1.785e-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: 7.78161018935e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00626433670195 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35826194/likelihoodResults_723772801_724032001_4FGL_J0720.0-6237_daily_bin1869.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) = 12769.3976299
delta logL = -0.000156905085532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12769.3974744
delta logL = -1.43112083606e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42022E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.6307       1.0000          .0000       10.000    
     3 'Normalizat'    1.0098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95639       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=   12769.40     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      306 TOTAL
                     EDM=   .70E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.8803        .42118E-03** at limit **
   2  Index         4.6784        1.4015        .13695E-04     .0000    
   3  Normalizat    1.0101        1.3389        .24070E-05   -.20867E-04
   4  Prefactor     .95628        1.2982       -.31949E-06   -.26254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.6784
  Normalizat = 1.01006
  Prefactor  = 0.956283
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12769.40     FROM HESSE     STATUS=FAILED         9 CALLS      315 TOTAL
                     EDM=   .70E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.8803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2835        2.4079        .13695E-04   -.64365E-01
   3  Normalizat    1.0101        1.3389        .24070E-05   -.92694    
   4  Prefactor     .95628        1.2982       -.31949E-06   -.94201    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.98583e-13
Minuit parameter uncertainties:
  1  1.71247e-06
  2  1.42061
  3  1.38794
  4  1.34453
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) = 12769.397473
delta logL = 5.45696821064e-12

Extracting fit parameters...

4FGL J0720.0-6237
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  1.712e-06  0.000e+00  1.000e+06 ( 1.000e-11)
350        Index:  4.678e+00  1.421e+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:  9.563e-01  1.345e+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.010e+00  1.388e+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/35826194/cmap_HighResolution_723772801_724032001_4FGL_J0720.0-6237_daily_bin1869.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', job_status='DONE', photon_flux_upper_limit='7.78e-08', time_completed='2023-12-12 00:58:04.732227', job_id='35826194', GAL2='0.96', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1702371484.73', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.46e-12', ts2='0.00', photon_index_error='0.00', photon_index='3.13' WHERE bin_id='1869' AND source_name='4FGL J0720.0-6237' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 12 00:58:04 PST 2023

