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


Performing analysis on: 4FGL_J0510.4-1809_daily_bin1426
RA = 77.6116, Dec = -18.1643
tmin = 608947201, tmax = 609206401
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='117646', job_status='RUN', time_executed='2021-08-22 05:17:04.311926', time_epoch_executed='1629634624.31' WHERE source_name='4FGL J0510.4-1809' and cadence='daily' and bin_id='1426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117646

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117646/ft1_4FGL_J0510.4-1809_daily_bin1426.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117646/ft2_4FGL_J0510.4-1809_daily_bin1426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117646/ft1_4FGL_J0510.4-1809_daily_bin1426.fits outfile=/scratch/kocevski/117646/ft1_filteredMKT_4FGL_J0510.4-1809_daily_bin1426.fits ra=77.6116 dec=-18.1643 rad=12.0 tmin=608947201.0 tmax=609206401.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 3.45
user 2.91
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117646/ft2_4FGL_J0510.4-1809_daily_bin1426.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/117646/ft1_filteredMKT_4FGL_J0510.4-1809_daily_bin1426.fits evtable="EVENTS" outfile="/scratch/kocevski/117646/ft1_filtered_4FGL_J0510.4-1809_daily_bin1426.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.85
user 0.32
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117646/ft1_filtered_4FGL_J0510.4-1809_daily_bin1426.fits" evtable="EVENTS" scfile=/scratch/kocevski/117646/ft2_4FGL_J0510.4-1809_daily_bin1426.fits sctable="SC_DATA" outfile=/scratch/kocevski/117646/ltcube_608947201_609206401_4FGL_J0510.4-1809_daily_bin1426.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/117646/ft2_4FGL_J0510.4-1809_daily_bin1426.fits
.....................!
real 13.09
user 12.36
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117646/ft1_filtered_4FGL_J0510.4-1809_daily_bin1426.fits evtable="EVENTS" scfile=/scratch/kocevski/117646/ft2_4FGL_J0510.4-1809_daily_bin1426.fits sctable="SC_DATA" expcube=/scratch/kocevski/117646/ltcube_608947201_609206401_4FGL_J0510.4-1809_daily_bin1426.fits outfile=/scratch/kocevski/117646/expmap_608947201_609206401_4FGL_J0510.4-1809_daily_bin1426.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/117646/ltcube_608947201_609206401_4FGL_J0510.4-1809_daily_bin1426.fits
.....................!
real 191.77
user 185.99
sys 5.30

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/117646/ft1_filtered_4FGL_J0510.4-1809_daily_bin1426.fits scfile=/scratch/kocevski/117646/ft2_4FGL_J0510.4-1809_daily_bin1426.fits outfile=/scratch/kocevski/117646/cmap_608947201_609206401_4FGL_J0510.4-1809_daily_bin1426.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 0.85
user 0.37
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117646/ft1_filtered_4FGL_J0510.4-1809_daily_bin1426.fits scfile=/scratch/kocevski/117646/ft2_4FGL_J0510.4-1809_daily_bin1426.fits outfile=/scratch/kocevski/117646/cmap_HighResolution_608947201_609206401_4FGL_J0510.4-1809_daily_bin1426.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 0.87
user 0.38
sys 0.46

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/117646/ft1_filtered_4FGL_J0510.4-1809_daily_bin1426.fits evtable="EVENTS" scfile=/scratch/kocevski/117646/ft2_4FGL_J0510.4-1809_daily_bin1426.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117646/Model_4FGL_J0510.4-1809_daily_bin1426.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/117646/ft1_filtered_4FGL_J0510.4-1809_daily_bin1426.fits.....................!
real 122.81
user 120.10
sys 1.66

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/117646/ft1_filtered_4FGL_J0510.4-1809_daily_bin1426.fits', '/scratch/kocevski/117646/ft2_4FGL_J0510.4-1809_daily_bin1426.fits', expMap='/scratch/kocevski/117646/expmap_608947201_609206401_4FGL_J0510.4-1809_daily_bin1426.fits', expCube='/scratch/kocevski/117646/ltcube_608947201_609206401_4FGL_J0510.4-1809_daily_bin1426.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/117646/Model_4FGL_J0510.4-1809_daily_bin1426.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/117646/ft1_filtered_4FGL_J0510.4-1809_daily_bin1426.fits
Spacecraft file(s): /scratch/kocevski/117646/ft2_4FGL_J0510.4-1809_daily_bin1426.fits
Exposure map: /scratch/kocevski/117646/expmap_608947201_609206401_4FGL_J0510.4-1809_daily_bin1426.fits
Exposure cube: /scratch/kocevski/117646/ltcube_608947201_609206401_4FGL_J0510.4-1809_daily_bin1426.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/117646/Model_4FGL_J0510.4-1809_daily_bin1426.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) = 8149.90446859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6575       1.0000         .10000E-03   10000.    
     2 'Prefactor '    71.087       1.0000         .10000E-03   10000.    
     3 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3673       1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.124       1.0000         .10000E-03   10000.    
     6 'norm      '    5.4518       1.0000         .10000E-03   10000.    
     7 'norm      '    .89832       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.923       1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0274       1.0000         .10000E-03   10000.    
    12 'norm      '    6.3147       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.691       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.0506       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0316       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=   8149.900     FROM MIGRAD    STATUS=CONVERGED    306 CALLS     1454 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6562        15.275        .16064E-06   -.12055E-04
   2  Prefactor     71.087        29.722        .74974E-07   -.48980E-05
   3  norm          .10000E-03    77.098       -.11682E-05** at limit **
   4  Prefactor     5.3676        6.5811        .37444E-05    .14848E-03
   5  Prefactor     54.125        50.823        .18004E-06   -.43049E-05
   6  norm          5.4507        3.1875        .12647E-06   -.24123E-02
   7  norm          .89833        .22011        .36519E-10   -.20836E-03
   8  Prefactor     .10000E-03    17.132       -.12717E-05** at limit **
   9  Prefactor     16.922        16.649        .48465E-07   -.43524E-05
  10  norm          .10000E-03    27.802        .88724E-06** at limit **
  11  Prefactor     1.0149        14.442        .75434E-07   -.25757E-05
  12  norm          6.3151        3.7363        .11440E-06   -.21899E-02
  13  norm          .10000E-03    15.248        .82951E-06** at limit **
  14  norm          12.691        11.590       -.25615E-07   -.10021E-04
  15  Normalizat    1.0507        .18709       -.89776E-06   -.84431E-05
  16  Prefactor     1.0315        .10231       -.13452E-06   -.43167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.65624
  Prefactor  = 71.0874
  norm       = 0.0001
  Prefactor  = 5.36758
  Prefactor  = 54.1246
  norm       = 5.45072
  norm       = 0.898326
  Prefactor  = 0.0001
  Prefactor  = 16.9216
  norm       = 0.0001
  Prefactor  = 1.01485
  norm       = 6.31515
  norm       = 0.0001
  norm       = 12.6909
  Normalizat = 1.05068
  Prefactor  = 1.03153
 **********
 **   18 **HESSE 
 **********

 FCN=   8149.900     FROM HESSE     STATUS=OK           205 CALLS     1659 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6562        15.291        .13623E-03   -1.5119    
   2  Prefactor     71.087        29.773        .47613E-04   -1.4020    
   3  norm          .10000E-03    77.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.3676        6.5858        .17347E-03   -1.5245    
   5  Prefactor     54.125        50.975        .54521E-04   -1.4235    
   6  norm          5.4507        4.2514        .77320E-03   -1.5241    
   7  norm          .89833        .22054        .19749E-04   -1.5518    
   8  Prefactor     .10000E-03    17.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.922        16.665        .97360E-04   -1.4885    
  10  norm          .10000E-03    27.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0149        145.68        .65692E-02   -1.5506    
  12  norm          6.3151        4.9232        .79867E-03   -1.5205    
  13  norm          .10000E-03    15.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.691        11.597        .11244E-03   -1.4995    
  15  Normalizat    1.0507        .20901        .33159E-03   -.91351    
  16  Prefactor     1.0315        .11541        .18984E-03   -.91686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40786e-08
Minuit parameter uncertainties:
  1  15.2979
  2  29.7797
  3  3.85567e-05
  4  6.58667
  5  51.016
  6  4.25162
  7  0.220541
  8  2.88664e-05
  9  16.6699
  10  2.18745e-05
  11  24.378
  12  4.92355
  13  1.43014e-05
  14  11.5994
  15  0.209169
  16  0.11544
Done.

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

Extracting fit parameters...

4FGL J0510.4-1809
   Spectrum: PowerLaw
235    Prefactor:  1.692e+01  1.667e+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:  1.032e+00  1.154e-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:  1.051e+00  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.80
Ra Dec: 77.612 -18.164
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 2.61e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 7.64e-06 +/- 7.53e-06

TS (Fixed Index): 2.80
Ra Dec: 77.612 -18.164
Photon Flux Upper Limit: 9.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/117646/likelihoodResults_608947201_609206401_4FGL_J0510.4-1809_daily_bin1426.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) = 8148.96954441
delta logL = 0.930839354569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8148.96605569
delta logL = 0.934328082115

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.680       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5324       1.0000          .0000       10.000    
     3 'Normalizat'    1.0650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0288       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=   8148.966     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.680        18.178        .23813E-02   -.40127E-03
   2  Index         1.5323        .44767        .29450       -.54823E-04
   3  Normalizat    1.0652        .17114        .74466E-01    .18741E-04
   4  Prefactor     1.0288        .97576E-01    .41355E-01   -.94996E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6799
  Index      = 1.53232
  Normalizat = 1.06518
  Prefactor  = 1.02877
 **********
 **   18 **HESSE 
 **********

 FCN=   8148.966     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.680        21.688        .95253E-04   -1.4867    
   2  Index         1.5323        .66932        .10742E-01   -.76638    
   3  Normalizat    1.0652        .18695        .32955E-03   -.90878    
   4  Prefactor     1.0288        .10678        .19005E-03   -.91777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0529e-09
Minuit parameter uncertainties:
  1  21.6976
  2  0.673235
  3  0.187064
  4  0.106803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117646': 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) = 8148.9660544
delta logL = 0.934329369959

Extracting fit parameters...

4FGL J0510.4-1809
   Spectrum: PowerLaw
235    Prefactor:  1.768e+01  2.170e+01  1.000e-04  1.000e+04 ( 1.000e-13)
236        Index:  1.532e+00  6.732e-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:  1.029e+00  1.068e-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:  1.065e+00  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.66
Ra Dec: 77.612 -18.164
Photon Index (Free Index): 1.53 +/- 0.67
Photon Flux (Free Index): 9.17e-09 +/- 1.32e-08
Energy Flux (Free Index): 2.60e-05 +/- 4.14e-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/117646/cmap_HighResolution_608947201_609206401_4FGL_J0510.4-1809_daily_bin1426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.51e-03', comment='SUCCESS', photon_flux='2.61e-08', energy_flux2='2.60e-05', photon_flux_error='2.57e-08', dlogl='9.34e-01', energy_flux='7.64e-06', photon_flux2='9.17e-09', job_status='DONE', time_completed='2021-08-22 05:27:28.989944', photon_index_error2='0.67', photon_index2='1.53', ts='2.80', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='9.67e-08', energy_flux_error2='4.14e-05', EG='1.05', time_epoch_completed='1629635248.99', return_code='0', job_id='117646', GAL2='1.03', EG2='1.07', return_code2='0', energy_flux_error='7.53e-06', photon_flux_error2='1.32e-08', ts2='4.66', photon_index='2.49' WHERE bin_id='1426' AND source_name='4FGL J0510.4-1809' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 05:27:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 117646: <4FGL_J0510.4-1809_daily_bin1426> in cluster <slac> Done

Job <4FGL_J0510.4-1809_daily_bin1426> 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) <bullet0051>, 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:27:29 2021
Results reported at Sun Aug 22 05:27:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0510.4-1809_daily_bin1426 77.6116 -18.1643 608947201 609206401 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 :                                   616.52 sec.
    Max Memory :                                 1017 MB
    Average Memory :                             299.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

