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 220 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 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).

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


Performing analysis on: 4FGL_J0516.8-0509_daily_bin1780
RA = 79.2241, Dec = -5.1547
tmin = 700704001, tmax = 700963201
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='49688', job_status='RUN', time_executed='2023-03-20 00:09:40.356579', time_epoch_executed='1679296180.36' WHERE source_name='4FGL J0516.8-0509' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49688

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49688/ft1_4FGL_J0516.8-0509_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49688/ft2_4FGL_J0516.8-0509_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49688/ft1_4FGL_J0516.8-0509_daily_bin1780.fits outfile=/scratch/kocevski/49688/ft1_filteredMKT_4FGL_J0516.8-0509_daily_bin1780.fits ra=79.2241 dec=-5.1547 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.11
user 3.86
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/49688/ft2_4FGL_J0516.8-0509_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/49688/ft2_4FGL_J0516.8-0509_daily_bin1780.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/49688/ft1_filteredMKT_4FGL_J0516.8-0509_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/49688/ft1_filtered_4FGL_J0516.8-0509_daily_bin1780.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 1214

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49688/ft1_filtered_4FGL_J0516.8-0509_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/49688/ft2_4FGL_J0516.8-0509_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/49688/ltcube_700704001_700963201_4FGL_J0516.8-0509_daily_bin1780.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/49688/ft2_4FGL_J0516.8-0509_daily_bin1780.fits
.....................!
real 12.05
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49688/ft1_filtered_4FGL_J0516.8-0509_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/49688/ft2_4FGL_J0516.8-0509_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/49688/ltcube_700704001_700963201_4FGL_J0516.8-0509_daily_bin1780.fits outfile=/scratch/kocevski/49688/expmap_700704001_700963201_4FGL_J0516.8-0509_daily_bin1780.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/49688/ltcube_700704001_700963201_4FGL_J0516.8-0509_daily_bin1780.fits
.....................!
real 190.87
user 185.15
sys 5.36

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Added 147 point sources and 1 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.8-0509 @ 79.2241 -5.1547

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/49688/ft1_filtered_4FGL_J0516.8-0509_daily_bin1780.fits scfile=/scratch/kocevski/49688/ft2_4FGL_J0516.8-0509_daily_bin1780.fits outfile=/scratch/kocevski/49688/cmap_700704001_700963201_4FGL_J0516.8-0509_daily_bin1780.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.2241 yref=-5.1547 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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49688/ft1_filtered_4FGL_J0516.8-0509_daily_bin1780.fits scfile=/scratch/kocevski/49688/ft2_4FGL_J0516.8-0509_daily_bin1780.fits outfile=/scratch/kocevski/49688/cmap_HighResolution_700704001_700963201_4FGL_J0516.8-0509_daily_bin1780.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.2241 yref=-5.1547 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/49688/ft1_filtered_4FGL_J0516.8-0509_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/49688/ft2_4FGL_J0516.8-0509_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/49688/Model_4FGL_J0516.8-0509_daily_bin1780.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 Rosette
Working on...
/scratch/kocevski/49688/ft1_filtered_4FGL_J0516.8-0509_daily_bin1780.fits.....................!
real 249.69
user 248.01
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/49688/ft1_filtered_4FGL_J0516.8-0509_daily_bin1780.fits', '/scratch/kocevski/49688/ft2_4FGL_J0516.8-0509_daily_bin1780.fits', expMap='/scratch/kocevski/49688/expmap_700704001_700963201_4FGL_J0516.8-0509_daily_bin1780.fits', expCube='/scratch/kocevski/49688/ltcube_700704001_700963201_4FGL_J0516.8-0509_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/49688/Model_4FGL_J0516.8-0509_daily_bin1780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0516.8-0509'

4FGL J0516.8-0509
   Spectrum: LogParabola
220         norm:  8.287e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
221        alpha:  2.533e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
222         beta:  3.932e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
223           Eb:  3.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/49688/ft1_filtered_4FGL_J0516.8-0509_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/49688/ft2_4FGL_J0516.8-0509_daily_bin1780.fits
Exposure map: /scratch/kocevski/49688/expmap_700704001_700963201_4FGL_J0516.8-0509_daily_bin1780.fits
Exposure cube: /scratch/kocevski/49688/ltcube_700704001_700963201_4FGL_J0516.8-0509_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/49688/Model_4FGL_J0516.8-0509_daily_bin1780.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) = 12700.5911353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36949E-02   1.0000          .0000       .10000E+07
     2 'norm      '    5.2303       1.0000          .0000       .10000E+07
     3 'norm      '    4.5800       1.0000          .0000       .10000E+07
     4 'Prefactor '    75.974       1.0000          .0000       .10000E+07
     5 'norm      '    1.6186       1.0000          .0000       .10000E+07
     6 'Prefactor '    38.881       1.0000          .0000       .10000E+07
     7 'norm      '    8.3506       1.0000          .0000       .10000E+07
     8 'norm      '    .45549       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16728E-05   1.0000          .0000       .10000E+07
    10 'norm      '    2.1127       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.1129       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .98965       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12700.58     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      765 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    23.314       -.99297E-07** at limit **
   2  norm          5.2279        2.3407       -.26085E-06    .32043E-02
   3  norm          4.5804        2.1174       -.80860E-07    .89022E-03
   4  Prefactor     76.348        43.792        .99487E-07   -.13199E-02
   5  norm          1.6165        .69964       -.97401E-07    .48183E-02
   6  Prefactor     38.912        1.6004        .99237E-08    .38170E-01
   7  norm          8.3469        3.9235       -.17764E-07    .66018E-03
   8  norm          .13323E-08    100.14        .27704E-05** at limit **
   9  Prefactor      .0000        3.1766        .79656E-08** at limit **
  10  norm          2.1179        3.9423       -.10038E-06    .19492E-03
  11  Normalizat    1.1130        .20672        .17557E-05    .17687E-05
  12  Prefactor     .98967        .59941E-01   -.25424E-06    .58800E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 5.22786
  norm       = 4.58041
  Prefactor  = 76.3482
  norm       = 1.61647
  Prefactor  = 38.9125
  norm       = 8.34689
  norm       = 1.33227e-09
  Prefactor  = 0
  norm       = 2.11786
  Normalizat = 1.11302
  Prefactor  = 0.989667
 **********
 **   18 **HESSE 
 **********

 FCN=   12700.58     FROM HESSE     STATUS=OK           157 CALLS      922 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    23.125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2279        2.3396        .43929E-03   -1.5662    
   3  norm          4.5804        2.1416        .47012E-03   -1.5665    
   4  Prefactor     76.348        43.809        .11473E-03   -1.5533    
   5  norm          1.6165        .69992        .83169E-03   -1.5683    
   6  Prefactor     38.912        21.087        .16039E-03   -1.5583    
   7  norm          8.3469        3.9176        .34668E-03   -1.5650    
   8  norm          .13323E-08    97.897        .83320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.1961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1179        3.9530        .70943E-03   -1.5679    
  11  Normalizat    1.1130        .19724        .10758       -.89335    
  12  Prefactor     .98967        .56668E-01    .33013E-01   -.93075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92615e-08
Minuit parameter uncertainties:
  1  6.37704e-05
  2  2.33963
  3  2.14161
  4  43.8088
  5  0.699917
  6  21.0873
  7  3.91761
  8  0.000727353
  9  3.62083e-06
  10  3.95296
  11  0.197373
  12  0.0566715
Done.

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

Extracting fit parameters...

4FGL J0516.8-0509
   Spectrum: LogParabola
220         norm:  1.332e-09  7.274e-04  0.000e+00  1.000e+06 ( 1.000e-12)
221        alpha:  2.533e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
222         beta:  3.932e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
223           Eb:  3.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  9.897e-01  5.667e-02  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.113e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 79.224 -5.155
Photon Flux Upper Limit: 9.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49688/likelihoodResults_700704001_700963201_4FGL_J0516.8-0509_daily_bin1780.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): 0
logL (Free Index) = 12700.5816558
delta logL = -0.00538737912939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12700.5762684
delta logL = -1.70803104993e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10447E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    4.0866       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98967       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12700.58     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      322 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63818E-02    50.468        .84272E-02** at limit **
   2  alpha         3.5863        2.9880        .50000       -.51273E-06
   3  Normalizat    1.1130        .99340E-02    .10758        .87805E-03
   4  Prefactor     .98967        .28976E-02    .33013E-01    .45541E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00638183
  alpha      = 3.58629
  Normalizat = 1.11301
  Prefactor  = 0.989666
 **********
 **   18 **HESSE 
 **********

 FCN=   12700.58     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      359 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63818E-02    24.649        .11896E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.5863        4.1564        .20000        .44950    
   3  Normalizat    1.1130        .90630E-02    .47692E-03   -.89335    
   4  Prefactor     .98967        .26530E-02    .14588E-03   -.93075    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.91782e-09
Minuit parameter uncertainties:
  1  0.793242
  2  229.847
  3  0.00906301
  4  0.00265295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49688': 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) = 12700.5762683
delta logL = 6.03395164944e-08

Extracting fit parameters...

4FGL J0516.8-0509
   Spectrum: LogParabola
220         norm:  6.382e-03  7.932e-01  0.000e+00  1.000e+06 ( 1.000e-12)
221        alpha:  3.586e+00  2.298e+02  0.000e+00  5.000e+00 ( 1.000e+00)
222         beta:  3.932e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
223           Eb:  3.815e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  9.897e-01  2.653e-03  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.113e+00  9.063e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 79.224 -5.155

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/49688/cmap_HighResolution_700704001_700963201_4FGL_J0516.8-0509_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-05', job_status='DONE', photon_flux_upper_limit='9.02e-08', time_completed='2023-03-20 00:22:04.185644', job_id='49688', GAL2='0.99', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1679296924.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.03e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1780' AND source_name='4FGL J0516.8-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:22:04 PDT 2023

SUCCESS', return_code='0', GAL='0.99', dlogl='6.03e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1780' AND source_name='4FGL J0516.8-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:20:44 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 49709: <4FGL_J0516.8-0509_daily_bin1780> in cluster <slac> Done

Job <4FGL_J0516.8-0509_daily_bin1780> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 20 00:05:38 2023
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:05:44 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:05:44 2023
Terminated at Mon Mar 20 00:20:45 2023
Results reported at Mon Mar 20 00:20:45 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0516.8-0509_daily_bin1780 79.2241 -5.1547 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0516.8-0509 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   747.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             332.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            907 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 49688: <4FGL_J0516.8-0509_daily_bin1780> in cluster <slac> Done

Job <4FGL_J0516.8-0509_daily_bin1780> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Mar 20 00:05:37 2023
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:05:43 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:05:43 2023
Terminated at Mon Mar 20 00:22:05 2023
Results reported at Mon Mar 20 00:22:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0516.8-0509_daily_bin1780 79.2241 -5.1547 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0516.8-0509 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   745.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            988 sec.

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

