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


Performing analysis on: 4FGL_J0739.8-6722_daily_bin1872
RA = 114.955, Dec = -67.3684
tmin = 724550401, tmax = 724809601
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='36684256', job_status='RUN', time_executed='2023-12-21 00:10:43.057768', time_epoch_executed='1703146243.06' WHERE source_name='4FGL J0739.8-6722' and cadence='daily' and bin_id='1872'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36684256

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36684256/ft1_4FGL_J0739.8-6722_daily_bin1872.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36684256/ft2_4FGL_J0739.8-6722_daily_bin1872.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36684256/ft1_4FGL_J0739.8-6722_daily_bin1872.fits outfile=/lscratch/kocevski/36684256/ft1_filteredMKT_4FGL_J0739.8-6722_daily_bin1872.fits ra=114.955 dec=-67.3684 rad=12.0 tmin=724550401.0 tmax=724809601.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.31
user 2.05
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36684256/ft2_4FGL_J0739.8-6722_daily_bin1872.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36684256/ft2_4FGL_J0739.8-6722_daily_bin1872.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/36684256/ft1_filteredMKT_4FGL_J0739.8-6722_daily_bin1872.fits evtable="EVENTS" outfile="/lscratch/kocevski/36684256/ft1_filtered_4FGL_J0739.8-6722_daily_bin1872.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.36
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 1145

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36684256/ft1_filtered_4FGL_J0739.8-6722_daily_bin1872.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36684256/ft2_4FGL_J0739.8-6722_daily_bin1872.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36684256/ltcube_724550401_724809601_4FGL_J0739.8-6722_daily_bin1872.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/36684256/ft2_4FGL_J0739.8-6722_daily_bin1872.fits
.....................!
real 11.03
user 10.62
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36684256/ft1_filtered_4FGL_J0739.8-6722_daily_bin1872.fits evtable="EVENTS" scfile=/lscratch/kocevski/36684256/ft2_4FGL_J0739.8-6722_daily_bin1872.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36684256/ltcube_724550401_724809601_4FGL_J0739.8-6722_daily_bin1872.fits outfile=/lscratch/kocevski/36684256/expmap_724550401_724809601_4FGL_J0739.8-6722_daily_bin1872.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/36684256/ltcube_724550401_724809601_4FGL_J0739.8-6722_daily_bin1872.fits
.....................!
real 74.82
user 70.16
sys 4.20

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-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 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 Westerlund 2 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Added 215 point sources and 6 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 J0739.8-6722 @ 114.955 -67.3684

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36684256/ft1_filtered_4FGL_J0739.8-6722_daily_bin1872.fits scfile=/lscratch/kocevski/36684256/ft2_4FGL_J0739.8-6722_daily_bin1872.fits outfile=/lscratch/kocevski/36684256/cmap_724550401_724809601_4FGL_J0739.8-6722_daily_bin1872.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=114.955 yref=-67.3684 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.38
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36684256/ft1_filtered_4FGL_J0739.8-6722_daily_bin1872.fits scfile=/lscratch/kocevski/36684256/ft2_4FGL_J0739.8-6722_daily_bin1872.fits outfile=/lscratch/kocevski/36684256/cmap_HighResolution_724550401_724809601_4FGL_J0739.8-6722_daily_bin1872.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=114.955 yref=-67.3684 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.38
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36684256/ft1_filtered_4FGL_J0739.8-6722_daily_bin1872.fits evtable="EVENTS" scfile=/lscratch/kocevski/36684256/ft2_4FGL_J0739.8-6722_daily_bin1872.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36684256/Model_4FGL_J0739.8-6722_daily_bin1872.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 J1036.3-5833
adding source GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source Westerlund 2
Working on...
/lscratch/kocevski/36684256/ft1_filtered_4FGL_J0739.8-6722_daily_bin1872.fits.....................!
real 2777.16
user 2765.32
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36684256/ft1_filtered_4FGL_J0739.8-6722_daily_bin1872.fits', '/lscratch/kocevski/36684256/ft2_4FGL_J0739.8-6722_daily_bin1872.fits', expMap='/lscratch/kocevski/36684256/expmap_724550401_724809601_4FGL_J0739.8-6722_daily_bin1872.fits', expCube='/lscratch/kocevski/36684256/ltcube_724550401_724809601_4FGL_J0739.8-6722_daily_bin1872.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36684256/Model_4FGL_J0739.8-6722_daily_bin1872.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0739.8-6722'

4FGL J0739.8-6722
   Spectrum: PowerLaw
342    Prefactor:  9.957e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
343        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
344        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36684256/ft1_filtered_4FGL_J0739.8-6722_daily_bin1872.fits
Spacecraft file(s): /lscratch/kocevski/36684256/ft2_4FGL_J0739.8-6722_daily_bin1872.fits
Exposure map: /lscratch/kocevski/36684256/expmap_724550401_724809601_4FGL_J0739.8-6722_daily_bin1872.fits
Exposure cube: /lscratch/kocevski/36684256/ltcube_724550401_724809601_4FGL_J0739.8-6722_daily_bin1872.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36684256/Model_4FGL_J0739.8-6722_daily_bin1872.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) = 11771.4273253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4238       1.0000          .0000       .10000E+07
     2 'Prefactor '    .67342E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .13786E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .26498E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .10547E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    .79244E-01   1.0000          .0000       .10000E+07
     7 'norm      '    3.4970       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15828E-02   1.0000          .0000       .10000E+07
     9 'norm      '    1.0479       1.0000          .0000       .10000E+07
    10 'Prefactor '    .62638E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.7470       1.0000          .0000       .10000E+07
    12 'Prefactor '    .29561E-04   1.0000          .0000       .10000E+07
    13 'norm      '    14.660       1.0000          .0000       .10000E+07
    14 'Prefactor '    .40279E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    21.938       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.3094       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91492       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11771.36     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     1329 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2947        9.5466       -.10174E-07   -.34227E-03
   2  Prefactor     .18319E-08    41.456       -.42810E-07** at limit **
   3  Prefactor     .55511E-10    13.821        .29662E-07** at limit **
   4  Prefactor     .55511E-10    11.932        .51899E-07** at limit **
   5  norm           .0000        1.6006       -.68537E-08** at limit **
   6  Prefactor     .20484E-07    360.03        .16421E-04** at limit **
   7  norm          3.4967        3.5731       -.29777E-06    .22798E-02
   8  Prefactor     .14654E-04    26.913       -.33355E-05** at limit **
   9  norm          1.0441        4.9429       -.50478E-06   -.29529E-02
  10  Prefactor      .0000        24.268       -.13500E-08** at limit **
  11  Prefactor     3.7497        6.6730       -.49940E-07   -.83029E-03
  12  Prefactor     .10270E-07    50.937       -.18742E-06** at limit **
  13  norm          14.910        15.113        .47566E-06   -.80016E-03
  14  Prefactor     .55511E-10    9.7481        .27011E-07** at limit **
  15  Prefactor     21.889        14.260       -.16072E-06   -.29586E-04
  16  Normalizat    1.3101        .22097       -.21007E-06   -.61850E-03
  17  Prefactor     .91474        .68578E-01    .31025E-06   -.11036E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 9.29475
  Prefactor  = 1.83187e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 2.04836e-08
  norm       = 3.49668
  Prefactor  = 1.46538e-05
  norm       = 1.04405
  Prefactor  = 0
  Prefactor  = 3.74967
  Prefactor  = 1.02696e-08
  norm       = 14.9099
  Prefactor  = 5.55112e-11
  Prefactor  = 21.889
  Normalizat = 1.31013
  Prefactor  = 0.914743
 **********
 **   18 **HESSE 
 **********

 FCN=   11771.36     FROM HESSE     STATUS=OK           237 CALLS     1566 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2947        9.5844        .13049E-04   -1.5647    
   2  Prefactor     .18319E-08    41.936        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    13.894        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    11.993        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.6043        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20484E-07    23.294        .12246E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.4967        3.5878        .10065E-03   -1.5671    
   8  Prefactor     .14654E-04    7.6521        .79335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0441        4.9813        .45811E-04   -1.5688    
  10  Prefactor      .0000        24.269        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7497        6.6649        .20854E-04   -1.5669    
  12  Prefactor     .10270E-07    50.936        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.910        15.120        .10453E-04   -1.5631    
  14  Prefactor     .55511E-10    9.7819        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.889        14.268        .85423E-05   -1.5614    
  16  Normalizat    1.3101        .25422        .39456E-03   -.83265    
  17  Prefactor     .91474        .78606E-01    .15331E-03   -.95628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28923e-09
Minuit parameter uncertainties:
  1  9.58441
  2  0.000552462
  3  6.24408e-05
  4  5.79254e-05
  5  5.12494e-06
  6  0.00138207
  7  3.58778
  8  0.0211785
  9  4.56101
  10  2.28395e-05
  11  6.66495
  12  0.00144558
  13  15.1201
  14  3.64047e-05
  15  14.2677
  16  0.254466
  17  0.078616
Done.

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

Extracting fit parameters...

4FGL J0739.8-6722
   Spectrum: PowerLaw
342    Prefactor:  0.000e+00  2.284e-05  0.000e+00  1.000e+06 ( 1.000e-14)
343        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
344        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  9.147e-01  7.862e-02  0.000e+00  1.000e+01 ( 1.000e+00)
722        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
723        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
716   Normalization:  1.310e+00  2.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 114.955 -67.368
Photon Flux Upper Limit: 6.29301488871e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.004816419126 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36684256/likelihoodResults_724550401_724809601_4FGL_J0739.8-6722_daily_bin1872.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) = 11771.3787155
delta logL = -0.0196733657685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11771.3590423
delta logL = -2.17447450268e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   11771.36     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      217 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.645        .42118E-03** at limit **
   2  Index         2.6551        1.5307        .25766E-04     .0000    
   3  Normalizat    1.3101        1.0773       -.34486E-06   -.27061E-04
   4  Prefactor     .91474        1.2589        .16836E-05   -.11284E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.65514
  Normalizat = 1.31013
  Prefactor  = 0.914743
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11771.36     FROM HESSE     STATUS=FAILED         9 CALLS      226 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .79771        2.0028        .25766E-04   -.48813    
   3  Normalizat    1.3101        1.0773       -.34486E-06   -.83264    
   4  Prefactor     .91474        1.2589        .16836E-05   -.95628    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.08742e-12
Minuit parameter uncertainties:
  1  6.35869e-06
  2  1.56315
  3  1.09662
  4  1.30282
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) = 11771.3590421
delta logL = 2.8194335755e-10

Extracting fit parameters...

4FGL J0739.8-6722
   Spectrum: PowerLaw
342    Prefactor:  0.000e+00  6.359e-06  0.000e+00  1.000e+06 ( 1.000e-14)
343        Index:  2.655e+00  1.563e+00  0.000e+00  1.000e+01 (-1.000e+00)
344        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  9.147e-01  1.303e+00  0.000e+00  1.000e+01 ( 1.000e+00)
722        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
723        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
716   Normalization:  1.310e+00  1.097e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 114.955 -67.368

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/36684256/cmap_HighResolution_724550401_724809601_4FGL_J0739.8-6722_daily_bin1872.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2023-12-21 01:03:35.425621', job_id='36684256', GAL2='0.91', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1703149415.43', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.82e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1872' AND source_name='4FGL J0739.8-6722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 21 01:03:35 PST 2023

