/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 76 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 = 7408
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0516.8-0509_daily_bin1632
RA = 79.2241, Dec = -5.1547
tmin = 662342401, tmax = 662601601
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='619440', job_status='RUN', time_executed='2021-12-31 00:09:40.962865', time_epoch_executed='1640938180.96' WHERE source_name='4FGL J0516.8-0509' and cadence='daily' and bin_id='1632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/619440

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/619440/ft1_4FGL_J0516.8-0509_daily_bin1632.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/619440/ft2_4FGL_J0516.8-0509_daily_bin1632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/619440/ft1_4FGL_J0516.8-0509_daily_bin1632.fits outfile=/scratch/kocevski/619440/ft1_filteredMKT_4FGL_J0516.8-0509_daily_bin1632.fits ra=79.2241 dec=-5.1547 rad=12.0 tmin=662342401.0 tmax=662601601.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 7.45
user 2.70
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/619440/ft1_filtered_4FGL_J0516.8-0509_daily_bin1632.fits" evtable="EVENTS" scfile=/scratch/kocevski/619440/ft2_4FGL_J0516.8-0509_daily_bin1632.fits sctable="SC_DATA" outfile=/scratch/kocevski/619440/ltcube_662342401_662601601_4FGL_J0516.8-0509_daily_bin1632.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/619440/ft2_4FGL_J0516.8-0509_daily_bin1632.fits
.....................!
real 13.12
user 12.18
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/619440/ft1_filtered_4FGL_J0516.8-0509_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/619440/ft2_4FGL_J0516.8-0509_daily_bin1632.fits sctable="SC_DATA" expcube=/scratch/kocevski/619440/ltcube_662342401_662601601_4FGL_J0516.8-0509_daily_bin1632.fits outfile=/scratch/kocevski/619440/expmap_662342401_662601601_4FGL_J0516.8-0509_daily_bin1632.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/619440/ltcube_662342401_662601601_4FGL_J0516.8-0509_daily_bin1632.fits
.....................!
real 190.80
user 185.58
sys 4.89

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_archive_v18/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/619440/ft1_filtered_4FGL_J0516.8-0509_daily_bin1632.fits scfile=/scratch/kocevski/619440/ft2_4FGL_J0516.8-0509_daily_bin1632.fits outfile=/scratch/kocevski/619440/cmap_662342401_662601601_4FGL_J0516.8-0509_daily_bin1632.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/619440/ft1_filtered_4FGL_J0516.8-0509_daily_bin1632.fits scfile=/scratch/kocevski/619440/ft2_4FGL_J0516.8-0509_daily_bin1632.fits outfile=/scratch/kocevski/619440/cmap_HighResolution_662342401_662601601_4FGL_J0516.8-0509_daily_bin1632.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.60
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/619440/ft1_filtered_4FGL_J0516.8-0509_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/619440/ft2_4FGL_J0516.8-0509_daily_bin1632.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/619440/Model_4FGL_J0516.8-0509_daily_bin1632.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/619440/ft1_filtered_4FGL_J0516.8-0509_daily_bin1632.fits.....................!
real 187.87
user 186.37
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/619440/ft1_filtered_4FGL_J0516.8-0509_daily_bin1632.fits', '/scratch/kocevski/619440/ft2_4FGL_J0516.8-0509_daily_bin1632.fits', expMap='/scratch/kocevski/619440/expmap_662342401_662601601_4FGL_J0516.8-0509_daily_bin1632.fits', expCube='/scratch/kocevski/619440/ltcube_662342401_662601601_4FGL_J0516.8-0509_daily_bin1632.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/619440/Model_4FGL_J0516.8-0509_daily_bin1632.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  1.000e-04  1.000e+04 ( 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  0.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/619440/ft1_filtered_4FGL_J0516.8-0509_daily_bin1632.fits
Spacecraft file(s): /scratch/kocevski/619440/ft2_4FGL_J0516.8-0509_daily_bin1632.fits
Exposure map: /scratch/kocevski/619440/expmap_662342401_662601601_4FGL_J0516.8-0509_daily_bin1632.fits
Exposure cube: /scratch/kocevski/619440/ltcube_662342401_662601601_4FGL_J0516.8-0509_daily_bin1632.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/619440/Model_4FGL_J0516.8-0509_daily_bin1632.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) = 9250.56865271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6579       1.0000         .10000E-03   10000.    
     2 'norm      '    .11234E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.849       1.0000         .10000E-03   10000.    
     4 'Prefactor '    91.663       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12663E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.953       1.0000         .10000E-03   10000.    
     8 'norm      '    13.373       1.0000         .10000E-03   10000.    
     9 'norm      '    .38521E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20698E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    13 'Normalizat'    .85350       1.0000         .10000E-01   10.000    
    14 'Prefactor '    1.0322       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=   9250.565     FROM MIGRAD    STATUS=CONVERGED    298 CALLS     1225 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6732        8.5177        .42220E-02    .14273E-03
   2  norm          .10000E-03    1.2159        .37590E-01** at limit **
   3  norm          11.860        3.3671        .29094E-02    .11965E-03
   4  Prefactor     91.333        86.793        .10493E-02    .80651E-05
   5  norm          .10000E-03    .55891        .25727E-01** at limit **
   6  Prefactor     .10000E-03    18.844        .90712E-02** at limit **
   7  Prefactor     20.983        25.803        .21875E-02    .94275E-05
   8  norm          13.405        7.2935        .27383E-02    .40824E-03
   9  norm          .10000E-03    15.067        .10640E-01** at limit **
  10  Prefactor     .10000E-03    19.475        .90712E-02** at limit **
  11  Prefactor     .10000E-03    4.0680        .90712E-02** at limit **
  12  norm          .10000E-03    2.9447        .90712E-02** at limit **
  13  Normalizat    .85332        .21091        .10901        .40754E-04
  14  Prefactor     1.0323        .65877E-01    .41085E-01   -.11624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.67319
  norm       = 0.0001
  norm       = 11.8603
  Prefactor  = 91.3332
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9829
  norm       = 13.4048
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.853323
  Prefactor  = 1.03226
 **********
 **   18 **HESSE 
 **********

 FCN=   9250.565     FROM HESSE     STATUS=OK           166 CALLS     1391 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6732        8.5195        .16888E-03   -1.5232    
   2  norm          .10000E-03    2.2381        .20386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.860        3.3647        .87218E-04   -1.5019    
   4  Prefactor     91.333        82.127        .20986E-03   -1.3794    
   5  norm          .10000E-03    .80701        .12846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.983        25.800        .87501E-04   -1.4792    
   8  norm          13.405        7.2255        .54766E-03   -1.4976    
   9  norm          .10000E-03    15.082        .21281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0052        .16091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Normalizat    .85332        .22084        .48341E-03   -.98120    
  14  Prefactor     1.0323        .69706E-01    .14608E-03   -.91662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69712e-13
Minuit parameter uncertainties:
  1  8.52136
  2  3.05503e-07
  3  3.36471
  4  82.2294
  5  5.31052e-07
  6  2.08656e-06
  7  25.8141
  8  7.22594
  9  2.76319e-06
  10  6.02814e-06
  11  3.3165e-07
  12  9.32014e-07
  13  0.221075
  14  0.0697122
Done.

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

Extracting fit parameters...

4FGL J0516.8-0509
   Spectrum: LogParabola
220         norm:  1.000e-04  2.763e-06  1.000e-04  1.000e+04 ( 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  0.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:  1.032e+00  6.971e-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:  8.533e-01  2.211e-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.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/619440/likelihoodResults_662342401_662601601_4FGL_J0516.8-0509_daily_bin1632.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) = 9250.56481646
delta logL = -0.000315952969686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9250.5645005
delta logL = 8.03265720606e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5410       1.0000          .0000       5.0000    
     3 'Normalizat'    .85332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0323       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9250.564     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      261 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    6.4195        .11598    ** at limit **
   2  alpha         5.0000        2.8618        .16463       -.31323E-07
   3  Normalizat    .85332        .99534E-02    .48341E-03   -.68889E-03
   4  Prefactor     1.0323        .33072E-02    .14608E-03   -.18312E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100025
  alpha      = 4.99997
  Normalizat = 0.853318
  Prefactor  = 1.03226
 **********
 **   18 **HESSE 
 **********

 FCN=   9250.564     FROM HESSE     STATUS=OK            27 CALLS      288 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    80.679        .30514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        4.9524        .32927E-01    1.5657    
   3  Normalizat    .85332        .20865        .19336E-04   -.98120    
   4  Prefactor     1.0323        .69315E-01    .29217E-04   -.91662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5772e-09
Minuit parameter uncertainties:
  1  0.00283756
  2  5.44821
  3  0.208843
  4  0.0693209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/619440': 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) = 9250.56449788
delta logL = 2.62586581812e-06

Extracting fit parameters...

4FGL J0516.8-0509
   Spectrum: LogParabola
220         norm:  1.000e-04  2.838e-03  1.000e-04  1.000e+04 ( 1.000e-12)
221        alpha:  5.000e+00  5.448e+00  0.000e+00  5.000e+00 ( 1.000e+00)
222         beta:  3.932e-01  0.000e+00  0.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:  1.032e+00  6.932e-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:  8.533e-01  2.088e-01  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/619440/cmap_HighResolution_662342401_662601601_4FGL_J0516.8-0509_daily_bin1632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='9.42e-08', time_completed='2021-12-31 00:20:43.285108', job_id='619440', GAL2='1.03', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1640938843.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.63e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1632' AND source_name='4FGL J0516.8-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 31 00:20:43 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0177>
Subject: Job 619377: <4FGL_J0516.8-0509_daily_bin1632> in cluster <slac> Done

Job <4FGL_J0516.8-0509_daily_bin1632> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Fri Dec 31 00:05:59 2021
Job was executed on host(s) <bullet0177>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 31 00:06:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 31 00:06:09 2021
Terminated at Fri Dec 31 00:19:26 2021
Results reported at Fri Dec 31 00:19:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0516.8-0509_daily_bin1632 79.2241 -5.1547 662342401 662601601 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 :                                   663.69 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             359.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            807 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 619440: <4FGL_J0516.8-0509_daily_bin1632> in cluster <slac> Done

Job <4FGL_J0516.8-0509_daily_bin1632> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Dec 31 00:06:02 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 31 00:06:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 31 00:06:16 2021
Terminated at Fri Dec 31 00:20:44 2021
Results reported at Fri Dec 31 00:20:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0516.8-0509_daily_bin1632 79.2241 -5.1547 662342401 662601601 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 :                                   658.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            882 sec.

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

