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


Performing analysis on: 4FGL_J0739.8-6722_daily_bin1702
RA = 114.955, Dec = -67.3684
tmin = 680486401, tmax = 680745601
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='234029', job_status='RUN', time_executed='2022-07-29 00:57:38.762061', time_epoch_executed='1659081458.76' WHERE source_name='4FGL J0739.8-6722' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/234029

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=680486401.0 && nMetStart<680745601.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<680745601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/234029/ft1_4FGL_J0739.8-6722_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/234029/ft2_4FGL_J0739.8-6722_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/234029/ft1_4FGL_J0739.8-6722_daily_bin1702.fits outfile=/scratch/kocevski/234029/ft1_filteredMKT_4FGL_J0739.8-6722_daily_bin1702.fits ra=114.955 dec=-67.3684 rad=12.0 tmin=680486401.0 tmax=680745601.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.99
user 2.76
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/234029/ft2_4FGL_J0739.8-6722_daily_bin1702.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/234029/ft1_filteredMKT_4FGL_J0739.8-6722_daily_bin1702.fits evtable="EVENTS" outfile="/scratch/kocevski/234029/ft1_filtered_4FGL_J0739.8-6722_daily_bin1702.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.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 1655

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/234029/ft1_filtered_4FGL_J0739.8-6722_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/234029/ft2_4FGL_J0739.8-6722_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/234029/ltcube_680486401_680745601_4FGL_J0739.8-6722_daily_bin1702.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/234029/ft2_4FGL_J0739.8-6722_daily_bin1702.fits
.....................!
real 15.54
user 15.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/234029/ft1_filtered_4FGL_J0739.8-6722_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/234029/ft2_4FGL_J0739.8-6722_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/234029/ltcube_680486401_680745601_4FGL_J0739.8-6722_daily_bin1702.fits outfile=/scratch/kocevski/234029/expmap_680486401_680745601_4FGL_J0739.8-6722_daily_bin1702.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/234029/ltcube_680486401_680745601_4FGL_J0739.8-6722_daily_bin1702.fits
.....................!
real 191.90
user 186.50
sys 4.45

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/234029/ft1_filtered_4FGL_J0739.8-6722_daily_bin1702.fits scfile=/scratch/kocevski/234029/ft2_4FGL_J0739.8-6722_daily_bin1702.fits outfile=/scratch/kocevski/234029/cmap_680486401_680745601_4FGL_J0739.8-6722_daily_bin1702.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/234029/ft1_filtered_4FGL_J0739.8-6722_daily_bin1702.fits scfile=/scratch/kocevski/234029/ft2_4FGL_J0739.8-6722_daily_bin1702.fits outfile=/scratch/kocevski/234029/cmap_HighResolution_680486401_680745601_4FGL_J0739.8-6722_daily_bin1702.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/234029/ft1_filtered_4FGL_J0739.8-6722_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/234029/ft2_4FGL_J0739.8-6722_daily_bin1702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/234029/Model_4FGL_J0739.8-6722_daily_bin1702.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/234029/ft1_filtered_4FGL_J0739.8-6722_daily_bin1702.fits.....................!
real 9962.20
user 9934.70
sys 5.69

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/234029/ft1_filtered_4FGL_J0739.8-6722_daily_bin1702.fits', '/scratch/kocevski/234029/ft2_4FGL_J0739.8-6722_daily_bin1702.fits', expMap='/scratch/kocevski/234029/expmap_680486401_680745601_4FGL_J0739.8-6722_daily_bin1702.fits', expCube='/scratch/kocevski/234029/ltcube_680486401_680745601_4FGL_J0739.8-6722_daily_bin1702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/234029/Model_4FGL_J0739.8-6722_daily_bin1702.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/234029/ft1_filtered_4FGL_J0739.8-6722_daily_bin1702.fits
Spacecraft file(s): /scratch/kocevski/234029/ft2_4FGL_J0739.8-6722_daily_bin1702.fits
Exposure map: /scratch/kocevski/234029/expmap_680486401_680745601_4FGL_J0739.8-6722_daily_bin1702.fits
Exposure cube: /scratch/kocevski/234029/ltcube_680486401_680745601_4FGL_J0739.8-6722_daily_bin1702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/234029/Model_4FGL_J0739.8-6722_daily_bin1702.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) = 17001.6278515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3274       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7320       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7459       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7749       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7119       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23912E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.158       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8329       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.228       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.212       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6163       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0279       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0108       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=   17001.63     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1807 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .69160       -.33240E-07** at limit **
   2  norm          4.3272        3.8272        .48877E-07   -.82832E-04
   3  Prefactor     3.2306        10.940        .19973E-05   -.19826E-03
   4  Prefactor     5.7315        5.7460       -.33902E-06   -.30364E-04
   5  Prefactor     .10000E-03    1.6420        .36202E-08** at limit **
   6  norm          1.7459        1.6174       -.10317E-06   -.30964E-03
   7  Prefactor     8.7762        17.758        .19734E-04    .34685E-04
   8  norm          2.7121        2.2629       -.14486E-07   -.51852E-03
   9  Prefactor     .10043E-03    3.1844       -.12695E-05** at limit **
  10  norm          .10000E-03    .84328       -.25281E-08** at limit **
  11  Prefactor     65.155        62.451        .30515E-06    .48721E-04
  12  Prefactor     2.8324        5.6995        .55526E-06   -.56218E-03
  13  Prefactor     .10000E-03    16.914        .13886E-06** at limit **
  14  norm          15.227        8.5619       -.53113E-05    .30798E-04
  15  Prefactor     18.210        14.402       -.61550E-05    .61885E-05
  16  Prefactor     5.6148        9.8046       -.30170E-05   -.12340E-03
  17  Normalizat    1.0280        .18818       -.64749E-06    .34806E-03
  18  Prefactor     1.0108        .59799E-01    .64324E-06    .33404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.32716
  Prefactor  = 3.23059
  Prefactor  = 5.73149
  Prefactor  = 0.0001
  norm       = 1.74587
  Prefactor  = 8.77616
  norm       = 2.71211
  Prefactor  = 0.000100433
  norm       = 0.0001
  Prefactor  = 65.1553
  Prefactor  = 2.83244
  Prefactor  = 0.0001
  norm       = 15.2269
  Prefactor  = 18.2104
  Prefactor  = 5.6148
  Normalizat = 1.02804
  Prefactor  = 1.01083
 **********
 **   18 **HESSE 
 **********

 FCN=   17001.63     FROM HESSE     STATUS=OK           258 CALLS     2065 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .69214        .10590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3272        3.8288        .19364E-03   -1.5292    
   3  Prefactor     3.2306        10.958        .22528E-03   -1.5348    
   4  Prefactor     5.7315        5.7421        .16777E-03   -1.5229    
   5  Prefactor     .10000E-03    1.6464        .16315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7459        1.6114        .15465E-03   -1.5444    
   7  Prefactor     8.7762        17.718        .13531E-03   -1.5115    
   8  norm          2.7121        2.2535        .17314E-03   -1.5379    
   9  Prefactor     .10043E-03    5.6991        .63832E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .85022        .11692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     65.155        62.508        .49717E-04   -1.4092    
  12  Prefactor     2.8324        5.6872        .24161E-03   -1.5371    
  13  Prefactor     .10000E-03    16.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.227        8.5559        .10264E-03   -1.4927    
  15  Prefactor     18.210        14.456        .93853E-04   -1.4854    
  16  Prefactor     5.6148        9.8367        .16951E-03   -1.5234    
  17  Normalizat    1.0280        .21742        .43525E-03   -.92097    
  18  Prefactor     1.0108        .69596E-01    .14912E-03   -.92369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23828e-09
Minuit parameter uncertainties:
  1  1.02371e-07
  2  3.82906
  3  10.9645
  4  5.74264
  5  2.94909e-08
  6  1.61147
  7  17.7282
  8  2.25357
  9  0.00314346
  10  1.33524e-06
  11  62.571
  12  5.68824
  13  6.48487e-05
  14  8.55661
  15  14.4588
  16  9.83956
  17  0.217604
  18  0.0696018
Done.

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

Extracting fit parameters...

4FGL J0739.8-6722
   Spectrum: PowerLaw
342    Prefactor:  6.516e+01  6.257e+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.011e+00  6.960e-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.028e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 114.955 -67.368
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 3.49e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.35e-05

TS (Fixed Index): 1.51
Ra Dec: 114.955 -67.368
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/234029/likelihoodResults_680486401_680745601_4FGL_J0739.8-6722_daily_bin1702.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) = 16999.5816775
delta logL = 2.04512784172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16999.5715211
delta logL = 2.05528422627

Fit tolerance = 1e-08

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

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

 FCN=   16999.57     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      242 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0286        27.872        .44847E-02    .13189E-02
   2  Index         3.8357        1.4287        .10854        .56172E-03
   3  Normalizat    .92206        .56897E-01    .10307        .34335E-04
   4  Prefactor     1.0316        .18599E-01    .41136E-01   -.38298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.02863
  Index      = 3.83569
  Normalizat = 0.922064
  Prefactor  = 1.03164
 **********
 **   18 **HESSE 
 **********

 FCN=   16999.57     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0286        55.088        .13317E-03   -1.5259    
   2  Index         3.8357        2.5137        .37514E-02   -.23502    
   3  Normalizat    .92206        .18488        .45678E-03   -.95689    
   4  Prefactor     1.0316        .61935E-01    .14771E-03   -.91682    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31914e-09
Minuit parameter uncertainties:
  1  33.3265
  2  2.64176
  3  0.185007
  4  0.0619397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/234029': 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): 102
logL (Free Index) = 16999.5715196
delta logL = 2.05528579236

Extracting fit parameters...

4FGL J0739.8-6722
   Spectrum: PowerLaw
342    Prefactor:  5.029e+00  3.333e+01  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  3.836e+00  2.642e+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:  1.032e+00  6.194e-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:  9.221e-01  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.97
Ra Dec: 114.955 -67.368
Photon Index (Free Index): 3.84 +/- 2.64
Photon Flux (Free Index): 1.12e-07 +/- 5.39e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.12e-05

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/234029/cmap_HighResolution_680486401_680745601_4FGL_J0739.8-6722_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.92e-03', comment='SUCCESS', photon_flux='3.49e-08', energy_flux2='1.73e-05', photon_flux_error='3.35e-08', dlogl='2.06e+00', energy_flux='1.41e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2022-07-29 04:03:21.714384', photon_index_error2='2.64', photon_index2='3.84', ts='1.51', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.12e-05', EG='1.03', time_epoch_completed='1659092601.71', return_code='0', job_id='234029', GAL2='1.03', EG2='0.92', return_code2='102', energy_flux_error='1.35e-05', photon_flux_error2='5.39e-08', ts2='5.97', photon_index='2.26' WHERE bin_id='1702' AND source_name='4FGL J0739.8-6722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 04:03:21 PDT 2022


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

Job <4FGL_J0739.8-6722_daily_bin1702> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Jul 29 00:05:59 2022
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 00:54:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 00:54:40 2022
Terminated at Fri Jul 29 04:00:31 2022
Results reported at Fri Jul 29 04:00:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.8-6722_daily_bin1702 114.955 -67.3684 680486401 680745601 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 :                                   11084.00 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             590.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11150 sec.
    Turnaround time :                            14072 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 234029: <4FGL_J0739.8-6722_daily_bin1702> in cluster <slac> Done

Job <4FGL_J0739.8-6722_daily_bin1702> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jul 29 00:06:04 2022
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 00:56:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 00:56:34 2022
Terminated at Fri Jul 29 04:03:22 2022
Results reported at Fri Jul 29 04:03:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.8-6722_daily_bin1702 114.955 -67.3684 680486401 680745601 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 :                                   11126.00 sec.
    Max Memory :                                 627 MB
    Average Memory :                             587.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11208 sec.
    Turnaround time :                            14238 sec.

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

