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


Performing analysis on: 4FGL_J0739.8-6722_weekly_bin804
RA = 114.955, Dec = -67.3684
tmin = 725241601, tmax = 725846401
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='37097431', job_status='RUN', time_executed='2024-01-02 01:30:55.307316', time_epoch_executed='1704187855.31' WHERE source_name='4FGL J0739.8-6722' and cadence='weekly' and bin_id='804'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37097431

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37097431/ft1_4FGL_J0739.8-6722_weekly_bin804.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37097431/ft2_4FGL_J0739.8-6722_weekly_bin804.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37097431/ft1_4FGL_J0739.8-6722_weekly_bin804.fits outfile=/lscratch/kocevski/37097431/ft1_filteredMKT_4FGL_J0739.8-6722_weekly_bin804.fits ra=114.955 dec=-67.3684 rad=12.0 tmin=725241601.0 tmax=725846401.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 5.61
user 5.28
sys 0.20

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

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

Number of photons that the gtmktime cut: 2726

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37097431/ft1_filtered_4FGL_J0739.8-6722_weekly_bin804.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37097431/ft2_4FGL_J0739.8-6722_weekly_bin804.fits sctable="SC_DATA" outfile=/lscratch/kocevski/37097431/ltcube_725241601_725846401_4FGL_J0739.8-6722_weekly_bin804.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/37097431/ft2_4FGL_J0739.8-6722_weekly_bin804.fits
.....................!
real 20.57
user 19.17
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37097431/ft1_filtered_4FGL_J0739.8-6722_weekly_bin804.fits evtable="EVENTS" scfile=/lscratch/kocevski/37097431/ft2_4FGL_J0739.8-6722_weekly_bin804.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37097431/ltcube_725241601_725846401_4FGL_J0739.8-6722_weekly_bin804.fits outfile=/lscratch/kocevski/37097431/expmap_725241601_725846401_4FGL_J0739.8-6722_weekly_bin804.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/37097431/ltcube_725241601_725846401_4FGL_J0739.8-6722_weekly_bin804.fits
.....................!
real 71.90
user 67.57
sys 3.93

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/37097431/ft1_filtered_4FGL_J0739.8-6722_weekly_bin804.fits scfile=/lscratch/kocevski/37097431/ft2_4FGL_J0739.8-6722_weekly_bin804.fits outfile=/lscratch/kocevski/37097431/cmap_725241601_725846401_4FGL_J0739.8-6722_weekly_bin804.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.42
user 0.24
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37097431/ft1_filtered_4FGL_J0739.8-6722_weekly_bin804.fits evtable="EVENTS" scfile=/lscratch/kocevski/37097431/ft2_4FGL_J0739.8-6722_weekly_bin804.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37097431/Model_4FGL_J0739.8-6722_weekly_bin804.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/37097431/ft1_filtered_4FGL_J0739.8-6722_weekly_bin804.fits.....................!
real 6160.72
user 6133.77
sys 1.53

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51243E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.1947       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.9538       1.0000          .0000       .10000E+07
     4 'Prefactor '    24.769       1.0000          .0000       .10000E+07
     5 'norm      '    .19235E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .24030E-04   1.0000          .0000       .10000E+07
     7 'norm      '    5.1532       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.2258       1.0000          .0000       .10000E+07
     9 'norm      '    .44693       1.0000          .0000       .10000E+07
    10 'Prefactor '    .54602E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20937E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .98666E-06   1.0000          .0000       .10000E+07
    13 'norm      '    20.424       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.0742       1.0000          .0000       .10000E+07
    15 'Prefactor '    6.0546       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0184       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99691       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=   28001.31     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      936 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.3538       -.33565E-07** at limit **
   2  Prefactor     5.1960        3.8909        .87232E-06    .12395E-01
   3  Prefactor     5.9551        4.9369       -.18339E-06   -.34575E-02
   4  Prefactor     24.765        4.4959       -.30163E-06    .95688E-01
   5  norm          .55511E-10    .48637        .11999E-07** at limit **
   6  Prefactor     .11102E-09    4.2885       -.10150E-06** at limit **
   7  norm          5.1548        2.1154        .40463E-08    .92131E-02
   8  Prefactor     4.2197        5.0418        .11603E-06    .25795E-02
   9  norm          .44736        1.0366       -.89081E-08   -.43064E-02
  10  Prefactor      .0000        10.262        .99319E-08** at limit **
  11  Prefactor     .55511E-10    1.7067        .56275E-07** at limit **
  12  Prefactor     .28311E-08    29.153       -.40100E-06** at limit **
  13  norm          20.180        8.7383        .55500E-06   -.26554E-01
  14  Prefactor     7.0725        3.9232       -.84538E-06   -.32632E-01
  15  Prefactor     6.0638        6.9591       -.35886E-06   -.57524E-02
  16  Normalizat    1.0181        .15877       -.87156E-06    .28759E-03
  17  Prefactor     .99705        .52481E-01    .88923E-06    .70055E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 5.19596
  Prefactor  = 5.95513
  Prefactor  = 24.7653
  norm       = 5.55112e-11
  Prefactor  = 1.11022e-10
  norm       = 5.15477
  Prefactor  = 4.21965
  norm       = 0.447363
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 2.83107e-09
  norm       = 20.1795
  Prefactor  = 7.07252
  Prefactor  = 6.06385
  Normalizat = 1.01807
  Prefactor  = 0.997055
 **********
 **   18 **HESSE 
 **********

 FCN=   28001.31     FROM HESSE     STATUS=OK           263 CALLS     1199 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.3534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1960        6.1259        .44082E-03   -1.5662    
   3  Prefactor     5.9551        4.9624        .41129E-03   -1.5659    
   4  Prefactor     24.765        7.7212        .20097E-03   -1.5608    
   5  norm          .55511E-10    .48685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11102E-09    4.3019        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.1548        2.1241        .44263E-03   -1.5663    
   8  Prefactor     4.2197        5.0623        .48995E-03   -1.5667    
   9  norm          .44736        1.0043        .59679E-02   -1.5695    
  10  Prefactor      .0000        10.282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    1.7027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .28311E-08    29.086        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.180        9.2195        .22134E-03   -1.5618    
  14  Prefactor     7.0725        5.7933        .37693E-03   -1.5655    
  15  Prefactor     6.0638        7.0665        .40781E-03   -1.5659    
  16  Normalizat    1.0181        .14427        .98728E-01   -.92428    
  17  Prefactor     .99705        .46836E-01    .33842E-01   -.92828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45968e-08
Minuit parameter uncertainties:
  1  5.20807e-07
  2  6.12596
  3  4.96238
  4  7.72123
  5  1.26774e-05
  6  4.62034e-05
  7  2.12413
  8  5.06228
  9  1.00435
  10  3.10234e-05
  11  2.04024e-05
  12  0.00057358
  13  9.21948
  14  5.79331
  15  7.06653
  16  0.144323
  17  0.0468381
Done.

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

Extracting fit parameters...

4FGL J0739.8-6722
   Spectrum: PowerLaw
342    Prefactor:  0.000e+00  3.102e-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.971e-01  4.684e-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.018e+00  1.443e-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: 2.56810376904e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00196552277875 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37097431/likelihoodResults_725241601_725846401_4FGL_J0739.8-6722_weekly_bin804.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) = 28001.3526335
delta logL = -0.0465758715109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28001.3060576
delta logL = -5.92626747675e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14488E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.1308       1.0000          .0000       10.000    
     3 'Normalizat'    1.0181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99706       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=   28001.31     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      207 TOTAL
                     EDM=   .83E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.368       -.27870E-07** at limit **
   2  Index         2.0070        3.2487        .17850E-05     .0000    
   3  Normalizat    1.0181        .15267       -.31045E-05   -.35373E-04
   4  Prefactor     .99705        .52155E-01    .40642E-06   -.12708E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.00704
  Normalizat = 1.01806
  Prefactor  = 0.997055
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   28001.31     FROM HESSE     STATUS=FAILED        11 CALLS      218 TOTAL
                     EDM=   .83E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        13.512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .43263        1.7718        .17850E-05   -.64174    
   3  Normalizat    1.0181        1.2722       -.31045E-05   -.92428    
   4  Prefactor     .99705        1.3363        .40642E-06   -.92828    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.30549e-13
Minuit parameter uncertainties:
  1  9.16825e-06
  2  1.46266
  3  1.31348
  4  1.38509
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) = 28001.3060576
delta logL = 2.91038304567e-11

Extracting fit parameters...

4FGL J0739.8-6722
   Spectrum: PowerLaw
342    Prefactor:  0.000e+00  9.168e-06  0.000e+00  1.000e+06 ( 1.000e-14)
343        Index:  2.007e+00  1.463e+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.971e-01  1.385e+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.018e+00  1.313e+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/37097431/cmap_HighResolution_725241601_725846401_4FGL_J0739.8-6722_weekly_bin804.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-03', job_status='DONE', photon_flux_upper_limit='2.57e-08', time_completed='2024-01-02 03:22:30.010663', job_id='37097431', GAL2='1.00', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1704194550.01', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.91e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='804' AND source_name='4FGL J0739.8-6722' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan  2 03:22:30 PST 2024

