aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 169 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 17469
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0739.8-6722_weekly_bin730
RA = 114.955, Dec = -67.3684
tmin = 680486401, tmax = 681091201
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='658088', job_status='RUN', time_executed='2022-08-02 00:54:58.749880', time_epoch_executed='1659426898.75' WHERE source_name='4FGL J0739.8-6722' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/658088

Creating custom pfile directory:
/scratch/kocevski/658088/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=680486401.0 && nMetStart<681091201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=680486401.0 && nMetStart<681091201.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/658088/ft1_4FGL_J0739.8-6722_weekly_bin730.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=680486401.0 && nMetStart<681091201.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/658088/ft2_4FGL_J0739.8-6722_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/658088/ft1_4FGL_J0739.8-6722_weekly_bin730.fits outfile=/scratch/kocevski/658088/ft1_filteredMKT_4FGL_J0739.8-6722_weekly_bin730.fits ra=114.955 dec=-67.3684 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.28
user 5.94
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/658088/ft2_4FGL_J0739.8-6722_weekly_bin730.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/658088/ft2_4FGL_J0739.8-6722_weekly_bin730.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/658088/ft1_filteredMKT_4FGL_J0739.8-6722_weekly_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/658088/ft1_filtered_4FGL_J0739.8-6722_weekly_bin730.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.56
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 3834

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/658088/ft1_filtered_4FGL_J0739.8-6722_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/658088/ft2_4FGL_J0739.8-6722_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/658088/ltcube_680486401_681091201_4FGL_J0739.8-6722_weekly_bin730.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 /scratch/kocevski/658088/ft2_4FGL_J0739.8-6722_weekly_bin730.fits
.....................!
real 31.35
user 30.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/658088/ft1_filtered_4FGL_J0739.8-6722_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/658088/ft2_4FGL_J0739.8-6722_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/658088/ltcube_680486401_681091201_4FGL_J0739.8-6722_weekly_bin730.fits outfile=/scratch/kocevski/658088/expmap_680486401_681091201_4FGL_J0739.8-6722_weekly_bin730.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 /scratch/kocevski/658088/ltcube_680486401_681091201_4FGL_J0739.8-6722_weekly_bin730.fits
.....................!
real 192.52
user 186.34
sys 5.60

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 /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/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=/scratch/kocevski/658088/ft1_filtered_4FGL_J0739.8-6722_weekly_bin730.fits scfile=/scratch/kocevski/658088/ft2_4FGL_J0739.8-6722_weekly_bin730.fits outfile=/scratch/kocevski/658088/cmap_680486401_681091201_4FGL_J0739.8-6722_weekly_bin730.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.59
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/658088/ft1_filtered_4FGL_J0739.8-6722_weekly_bin730.fits scfile=/scratch/kocevski/658088/ft2_4FGL_J0739.8-6722_weekly_bin730.fits outfile=/scratch/kocevski/658088/cmap_HighResolution_680486401_681091201_4FGL_J0739.8-6722_weekly_bin730.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.59
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/658088/ft1_filtered_4FGL_J0739.8-6722_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/658088/ft2_4FGL_J0739.8-6722_weekly_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/658088/Model_4FGL_J0739.8-6722_weekly_bin730.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...
/scratch/kocevski/658088/ft1_filtered_4FGL_J0739.8-6722_weekly_bin730.fits.....................!
real 22863.51
user 22809.00
sys 2.97

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/658088/ft1_filtered_4FGL_J0739.8-6722_weekly_bin730.fits', '/scratch/kocevski/658088/ft2_4FGL_J0739.8-6722_weekly_bin730.fits', expMap='/scratch/kocevski/658088/expmap_680486401_681091201_4FGL_J0739.8-6722_weekly_bin730.fits', expCube='/scratch/kocevski/658088/ltcube_680486401_681091201_4FGL_J0739.8-6722_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/658088/Model_4FGL_J0739.8-6722_weekly_bin730.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  1.000e-04  1.000e+04 ( 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): /scratch/kocevski/658088/ft1_filtered_4FGL_J0739.8-6722_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/658088/ft2_4FGL_J0739.8-6722_weekly_bin730.fits
Exposure map: /scratch/kocevski/658088/expmap_680486401_681091201_4FGL_J0739.8-6722_weekly_bin730.fits
Exposure cube: /scratch/kocevski/658088/ltcube_680486401_681091201_4FGL_J0739.8-6722_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/658088/Model_4FGL_J0739.8-6722_weekly_bin730.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) = 39385.2083792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.7054       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9087       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0401       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.0375       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4391       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7222       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0570       1.0000         .10000E-03   10000.    
    10 'norm      '    .76605E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    64.784       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2877       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1959       1.0000         .10000E-03   10000.    
    14 'norm      '    12.692       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.275       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0627       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1128       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0141       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=   39385.21     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     1802 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .56720        .21709E-07** at limit **
   2  norm          7.6949        3.5444        .48748E-07   -.12556E-03
   3  Prefactor     2.8990        4.7346        .31946E-06   -.13967E-03
   4  Prefactor     5.0343        4.3330        .52529E-07   -.10502E-03
   5  Prefactor     .10000E-03    2.1989        .44097E-07** at limit **
   6  norm          1.0374        .89665        .52175E-06    .15244E-02
   7  Prefactor     7.4528        10.564        .90508E-07   -.20219E-04
   8  norm          2.7223        1.4822        .16712E-08   -.47248E-03
   9  Prefactor     4.0242        4.8127        .32652E-06   -.28615E-03
  10  norm          .10001E-03    .69272       -.31284E-07** at limit **
  11  Prefactor     64.318        43.482       -.45258E-07   -.16262E-04
  12  Prefactor     2.2797        3.7599        .76165E-06   -.53244E-03
  13  Prefactor     6.2050        26.292        .88326E-06   -.10036E-03
  14  norm          12.687        6.3040       -.90455E-07    .91727E-04
  15  Prefactor     15.277        8.0607        .58779E-07   -.33390E-04
  16  Prefactor     2.0497        6.0527        .92076E-06   -.20436E-03
  17  Normalizat    1.1133        .12518       -.66888E-06   -.14219E-03
  18  Prefactor     1.0141        .39877E-01    .72114E-07   -.59691E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.69491
  Prefactor  = 2.89904
  Prefactor  = 5.03433
  Prefactor  = 0.0001
  norm       = 1.03742
  Prefactor  = 7.4528
  norm       = 2.72225
  Prefactor  = 4.02417
  norm       = 0.000100005
  Prefactor  = 64.3184
  Prefactor  = 2.27968
  Prefactor  = 6.205
  norm       = 12.6872
  Prefactor  = 15.2767
  Prefactor  = 2.04972
  Normalizat = 1.11332
  Prefactor  = 1.01405
 **********
 **   18 **HESSE 
 **********

 FCN=   39385.21     FROM HESSE     STATUS=OK           264 CALLS     2066 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .57710        .14594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.6949        3.5439        .14446E-03   -1.5153    
   3  Prefactor     2.8990        4.7031        .23823E-03   -1.5367    
   4  Prefactor     5.0343        4.3308        .17911E-03   -1.5259    
   5  Prefactor     .10000E-03    2.2465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0374        .87701        .22082E-02   -1.5504    
   7  Prefactor     7.4528        10.556        .14705E-03   -1.5162    
   8  norm          2.7223        1.4749        .17220E-03   -1.5378    
   9  Prefactor     4.0242        4.7905        .20018E-03   -1.5307    
  10  norm          .10001E-03    .66751        .53193E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     64.318        43.517        .49860E-04   -1.4102    
  12  Prefactor     2.2797        3.6547        .27141E-03   -1.5406    
  13  Prefactor     6.2050        26.051        .16128E-03   -1.5210    
  14  norm          12.687        6.2860        .11244E-03   -1.4995    
  15  Prefactor     15.277        8.0696        .10248E-03   -1.4926    
  16  Prefactor     2.0497        5.9767        .28771E-03   -1.5422    
  17  Normalizat    1.1133        .14277        .43184E-03   -.89325    
  18  Prefactor     1.0141        .46197E-01    .15209E-03   -.92263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13935e-10
Minuit parameter uncertainties:
  1  2.89545e-07
  2  3.54402
  3  4.7037
  4  4.33111
  5  3.0189e-08
  6  0.877025
  7  10.5584
  8  1.47492
  9  4.79094
  10  0.000118988
  11  43.5384
  12  3.65506
  13  25.447
  14  6.2863
  15  8.07017
  16  5.97849
  17  0.142815
  18  0.046199
Done.

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

Extracting fit parameters...

4FGL J0739.8-6722
   Spectrum: PowerLaw
342    Prefactor:  6.432e+01  4.354e+01  1.000e-04  1.000e+04 ( 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:  1.014e+00  4.620e-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.113e+00  1.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.79
Ra Dec: 114.955 -67.368
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 9.40e-06

TS (Fixed Index): 2.79
Ra Dec: 114.955 -67.368
Photon Flux Upper Limit: 7.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/658088/likelihoodResults_680486401_681091201_4FGL_J0739.8-6722_weekly_bin730.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) = 39381.2024262
delta logL = 4.00510141578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 39381.2008917
delta logL = 4.00663583913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8929       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6342       1.0000          .0000       10.000    
     3 'Normalizat'    1.0195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0317       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   39381.20     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      337 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9072        43.380        .14272E-03    .18799E-03
   2  Index         3.6336        1.8476        .44616E-02    .26986E-03
   3  Normalizat    1.0191        .12562        .44888E-03    .18397E-03
   4  Prefactor     1.0318        .41740E-01    .15086E-03    .56972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.9072
  Index      = 3.63365
  Normalizat = 1.01914
  Prefactor  = 1.03178
 **********
 **   18 **HESSE 
 **********

 FCN=   39381.20     FROM HESSE     STATUS=OK            25 CALLS      362 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9072        13.590        .57089E-05   -1.5145    
   2  Index         3.6336        .69282        .17846E-03   -.27679    
   3  Normalizat    1.0191        .13910        .17955E-04   -.92392    
   4  Prefactor     1.0318        .46101E-01    .60343E-05   -.91677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1867e-11
Minuit parameter uncertainties:
  1  13.5951
  2  0.695239
  3  0.139152
  4  0.0461029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/658088': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 39381.2008875
delta logL = 4.00664005841

Extracting fit parameters...

4FGL J0739.8-6722
   Spectrum: PowerLaw
342    Prefactor:  7.907e+00  1.360e+01  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  3.634e+00  6.952e-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:  1.032e+00  4.610e-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.019e+00  1.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.41
Ra Dec: 114.955 -67.368
Photon Index (Free Index): 3.63 +/- 0.70
Photon Flux (Free Index): 1.06e-07 +/- 3.74e-08
Energy Flux (Free Index): 1.71e-05 +/- 6.22e-06

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 /scratch/kocevski/658088/cmap_HighResolution_680486401_681091201_4FGL_J0739.8-6722_weekly_bin730.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/658088

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-03', comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='1.71e-05', photon_flux_error='2.33e-08', dlogl='4.01e+00', energy_flux='1.39e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2022-08-02 07:56:12.808498', photon_index_error2='0.70', photon_index2='3.63', ts='2.79', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='7.77e-08', energy_flux_error2='6.22e-06', EG='1.11', time_epoch_completed='1659452172.81', return_code='0', job_id='658088', GAL2='1.03', EG2='1.02', return_code2='0', energy_flux_error='9.40e-06', photon_flux_error2='3.74e-08', ts2='11.41', photon_index='2.26' WHERE bin_id='730' AND source_name='4FGL J0739.8-6722' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 07:56:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 657993: <4FGL_J0739.8-6722_weekly_bin730> in cluster <slac> Done

Job <4FGL_J0739.8-6722_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:05:37 2022
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 00:44:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 00:44:44 2022
Terminated at Tue Aug  2 07:50:16 2022
Results reported at Tue Aug  2 07:50:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.8-6722_weekly_bin730 114.955 -67.3684 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0739.8-6722 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   25369.00 sec.
    Max Memory :                                 634 MB
    Average Memory :                             600.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   25532 sec.
    Turnaround time :                            27879 sec.

The output (if any) is above this job summary.


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 658088: <4FGL_J0739.8-6722_weekly_bin730> in cluster <slac> Done

Job <4FGL_J0739.8-6722_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:05:41 2022
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 00:52:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 00:52:00 2022
Terminated at Tue Aug  2 07:56:13 2022
Results reported at Tue Aug  2 07:56:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.8-6722_weekly_bin730 114.955 -67.3684 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0739.8-6722 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   25238.00 sec.
    Max Memory :                                 634 MB
    Average Memory :                             600.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   25453 sec.
    Turnaround time :                            28232 sec.

The output (if any) is above this job summary.

