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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1708
RA = 65.0936, Dec = -37.7522
tmin = 682041601, tmax = 682300801
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='20248', job_status='RUN', time_executed='2022-09-16 11:12:41.560244', time_epoch_executed='1663351961.56' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20248

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20248/ft1_4FGL_J0420.3-3745_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20248/ft2_4FGL_J0420.3-3745_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20248/ft1_4FGL_J0420.3-3745_daily_bin1708.fits outfile=/scratch/kocevski/20248/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1708.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=682041601.0 tmax=682300801.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.98
user 3.74
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/20248/ft2_4FGL_J0420.3-3745_daily_bin1708.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/20248/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/20248/ft1_filtered_4FGL_J0420.3-3745_daily_bin1708.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 451

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20248/ft1_filtered_4FGL_J0420.3-3745_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/20248/ft2_4FGL_J0420.3-3745_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/20248/ltcube_682041601_682300801_4FGL_J0420.3-3745_daily_bin1708.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/20248/ft2_4FGL_J0420.3-3745_daily_bin1708.fits
.....................!
real 13.29
user 12.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20248/ft1_filtered_4FGL_J0420.3-3745_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/20248/ft2_4FGL_J0420.3-3745_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/20248/ltcube_682041601_682300801_4FGL_J0420.3-3745_daily_bin1708.fits outfile=/scratch/kocevski/20248/expmap_682041601_682300801_4FGL_J0420.3-3745_daily_bin1708.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/20248/ltcube_682041601_682300801_4FGL_J0420.3-3745_daily_bin1708.fits
.....................!
real 190.91
user 185.86
sys 4.69

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/20248/ft1_filtered_4FGL_J0420.3-3745_daily_bin1708.fits scfile=/scratch/kocevski/20248/ft2_4FGL_J0420.3-3745_daily_bin1708.fits outfile=/scratch/kocevski/20248/cmap_682041601_682300801_4FGL_J0420.3-3745_daily_bin1708.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20248/ft1_filtered_4FGL_J0420.3-3745_daily_bin1708.fits scfile=/scratch/kocevski/20248/ft2_4FGL_J0420.3-3745_daily_bin1708.fits outfile=/scratch/kocevski/20248/cmap_HighResolution_682041601_682300801_4FGL_J0420.3-3745_daily_bin1708.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/20248/ft1_filtered_4FGL_J0420.3-3745_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/20248/ft2_4FGL_J0420.3-3745_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/20248/Model_4FGL_J0420.3-3745_daily_bin1708.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/20248/ft1_filtered_4FGL_J0420.3-3745_daily_bin1708.fits.....................!
real 107.35
user 105.96
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/20248/ft1_filtered_4FGL_J0420.3-3745_daily_bin1708.fits', '/scratch/kocevski/20248/ft2_4FGL_J0420.3-3745_daily_bin1708.fits', expMap='/scratch/kocevski/20248/expmap_682041601_682300801_4FGL_J0420.3-3745_daily_bin1708.fits', expCube='/scratch/kocevski/20248/ltcube_682041601_682300801_4FGL_J0420.3-3745_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/20248/Model_4FGL_J0420.3-3745_daily_bin1708.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/20248/ft1_filtered_4FGL_J0420.3-3745_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/20248/ft2_4FGL_J0420.3-3745_daily_bin1708.fits
Exposure map: /scratch/kocevski/20248/expmap_682041601_682300801_4FGL_J0420.3-3745_daily_bin1708.fits
Exposure cube: /scratch/kocevski/20248/ltcube_682041601_682300801_4FGL_J0420.3-3745_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/20248/Model_4FGL_J0420.3-3745_daily_bin1708.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) = 4923.06546068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.978       1.0000          .0000       .10000E+07
     2 'norm      '    .21415E-05   1.0000          .0000       .10000E+07
     3 'norm      '    2.0057       1.0000          .0000       .10000E+07
     4 'Prefactor '    .34550E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .50444E-02   1.0000          .0000       .10000E+07
     6 'norm      '    4.7843       1.0000          .0000       .10000E+07
     7 'Prefactor '    .77954E-04   1.0000          .0000       .10000E+07
     8 'norm      '    1.4321       1.0000          .0000       .10000E+07
     9 'norm      '    4.7674       1.0000          .0000       .10000E+07
    10 'Prefactor '    .44584E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .22776E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    7.5623       1.0000          .0000       .10000E+07
    13 'norm      '    .11724E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.7213       1.0000          .0000       .10000E+07
    15 'norm      '    .33029E-02   1.0000          .0000       .10000E+07
    16 'norm      '    171.72       1.0000          .0000       .10000E+07
    17 'norm      '    4.8285       1.0000          .0000       .10000E+07
    18 'Prefactor '    5.3666       1.0000          .0000       .10000E+07
    19 'Prefactor '    23.403       1.0000          .0000       .10000E+07
    20 'norm      '    13.678       1.0000          .0000       .10000E+07
    21 'norm      '    .11390E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    35.110       1.0000          .0000       .10000E+07
    23 'Prefactor '    .18828E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1447       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73558       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=   4923.052     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     2149 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.241        7.3491       -.47374E-06   -.83543E-01
   2  norm           .0000        2.0306        .13929E-06** at limit **
   3  norm          2.0047        .93961       -.26764E-06   -.19338E-02
   4  Prefactor     .55511E-10    32.881       -.72761E-06** at limit **
   5  Prefactor     .56399E-07    17.334       -.13296E-06** at limit **
   6  norm          4.7849        2.0989       -.89196E-07   -.92830E-04
   7  Prefactor     .15511E-04    70.049        .24948E-05** at limit **
   8  norm          1.4330        .47762        .18281E-07    .61626E-03
   9  norm          4.6594        5.0953        .10416E-05    .39313E-03
  10  Prefactor      .0000        30.775        .18652E-05** at limit **
  11  Prefactor     .94369E-09    5.8159        .38037E-07** at limit **
  12  Prefactor     7.7864        8.4307        .35692E-07   -.44359E-03
  13  norm           .0000        .49293        .61410E-06** at limit **
  14  Prefactor     3.7230        3.3395        .47830E-07    .29393E-02
  15  norm          .76081E-04    61.655       -.35732E-05** at limit **
  16  norm          172.02        35.436        .84570E-06   -.41894    
  17  norm          4.8332        2.4668       -.31414E-06    .10764E-02
  18  Prefactor     5.3525        4.7106        .85213E-06    .51949E-02
  19  Prefactor     23.427        6.4763       -.28489E-06   -.83820E-01
  20  norm          13.665        7.1748       -.30938E-07   -.98499E-03
  21  norm          .12707E-06    14.616       -.13621E-05** at limit **
  22  Prefactor     34.412        36.108       -.18758E-05   -.53802E-01
  23  Prefactor     .87153E-08    20.669       -.20363E-06** at limit **
  24  Normalizat    1.1444        .24701       -.14934E-05    .27814E-04
  25  Prefactor     .73554        .24207        .52156E-05    .84128E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2406
  norm       = 0
  norm       = 2.00466
  Prefactor  = 5.55112e-11
  Prefactor  = 5.63993e-08
  norm       = 4.78489
  Prefactor  = 1.55108e-05
  norm       = 1.43301
  norm       = 4.65943
  Prefactor  = 0
  Prefactor  = 9.4369e-10
  Prefactor  = 7.78636
  norm       = 0
  Prefactor  = 3.72296
  norm       = 7.60811e-05
  norm       = 172.016
  norm       = 4.83323
  Prefactor  = 5.35247
  Prefactor  = 23.4266
  norm       = 13.665
  norm       = 1.27065e-07
  Prefactor  = 34.412
  Prefactor  = 8.71525e-09
  Normalizat = 1.14444
  Prefactor  = 0.735543
 **********
 **   18 **HESSE 
 **********

 FCN=   4923.052     FROM HESSE     STATUS=OK           487 CALLS     2636 TOTAL
                     EDM=   .34E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.241        30.367        .22963E-03   -1.5620    
   2  norm           .0000        2.0273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0047        .94272        .73086E-03   -1.5680    
   4  Prefactor     .55511E-10    33.106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .56399E-07    17.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.7849        2.0903        .45973E-03   -1.5664    
   7  Prefactor     .15511E-04    77.941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4330        .47681        .59277E-03   -1.5684    
   9  norm          4.6594        5.0942        .46056E-03   -1.5665    
  10  Prefactor      .0000        30.544        .15763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .94369E-09    5.8718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.7864        9.1841        .36444E-03   -1.5652    
  13  norm           .0000        .34974        .14825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7230        3.3829        .52322E-03   -1.5669    
  15  norm          .76081E-04    108.16        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          172.02        178.21        .76318E-04   -1.5446    
  17  norm          4.8332        2.4561        .45757E-03   -1.5664    
  18  Prefactor     5.3525        4.8143        .43357E-03   -1.5662    
  19  Prefactor     23.427        19.586        .20676E-03   -1.5611    
  20  norm          13.665        7.2076        .27057E-03   -1.5634    
  21  norm          .12707E-06    15.249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     34.412        53.401        .16879E-03   -1.5591    
  23  Prefactor     .87153E-08    21.027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1444        .20678        .54996E-01   -.88337    
  25  Prefactor     .73554        .20483        .69585E-01   -1.0215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40063e-05
Minuit parameter uncertainties:
  1  30.3671
  2  1.53829e-06
  3  0.94272
  4  7.96515e-05
  5  0.00200775
  6  2.09034
  7  0.0695401
  8  0.476814
  9  5.09422
  10  3.53441e-05
  11  0.00014862
  12  9.18411
  13  8.94393e-07
  14  3.38287
  15  0.18143
  16  178.212
  17  2.45612
  18  4.81432
  19  19.5857
  20  7.20758
  21  0.00278374
  22  53.4018
  23  0.000856539
  24  0.206922
  25  0.205039
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  9.437e-10  1.486e-04  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.355e-01  2.050e-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.144e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 65.094 -37.752
Photon Flux Upper Limit: 6.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/20248/likelihoodResults_682041601_682300801_4FGL_J0420.3-3745_daily_bin1708.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): 102
logL (Free Index) = 4923.05334264
delta logL = -0.00181499269729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4923.05152767
delta logL = -2.00543581741e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    2.4604       1.0000          .0000       10.000    
     3 'Normalizat'    1.1445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73555       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4923.052     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      231 TOTAL
                     EDM=   .22E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.0918        .42118E-03** at limit **
   2  Index         .84009        .65069        .74759E-05     .0000    
   3  Normalizat    1.1444        1.1291        .17816E-06    .48831E-05
   4  Prefactor     .73554        1.0852       -.23393E-05    .89463E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.840088
  Normalizat = 1.14444
  Prefactor  = 0.735543
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4923.052     FROM HESSE     STATUS=FAILED         9 CALLS      240 TOTAL
                     EDM=   .22E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.0918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .15251E-01    .94090        .74759E-05   -.98267    
   3  Normalizat    1.1444        1.1291        .17816E-06   -.88337    
   4  Prefactor     .73554        1.0852       -.23393E-05   -1.0215    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.24354e-13
Minuit parameter uncertainties:
  1  1.04614e-06
  2  0.656805
  3  1.15447
  4  1.11916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20248': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 4923.05152765
delta logL = 8.18545231596e-11

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  1.046e-06  0.000e+00  1.000e+06 ( 1.000e-13)
277        Index:  8.401e-01  6.568e-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.355e-01  1.119e+00  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.144e+00  1.154e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 65.094 -37.752

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/20248/cmap_HighResolution_682041601_682300801_4FGL_J0420.3-3745_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2022-09-16 11:23:12.762352', job_id='20248', GAL2='0.74', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1663352592.76', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='8.19e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1708' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:23:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 20248: <4FGL_J0420.3-3745_daily_bin1708> in cluster <slac> Done

Job <4FGL_J0420.3-3745_daily_bin1708> 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) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:11:57 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:57 2022
Terminated at Fri Sep 16 11:23:13 2022
Results reported at Fri Sep 16 11:23:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1708 65.0936 -37.7522 682041601 682300801 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 :                                   633.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            773 sec.

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

