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


Performing analysis on: 4FGL_J0739.8-6722_weekly_bin808
RA = 114.955, Dec = -67.3684
tmin = 727660801, tmax = 728265601
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='38943691', job_status='RUN', time_executed='2024-01-30 00:16:08.215637', time_epoch_executed='1706602568.22' WHERE source_name='4FGL J0739.8-6722' and cadence='weekly' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38943691

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38943691/ft1_4FGL_J0739.8-6722_weekly_bin808.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38943691/ft2_4FGL_J0739.8-6722_weekly_bin808.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38943691/ft1_4FGL_J0739.8-6722_weekly_bin808.fits outfile=/lscratch/kocevski/38943691/ft1_filteredMKT_4FGL_J0739.8-6722_weekly_bin808.fits ra=114.955 dec=-67.3684 rad=12.0 tmin=727660801.0 tmax=728265601.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 7.44
user 5.37
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38943691/ft2_4FGL_J0739.8-6722_weekly_bin808.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/38943691/ft1_filteredMKT_4FGL_J0739.8-6722_weekly_bin808.fits evtable="EVENTS" outfile="/lscratch/kocevski/38943691/ft1_filtered_4FGL_J0739.8-6722_weekly_bin808.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 1.87
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 2596

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38943691/ft1_filtered_4FGL_J0739.8-6722_weekly_bin808.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38943691/ft2_4FGL_J0739.8-6722_weekly_bin808.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38943691/ltcube_727660801_728265601_4FGL_J0739.8-6722_weekly_bin808.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/38943691/ft2_4FGL_J0739.8-6722_weekly_bin808.fits
.....................!
real 25.61
user 25.05
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38943691/ft1_filtered_4FGL_J0739.8-6722_weekly_bin808.fits evtable="EVENTS" scfile=/lscratch/kocevski/38943691/ft2_4FGL_J0739.8-6722_weekly_bin808.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38943691/ltcube_727660801_728265601_4FGL_J0739.8-6722_weekly_bin808.fits outfile=/lscratch/kocevski/38943691/expmap_727660801_728265601_4FGL_J0739.8-6722_weekly_bin808.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/38943691/ltcube_727660801_728265601_4FGL_J0739.8-6722_weekly_bin808.fits
.....................!
real 75.10
user 70.47
sys 4.23

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/38943691/ft1_filtered_4FGL_J0739.8-6722_weekly_bin808.fits scfile=/lscratch/kocevski/38943691/ft2_4FGL_J0739.8-6722_weekly_bin808.fits outfile=/lscratch/kocevski/38943691/cmap_727660801_728265601_4FGL_J0739.8-6722_weekly_bin808.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.41
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38943691/ft1_filtered_4FGL_J0739.8-6722_weekly_bin808.fits scfile=/lscratch/kocevski/38943691/ft2_4FGL_J0739.8-6722_weekly_bin808.fits outfile=/lscratch/kocevski/38943691/cmap_HighResolution_727660801_728265601_4FGL_J0739.8-6722_weekly_bin808.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.42
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38943691/ft1_filtered_4FGL_J0739.8-6722_weekly_bin808.fits evtable="EVENTS" scfile=/lscratch/kocevski/38943691/ft2_4FGL_J0739.8-6722_weekly_bin808.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38943691/Model_4FGL_J0739.8-6722_weekly_bin808.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/38943691/ft1_filtered_4FGL_J0739.8-6722_weekly_bin808.fits.....................!
real 6046.60
user 6009.27
sys 7.48

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38943691/ft1_filtered_4FGL_J0739.8-6722_weekly_bin808.fits', '/lscratch/kocevski/38943691/ft2_4FGL_J0739.8-6722_weekly_bin808.fits', expMap='/lscratch/kocevski/38943691/expmap_727660801_728265601_4FGL_J0739.8-6722_weekly_bin808.fits', expCube='/lscratch/kocevski/38943691/ltcube_727660801_728265601_4FGL_J0739.8-6722_weekly_bin808.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38943691/Model_4FGL_J0739.8-6722_weekly_bin808.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/38943691/ft1_filtered_4FGL_J0739.8-6722_weekly_bin808.fits
Spacecraft file(s): /lscratch/kocevski/38943691/ft2_4FGL_J0739.8-6722_weekly_bin808.fits
Exposure map: /lscratch/kocevski/38943691/expmap_727660801_728265601_4FGL_J0739.8-6722_weekly_bin808.fits
Exposure cube: /lscratch/kocevski/38943691/ltcube_727660801_728265601_4FGL_J0739.8-6722_weekly_bin808.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38943691/Model_4FGL_J0739.8-6722_weekly_bin808.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) = 26566.6086708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6031       1.0000          .0000       .10000E+07
     2 'Prefactor '    .39413E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.0653       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.6481       1.0000          .0000       .10000E+07
     5 'norm      '    .38858E-09   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17229       1.0000          .0000       .10000E+07
     7 'norm      '    .56592       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.7989       1.0000          .0000       .10000E+07
     9 'norm      '    .44409E-09   1.0000          .0000       .10000E+07
    10 'Prefactor '    .13637E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .26645E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    .13975E-04   1.0000          .0000       .10000E+07
    13 'norm      '    8.9281       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.3240       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.3697       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.4368       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .80198       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26565.90     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      970 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6103        4.0970       -.98603E-07   -.79199E-03
   2  Prefactor     .55511E-10    1.6214        .32222E-06** at limit **
   3  Prefactor     4.0597        1.9176       -.23588E-06   -.13185E-01
   4  Prefactor     7.6588        5.2593       -.65326E-08   -.27460E-02
   5  norm           .0000        .51954        .14145E-07** at limit **
   6  Prefactor     .66790        81.786        .35240E-05   -.49145E-03
   7  norm          .56595        1.3465        .27403E-06   -.22422E-03
   8  Prefactor     3.8182        5.0325       -.17276E-06   -.75956E-02
   9  norm           .0000        .73721        .42303E-06** at limit **
  10  Prefactor      .0000        29.429        .16131E-06** at limit **
  11  Prefactor      .0000        2.1301        .50787E-06** at limit **
  12  Prefactor      .0000        8.7684        .27229E-06** at limit **
  13  norm          8.9109        6.2229        .81305E-06   -.71542E-02
  14  Prefactor     7.3232        2.0711        .98161E-07    .24093E-01
  15  Prefactor     5.3842        7.8843        .55450E-06   -.53381E-03
  16  Normalizat    1.4359        .15578        .41711E-05   -.34074E-04
  17  Prefactor     .80207        .48872E-01   -.28793E-05   -.80951E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.61032
  Prefactor  = 5.55112e-11
  Prefactor  = 4.05971
  Prefactor  = 7.65877
  norm       = 0
  Prefactor  = 0.667898
  norm       = 0.565949
  Prefactor  = 3.81815
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 8.91091
  Prefactor  = 7.32324
  Prefactor  = 5.38418
  Normalizat = 1.43587
  Prefactor  = 0.802071
 **********
 **   18 **HESSE 
 **********

 FCN=   26565.90     FROM HESSE     STATUS=OK           265 CALLS     1235 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6103        4.1128        .46891E-03   -1.5665    
   2  Prefactor     .55511E-10    1.6280        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.0597        6.1501        .49982E-03   -1.5668    
   4  Prefactor     7.6588        5.2982        .36238E-03   -1.5653    
   5  norm           .0000        .52122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66790        6.5190        .14779E-01   -1.5692    
   7  norm          .56595        1.3645        .72338E-03   -1.5693    
   8  Prefactor     3.8182        5.3122        .51765E-03   -1.5669    
   9  norm           .0000        .73936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        29.440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.1277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        8.7801        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.9109        6.4093        .33520E-03   -1.5648    
  14  Prefactor     7.3232        5.3546        .37038E-03   -1.5654    
  15  Prefactor     5.3842        7.8950        .43345E-03   -1.5662    
  16  Normalizat    1.4359        .13589        .81169E-01   -.79597    
  17  Prefactor     .80207        .41912E-01    .43743E-01   -.99652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73377e-07
Minuit parameter uncertainties:
  1  4.11282
  2  1.35359e-05
  3  6.15013
  4  5.29817
  5  2.42457e-06
  6  4.17327
  7  1.36447
  8  5.31222
  9  4.70504e-06
  10  3.21584e-05
  11  3.39426e-06
  12  2.69207e-05
  13  6.40926
  14  5.35461
  15  7.895
  16  0.135924
  17  0.0419141
Done.

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

Extracting fit parameters...

4FGL J0739.8-6722
   Spectrum: PowerLaw
342    Prefactor:  0.000e+00  3.216e-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:  8.021e-01  4.191e-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.436e+00  1.359e-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: 3.88658237978e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00297463299226 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38943691/likelihoodResults_727660801_728265601_4FGL_J0739.8-6722_weekly_bin808.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) = 26565.9203803
delta logL = -0.0164647146521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26564.8480482
delta logL = 1.05586731136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63001E-04   1.0000          .0000       .10000E+07
     2 'Index     '    7.7366       1.0000          .0000       10.000    
     3 'Normalizat'    1.3734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81434       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=   26565.90     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      347 TOTAL
                     EDM=   .44E-15  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.3814        .42118E-03** at limit **
   2  Index         .68651        .61248       -.28242E-07     .0000    
   3  Normalizat    1.4359        1.0861       -.44912E-06   -.31951E-06
   4  Prefactor     .80207        1.1545        .77689E-07   -.12426E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.686506
  Normalizat = 1.43587
  Prefactor  = 0.802071
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26565.90     FROM HESSE     STATUS=FAILED         9 CALLS      356 TOTAL
                     EDM=   .44E-15  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.3814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4698        1.6549       -.28242E-07   -2848.4    
   3  Normalizat    1.4359        1.0861       -.44912E-06    10.221    
   4  Prefactor     .80207        1.1545        .77689E-07   -8.4283    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.40721e-16
Minuit parameter uncertainties:
  1  8.42078e-09
  2  0.618629
  3  1.10444
  4  1.19248
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) = 26565.9039155
delta logL = 0.0

Extracting fit parameters...

4FGL J0739.8-6722
   Spectrum: PowerLaw
342    Prefactor:  0.000e+00  8.421e-09  0.000e+00  1.000e+06 ( 1.000e-14)
343        Index:  6.865e-01  6.186e-01  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:  8.021e-01  1.192e+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.436e+00  1.104e+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/38943691/cmap_HighResolution_727660801_728265601_4FGL_J0739.8-6722_weekly_bin808.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-03', job_status='DONE', photon_flux_upper_limit='3.89e-08', time_completed='2024-01-30 02:08:15.660301', job_id='38943691', GAL2='0.80', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1706609295.66', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='808' AND source_name='4FGL J0739.8-6722' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 30 02:08:15 PST 2024

