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


Performing analysis on: 4FGL_J0509.9-6417_daily_bin1702
RA = 77.4876, Dec = -64.2891
tmin = 680486401, tmax = 680745601
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='233656', job_status='RUN', time_executed='2022-07-29 00:52:36.057960', time_epoch_executed='1659081156.06' WHERE source_name='4FGL J0509.9-6417' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233656

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233656/ft1_4FGL_J0509.9-6417_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233656/ft2_4FGL_J0509.9-6417_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233656/ft1_4FGL_J0509.9-6417_daily_bin1702.fits outfile=/scratch/kocevski/233656/ft1_filteredMKT_4FGL_J0509.9-6417_daily_bin1702.fits ra=77.4876 dec=-64.2891 rad=12.0 tmin=680486401.0 tmax=680745601.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 2.97
user 2.73
sys 0.22

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

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

Number of photons that the gtmktime cut: 1180

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233656/ft1_filtered_4FGL_J0509.9-6417_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/233656/ft2_4FGL_J0509.9-6417_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/233656/ltcube_680486401_680745601_4FGL_J0509.9-6417_daily_bin1702.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/233656/ft2_4FGL_J0509.9-6417_daily_bin1702.fits
.....................!
real 16.30
user 15.75
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233656/ft1_filtered_4FGL_J0509.9-6417_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/233656/ft2_4FGL_J0509.9-6417_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/233656/ltcube_680486401_680745601_4FGL_J0509.9-6417_daily_bin1702.fits outfile=/scratch/kocevski/233656/expmap_680486401_680745601_4FGL_J0509.9-6417_daily_bin1702.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/233656/ltcube_680486401_680745601_4FGL_J0509.9-6417_daily_bin1702.fits
.....................!
real 193.07
user 187.19
sys 4.26

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_archive_v18/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_archive_v18/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_archive_v18/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_archive_v18/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/233656/ft1_filtered_4FGL_J0509.9-6417_daily_bin1702.fits scfile=/scratch/kocevski/233656/ft2_4FGL_J0509.9-6417_daily_bin1702.fits outfile=/scratch/kocevski/233656/cmap_680486401_680745601_4FGL_J0509.9-6417_daily_bin1702.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 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233656/ft1_filtered_4FGL_J0509.9-6417_daily_bin1702.fits scfile=/scratch/kocevski/233656/ft2_4FGL_J0509.9-6417_daily_bin1702.fits outfile=/scratch/kocevski/233656/cmap_HighResolution_680486401_680745601_4FGL_J0509.9-6417_daily_bin1702.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/233656/ft1_filtered_4FGL_J0509.9-6417_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/233656/ft2_4FGL_J0509.9-6417_daily_bin1702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/233656/Model_4FGL_J0509.9-6417_daily_bin1702.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/233656/ft1_filtered_4FGL_J0509.9-6417_daily_bin1702.fits....................!
real 7300.39
user 7275.60
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/233656/ft1_filtered_4FGL_J0509.9-6417_daily_bin1702.fits', '/scratch/kocevski/233656/ft2_4FGL_J0509.9-6417_daily_bin1702.fits', expMap='/scratch/kocevski/233656/expmap_680486401_680745601_4FGL_J0509.9-6417_daily_bin1702.fits', expCube='/scratch/kocevski/233656/ltcube_680486401_680745601_4FGL_J0509.9-6417_daily_bin1702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/233656/Model_4FGL_J0509.9-6417_daily_bin1702.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  1.000e-04  1.000e+04 ( 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/233656/ft1_filtered_4FGL_J0509.9-6417_daily_bin1702.fits
Spacecraft file(s): /scratch/kocevski/233656/ft2_4FGL_J0509.9-6417_daily_bin1702.fits
Exposure map: /scratch/kocevski/233656/expmap_680486401_680745601_4FGL_J0509.9-6417_daily_bin1702.fits
Exposure cube: /scratch/kocevski/233656/ltcube_680486401_680745601_4FGL_J0509.9-6417_daily_bin1702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/233656/Model_4FGL_J0509.9-6417_daily_bin1702.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) = 12612.4083161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7772       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7656       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3247       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3493       1.0000         .10000E-03   10000.    
     6 'Prefactor '    74.539       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9266       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6758       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0128       1.0000         .10000E-03   10000.    
    10 'norm      '    5.4067       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0918       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21067E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.274       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6281       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .89501       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9451       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7427       1.0000         .10000E-03   10000.    
    21 'norm      '    1.7236       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.859       1.0000         .10000E-03   10000.    
    23 'norm      '    3.0227       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92193       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0355       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12612.41     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2891 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2320       -.25641E-06** at limit **
   2  Prefactor     2.7770        5.7664        .73825E-07   -.29421E-03
   3  Prefactor     6.7642        14.804       -.23201E-05    .25132E-06
   4  norm          1.3244        3.6471       -.35406E-06   -.11041E-03
   5  Prefactor     2.3493        4.8756        .70436E-07   -.32371E-03
   6  Prefactor     74.541        39.220        .18460E-05    .12679E-04
   7  Prefactor     9.9263        10.129       -.28640E-06    .53299E-05
   8  Prefactor     7.6757        12.359       -.22353E-06    .30765E-05
   9  Prefactor     4.0125        22.524       -.13572E-05    .40954E-06
  10  norm          5.4068        2.9224       -.43017E-06   -.70157E-05
  11  Prefactor     5.0917        4.5612       -.11275E-05    .13891E-04
  12  norm          .10000E-03    9.1200        .24221E-06** at limit **
  13  Prefactor     .10000E-03    1.0529       -.61779E-07** at limit **
  14  norm          13.275        6.9090       -.26794E-06    .33613E-04
  15  Prefactor     .10000E-03    .93947       -.95448E-07** at limit **
  16  norm          4.6279        4.0160       -.81799E-06    .11086E-04
  17  Prefactor     .10000E-03    19.147       -.25521E-06** at limit **
  18  Prefactor     .89874        5.0464       -.55924E-07   -.65301E-04
  19  Prefactor     5.9387        9.7103        .15069E-05    .13318E-04
  20  Prefactor     5.7430        5.7448       -.67155E-07   -.37878E-05
  21  norm          1.7235        1.6038       -.16755E-07   -.97104E-05
  22  Prefactor     18.858        22.594       -.99977E-06    .92294E-06
  23  norm          3.0227        2.4796        .15628E-06    .18801E-05
  24  Normalizat    .92193        .14782       -.97505E-07    .96830E-04
  25  Prefactor     1.0355        .95788E-01    .53108E-06    .25859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.77704
  Prefactor  = 6.76422
  norm       = 1.32442
  Prefactor  = 2.34929
  Prefactor  = 74.5411
  Prefactor  = 9.92634
  Prefactor  = 7.67573
  Prefactor  = 4.01246
  norm       = 5.40678
  Prefactor  = 5.09169
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2753
  Prefactor  = 0.0001
  norm       = 4.62792
  Prefactor  = 0.0001
  Prefactor  = 0.898744
  Prefactor  = 5.9387
  Prefactor  = 5.74299
  norm       = 1.72354
  Prefactor  = 18.8583
  norm       = 3.02268
  Normalizat = 0.921933
  Prefactor  = 1.03552
 **********
 **   18 **HESSE 
 **********

 FCN=   12612.41     FROM HESSE     STATUS=OK           443 CALLS     3334 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2340        .12174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7770        7.4504        .12210E-02   -1.5375    
   3  Prefactor     6.7642        14.800        .15426E-03   -1.5188    
   4  norm          1.3244        3.6122        .33183E-03   -1.5478    
   5  Prefactor     2.3493        7.3280        .13372E-02   -1.5401    
   6  Prefactor     74.541        38.997        .46505E-04   -1.3979    
   7  Prefactor     9.9263        10.133        .12718E-03   -1.5078    
   8  Prefactor     7.6757        12.350        .14474E-03   -1.5154    
   9  Prefactor     4.0125        22.491        .20132E-03   -1.5307    
  10  norm          5.4068        2.9193        .13190E-03   -1.5243    
  11  Prefactor     5.0917        4.5570        .17818E-03   -1.5257    
  12  norm          .10000E-03    9.1212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.1390        .21798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.275        6.8317        .10994E-03   -1.4979    
  15  Prefactor     .10000E-03    .94031        .10629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6279        4.0134        .18709E-03   -1.5278    
  17  Prefactor     .10000E-03    19.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .89874        17.554        .48063E-02   -1.5518    
  19  Prefactor     5.9387        9.6802        .16469E-03   -1.5221    
  20  Prefactor     5.7430        5.7420        .16761E-03   -1.5229    
  21  norm          1.7235        1.5985        .13297E-03   -1.5445    
  22  Prefactor     18.858        22.610        .92228E-04   -1.4839    
  23  norm          3.0227        2.4747        .15527E-03   -1.5360    
  24  Normalizat    .92193        .16854        .32009E-03   -.95694    
  25  Prefactor     1.0355        .10958        .19938E-03   -.91555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16292e-08
Minuit parameter uncertainties:
  1  3.15231e-07
  2  7.45292
  3  14.8082
  4  3.61284
  5  7.33081
  6  39.0101
  7  10.1352
  8  12.3543
  9  19.0102
  10  2.91937
  11  4.55731
  12  1.59878e-06
  13  9.39401e-05
  14  6.8321
  15  5.73432e-07
  16  4.01362
  17  0.000142872
  18  7.94615
  19  9.68273
  20  5.74257
  21  1.59852
  22  22.6198
  23  2.47483
  24  0.168638
  25  0.109605
Done.

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

Extracting fit parameters...

4FGL J0509.9-6417
   Spectrum: PowerLaw
310    Prefactor:  7.676e+00  1.235e+01  1.000e-04  1.000e+04 ( 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.036e+00  1.096e-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:  9.219e-01  1.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/233656/likelihoodResults_680486401_680745601_4FGL_J0509.9-6417_daily_bin1702.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) = 12612.2813529
delta logL = 0.125462112353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12612.2350487
delta logL = 0.171766229405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.162       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4502       1.0000          .0000       10.000    
     3 'Normalizat'    .92507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0342       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.

 FCN=   12612.24     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      223 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.183        576.16        .28717E-02    .13088E-04
   2  Index         1.4507        5.4685        .30402        .96033E-04
   3  Normalizat    .92499        .51806E-01    .72237E-01   -.22699E-03
   4  Prefactor     1.0343        .29458E-01    .40938E-01   -.31018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1835
  Index      = 1.45073
  Normalizat = 0.92499
  Prefactor  = 1.03433
 **********
 **   18 **HESSE 
 **********

 FCN=   12612.24     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.183        17.043        .11487E-03   -1.5010    
   2  Index         1.4507        .70237        .13562E-01   -.78929    
   3  Normalizat    .92499        .16192        .31963E-03   -.95588    
   4  Prefactor     1.0343        .10700        .19947E-03   -.91594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83231e-10
Minuit parameter uncertainties:
  1  17.0501
  2  0.707115
  3  0.16201
  4  0.107027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233656': 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) = 12612.2350466
delta logL = 0.17176832191

Extracting fit parameters...

4FGL J0509.9-6417
   Spectrum: PowerLaw
310    Prefactor:  1.218e+01  1.705e+01  1.000e-04  1.000e+04 ( 1.000e-14)
311        Index:  1.451e+00  7.071e-01  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.034e+00  1.070e-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:  9.250e-01  1.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
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/233656/cmap_HighResolution_680486401_680745601_4FGL_J0509.9-6417_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-03', job_status='DONE', photon_flux_upper_limit='3.96e-08', time_completed='2022-07-29 03:14:00.546645', job_id='233656', GAL2='1.03', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1659089640.55', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.72e-01', ts2='0.94', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1702' AND source_name='4FGL J0509.9-6417' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 03:14:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 233699: <4FGL_J0509.9-6417_daily_bin1702> in cluster <slac> Done

Job <4FGL_J0509.9-6417_daily_bin1702> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jul 29 00:05:45 2022
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 00:50:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 00:50:12 2022
Terminated at Fri Jul 29 03:12:10 2022
Results reported at Fri Jul 29 03:12:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0509.9-6417_daily_bin1702 77.4876 -64.2891 680486401 680745601 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 :                                   8314.00 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             567.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   8518 sec.
    Turnaround time :                            11185 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0183>
Subject: Job 233656: <4FGL_J0509.9-6417_daily_bin1702> in cluster <slac> Done

Job <4FGL_J0509.9-6417_daily_bin1702> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Jul 29 00:05:43 2022
Job was executed on host(s) <bullet0183>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 00:49:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 00:49:28 2022
Terminated at Fri Jul 29 03:14:01 2022
Results reported at Fri Jul 29 03:14:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0509.9-6417_daily_bin1702 77.4876 -64.2891 680486401 680745601 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 :                                   8463.83 sec.
    Max Memory :                                 644 MB
    Average Memory :                             578.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2938 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   8672 sec.
    Turnaround time :                            11298 sec.

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

