/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 0 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0516.8-0509_daily_bin894
RA = 79.2241, Dec = -5.1547
tmin = 471052801, tmax = 471312001
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='192491', job_status='RUN', time_executed='2021-08-22 09:38:05.121992', time_epoch_executed='1629650285.12' WHERE source_name='4FGL J0516.8-0509' and cadence='daily' and bin_id='894'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192491/ft1_4FGL_J0516.8-0509_daily_bin894.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192491/ft2_4FGL_J0516.8-0509_daily_bin894.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192491/ft1_4FGL_J0516.8-0509_daily_bin894.fits outfile=/scratch/kocevski/192491/ft1_filteredMKT_4FGL_J0516.8-0509_daily_bin894.fits ra=79.2241 dec=-5.1547 rad=12.0 tmin=471052801.0 tmax=471312001.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 13.29
user 3.83
sys 9.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/192491/ft2_4FGL_J0516.8-0509_daily_bin894.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/192491/ft1_filteredMKT_4FGL_J0516.8-0509_daily_bin894.fits evtable="EVENTS" outfile="/scratch/kocevski/192491/ft1_filtered_4FGL_J0516.8-0509_daily_bin894.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 9.71
user 0.34
sys 9.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192491/ft1_filtered_4FGL_J0516.8-0509_daily_bin894.fits" evtable="EVENTS" scfile=/scratch/kocevski/192491/ft2_4FGL_J0516.8-0509_daily_bin894.fits sctable="SC_DATA" outfile=/scratch/kocevski/192491/ltcube_471052801_471312001_4FGL_J0516.8-0509_daily_bin894.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/192491/ft2_4FGL_J0516.8-0509_daily_bin894.fits
.....................!
real 23.37
user 12.66
sys 10.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192491/ft1_filtered_4FGL_J0516.8-0509_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/192491/ft2_4FGL_J0516.8-0509_daily_bin894.fits sctable="SC_DATA" expcube=/scratch/kocevski/192491/ltcube_471052801_471312001_4FGL_J0516.8-0509_daily_bin894.fits outfile=/scratch/kocevski/192491/expmap_471052801_471312001_4FGL_J0516.8-0509_daily_bin894.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/192491/ltcube_471052801_471312001_4FGL_J0516.8-0509_daily_bin894.fits
.....................!
real 202.55
user 186.52
sys 15.53

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/192491/ft1_filtered_4FGL_J0516.8-0509_daily_bin894.fits scfile=/scratch/kocevski/192491/ft2_4FGL_J0516.8-0509_daily_bin894.fits outfile=/scratch/kocevski/192491/cmap_471052801_471312001_4FGL_J0516.8-0509_daily_bin894.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 9.61
user 0.36
sys 9.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192491/ft1_filtered_4FGL_J0516.8-0509_daily_bin894.fits scfile=/scratch/kocevski/192491/ft2_4FGL_J0516.8-0509_daily_bin894.fits outfile=/scratch/kocevski/192491/cmap_HighResolution_471052801_471312001_4FGL_J0516.8-0509_daily_bin894.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 9.68
user 0.38
sys 9.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/192491/ft1_filtered_4FGL_J0516.8-0509_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/192491/ft2_4FGL_J0516.8-0509_daily_bin894.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/192491/Model_4FGL_J0516.8-0509_daily_bin894.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/192491/ft1_filtered_4FGL_J0516.8-0509_daily_bin894.fits.....................!
real 192.81
user 177.51
sys 13.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/192491/ft1_filtered_4FGL_J0516.8-0509_daily_bin894.fits', '/scratch/kocevski/192491/ft2_4FGL_J0516.8-0509_daily_bin894.fits', expMap='/scratch/kocevski/192491/expmap_471052801_471312001_4FGL_J0516.8-0509_daily_bin894.fits', expCube='/scratch/kocevski/192491/ltcube_471052801_471312001_4FGL_J0516.8-0509_daily_bin894.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/192491/Model_4FGL_J0516.8-0509_daily_bin894.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/192491/ft1_filtered_4FGL_J0516.8-0509_daily_bin894.fits
Spacecraft file(s): /scratch/kocevski/192491/ft2_4FGL_J0516.8-0509_daily_bin894.fits
Exposure map: /scratch/kocevski/192491/expmap_471052801_471312001_4FGL_J0516.8-0509_daily_bin894.fits
Exposure cube: /scratch/kocevski/192491/ltcube_471052801_471312001_4FGL_J0516.8-0509_daily_bin894.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/192491/Model_4FGL_J0516.8-0509_daily_bin894.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) = 8630.36359918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.391       1.0000         .10000E-03   10000.    
     2 'norm      '    .70237       1.0000         .10000E-03   10000.    
     3 'norm      '    .19140       1.0000         .10000E-03   10000.    
     4 'Prefactor '    88.911       1.0000         .10000E-03   10000.    
     5 'norm      '    .46626       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.5022       1.0000         .10000E-03   10000.    
     9 'norm      '    .23598E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.097       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Normalizat'    1.1011       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .97026       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.

 FCN=   8630.363     FROM MIGRAD    STATUS=CONVERGED    291 CALLS     1603 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.395        12.452        .11305E-05    .30896E-03
   2  norm          .70431        2.5736        .13178E-05   -.39076E-03
   3  norm          .20147        1.0781       -.38590E-07   -.21646E-03
   4  Prefactor     88.863        53.716       -.31406E-05   -.40491E-03
   5  norm          .46785        .73400       -.14582E-06   -.24282E-03
   6  Prefactor     .10000E-03    55.129        .11764E-06** at limit **
   7  Prefactor     .10000E-03    27.714        .42901E-07** at limit **
   8  norm          4.5011        4.1126        .12882E-05   -.57874E-03
   9  norm          .10108E-03    43.491        .22723E-05** at limit **
  10  Prefactor     .10000E-03    13.767        .36554E-07** at limit **
  11  Prefactor     13.097        9.1553        .68159E-06    .25213E-03
  12  norm          .10000E-03    2.0378        .15378E-07** at limit **
  13  Normalizat    1.1005        .24645       -.10007E-05   -.13700E-03
  14  Prefactor     .97029        .64281E-01   -.14634E-07   -.28575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3947
  norm       = 0.704306
  norm       = 0.201475
  Prefactor  = 88.8634
  norm       = 0.467852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.50112
  norm       = 0.000101081
  Prefactor  = 0.0001
  Prefactor  = 13.0968
  norm       = 0.0001
  Normalizat = 1.10048
  Prefactor  = 0.97029
 **********
 **   18 **HESSE 
 **********

 FCN=   8630.363     FROM HESSE     STATUS=OK           176 CALLS     1779 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.395        12.718        .11380E-03   -1.5004    
   2  norm          .70431        2.6671        .26624E-03   -1.5540    
   3  norm          .20147        5.3461        .17826E-02   -1.5618    
   4  Prefactor     88.863        54.439        .42612E-04   -1.3820    
   5  norm          .46785        .63952        .83674E-03   -1.5571    
   6  Prefactor     .10000E-03    55.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5011        4.2332        .85918E-03   -1.5284    
   9  norm          .10108E-03    39.359        .15343       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.097        9.2102        .11068E-03   -1.4984    
  12  norm          .10000E-03    2.0707        .12941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Normalizat    1.1005        .25938        .45709E-03   -.89736    
  14  Prefactor     .97029        .68111E-01    .14189E-03   -.93726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97575e-08
Minuit parameter uncertainties:
  1  12.7204
  2  2.6676
  3  2.07537
  4  54.4695
  5  0.639526
  6  3.55126e-05
  7  5.80991e-06
  8  4.23344
  9  0.0130533
  10  1.52245e-06
  11  9.21119
  12  1.59378e-06
  13  0.259677
  14  0.0681168
Done.

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

Extracting fit parameters...

4FGL J0516.8-0509
   Spectrum: LogParabola
220         norm:  1.011e-04  1.305e-02  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:  9.703e-01  6.812e-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.100e+00  2.597e-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: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/192491/likelihoodResults_471052801_471312001_4FGL_J0516.8-0509_daily_bin894.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) = 8630.36289177
delta logL = -9.83572499536e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8630.36289176
delta logL = -9.83471363725e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5327       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97029       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=   8628.971     FROM MIGRAD    STATUS=CONVERGED    142 CALLS      315 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.045        16.026        .90712E-02   -.13610E-02
   2  alpha         5.0000        4.5810        .41156    ** at limit **
   3  Normalizat    .97548        .22449        .10852        .26566E-03
   4  Prefactor     .98224        .63774E-01    .31910E-01    .33297E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.045
  alpha      = 5
  Normalizat = 0.975484
  Prefactor  = 0.982239
 **********
 **   18 **HESSE 
 **********

 FCN=   8628.971     FROM HESSE     STATUS=OK            33 CALLS      348 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.045        10.312        .20325E-03   -1.5014    
   2  alpha         5.0000        3.4423        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .97548        .23560        .48122E-03   -.93856    
   4  Prefactor     .98224        .66885E-01    .14101E-03   -.93324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28962e-09
Minuit parameter uncertainties:
  1  10.3139
  2  6.45648e-05
  3  0.235855
  4  0.0668909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192491': 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) = 8628.97079999
delta logL = 1.39208194434

Extracting fit parameters...

4FGL J0516.8-0509
   Spectrum: LogParabola
220         norm:  1.204e+01  1.031e+01  1.000e-04  1.000e+04 ( 1.000e-12)
221        alpha:  5.000e+00  6.456e-05  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:  9.822e-01  6.689e-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:  9.755e-01  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 79.224 -5.155
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.52e-07 +/- 1.30e-07
Energy Flux (Free Index): 2.13e-05 +/- 1.82e-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/192491/cmap_HighResolution_471052801_471312001_4FGL_J0516.8-0509_daily_bin894.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-05', comment='SUCCESS', energy_flux2='2.13e-05', dlogl='1.39e+00', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-08-22 09:51:49.718905', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.82e-05', EG='1.10', time_epoch_completed='1629651109.72', return_code='0', job_id='192491', GAL2='0.98', EG2='0.98', return_code2='0', photon_flux_error2='1.30e-07', ts2='3.03', photon_index='2.53' WHERE bin_id='894' AND source_name='4FGL J0516.8-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 09:51:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 192491: <4FGL_J0516.8-0509_daily_bin894> in cluster <slac> Done

Job <4FGL_J0516.8-0509_daily_bin894> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 22 09:35:29 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 09:35:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 09:35:30 2021
Terminated at Sun Aug 22 09:51:51 2021
Results reported at Sun Aug 22 09:51:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0516.8-0509_daily_bin894 79.2241 -5.1547 471052801 471312001 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 :                                   964.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            982 sec.

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

