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


Performing analysis on: 4FGL_J0516.7-6207_daily_bin1674
RA = 79.1798, Dec = -62.1248
tmin = 673228801, tmax = 673488001
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='669052', job_status='RUN', time_executed='2022-05-06 02:07:41.310126', time_epoch_executed='1651828061.31' WHERE source_name='4FGL J0516.7-6207' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669052

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669052/ft1_4FGL_J0516.7-6207_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669052/ft2_4FGL_J0516.7-6207_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669052/ft1_4FGL_J0516.7-6207_daily_bin1674.fits outfile=/scratch/kocevski/669052/ft1_filteredMKT_4FGL_J0516.7-6207_daily_bin1674.fits ra=79.1798 dec=-62.1248 rad=12.0 tmin=673228801.0 tmax=673488001.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.77
user 2.55
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/669052/ft2_4FGL_J0516.7-6207_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/669052/ft2_4FGL_J0516.7-6207_daily_bin1674.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/669052/ft1_filteredMKT_4FGL_J0516.7-6207_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/669052/ft1_filtered_4FGL_J0516.7-6207_daily_bin1674.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.51
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 1107

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669052/ft1_filtered_4FGL_J0516.7-6207_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/669052/ft2_4FGL_J0516.7-6207_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/669052/ltcube_673228801_673488001_4FGL_J0516.7-6207_daily_bin1674.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/669052/ft2_4FGL_J0516.7-6207_daily_bin1674.fits
.....................!
real 16.29
user 15.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669052/ft1_filtered_4FGL_J0516.7-6207_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/669052/ft2_4FGL_J0516.7-6207_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/669052/ltcube_673228801_673488001_4FGL_J0516.7-6207_daily_bin1674.fits outfile=/scratch/kocevski/669052/expmap_673228801_673488001_4FGL_J0516.7-6207_daily_bin1674.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/669052/ltcube_673228801_673488001_4FGL_J0516.7-6207_daily_bin1674.fits
.....................!
real 191.24
user 186.14
sys 4.42

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-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 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.
Added 203 point sources and 4 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 J0516.7-6207 @ 79.1798 -62.1248

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/669052/ft1_filtered_4FGL_J0516.7-6207_daily_bin1674.fits scfile=/scratch/kocevski/669052/ft2_4FGL_J0516.7-6207_daily_bin1674.fits outfile=/scratch/kocevski/669052/cmap_673228801_673488001_4FGL_J0516.7-6207_daily_bin1674.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=79.1798 yref=-62.1248 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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669052/ft1_filtered_4FGL_J0516.7-6207_daily_bin1674.fits scfile=/scratch/kocevski/669052/ft2_4FGL_J0516.7-6207_daily_bin1674.fits outfile=/scratch/kocevski/669052/cmap_HighResolution_673228801_673488001_4FGL_J0516.7-6207_daily_bin1674.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=79.1798 yref=-62.1248 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/669052/ft1_filtered_4FGL_J0516.7-6207_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/669052/ft2_4FGL_J0516.7-6207_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/669052/Model_4FGL_J0516.7-6207_daily_bin1674.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 GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/scratch/kocevski/669052/ft1_filtered_4FGL_J0516.7-6207_daily_bin1674.fits.....................!
real 6791.38
user 6775.99
sys 2.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/669052/ft1_filtered_4FGL_J0516.7-6207_daily_bin1674.fits', '/scratch/kocevski/669052/ft2_4FGL_J0516.7-6207_daily_bin1674.fits', expMap='/scratch/kocevski/669052/expmap_673228801_673488001_4FGL_J0516.7-6207_daily_bin1674.fits', expCube='/scratch/kocevski/669052/ltcube_673228801_673488001_4FGL_J0516.7-6207_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/669052/Model_4FGL_J0516.7-6207_daily_bin1674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0516.7-6207'

4FGL J0516.7-6207
   Spectrum: LogParabola
315         norm:  3.268e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
316        alpha:  2.106e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
317         beta:  4.799e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  8.795e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/669052/ft1_filtered_4FGL_J0516.7-6207_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/669052/ft2_4FGL_J0516.7-6207_daily_bin1674.fits
Exposure map: /scratch/kocevski/669052/expmap_673228801_673488001_4FGL_J0516.7-6207_daily_bin1674.fits
Exposure cube: /scratch/kocevski/669052/ltcube_673228801_673488001_4FGL_J0516.7-6207_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/669052/Model_4FGL_J0516.7-6207_daily_bin1674.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) = 11758.760521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.895       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.494       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3629       1.0000         .10000E-03   10000.    
     5 'norm      '    5.6460       1.0000         .10000E-03   10000.    
     6 'Prefactor '    110.65       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.832       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.250       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26140E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.8258       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6731       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .73470E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    24.264       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.454       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1769       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.4757       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .86490       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92881       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+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=   11758.76     FROM MIGRAD    STATUS=CONVERGED   1082 CALLS     3643 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.897        10.600        .92140E-04   -.19741E-05
   2  Prefactor     35.496        21.103        .67266E-04    .37520E-04
   3  Prefactor     .10000E-03    29.326        .18142E-02** at limit **
   4  norm          1.3628        2.5904        .23265E-03   -.29329E-03
   5  norm          5.6471        4.1736        .16906E-03   -.98046E-04
   6  Prefactor     110.67        59.519        .38238E-04   -.66836E-04
   7  Prefactor     18.827        13.492        .92295E-04    .33258E-04
   8  Prefactor     .10000E-03    12.335        .18142E-02** at limit **
   9  Prefactor     18.253        13.530        .93754E-04    .43411E-04
  10  Prefactor     .10000E-03    26.488        .18142E-02** at limit **
  11  Prefactor     .10000E-03    29.416        .15832    ** at limit **
  12  norm          7.8259        3.5093        .12600E-03    .27574E-03
  13  Prefactor     3.6727        5.7759        .10538E-02    .26303E-04
  14  Prefactor     .77929E-01    24.080        .20506E-02    .14858E-03
  15  norm          24.261        8.5611        .81321E-04   -.12135E-03
  16  norm          .10000E-03    1.3143        .12121E-02** at limit **
  17  Prefactor     .10000E-03    6.4626        .18142E-02** at limit **
  18  Prefactor     19.453        8.4741        .90809E-04   -.50578E-04
  19  Prefactor     3.1783        6.8904        .11368E-02    .11327E-03
  20  Prefactor     .10000E-03    4.8992        .18142E-02** at limit **
  21  Prefactor     .10000E-03    7.0271        .18142E-02** at limit **
  22  norm          1.4757        2.1838        .18916E-03    .24161E-04
  23  Prefactor     .10000E-03    5.4498        .18142E-02** at limit **
  24  norm          .10000E-03    1.4950        .12890E-02** at limit **
  25  Normalizat    .86466        .17951        .31801E-03   -.90088E-04
  26  Prefactor     .92890        .11372        .20507E-03   -.62072E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8968
  Prefactor  = 35.4961
  Prefactor  = 0.0001
  norm       = 1.36281
  norm       = 5.64707
  Prefactor  = 110.668
  Prefactor  = 18.8268
  Prefactor  = 0.0001
  Prefactor  = 18.2526
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 7.82589
  Prefactor  = 3.67269
  Prefactor  = 0.0779289
  norm       = 24.2612
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.453
  Prefactor  = 3.17828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.47572
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.864659
  Prefactor  = 0.928895
 **********
 **   18 **HESSE 
 **********

 FCN=   11758.76     FROM HESSE     STATUS=OK           446 CALLS     4089 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.897        10.598        .36856E-05   -1.4838    
   2  Prefactor     35.496        21.102        .26906E-05   -1.4516    
   3  Prefactor     .10000E-03    29.338        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3628        2.5896        .93062E-05   -1.5474    
   5  norm          5.6471        4.1726        .67624E-05   -1.5233    
   6  Prefactor     110.67        59.500        .76476E-05   -1.3600    
   7  Prefactor     18.827        13.486        .36918E-05   -1.4840    
   8  Prefactor     .10000E-03    12.335        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.253        13.528        .37502E-05   -1.4853    
  10  Prefactor     .10000E-03    26.496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.750        .15706       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.8259        3.5088        .50399E-05   -1.5148    
  13  Prefactor     3.6727        5.7737        .42150E-04   -1.5325    
  14  Prefactor     .77929E-01    23.850        .82023E-04   -1.5652    
  15  norm          24.261        8.4929        .32528E-05   -1.4722    
  16  norm          .10000E-03    1.3144        .24241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.4628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.453        8.4644        .36323E-05   -1.4826    
  19  Prefactor     3.1783        6.8861        .45473E-04   -1.5351    
  20  Prefactor     .10000E-03    4.9017        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.0308        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4757        2.1836        .75663E-05   -1.5465    
  23  Prefactor     .10000E-03    5.4502        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.4953        .25779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .86466        .17865        .12720E-04   -.97713    
  26  Prefactor     .92890        .11372        .41015E-04   -.95139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09955e-10
Minuit parameter uncertainties:
  1  10.5993
  2  21.1064
  3  0.000138774
  4  2.58984
  5  4.17281
  6  59.5321
  7  13.4884
  8  1.71269e-05
  9  13.5306
  10  0.000293415
  11  0.000489889
  12  3.5089
  13  5.77458
  14  2.72594
  15  8.4933
  16  5.64212e-07
  17  1.09656e-05
  18  8.46488
  19  6.88785
  20  8.49452e-06
  21  4.76781e-06
  22  2.18368
  23  1.18034e-05
  24  1.73122e-06
  25  0.178768
  26  0.113754
Done.

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

Extracting fit parameters...

4FGL J0516.7-6207
   Spectrum: LogParabola
315         norm:  7.826e+00  3.509e+00  1.000e-04  1.000e+04 ( 1.000e-12)
316        alpha:  2.106e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
317         beta:  4.799e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  8.795e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  9.289e-01  1.138e-01  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  8.647e-01  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.53
Ra Dec: 79.180 -62.125
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 6.16e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 3.09e-05 +/- 1.38e-05

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): 0
logL (Free Index) = 11758.3651118
delta logL = 0.392353914382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11758.3544095
delta logL = 0.403056191719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7711       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5062       1.0000          .0000       5.0000    
     3 'Normalizat'    .82719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94275       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+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=   11758.35     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      300 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7708        3.5588        .10338E-03    .12648E-02
   2  alpha         2.5061        .47055        .10729E-01    .10276E-03
   3  Normalizat    .82718        .17120        .32411E-03   -.10298E-03
   4  Prefactor     .94276        .11142        .20364E-03   -.40718E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.77082
  alpha      = 2.50611
  Normalizat = 0.827185
  Prefactor  = 0.942762
 **********
 **   18 **HESSE 
 **********

 FCN=   11758.35     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7708        3.3833        .41354E-05   -1.5187    
   2  alpha         2.5061        .44685        .42917E-03    .24422E-02
   3  Normalizat    .82718        .17089        .12965E-04   -.99068    
   4  Prefactor     .94276        .11135        .40728E-04   -.94662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94367e-10
Minuit parameter uncertainties:
  1  3.38339
  2  0.449259
  3  0.171002
  4  0.111373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669052': 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) = 11758.3544094
delta logL = 0.403056278643

Extracting fit parameters...

4FGL J0516.7-6207
   Spectrum: LogParabola
315         norm:  6.771e+00  3.383e+00  1.000e-04  1.000e+04 ( 1.000e-12)
316        alpha:  2.506e+00  4.493e-01  0.000e+00  5.000e+00 ( 1.000e+00)
317         beta:  4.799e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  8.795e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  9.428e-01  1.114e-01  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  8.272e-01  1.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.43
Ra Dec: 79.180 -62.125
Photon Index (Free Index): 2.51 +/- 0.45
Photon Flux (Free Index): 9.20e-08 +/- 4.75e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.07e-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/669052/cmap_HighResolution_673228801_673488001_4FGL_J0516.7-6207_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.16e-08', energy_flux2='2.70e-05', photon_flux_error='2.76e-08', dlogl='4.03e-01', energy_flux='3.09e-05', photon_flux2='9.20e-08', job_status='DONE', time_completed='2022-05-06 04:20:59.044341', photon_index_error2='0.45', photon_index2='2.51', ts='13.53', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='0.86', time_epoch_completed='1651836059.04', return_code='0', job_id='669052', GAL2='0.94', EG2='0.83', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='4.75e-08', ts2='14.43', photon_index='2.11' WHERE bin_id='1674' AND source_name='4FGL J0516.7-6207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 04:20:59 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 668958: <4FGL_J0516.7-6207_daily_bin1674> in cluster <slac> Done

Job <4FGL_J0516.7-6207_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:06:11 2022
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 01:58:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 01:58:03 2022
Terminated at Fri May  6 04:10:45 2022
Results reported at Fri May  6 04:10:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0516.7-6207_daily_bin1674 79.1798 -62.1248 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0516.7-6207 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   7816.00 sec.
    Max Memory :                                 625 MB
    Average Memory :                             565.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   7962 sec.
    Turnaround time :                            14674 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 669052: <4FGL_J0516.7-6207_daily_bin1674> in cluster <slac> Done

Job <4FGL_J0516.7-6207_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:06:17 2022
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:06:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:06:53 2022
Terminated at Fri May  6 04:20:59 2022
Results reported at Fri May  6 04:20:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0516.7-6207_daily_bin1674 79.1798 -62.1248 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0516.7-6207 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   7988.00 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             570.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   8046 sec.
    Turnaround time :                            15282 sec.

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

