aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache us/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 215 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7491
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0509.9-6417_daily_bin1732
RA = 77.4876, Dec = -64.2891
tmin = 688262401, tmax = 688521601
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='637793', job_status='RUN', time_executed='2022-10-27 02:49:50.435163', time_epoch_executed='1666864190.44' WHERE source_name='4FGL J0509.9-6417' and cadence='daily' and bin_id='1732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637793

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637793/ft1_4FGL_J0509.9-6417_daily_bin1732.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637793/ft2_4FGL_J0509.9-6417_daily_bin1732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637793/ft1_4FGL_J0509.9-6417_daily_bin1732.fits outfile=/scratch/kocevski/637793/ft1_filteredMKT_4FGL_J0509.9-6417_daily_bin1732.fits ra=77.4876 dec=-64.2891 rad=12.0 tmin=688262401.0 tmax=688521601.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.52
user 3.29
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/637793/ft2_4FGL_J0509.9-6417_daily_bin1732.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/637793/ft2_4FGL_J0509.9-6417_daily_bin1732.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/637793/ft1_filteredMKT_4FGL_J0509.9-6417_daily_bin1732.fits evtable="EVENTS" outfile="/scratch/kocevski/637793/ft1_filtered_4FGL_J0509.9-6417_daily_bin1732.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.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 812

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/637793/ft1_filtered_4FGL_J0509.9-6417_daily_bin1732.fits" evtable="EVENTS" scfile=/scratch/kocevski/637793/ft2_4FGL_J0509.9-6417_daily_bin1732.fits sctable="SC_DATA" outfile=/scratch/kocevski/637793/ltcube_688262401_688521601_4FGL_J0509.9-6417_daily_bin1732.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/637793/ft2_4FGL_J0509.9-6417_daily_bin1732.fits
.....................!
real 12.37
user 12.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637793/ft1_filtered_4FGL_J0509.9-6417_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/637793/ft2_4FGL_J0509.9-6417_daily_bin1732.fits sctable="SC_DATA" expcube=/scratch/kocevski/637793/ltcube_688262401_688521601_4FGL_J0509.9-6417_daily_bin1732.fits outfile=/scratch/kocevski/637793/expmap_688262401_688521601_4FGL_J0509.9-6417_daily_bin1732.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/637793/ltcube_688262401_688521601_4FGL_J0509.9-6417_daily_bin1732.fits
.....................!
real 193.30
user 187.65
sys 5.27

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 LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-North.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Added 197 point sources and 4 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 J0509.9-6417 @ 77.4876 -64.2891

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/637793/ft1_filtered_4FGL_J0509.9-6417_daily_bin1732.fits scfile=/scratch/kocevski/637793/ft2_4FGL_J0509.9-6417_daily_bin1732.fits outfile=/scratch/kocevski/637793/cmap_688262401_688521601_4FGL_J0509.9-6417_daily_bin1732.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.4876 yref=-64.2891 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.22
user 0.37
sys 0.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/637793/ft1_filtered_4FGL_J0509.9-6417_daily_bin1732.fits scfile=/scratch/kocevski/637793/ft2_4FGL_J0509.9-6417_daily_bin1732.fits outfile=/scratch/kocevski/637793/cmap_HighResolution_688262401_688521601_4FGL_J0509.9-6417_daily_bin1732.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.4876 yref=-64.2891 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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/637793/ft1_filtered_4FGL_J0509.9-6417_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/637793/ft2_4FGL_J0509.9-6417_daily_bin1732.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/637793/Model_4FGL_J0509.9-6417_daily_bin1732.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 LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/scratch/kocevski/637793/ft1_filtered_4FGL_J0509.9-6417_daily_bin1732.fits.....................!
real 4928.18
user 4917.47
sys 1.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/637793/ft1_filtered_4FGL_J0509.9-6417_daily_bin1732.fits', '/scratch/kocevski/637793/ft2_4FGL_J0509.9-6417_daily_bin1732.fits', expMap='/scratch/kocevski/637793/expmap_688262401_688521601_4FGL_J0509.9-6417_daily_bin1732.fits', expCube='/scratch/kocevski/637793/ltcube_688262401_688521601_4FGL_J0509.9-6417_daily_bin1732.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/637793/Model_4FGL_J0509.9-6417_daily_bin1732.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0509.9-6417'

4FGL J0509.9-6417
   Spectrum: PowerLaw
310    Prefactor:  2.868e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
311        Index:  1.895e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  3.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/637793/ft1_filtered_4FGL_J0509.9-6417_daily_bin1732.fits
Spacecraft file(s): /scratch/kocevski/637793/ft2_4FGL_J0509.9-6417_daily_bin1732.fits
Exposure map: /scratch/kocevski/637793/expmap_688262401_688521601_4FGL_J0509.9-6417_daily_bin1732.fits
Exposure cube: /scratch/kocevski/637793/ltcube_688262401_688521601_4FGL_J0509.9-6417_daily_bin1732.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/637793/Model_4FGL_J0509.9-6417_daily_bin1732.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) = 8520.05301535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0566       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10213E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    14.433       1.0000          .0000       .10000E+07
     4 'norm      '    14.571       1.0000          .0000       .10000E+07
     5 'Prefactor '    8.6701       1.0000          .0000       .10000E+07
     6 'Prefactor '    18.571       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.3792       1.0000          .0000       .10000E+07
     8 'Prefactor '    .78905E-02   1.0000          .0000       .10000E+07
     9 'norm      '    3.3490       1.0000          .0000       .10000E+07
    10 'Prefactor '    .26535E-04   1.0000          .0000       .10000E+07
    11 'norm      '    18.754       1.0000          .0000       .10000E+07
    12 'Prefactor '    .56066E-08   1.0000          .0000       .10000E+07
    13 'norm      '    10.184       1.0000          .0000       .10000E+07
    14 'norm      '    9.6237       1.0000          .0000       .10000E+07
    15 'Prefactor '    .17429E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .14548E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12605E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.3833       1.0000          .0000       .10000E+07
    19 'norm      '    5.7608       1.0000          .0000       .10000E+07
    20 'Prefactor '    .11264E-01   1.0000          .0000       .10000E+07
    21 'norm      '    1.6981       1.0000          .0000       .10000E+07
    22 'Normalizat'    .80566       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0751       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8519.994     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     1850 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0164        5.8571       -.95720E-08   -.19033E-02
   2  Prefactor     .44409E-09    4.1099       -.52266E-07** at limit **
   3  Prefactor     14.941        24.482       -.74020E-07   -.29409E-01
   4  norm          14.561        7.1358        .25063E-07    .40281E-02
   5  Prefactor     8.6502        1.5744        .62550E-08    .76140E-02
   6  Prefactor     19.998        31.361       -.32067E-06    .88349E-03
   7  Prefactor     1.4170        6.0186        .11986E-06   -.36446E-01
   8  Prefactor     .22204E-08    15.294       -.97895E-08** at limit **
   9  norm          3.3472        2.8350        .10638E-07    .51100E-02
  10  Prefactor     .55511E-10    2.3759       -.50469E-07** at limit **
  11  norm          25.045        75.274        .71944E-06    .14581E-02
  12  Prefactor      .0000        .75367       -.52640E-09** at limit **
  13  norm          10.198        6.6604       -.13849E-07   -.18450E-02
  14  norm          9.6129        1.8047        .10187E-07   -.50169E-01
  15  Prefactor     .11102E-09    6.7924        .65594E-07** at limit **
  16  Prefactor     .27756E-09    4.5797        .37981E-07** at limit **
  17  Prefactor      .0000        3.6412        .13868E-07** at limit **
  18  Prefactor     6.3890        10.407        .70802E-07    .12095E-01
  19  norm          5.7733        4.5368       -.66875E-07   -.48405E-02
  20  Prefactor     .72164E-09    12.675       -.78261E-07** at limit **
  21  norm          1.7034        3.2018       -.18722E-07   -.12987E-02
  22  Normalizat    .80529        .19963        .70528E-07    .17223E-03
  23  Prefactor     1.0736        .13459        .57566E-06    .34441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.01643
  Prefactor  = 4.44089e-10
  Prefactor  = 14.9407
  norm       = 14.5615
  Prefactor  = 8.65017
  Prefactor  = 19.9976
  Prefactor  = 1.41702
  Prefactor  = 2.22045e-09
  norm       = 3.34721
  Prefactor  = 5.55112e-11
  norm       = 25.0447
  Prefactor  = 0
  norm       = 10.1984
  norm       = 9.6129
  Prefactor  = 1.11022e-10
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 6.38898
  norm       = 5.77329
  Prefactor  = 7.21645e-10
  norm       = 1.70341
  Normalizat = 0.80529
  Prefactor  = 1.07363
 **********
 **   18 **HESSE 
 **********

 FCN=   8519.994     FROM HESSE     STATUS=OK           420 CALLS     2270 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0164        5.8635        .35299E-03   -1.5651    
   2  Prefactor     .44409E-09    4.1110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.941        27.097        .26338E-03   -1.5631    
   4  norm          14.561        7.1170        .26213E-03   -1.5632    
   5  Prefactor     8.6502        16.876        .34019E-03   -1.5649    
   6  Prefactor     19.998        31.544        .23214E-03   -1.5619    
   7  Prefactor     1.4170        43.119        .92668E-03   -1.5684    
   8  Prefactor     .22204E-08    15.303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3472        2.9651        .55278E-03   -1.5671    
  10  Prefactor     .55511E-10    2.3651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          25.045        75.083        .23100E-03   -1.5608    
  12  Prefactor      .0000        .75318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.198        6.6557        .31373E-03   -1.5644    
  14  norm          9.6129        10.137        .32279E-03   -1.5646    
  15  Prefactor     .11102E-09    6.7817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .27756E-09    4.5868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        3.6373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.3890        10.457        .39703E-03   -1.5657    
  19  norm          5.7733        4.5603        .41823E-03   -1.5660    
  20  Prefactor     .72164E-09    12.687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7034        3.2457        .80708E-03   -1.5682    
  22  Normalizat    .80529        .18279        .75089E-01   -.99873    
  23  Prefactor     1.0736        .11947        .38621E-01   -.90314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29466e-07
Minuit parameter uncertainties:
  1  5.86353
  2  8.6952e-05
  3  27.0973
  4  7.11704
  5  16.8765
  6  31.5445
  7  15.6335
  8  0.000367282
  9  2.96514
  10  2.58995e-05
  11  75.0853
  12  3.98004e-07
  13  6.65571
  14  10.1374
  15  4.82269e-05
  16  7.16658e-05
  17  1.12327e-05
  18  10.4567
  19  4.56027
  20  0.000188686
  21  3.24573
  22  0.182926
  23  0.119499
Done.

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

Extracting fit parameters...

4FGL J0509.9-6417
   Spectrum: PowerLaw
310    Prefactor:  2.220e-09  3.673e-04  0.000e+00  1.000e+06 ( 1.000e-14)
311        Index:  1.895e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  3.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
629    Prefactor:  1.074e+00  1.195e-01  0.000e+00  1.000e+01 ( 1.000e+00)
630        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
631        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
628   Normalization:  8.053e-01  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 77.488 -64.289
Photon Flux Upper Limit: 4.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/637793/likelihoodResults_688262401_688521601_4FGL_J0509.9-6417_daily_bin1732.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) = 8520.02592863
delta logL = -0.0317770543952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8519.9941516
delta logL = -2.06910044653e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10364E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .84929       1.0000          .0000       10.000    
     3 'Normalizat'    .80530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0736       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8519.994     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      209 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.3388        .42118E-03** at limit **
   2  Index         2.1905        1.7750        .15851E-04     .0000    
   3  Normalizat    .80529        1.1440       -.64557E-05   -.66424E-05
   4  Prefactor     1.0736        1.1680        .46862E-05   -.40092E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.19048
  Normalizat = 0.80529
  Prefactor  = 1.07363
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8519.994     FROM HESSE     STATUS=FAILED         9 CALLS      218 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.3388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .52890        1.9335        .15851E-04   -.59669    
   3  Normalizat    .80529        1.1440       -.64557E-05   -.99873    
   4  Prefactor     1.0736        1.1680        .46862E-05   -.90314    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.36488e-12
Minuit parameter uncertainties:
  1  1.21098e-05
  2  1.83454
  3  1.18116
  4  1.19766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637793': 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): 101
logL (Free Index) = 8519.99415158
delta logL = 1.00044417195e-10

Extracting fit parameters...

4FGL J0509.9-6417
   Spectrum: PowerLaw
310    Prefactor:  0.000e+00  1.211e-05  0.000e+00  1.000e+06 ( 1.000e-14)
311        Index:  2.190e+00  1.835e+00  0.000e+00  1.000e+01 (-1.000e+00)
312        Scale:  3.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
629    Prefactor:  1.074e+00  1.198e+00  0.000e+00  1.000e+01 ( 1.000e+00)
630        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
631        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
628   Normalization:  8.053e-01  1.181e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 77.488 -64.289

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/637793/cmap_HighResolution_688262401_688521601_4FGL_J0509.9-6417_daily_bin1732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-03', job_status='DONE', photon_flux_upper_limit='4.29e-08', time_completed='2022-10-27 04:23:54.131337', job_id='637793', GAL2='1.07', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1666869834.13', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.00e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1732' AND source_name='4FGL J0509.9-6417' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct 27 04:23:54 PDT 2022

='daily';

Database successfully updated.


Analysis Complete.


Thu Oct 27 01:48:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 638257: <4FGL_J0509.9-6417_daily_bin1732> in cluster <slac> Done

Job <4FGL_J0509.9-6417_daily_bin1732> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Oct 27 00:06:57 2022
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 27 00:07:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 27 00:07:03 2022
Terminated at Thu Oct 27 01:48:47 2022
Results reported at Thu Oct 27 01:48:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0509.9-6417_daily_bin1732 77.4876 -64.2891 688262401 688521601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0509.9-6417 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5775.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             548.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   6104 sec.
    Turnaround time :                            6110 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 637793: <4FGL_J0509.9-6417_daily_bin1732> in cluster <slac> Done

Job <4FGL_J0509.9-6417_daily_bin1732> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Oct 27 00:06:32 2022
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 27 00:06:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 27 00:06:35 2022
Terminated at Thu Oct 27 04:23:54 2022
Results reported at Thu Oct 27 04:23:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0509.9-6417_daily_bin1732 77.4876 -64.2891 688262401 688521601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0509.9-6417 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5642.00 sec.
    Max Memory :                                 625 MB
    Average Memory :                             247.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   15439 sec.
    Turnaround time :                            15442 sec.

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

