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


Performing analysis on: 4FGL_J0405.4-6929_daily_bin1690
RA = 61.3672, Dec = -69.4885
tmin = 677376001, tmax = 677635201
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='138681', job_status='RUN', time_executed='2022-06-23 00:31:02.035083', time_epoch_executed='1655969462.04' WHERE source_name='4FGL J0405.4-6929' and cadence='daily' and bin_id='1690'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/138681

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/138681/ft1_4FGL_J0405.4-6929_daily_bin1690.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/138681/ft2_4FGL_J0405.4-6929_daily_bin1690.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/138681/ft1_4FGL_J0405.4-6929_daily_bin1690.fits outfile=/scratch/kocevski/138681/ft1_filteredMKT_4FGL_J0405.4-6929_daily_bin1690.fits ra=61.3672 dec=-69.4885 rad=12.0 tmin=677376001.0 tmax=677635201.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.56
user 2.36
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/138681/ft2_4FGL_J0405.4-6929_daily_bin1690.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/138681/ft1_filteredMKT_4FGL_J0405.4-6929_daily_bin1690.fits evtable="EVENTS" outfile="/scratch/kocevski/138681/ft1_filtered_4FGL_J0405.4-6929_daily_bin1690.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.35
sys 0.15

Number of photons that the gtmktime cut: 1011

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/138681/ft1_filtered_4FGL_J0405.4-6929_daily_bin1690.fits" evtable="EVENTS" scfile=/scratch/kocevski/138681/ft2_4FGL_J0405.4-6929_daily_bin1690.fits sctable="SC_DATA" outfile=/scratch/kocevski/138681/ltcube_677376001_677635201_4FGL_J0405.4-6929_daily_bin1690.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/138681/ft2_4FGL_J0405.4-6929_daily_bin1690.fits
.....................!
real 14.57
user 14.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/138681/ft1_filtered_4FGL_J0405.4-6929_daily_bin1690.fits evtable="EVENTS" scfile=/scratch/kocevski/138681/ft2_4FGL_J0405.4-6929_daily_bin1690.fits sctable="SC_DATA" expcube=/scratch/kocevski/138681/ltcube_677376001_677635201_4FGL_J0405.4-6929_daily_bin1690.fits outfile=/scratch/kocevski/138681/expmap_677376001_677635201_4FGL_J0405.4-6929_daily_bin1690.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/138681/ltcube_677376001_677635201_4FGL_J0405.4-6929_daily_bin1690.fits
.....................!
real 190.86
user 185.57
sys 4.87

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/138681/ft1_filtered_4FGL_J0405.4-6929_daily_bin1690.fits scfile=/scratch/kocevski/138681/ft2_4FGL_J0405.4-6929_daily_bin1690.fits outfile=/scratch/kocevski/138681/cmap_677376001_677635201_4FGL_J0405.4-6929_daily_bin1690.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/138681/ft1_filtered_4FGL_J0405.4-6929_daily_bin1690.fits scfile=/scratch/kocevski/138681/ft2_4FGL_J0405.4-6929_daily_bin1690.fits outfile=/scratch/kocevski/138681/cmap_HighResolution_677376001_677635201_4FGL_J0405.4-6929_daily_bin1690.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/138681/ft1_filtered_4FGL_J0405.4-6929_daily_bin1690.fits evtable="EVENTS" scfile=/scratch/kocevski/138681/ft2_4FGL_J0405.4-6929_daily_bin1690.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/138681/Model_4FGL_J0405.4-6929_daily_bin1690.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/138681/ft1_filtered_4FGL_J0405.4-6929_daily_bin1690.fits.....................!
real 8872.43
user 8841.42
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/138681/ft1_filtered_4FGL_J0405.4-6929_daily_bin1690.fits', '/scratch/kocevski/138681/ft2_4FGL_J0405.4-6929_daily_bin1690.fits', expMap='/scratch/kocevski/138681/expmap_677376001_677635201_4FGL_J0405.4-6929_daily_bin1690.fits', expCube='/scratch/kocevski/138681/ltcube_677376001_677635201_4FGL_J0405.4-6929_daily_bin1690.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/138681/Model_4FGL_J0405.4-6929_daily_bin1690.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/138681/ft1_filtered_4FGL_J0405.4-6929_daily_bin1690.fits
Spacecraft file(s): /scratch/kocevski/138681/ft2_4FGL_J0405.4-6929_daily_bin1690.fits
Exposure map: /scratch/kocevski/138681/expmap_677376001_677635201_4FGL_J0405.4-6929_daily_bin1690.fits
Exposure cube: /scratch/kocevski/138681/ltcube_677376001_677635201_4FGL_J0405.4-6929_daily_bin1690.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/138681/Model_4FGL_J0405.4-6929_daily_bin1690.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) = 10790.2238881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8516       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.9744       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8973       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8812       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50077       1.0000         .10000E-03   10000.    
     7 'norm      '    6.1028       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6879       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.839       1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.087       1.0000         .10000E-03   10000.    
    12 'norm      '    7.5445       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.688       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4022       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.342       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5935       1.0000         .10000E-03   10000.    
    22 'norm      '    11.469       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95602       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0217       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=   10790.18     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2714 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8505        5.2282        .99216E-06   -.26377E-04
   2  Prefactor     .10000E-03    7.7964       -.34417E-06** at limit **
   3  norm          7.9737        7.8449        .51990E-07    .68397E-04
   4  Prefactor     3.8969        3.7011       -.29790E-05   -.33350E-03
   5  Prefactor     7.8750        23.802       -.12423E-04   -.61828E-05
   6  Prefactor     .25279        10.309       -.17894E-05   -.36121E-04
   7  norm          6.1007        7.1184       -.61817E-06   -.19148E-03
   8  norm          1.6880        1.1520        .16118E-07   -.31244E-03
   9  Prefactor     .10000E-03    2.2411       -.44976E-07** at limit **
  10  Prefactor     18.836        11.848       -.44247E-06    .26233E-04
  11  Prefactor     45.074        22.607       -.68932E-05    .35105E-04
  12  norm          7.5435        5.1556        .52721E-06   -.96807E-06
  13  Prefactor     11.682        14.807       -.17826E-05   -.91561E-05
  14  Prefactor     5.3974        40.203       -.17809E-04   -.15790E-04
  15  Prefactor     .10000E-03    13.779       -.13939E-05** at limit **
  16  Prefactor     .10000E-03    20.319        .34612E-06** at limit **
  17  Prefactor     36.336        30.846       -.76723E-05    .70797E-05
  18  norm          .10000E-03    1.0077       -.14896E-07** at limit **
  19  Prefactor     .10000E-03    2.0165       -.14086E-07** at limit **
  20  norm          .10000E-03    11.298        .48866E-06** at limit **
  21  Prefactor     4.5927        3.5849       -.97412E-06   -.72860E-04
  22  norm          11.465        6.9145       -.32594E-06   -.93656E-04
  23  Normalizat    .95611        .17040        .37820E-05    .95807E-04
  24  Prefactor     1.0218        .10271        .61730E-06    .37143E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.85049
  Prefactor  = 0.0001
  norm       = 7.97372
  Prefactor  = 3.89686
  Prefactor  = 7.875
  Prefactor  = 0.252788
  norm       = 6.10074
  norm       = 1.68798
  Prefactor  = 0.0001
  Prefactor  = 18.8357
  Prefactor  = 45.0744
  norm       = 7.54347
  Prefactor  = 11.6817
  Prefactor  = 5.39743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.3359
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.59269
  norm       = 11.4653
  Normalizat = 0.956111
  Prefactor  = 1.02179
 **********
 **   18 **HESSE 
 **********

 FCN=   10790.18     FROM HESSE     STATUS=OK           413 CALLS     3127 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8505        5.2285        .14310E-03   -1.5148    
   2  Prefactor     .10000E-03    7.9454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.9737        7.8476        .14199E-03   -1.5143    
   4  Prefactor     3.8969        3.7153        .18803E-03   -1.5313    
   5  Prefactor     7.8750        23.836        .14283E-03   -1.5147    
   6  Prefactor     .25279        11.481        .10385       -1.5607    
   7  norm          6.1007        7.0994        .16252E-03   -1.5214    
   8  norm          1.6880        1.1459        .78301E-04   -1.5448    
   9  Prefactor     .10000E-03    2.2496        .15182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.836        11.862        .92277E-04   -1.4840    
  11  Prefactor     45.074        22.575        .59709E-04   -1.4364    
  12  norm          7.5435        5.1567        .14601E-03   -1.5159    
  13  Prefactor     11.682        14.819        .11718E-03   -1.5024    
  14  Prefactor     5.3974        40.199        .17289E-03   -1.5243    
  15  Prefactor     .10000E-03    13.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.336        30.812        .66479E-04   -1.4502    
  18  norm          .10000E-03    1.0186        .10181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0318        .14403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.5927        3.5940        .16833E-03   -1.5279    
  22  norm          11.465        6.9268        .11829E-03   -1.5031    
  23  Normalizat    .95611        .19389        .33169E-03   -.94516    
  24  Prefactor     1.0218        .11742        .20323E-03   -.92007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65272e-10
Minuit parameter uncertainties:
  1  5.22885
  2  7.14729e-05
  3  7.84861
  4  3.71553
  5  23.865
  6  3.40717
  7  7.10041
  8  1.1459
  9  4.17095e-06
  10  11.863
  11  22.5796
  12  5.15696
  13  14.8239
  14  29.4873
  15  1.60165e-05
  16  3.17944e-05
  17  30.8256
  18  2.42776e-06
  19  2.0207e-06
  20  4.2699e-06
  21  3.59412
  22  6.92724
  23  0.194033
  24  0.117449
Done.

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

Extracting fit parameters...

4FGL J0405.4-6929
   Spectrum: PowerLaw
256    Prefactor:  4.507e+01  2.258e+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:  1.022e+00  1.174e-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:  9.561e-01  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.69
Ra Dec: 61.367 -69.489
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 7.55e-08 +/- 3.78e-08
Energy Flux (Fixed Index): 2.10e-05 +/- 1.05e-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) = 10788.7280134
delta logL = 1.44825099741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10788.7280033
delta logL = 1.44826105188

Fit tolerance = 1e-08

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

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

 FCN=   10788.73     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      275 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.779        927.07        .11851E-02    .21297E-05
   2  Index         1.8301        5.8617        .21321       -.24613E-04
   3  Normalizat    .99037        .24645        .73812E-01    .25344E-04
   4  Prefactor     1.0087        .13101        .43509E-01   -.27468E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.7789
  Index      = 1.83007
  Normalizat = 0.99037
  Prefactor  = 1.00875
 **********
 **   18 **HESSE 
 **********

 FCN=   10788.73     FROM HESSE     STATUS=OK            31 CALLS      306 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.779        36.269        .47403E-04   -1.4011    
   2  Index         1.8301        .36517        .74404E-02   -.68670    
   3  Normalizat    .99037        .18021        .32660E-03   -.93354    
   4  Prefactor     1.0087        .11414        .20430E-03   -.92439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09148e-10
Minuit parameter uncertainties:
  1  36.28
  2  0.365718
  3  0.180324
  4  0.114164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/138681': 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) = 10788.7280002
delta logL = 1.44826414294

Extracting fit parameters...

4FGL J0405.4-6929
   Spectrum: PowerLaw
256    Prefactor:  7.178e+01  3.628e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  1.830e+00  3.657e-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:  1.009e+00  1.142e-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:  9.904e-01  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.59
Ra Dec: 61.367 -69.489
Photon Index (Free Index): 1.83 +/- 0.37
Photon Flux (Free Index): 4.71e-08 +/- 3.10e-08
Energy Flux (Free Index): 5.16e-05 +/- 4.23e-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/138681/cmap_HighResolution_677376001_677635201_4FGL_J0405.4-6929_daily_bin1690.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.55e-08', energy_flux2='5.16e-05', photon_flux_error='3.78e-08', dlogl='1.45e+00', energy_flux='2.10e-05', photon_flux2='4.71e-08', job_status='DONE', time_completed='2022-06-23 03:13:12.781371', photon_index_error2='0.37', photon_index2='1.83', ts='7.69', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='4.23e-05', EG='0.96', time_epoch_completed='1655979192.78', return_code='0', job_id='138681', GAL2='1.01', EG2='0.99', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.10e-08', ts2='10.59', photon_index='2.54' WHERE bin_id='1690' AND source_name='4FGL J0405.4-6929' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jun 23 03:13:12 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 138140: <4FGL_J0405.4-6929_daily_bin1690> in cluster <slac> Done

Job <4FGL_J0405.4-6929_daily_bin1690> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun 23 00:06:09 2022
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 00:17:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 00:17:41 2022
Terminated at Thu Jun 23 03:01:21 2022
Results reported at Thu Jun 23 03:01:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0405.4-6929_daily_bin1690 61.3672 -69.4885 677376001 677635201 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 :                                   9750.00 sec.
    Max Memory :                                 1104 MB
    Average Memory :                             594.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9820 sec.
    Turnaround time :                            10512 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0198>
Subject: Job 138681: <4FGL_J0405.4-6929_daily_bin1690> in cluster <slac> Done

Job <4FGL_J0405.4-6929_daily_bin1690> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jun 23 00:06:31 2022
Job was executed on host(s) <bullet0198>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 00:29:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 00:29:08 2022
Terminated at Thu Jun 23 03:13:13 2022
Results reported at Thu Jun 23 03:13:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0405.4-6929_daily_bin1690 61.3672 -69.4885 677376001 677635201 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 :                                   9708.29 sec.
    Max Memory :                                 641 MB
    Average Memory :                             595.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2941 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   9845 sec.
    Turnaround time :                            11202 sec.

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

