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


Performing analysis on: 4FGL_J0510.4-1809_daily_bin1421
RA = 77.6116, Dec = -18.1643
tmin = 607651201, tmax = 607910401
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='117639', job_status='RUN', time_executed='2021-08-22 05:16:35.051807', time_epoch_executed='1629634595.05' WHERE source_name='4FGL J0510.4-1809' and cadence='daily' and bin_id='1421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117639

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117639/ft1_4FGL_J0510.4-1809_daily_bin1421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117639/ft2_4FGL_J0510.4-1809_daily_bin1421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117639/ft1_4FGL_J0510.4-1809_daily_bin1421.fits outfile=/scratch/kocevski/117639/ft1_filteredMKT_4FGL_J0510.4-1809_daily_bin1421.fits ra=77.6116 dec=-18.1643 rad=12.0 tmin=607651201.0 tmax=607910401.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.68
user 3.59
sys 0.95

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/117639/ft2_4FGL_J0510.4-1809_daily_bin1421.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117639/ft2_4FGL_J0510.4-1809_daily_bin1421.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/117639/ft1_filteredMKT_4FGL_J0510.4-1809_daily_bin1421.fits evtable="EVENTS" outfile="/scratch/kocevski/117639/ft1_filtered_4FGL_J0510.4-1809_daily_bin1421.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 1.26
user 0.33
sys 0.90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117639/ft1_filtered_4FGL_J0510.4-1809_daily_bin1421.fits" evtable="EVENTS" scfile=/scratch/kocevski/117639/ft2_4FGL_J0510.4-1809_daily_bin1421.fits sctable="SC_DATA" outfile=/scratch/kocevski/117639/ltcube_607651201_607910401_4FGL_J0510.4-1809_daily_bin1421.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/117639/ft2_4FGL_J0510.4-1809_daily_bin1421.fits
.....................!
real 13.18
user 11.76
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117639/ft1_filtered_4FGL_J0510.4-1809_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/117639/ft2_4FGL_J0510.4-1809_daily_bin1421.fits sctable="SC_DATA" expcube=/scratch/kocevski/117639/ltcube_607651201_607910401_4FGL_J0510.4-1809_daily_bin1421.fits outfile=/scratch/kocevski/117639/expmap_607651201_607910401_4FGL_J0510.4-1809_daily_bin1421.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/117639/ltcube_607651201_607910401_4FGL_J0510.4-1809_daily_bin1421.fits
.....................!
real 191.34
user 185.64
sys 5.15

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
Added 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J0510.4-1809 @ 77.6116 -18.1643

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/117639/ft1_filtered_4FGL_J0510.4-1809_daily_bin1421.fits scfile=/scratch/kocevski/117639/ft2_4FGL_J0510.4-1809_daily_bin1421.fits outfile=/scratch/kocevski/117639/cmap_607651201_607910401_4FGL_J0510.4-1809_daily_bin1421.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=77.6116 yref=-18.1643 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 1.24
user 0.36
sys 0.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117639/ft1_filtered_4FGL_J0510.4-1809_daily_bin1421.fits scfile=/scratch/kocevski/117639/ft2_4FGL_J0510.4-1809_daily_bin1421.fits outfile=/scratch/kocevski/117639/cmap_HighResolution_607651201_607910401_4FGL_J0510.4-1809_daily_bin1421.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=77.6116 yref=-18.1643 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 1.28
user 0.38
sys 0.90

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/117639/ft1_filtered_4FGL_J0510.4-1809_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/117639/ft2_4FGL_J0510.4-1809_daily_bin1421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117639/Model_4FGL_J0510.4-1809_daily_bin1421.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
Working on...
/scratch/kocevski/117639/ft1_filtered_4FGL_J0510.4-1809_daily_bin1421.fits.....................!
real 95.69
user 93.31
sys 2.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/117639/ft1_filtered_4FGL_J0510.4-1809_daily_bin1421.fits', '/scratch/kocevski/117639/ft2_4FGL_J0510.4-1809_daily_bin1421.fits', expMap='/scratch/kocevski/117639/expmap_607651201_607910401_4FGL_J0510.4-1809_daily_bin1421.fits', expCube='/scratch/kocevski/117639/ltcube_607651201_607910401_4FGL_J0510.4-1809_daily_bin1421.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/117639/Model_4FGL_J0510.4-1809_daily_bin1421.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0510.4-1809'

4FGL J0510.4-1809
   Spectrum: PowerLaw
235    Prefactor:  3.738e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
236        Index:  2.493e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  8.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/117639/ft1_filtered_4FGL_J0510.4-1809_daily_bin1421.fits
Spacecraft file(s): /scratch/kocevski/117639/ft2_4FGL_J0510.4-1809_daily_bin1421.fits
Exposure map: /scratch/kocevski/117639/expmap_607651201_607910401_4FGL_J0510.4-1809_daily_bin1421.fits
Exposure cube: /scratch/kocevski/117639/ltcube_607651201_607910401_4FGL_J0510.4-1809_daily_bin1421.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/117639/Model_4FGL_J0510.4-1809_daily_bin1421.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) = 6009.13218616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.017       1.0000         .10000E-03   10000.    
     3 'norm      '    160.80       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    46.310       1.0000         .10000E-03   10000.    
     6 'norm      '    4.4193       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4800       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.240       1.0000         .10000E-03   10000.    
    10 'norm      '    79.848       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    18.955       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0139       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .97567       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .94287       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6009.126     FROM MIGRAD    STATUS=CONVERGED    280 CALLS     1443 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8040        .10564E-05** at limit **
   2  Prefactor     36.019        28.647        .25671E-05    .28794E-04
   3  norm          160.67        258.23       -.10480E-03   -.12038E-05
   4  Prefactor     .10000E-03    2.7678       -.98025E-06** at limit **
   5  Prefactor     46.258        54.908       -.71079E-04    .21002E-04
   6  norm          4.4226        5.6075        .42474E-05   -.31926E-03
   7  norm          1.4800        .33200        .38429E-06   -.24995E-02
   8  Prefactor     .10000E-03    13.545        .65039E-07** at limit **
   9  Prefactor     41.257        38.678        .24826E-04    .25074E-04
  10  norm          79.785        97.747       -.70140E-04   -.85598E-06
  11  Prefactor     .10000E-03    17.658        .36417E-05** at limit **
  12  norm          .10000E-03    4.8301       -.35249E-07** at limit **
  13  norm          18.935        31.205       -.36451E-04    .10227E-04
  14  norm          2.0112        16.346       -.31432E-05   -.18705E-03
  15  Normalizat    .97513        .20667        .21097E-05    .15614E-03
  16  Prefactor     .94316        .10754        .34847E-05   -.13320E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 36.0194
  norm       = 160.666
  Prefactor  = 0.0001
  Prefactor  = 46.2583
  norm       = 4.42265
  norm       = 1.48002
  Prefactor  = 0.0001
  Prefactor  = 41.257
  norm       = 79.7846
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.9352
  norm       = 2.01115
  Normalizat = 0.975131
  Prefactor  = 0.943157
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.126     FROM HESSE     STATUS=OK           203 CALLS     1646 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.019        28.680        .66778E-04   -1.4507    
   3  norm          160.67        257.97        .15901E-03   -1.3166    
   4  Prefactor     .10000E-03    2.7769        .12593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     46.258        55.091        .58919E-04   -1.4347    
   6  norm          4.4226        5.6109        .18018E-03   -1.5287    
   7  norm          1.4800        .33325        .19555E-04   -1.5465    
   8  Prefactor     .10000E-03    13.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.257        38.733        .62421E-04   -1.4422    
  10  norm          79.785        97.830        .22472E-03   -1.3919    
  11  Prefactor     .10000E-03    17.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.9086        .16610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          18.935        31.264        .91994E-04   -1.4837    
  14  norm          2.0112        16.387        .29169E-03   -1.5424    
  15  Normalizat    .97513        .22931        .33441E-03   -.93868    
  16  Prefactor     .94316        .11899        .18542E-03   -.94649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01595e-10
Minuit parameter uncertainties:
  1  6.63106e-05
  2  28.6915
  3  259.814
  4  1.11932e-05
  5  55.1517
  6  5.61159
  7  0.333255
  8  2.35416e-05
  9  38.7564
  10  98.0287
  11  4.34211e-05
  12  8.67618e-05
  13  31.2906
  14  11.4855
  15  0.229544
  16  0.119023
Done.

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

Extracting fit parameters...

4FGL J0510.4-1809
   Spectrum: PowerLaw
235    Prefactor:  4.126e+01  3.876e+01  1.000e-04  1.000e+04 ( 1.000e-13)
236        Index:  2.493e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  8.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  9.432e-01  1.190e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  9.751e-01  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 77.612 -18.164
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 6.37e-08 +/- 5.98e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.75e-05

TS (Fixed Index): 1.96
Ra Dec: 77.612 -18.164
Photon Flux Upper Limit: 1.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/117639/likelihoodResults_607651201_607910401_4FGL_J0510.4-1809_daily_bin1421.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) = 6008.87161806
delta logL = 0.254343207593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6008.87153058
delta logL = 0.254430681038

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.060       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0388       1.0000          .0000       10.000    
     3 'Normalizat'    .98961       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93833       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6008.872     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      268 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.060        1818.5        .13277E-02    .41444E-04
   2  Index         2.0387        5.2579        .18014        .97228E-05
   3  Normalizat    .98967        .21105        .75050E-01    .15851E-04
   4  Prefactor     .93831        .98696E-01    .45492E-01   -.25458E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.0597
  Index      = 2.03872
  Normalizat = 0.989665
  Prefactor  = 0.938306
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.872     FROM HESSE     STATUS=OK            29 CALLS      297 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.060        46.864        .53107E-04   -1.4196    
   2  Index         2.0387        .57448        .90124E-02   -.63386    
   3  Normalizat    .98967        .21268        .33211E-03   -.93377    
   4  Prefactor     .93831        .11590        .18577E-03   -.94815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44941e-11
Minuit parameter uncertainties:
  1  46.8947
  2  0.576448
  3  0.212858
  4  0.115934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117639': 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) = 6008.87153055
delta logL = 0.254430717227

Extracting fit parameters...

4FGL J0510.4-1809
   Spectrum: PowerLaw
235    Prefactor:  5.706e+01  4.689e+01  1.000e-04  1.000e+04 ( 1.000e-13)
236        Index:  2.039e+00  5.764e-01  0.000e+00  1.000e+01 (-1.000e+00)
237        Scale:  8.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  9.383e-01  1.159e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  9.897e-01  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.47
Ra Dec: 77.612 -18.164
Photon Index (Free Index): 2.04 +/- 0.58
Photon Flux (Free Index): 4.69e-08 +/- 4.82e-08
Energy Flux (Free Index): 2.96e-05 +/- 3.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/117639/cmap_HighResolution_607651201_607910401_4FGL_J0510.4-1809_daily_bin1421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', photon_flux='6.37e-08', energy_flux2='2.96e-05', photon_flux_error='5.98e-08', dlogl='2.54e-01', energy_flux='1.86e-05', photon_flux2='4.69e-08', job_status='DONE', time_completed='2021-08-22 05:25:46.461522', photon_index_error2='0.58', photon_index2='2.04', ts='1.96', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='3.24e-05', EG='0.98', time_epoch_completed='1629635146.46', return_code='0', job_id='117639', GAL2='0.94', EG2='0.99', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='4.82e-08', ts2='2.47', photon_index='2.49' WHERE bin_id='1421' AND source_name='4FGL J0510.4-1809' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 05:25:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 117639: <4FGL_J0510.4-1809_daily_bin1421> in cluster <slac> Done

Job <4FGL_J0510.4-1809_daily_bin1421> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 22 05:15:20 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 05:15:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 05:15:22 2021
Terminated at Sun Aug 22 05:25:47 2021
Results reported at Sun Aug 22 05:25:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0510.4-1809_daily_bin1421 77.6116 -18.1643 607651201 607910401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0510.4-1809 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   551.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            627 sec.

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

