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 127 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 = 7532
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0405.4-6929_daily_bin1704
RA = 61.3672, Dec = -69.4885
tmin = 681004801, tmax = 681264001
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='363749', job_status='RUN', time_executed='2022-08-04 01:46:24.821681', time_epoch_executed='1659602784.82' WHERE source_name='4FGL J0405.4-6929' and cadence='daily' and bin_id='1704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363749

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363749/ft1_4FGL_J0405.4-6929_daily_bin1704.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363749/ft2_4FGL_J0405.4-6929_daily_bin1704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363749/ft1_4FGL_J0405.4-6929_daily_bin1704.fits outfile=/scratch/kocevski/363749/ft1_filteredMKT_4FGL_J0405.4-6929_daily_bin1704.fits ra=61.3672 dec=-69.4885 rad=12.0 tmin=681004801.0 tmax=681264001.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.98
user 2.74
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/363749/ft2_4FGL_J0405.4-6929_daily_bin1704.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/363749/ft2_4FGL_J0405.4-6929_daily_bin1704.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/363749/ft1_filteredMKT_4FGL_J0405.4-6929_daily_bin1704.fits evtable="EVENTS" outfile="/scratch/kocevski/363749/ft1_filtered_4FGL_J0405.4-6929_daily_bin1704.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.52
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 1184

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363749/ft1_filtered_4FGL_J0405.4-6929_daily_bin1704.fits" evtable="EVENTS" scfile=/scratch/kocevski/363749/ft2_4FGL_J0405.4-6929_daily_bin1704.fits sctable="SC_DATA" outfile=/scratch/kocevski/363749/ltcube_681004801_681264001_4FGL_J0405.4-6929_daily_bin1704.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/363749/ft2_4FGL_J0405.4-6929_daily_bin1704.fits
.....................!
real 14.92
user 14.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363749/ft1_filtered_4FGL_J0405.4-6929_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/363749/ft2_4FGL_J0405.4-6929_daily_bin1704.fits sctable="SC_DATA" expcube=/scratch/kocevski/363749/ltcube_681004801_681264001_4FGL_J0405.4-6929_daily_bin1704.fits outfile=/scratch/kocevski/363749/expmap_681004801_681264001_4FGL_J0405.4-6929_daily_bin1704.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/363749/ltcube_681004801_681264001_4FGL_J0405.4-6929_daily_bin1704.fits
.....................!
real 193.48
user 187.37
sys 5.68

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-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.
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 SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 188 point sources and 5 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 J0405.4-6929 @ 61.3672 -69.4885

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/363749/ft1_filtered_4FGL_J0405.4-6929_daily_bin1704.fits scfile=/scratch/kocevski/363749/ft2_4FGL_J0405.4-6929_daily_bin1704.fits outfile=/scratch/kocevski/363749/cmap_681004801_681264001_4FGL_J0405.4-6929_daily_bin1704.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=61.3672 yref=-69.4885 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.62
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363749/ft1_filtered_4FGL_J0405.4-6929_daily_bin1704.fits scfile=/scratch/kocevski/363749/ft2_4FGL_J0405.4-6929_daily_bin1704.fits outfile=/scratch/kocevski/363749/cmap_HighResolution_681004801_681264001_4FGL_J0405.4-6929_daily_bin1704.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=61.3672 yref=-69.4885 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/363749/ft1_filtered_4FGL_J0405.4-6929_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/363749/ft2_4FGL_J0405.4-6929_daily_bin1704.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/363749/Model_4FGL_J0405.4-6929_daily_bin1704.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
adding source SMC-Galaxy
Working on...
/scratch/kocevski/363749/ft1_filtered_4FGL_J0405.4-6929_daily_bin1704.fits.....................!
real 10579.36
user 10555.44
sys 2.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/363749/ft1_filtered_4FGL_J0405.4-6929_daily_bin1704.fits', '/scratch/kocevski/363749/ft2_4FGL_J0405.4-6929_daily_bin1704.fits', expMap='/scratch/kocevski/363749/expmap_681004801_681264001_4FGL_J0405.4-6929_daily_bin1704.fits', expCube='/scratch/kocevski/363749/ltcube_681004801_681264001_4FGL_J0405.4-6929_daily_bin1704.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/363749/Model_4FGL_J0405.4-6929_daily_bin1704.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0405.4-6929'

4FGL J0405.4-6929
   Spectrum: PowerLaw
256    Prefactor:  4.114e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.539e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  8.904e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/363749/ft1_filtered_4FGL_J0405.4-6929_daily_bin1704.fits
Spacecraft file(s): /scratch/kocevski/363749/ft2_4FGL_J0405.4-6929_daily_bin1704.fits
Exposure map: /scratch/kocevski/363749/expmap_681004801_681264001_4FGL_J0405.4-6929_daily_bin1704.fits
Exposure cube: /scratch/kocevski/363749/ltcube_681004801_681264001_4FGL_J0405.4-6929_daily_bin1704.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/363749/Model_4FGL_J0405.4-6929_daily_bin1704.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) = 12381.0938226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13613E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.643       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.4846       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1944       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.210       1.0000         .10000E-03   10000.    
    12 'norm      '    6.7878       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6743       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.621       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9393       1.0000         .10000E-03   10000.    
    18 'norm      '    4.8283       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11376E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10442E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .31210E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    16.107       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3783       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98915       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12381.08     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2740 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2077       -.29156E-05** at limit **
   2  Prefactor     .10000E-03    2.1234        .23605E-08** at limit **
   3  norm          .10000E-03    5.9689       -.13932E-06** at limit **
   4  Prefactor     .10000E-03    1.6670        .66436E-07** at limit **
   5  Prefactor     31.646        36.777       -.61671E-07   -.62757E-04
   6  Prefactor     .10000E-03    25.304        .48079E-05** at limit **
   7  norm          4.4848        4.2445       -.36344E-06   -.11279E-03
   8  norm          1.1946        .87878        .17776E-06    .79036E-03
   9  Prefactor     .10000E-03    3.3666       -.74903E-07** at limit **
  10  Prefactor     .10000E-03    3.0572       -.45998E-08** at limit **
  11  Prefactor     51.210        23.763        .35483E-06   -.24248E-04
  12  norm          6.7881        4.7925        .10011E-05    .10821E-02
  13  Prefactor     6.6747        8.5964        .93300E-07   -.80229E-05
  14  Prefactor     .10000E-03    11.520       -.14327E-05** at limit **
  15  Prefactor     14.622        13.988       -.16586E-05    .36134E-04
  16  Prefactor     .10000E-03    7.2167       -.26413E-06** at limit **
  17  Prefactor     3.9379        60.242        .20688E-05    .34870E-05
  18  norm          4.8282        3.2981        .25044E-05    .33762E-02
  19  Prefactor     .10050E-03    10.943        .10407E-04** at limit **
  20  norm          .10000E-03    54.316        .41936E-05** at limit **
  21  Prefactor     .10000E-03    1.8372       -.14434E-05** at limit **
  22  norm          16.108        7.0267        .20980E-06   -.14117E-03
  23  Normalizat    1.3782        .17278       -.13251E-05   -.66569E-03
  24  Prefactor     .98922        .10154        .54147E-07   -.91549E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.646
  Prefactor  = 0.0001
  norm       = 4.48484
  norm       = 1.19462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.2104
  norm       = 6.78805
  Prefactor  = 6.67473
  Prefactor  = 0.0001
  Prefactor  = 14.6224
  Prefactor  = 0.0001
  Prefactor  = 3.93791
  norm       = 4.82823
  Prefactor  = 0.000100504
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.1077
  Normalizat = 1.37818
  Prefactor  = 0.989221
 **********
 **   18 **HESSE 
 **********

 FCN=   12381.08     FROM HESSE     STATUS=OK           403 CALLS     3143 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8011        .35094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1273        .15830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.0033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6872        .14027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.646        37.045        .71230E-04   -1.4582    
   6  Prefactor     .10000E-03    25.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4848        4.2405        .19013E-03   -1.5284    
   8  norm          1.1946        .86205        .82495E-04   -1.5489    
   9  Prefactor     .10000E-03    3.4276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     51.210        23.800        .56043E-04   -1.4276    
  12  norm          6.7881        4.8528        .77002E-03   -1.5187    
  13  Prefactor     6.6747        8.5900        .15532E-03   -1.5191    
  14  Prefactor     .10000E-03    11.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.622        14.181        .10475E-03   -1.4943    
  16  Prefactor     .10000E-03    7.2256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.9379        60.283        .20325E-03   -1.5311    
  18  norm          4.8282        3.7158        .85982E-03   -1.5268    
  19  Prefactor     .10050E-03    32.055        .35693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    54.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.708        .28121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          16.108        7.0051        .99796E-04   -1.4905    
  23  Normalizat    1.3782        .19870        .30931E-03   -.81262    
  24  Prefactor     .98922        .11709        .22167E-03   -.93090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94432e-08
Minuit parameter uncertainties:
  1  0.000229931
  2  1.14377e-07
  3  6.07818e-06
  4  5.56221e-06
  5  37.0715
  6  0.000148843
  7  4.2408
  8  0.862063
  9  2.7329e-06
  10  1.0846e-06
  11  23.8049
  12  4.85304
  13  8.59156
  14  7.59742e-05
  15  14.1843
  16  1.40733e-05
  17  30.8516
  18  3.71599
  19  0.00804067
  20  4.86047e-05
  21  2.60974e-05
  22  7.00541
  23  0.198811
  24  0.11712
Done.

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

Extracting fit parameters...

4FGL J0405.4-6929
   Spectrum: PowerLaw
256    Prefactor:  5.121e+01  2.380e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.539e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  8.904e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.892e-01  1.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.378e+00  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.07
Ra Dec: 61.367 -69.489
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 8.58e-08 +/- 3.99e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 1.11e-05

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) = 12381.0746595
delta logL = 0.00756259074478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12381.0691633
delta logL = 0.0130587476397

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12381.07     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      253 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.246        32.522        .54454E-04    .20727E-03
   2  Index         2.4522        .56433        .84695E-02    .60256E-04
   3  Normalizat    1.3857        .19278        .30865E-03    .26808E-03
   4  Prefactor     .98665        .11660        .22192E-03    .34566E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.246
  Index      = 2.45219
  Normalizat = 1.38566
  Prefactor  = 0.986651
 **********
 **   18 **HESSE 
 **********

 FCN=   12381.07     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.246        30.837        .10891E-04   -1.4234    
   2  Index         2.4522        .53401        .33878E-03   -.53467    
   3  Normalizat    1.3857        .19225        .12346E-04   -.81044    
   4  Prefactor     .98665        .11651        .44385E-04   -.93176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00984e-10
Minuit parameter uncertainties:
  1  30.846
  2  0.535387
  3  0.192348
  4  0.116536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363749': 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) = 12381.0691605
delta logL = 0.0130615724302

Extracting fit parameters...

4FGL J0405.4-6929
   Spectrum: PowerLaw
256    Prefactor:  5.425e+01  3.085e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.452e+00  5.354e-01  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  8.904e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.867e-01  1.165e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.386e+00  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.07
Ra Dec: 61.367 -69.489
Photon Index (Free Index): 2.45 +/- 0.54
Photon Flux (Free Index): 7.97e-08 +/- 5.41e-08
Energy Flux (Free Index): 2.44e-05 +/- 1.22e-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/363749/cmap_HighResolution_681004801_681264001_4FGL_J0405.4-6929_daily_bin1704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.58e-08', energy_flux2='2.44e-05', photon_flux_error='3.99e-08', dlogl='1.31e-02', energy_flux='2.39e-05', photon_flux2='7.97e-08', job_status='DONE', time_completed='2022-08-04 04:59:05.633499', photon_index_error2='0.54', photon_index2='2.45', ts='9.07', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='1.38', time_epoch_completed='1659614345.63', return_code='0', job_id='363749', GAL2='0.99', EG2='1.39', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='5.41e-08', ts2='9.07', photon_index='2.54' WHERE bin_id='1704' AND source_name='4FGL J0405.4-6929' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug  4 04:59:05 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 363677: <4FGL_J0405.4-6929_daily_bin1704> in cluster <slac> Done

Job <4FGL_J0405.4-6929_daily_bin1704> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug  4 00:05:51 2022
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 01:42:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 01:42:59 2022
Terminated at Thu Aug  4 04:53:31 2022
Results reported at Thu Aug  4 04:53:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0405.4-6929_daily_bin1704 61.3672 -69.4885 681004801 681264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0405.4-6929 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11321.00 sec.
    Max Memory :                                 1104 MB
    Average Memory :                             599.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11432 sec.
    Turnaround time :                            17260 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 363749: <4FGL_J0405.4-6929_daily_bin1704> in cluster <slac> Done

Job <4FGL_J0405.4-6929_daily_bin1704> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug  4 00:05:55 2022
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 01:44:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 01:44:03 2022
Terminated at Thu Aug  4 04:59:06 2022
Results reported at Thu Aug  4 04:59:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0405.4-6929_daily_bin1704 61.3672 -69.4885 681004801 681264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0405.4-6929 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11547.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             590.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11703 sec.
    Turnaround time :                            17591 sec.

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

