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 44 seconds before starting...
Proceeding.

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

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

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

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

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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1710
RA = 65.0936, Dec = -37.7522
tmin = 682560001, tmax = 682819201
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='20251', job_status='RUN', time_executed='2022-09-16 11:12:51.918936', time_epoch_executed='1663351971.92' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20251

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20251/ft1_4FGL_J0420.3-3745_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20251/ft2_4FGL_J0420.3-3745_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20251/ft1_4FGL_J0420.3-3745_daily_bin1710.fits outfile=/scratch/kocevski/20251/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1710.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=682560001.0 tmax=682819201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.69
user 3.43
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/20251/ft2_4FGL_J0420.3-3745_daily_bin1710.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/20251/ft2_4FGL_J0420.3-3745_daily_bin1710.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/20251/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/20251/ft1_filtered_4FGL_J0420.3-3745_daily_bin1710.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.35
sys 0.15

Number of photons that the gtmktime cut: 519

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20251/ft1_filtered_4FGL_J0420.3-3745_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/20251/ft2_4FGL_J0420.3-3745_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/20251/ltcube_682560001_682819201_4FGL_J0420.3-3745_daily_bin1710.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/20251/ft2_4FGL_J0420.3-3745_daily_bin1710.fits
.....................!
real 16.32
user 15.16
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20251/ft1_filtered_4FGL_J0420.3-3745_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/20251/ft2_4FGL_J0420.3-3745_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/20251/ltcube_682560001_682819201_4FGL_J0420.3-3745_daily_bin1710.fits outfile=/scratch/kocevski/20251/expmap_682560001_682819201_4FGL_J0420.3-3745_daily_bin1710.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/20251/ltcube_682560001_682819201_4FGL_J0420.3-3745_daily_bin1710.fits
.....................!
real 193.10
user 186.72
sys 5.65

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 177 point sources and 1 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 J0420.3-3745 @ 65.0936 -37.7522

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/20251/ft1_filtered_4FGL_J0420.3-3745_daily_bin1710.fits scfile=/scratch/kocevski/20251/ft2_4FGL_J0420.3-3745_daily_bin1710.fits outfile=/scratch/kocevski/20251/cmap_682560001_682819201_4FGL_J0420.3-3745_daily_bin1710.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=65.0936 yref=-37.7522 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20251/ft1_filtered_4FGL_J0420.3-3745_daily_bin1710.fits scfile=/scratch/kocevski/20251/ft2_4FGL_J0420.3-3745_daily_bin1710.fits outfile=/scratch/kocevski/20251/cmap_HighResolution_682560001_682819201_4FGL_J0420.3-3745_daily_bin1710.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=65.0936 yref=-37.7522 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.59
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/20251/ft1_filtered_4FGL_J0420.3-3745_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/20251/ft2_4FGL_J0420.3-3745_daily_bin1710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/20251/Model_4FGL_J0420.3-3745_daily_bin1710.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/20251/ft1_filtered_4FGL_J0420.3-3745_daily_bin1710.fits.....................!
real 120.87
user 118.82
sys 1.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/20251/ft1_filtered_4FGL_J0420.3-3745_daily_bin1710.fits', '/scratch/kocevski/20251/ft2_4FGL_J0420.3-3745_daily_bin1710.fits', expMap='/scratch/kocevski/20251/expmap_682560001_682819201_4FGL_J0420.3-3745_daily_bin1710.fits', expCube='/scratch/kocevski/20251/ltcube_682560001_682819201_4FGL_J0420.3-3745_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/20251/Model_4FGL_J0420.3-3745_daily_bin1710.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0420.3-3745'

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  7.305e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
277        Index:  2.236e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  1.316e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/20251/ft1_filtered_4FGL_J0420.3-3745_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/20251/ft2_4FGL_J0420.3-3745_daily_bin1710.fits
Exposure map: /scratch/kocevski/20251/expmap_682560001_682819201_4FGL_J0420.3-3745_daily_bin1710.fits
Exposure cube: /scratch/kocevski/20251/ltcube_682560001_682819201_4FGL_J0420.3-3745_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/20251/Model_4FGL_J0420.3-3745_daily_bin1710.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5684.49854258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.448       1.0000          .0000       .10000E+07
     2 'norm      '    5.9095       1.0000          .0000       .10000E+07
     3 'norm      '    .19734E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    61.920       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.395       1.0000          .0000       .10000E+07
     6 'norm      '    3.7993       1.0000          .0000       .10000E+07
     7 'Prefactor '    13.006       1.0000          .0000       .10000E+07
     8 'norm      '    .32258       1.0000          .0000       .10000E+07
     9 'norm      '    5.1976       1.0000          .0000       .10000E+07
    10 'Prefactor '    33.069       1.0000          .0000       .10000E+07
    11 'Prefactor '    14.614       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14968E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .27817E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .98304       1.0000          .0000       .10000E+07
    15 'norm      '    48.503       1.0000          .0000       .10000E+07
    16 'norm      '    .26329       1.0000          .0000       .10000E+07
    17 'norm      '    2.2145       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10214E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .51132E-02   1.0000          .0000       .10000E+07
    20 'norm      '    9.1835       1.0000          .0000       .10000E+07
    21 'norm      '    2.6987       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14574E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .59764E-02   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1268       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74873       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5681.171     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     1351 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.674        2.7284       -.22755E-06   -.18568E-01
   2  norm          5.9027        3.5793       -.31795E-06    .94257E-03
   3  norm           .0000        .42464       -.64968E-07** at limit **
   4  Prefactor     60.875        40.150       -.15777E-05    .67909E-01
   5  Prefactor     11.498        12.854       -.73745E-06   -.45083E-03
   6  norm          3.7955        1.5796       -.13757E-06   -.13212E-02
   7  Prefactor     17.452        53.726       -.26504E-05    .18049E-01
   8  norm          .32211        .24247        .90827E-07    .25553E-02
   9  norm          5.2080        5.8853        .16244E-06    .14831E-03
  10  Prefactor     32.942        10.051        .84380E-06    .62683E-01
  11  Prefactor     14.607        11.594        .23458E-06    .28437E-03
  12  Prefactor      .0000        8.5709        .56156E-06** at limit **
  13  norm           .0000        .17337       -.15902E-06** at limit **
  14  Prefactor     .96592        3.4550        .47279E-06   -.14877E-02
  15  norm          48.723        15.302        .41290E-06    .56909E-03
  16  norm          .10547E-08    60.604        .27835E-05** at limit **
  17  norm          2.2117        1.5715       -.56366E-07   -.30183E-02
  18  Prefactor      .0000        3.7275       -.26402E-06** at limit **
  19  Prefactor     .46907E-07    65.192        .41522E-05** at limit **
  20  norm          9.1923        5.1790        .13208E-05   -.16270E-02
  21  norm          2.6994        5.2315       -.17955E-06   -.97119E-04
  22  Prefactor     .31041E-05    111.27        .15645E-04** at limit **
  23  Prefactor     .55511E-10    14.699       -.16195E-05** at limit **
  24  Normalizat    1.1253        .21875       -.31445E-05   -.11123E-03
  25  Prefactor     .74941        .22260       -.27437E-05   -.64582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.674
  norm       = 5.90269
  norm       = 0
  Prefactor  = 60.8745
  Prefactor  = 11.4978
  norm       = 3.79546
  Prefactor  = 17.4522
  norm       = 0.322114
  norm       = 5.20801
  Prefactor  = 32.9419
  Prefactor  = 14.6068
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0.965924
  norm       = 48.7232
  norm       = 1.05471e-09
  norm       = 2.2117
  Prefactor  = 0
  Prefactor  = 4.69069e-08
  norm       = 9.19225
  norm       = 2.69942
  Prefactor  = 3.10413e-06
  Prefactor  = 5.55112e-11
  Normalizat = 1.12531
  Prefactor  = 0.74941
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.171     FROM HESSE     STATUS=OK           483 CALLS     1834 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.674        45.002        .12000E-03   -1.5541    
   2  norm          5.9027        3.6147        .41286E-03   -1.5659    
   3  norm           .0000        .42100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     60.875        67.600        .12709E-03   -1.5552    
   5  Prefactor     11.498        12.850        .29653E-03   -1.5640    
   6  norm          3.7955        1.5801        .51762E-03   -1.5669    
   7  Prefactor     17.452        63.462        .27749E-03   -1.5624    
   8  norm          .32211        .24779        .69525E-03   -1.5697    
   9  norm          5.2080        5.8922        .44070E-03   -1.5662    
  10  Prefactor     32.942        39.031        .17392E-03   -1.5593    
  11  Prefactor     14.607        11.605        .26175E-03   -1.5632    
  12  Prefactor      .0000        8.5137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .17154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .96592        3.5126        .43164E-03   -1.5688    
  15  norm          48.723        15.466        .14360E-03   -1.5568    
  16  norm          .10547E-08    60.560        .10743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2117        1.5754        .69086E-03   -1.5678    
  18  Prefactor      .0000        3.6993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .46907E-07    65.174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.1923        5.1863        .33048E-03   -1.5647    
  21  norm          2.6994        5.3151        .61986E-03   -1.5675    
  22  Prefactor     .31041E-05    130.48        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    14.712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1253        .18738        .53102E-01   -.88943    
  25  Prefactor     .74941        .18769        .67303E-01   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00715e-06
Minuit parameter uncertainties:
  1  45.0021
  2  3.61466
  3  8.23905e-08
  4  67.601
  5  12.85
  6  1.58015
  7  63.4645
  8  0.247788
  9  5.89218
  10  39.0314
  11  11.6048
  12  1.41803e-05
  13  1.18463e-07
  14  3.51263
  15  15.4661
  16  0.00051007
  17  1.57539
  18  9.94858e-06
  19  0.00349738
  20  5.18628
  21  5.31515
  22  0.0402515
  23  5.34461e-05
  24  0.187489
  25  0.18785
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  1.461e+01  1.160e+01  0.000e+00  1.000e+06 ( 1.000e-13)
277        Index:  2.236e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  1.316e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  7.494e-01  1.879e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.125e+00  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.12
Ra Dec: 65.094 -37.752
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.76e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.26e-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) = 5681.15770521
delta logL = 0.0130008327224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5681.15055483
delta logL = 0.0201512146323

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.004       1.0000          .0000       .10000E+07
     2 'Index     '    2.3822       1.0000          .0000       10.000    
     3 'Normalizat'    1.1175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75428       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+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=   5681.151     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      257 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.001        14.357        .11100E-04    .17964E-02
   2  Index         2.3825        .79179        .74025E-02    .36959E-04
   3  Normalizat    1.1173        .21374        .23540E-03    .19289E-03
   4  Prefactor     .75447        .22251        .29686E-03    .90840E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.001
  Index      = 2.38247
  Normalizat = 1.11735
  Prefactor  = 0.754475
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.151     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.001        13.339        .44402E-06   -1.5636    
   2  Index         2.3825        .73519        .29610E-03   -.55096    
   3  Normalizat    1.1173        .21325        .47079E-04   -.89197    
   4  Prefactor     .75447        .22231        .11874E-04   -1.0143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10165e-11
Minuit parameter uncertainties:
  1  13.3389
  2  0.738885
  3  0.213412
  4  0.222576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20251': 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) = 5681.15055437
delta logL = 0.0201516739808

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  1.300e+01  1.334e+01  0.000e+00  1.000e+06 ( 1.000e-13)
277        Index:  2.382e+00  7.389e-01  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  1.316e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  7.545e-01  2.226e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.117e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.15
Ra Dec: 65.094 -37.752
Photon Index (Free Index): 2.38 +/- 0.74
Photon Flux (Free Index): 4.37e-08 +/- 4.46e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/20251/cmap_HighResolution_682560001_682819201_4FGL_J0420.3-3745_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.76e-08', energy_flux2='1.46e-05', photon_flux_error='2.98e-08', dlogl='2.02e-02', energy_flux='1.58e-05', photon_flux2='4.37e-08', job_status='DONE', time_completed='2022-09-16 11:22:42.903561', photon_index_error2='0.74', photon_index2='2.38', ts='4.12', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='1.13', time_epoch_completed='1663352562.9', return_code='0', job_id='20251', GAL2='0.75', EG2='1.12', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.46e-08', ts2='4.15', photon_index='2.24' WHERE bin_id='1710' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:22:42 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 20251: <4FGL_J0420.3-3745_daily_bin1710> in cluster <slac> Done

Job <4FGL_J0420.3-3745_daily_bin1710> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 11:10:20 2022
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:11:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 11:11:58 2022
Terminated at Fri Sep 16 11:22:43 2022
Results reported at Fri Sep 16 11:22:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1710 65.0936 -37.7522 682560001 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0420.3-3745 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   590.62 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            743 sec.

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

