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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1072
RA = 65.0936, Dec = -37.7522
tmin = 517190401, tmax = 517449601
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='390996', job_status='RUN', time_executed='2021-08-20 12:33:32.563855', time_epoch_executed='1629488012.56' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1072'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390996

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390996/ft1_4FGL_J0420.3-3745_daily_bin1072.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390996/ft2_4FGL_J0420.3-3745_daily_bin1072.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390996/ft1_4FGL_J0420.3-3745_daily_bin1072.fits outfile=/scratch/kocevski/390996/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1072.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=517190401.0 tmax=517449601.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 8.62
user 4.41
sys 4.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/390996/ft2_4FGL_J0420.3-3745_daily_bin1072.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/390996/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1072.fits evtable="EVENTS" outfile="/scratch/kocevski/390996/ft1_filtered_4FGL_J0420.3-3745_daily_bin1072.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 4.85
user 0.34
sys 4.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/390996/ft1_filtered_4FGL_J0420.3-3745_daily_bin1072.fits" evtable="EVENTS" scfile=/scratch/kocevski/390996/ft2_4FGL_J0420.3-3745_daily_bin1072.fits sctable="SC_DATA" outfile=/scratch/kocevski/390996/ltcube_517190401_517449601_4FGL_J0420.3-3745_daily_bin1072.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/390996/ft2_4FGL_J0420.3-3745_daily_bin1072.fits
.....................!
real 16.79
user 12.01
sys 4.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390996/ft1_filtered_4FGL_J0420.3-3745_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/390996/ft2_4FGL_J0420.3-3745_daily_bin1072.fits sctable="SC_DATA" expcube=/scratch/kocevski/390996/ltcube_517190401_517449601_4FGL_J0420.3-3745_daily_bin1072.fits outfile=/scratch/kocevski/390996/expmap_517190401_517449601_4FGL_J0420.3-3745_daily_bin1072.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/390996/ltcube_517190401_517449601_4FGL_J0420.3-3745_daily_bin1072.fits
.....................!
real 195.80
user 185.69
sys 9.71

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_archive_v18/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/390996/ft1_filtered_4FGL_J0420.3-3745_daily_bin1072.fits scfile=/scratch/kocevski/390996/ft2_4FGL_J0420.3-3745_daily_bin1072.fits outfile=/scratch/kocevski/390996/cmap_517190401_517449601_4FGL_J0420.3-3745_daily_bin1072.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 4.74
user 0.39
sys 4.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/390996/ft1_filtered_4FGL_J0420.3-3745_daily_bin1072.fits scfile=/scratch/kocevski/390996/ft2_4FGL_J0420.3-3745_daily_bin1072.fits outfile=/scratch/kocevski/390996/cmap_HighResolution_517190401_517449601_4FGL_J0420.3-3745_daily_bin1072.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 4.79
user 0.39
sys 4.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/390996/ft1_filtered_4FGL_J0420.3-3745_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/390996/ft2_4FGL_J0420.3-3745_daily_bin1072.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/390996/Model_4FGL_J0420.3-3745_daily_bin1072.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/390996/ft1_filtered_4FGL_J0420.3-3745_daily_bin1072.fits.....................!
real 97.32
user 89.76
sys 6.78

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/390996/ft1_filtered_4FGL_J0420.3-3745_daily_bin1072.fits', '/scratch/kocevski/390996/ft2_4FGL_J0420.3-3745_daily_bin1072.fits', expMap='/scratch/kocevski/390996/expmap_517190401_517449601_4FGL_J0420.3-3745_daily_bin1072.fits', expCube='/scratch/kocevski/390996/ltcube_517190401_517449601_4FGL_J0420.3-3745_daily_bin1072.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/390996/Model_4FGL_J0420.3-3745_daily_bin1072.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  1.000e-04  1.000e+04 ( 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/390996/ft1_filtered_4FGL_J0420.3-3745_daily_bin1072.fits
Spacecraft file(s): /scratch/kocevski/390996/ft2_4FGL_J0420.3-3745_daily_bin1072.fits
Exposure map: /scratch/kocevski/390996/expmap_517190401_517449601_4FGL_J0420.3-3745_daily_bin1072.fits
Exposure cube: /scratch/kocevski/390996/ltcube_517190401_517449601_4FGL_J0420.3-3745_daily_bin1072.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/390996/Model_4FGL_J0420.3-3745_daily_bin1072.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) = 4091.66442742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.1414       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9728       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.762       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4603       1.0000         .10000E-03   10000.    
     7 'Prefactor '    109.04       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.911       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2321       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .82621E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5752       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .80075E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    272.36       1.0000         .10000E-03   10000.    
    17 'norm      '    6.7958       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5294       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.2247       1.0000         .10000E-03   10000.    
    21 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3665       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88721       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.

 FCN=   4091.655     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3176 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.012       -.53237E-06** at limit **
   2  norm          3.1424        4.9276       -.33139E-06   -.31448E-03
   3  norm          1.9729        1.2712       -.24100E-07   -.52182E-04
   4  Prefactor     42.769        53.317        .51077E-05   -.30400E-06
   5  Prefactor     .10000E-03    16.728       -.18582E-06** at limit **
   6  norm          1.4608        1.5302       -.12221E-08    .42754E-04
   7  Prefactor     109.04        176.44       -.56684E-05    .15594E-05
   8  norm          .10000E-03    .13096       -.98048E-08** at limit **
   9  norm          .10000E-03    2.9294       -.19440E-07** at limit **
  10  Prefactor     25.901        53.544       -.10848E-04   -.10342E-04
  11  Prefactor     6.1974        22.813        .50463E-05   -.47799E-04
  12  Prefactor     .10000E-03    12.621        .22767E-07** at limit **
  13  norm          2.5722        1.1604       -.20169E-06    .25731E-03
  14  Prefactor     .10002E-03    2.2535        .28367E-06** at limit **
  15  norm          .10000E-03    18.645        .13485E-05** at limit **
  16  norm          272.31        352.27       -.31401E-04    .95991E-07
  17  norm          6.7960        3.1851       -.88166E-08    .81296E-04
  18  Prefactor     6.5358        5.4993        .19230E-07    .59028E-04
  19  Prefactor     .10000E-03    19.412       -.90886E-06** at limit **
  20  norm          5.2238        9.2494        .11717E-05   -.15630E-03
  21  norm          .10005E-03    8.4223       -.12690E-05** at limit **
  22  Prefactor     .10000E-03    35.515        .56058E-05** at limit **
  23  Prefactor     .10000E-03    6.8013       -.51245E-07** at limit **
  24  Prefactor     .10000E-03    22.286       -.53251E-06** at limit **
  25  Normalizat    1.3659        .26170        .57539E-06    .25563E-04
  26  Prefactor     .88767        .25896        .95826E-06    .10616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.14237
  norm       = 1.97291
  Prefactor  = 42.7686
  Prefactor  = 0.0001
  norm       = 1.46077
  Prefactor  = 109.038
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 25.9005
  Prefactor  = 6.19742
  Prefactor  = 0.000100003
  norm       = 2.57219
  Prefactor  = 0.000100022
  norm       = 0.0001
  norm       = 272.312
  norm       = 6.79597
  Prefactor  = 6.5358
  Prefactor  = 0.0001
  norm       = 5.22377
  norm       = 0.000100052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36591
  Prefactor  = 0.887672
 **********
 **   18 **HESSE 
 **********

 FCN=   4091.655     FROM HESSE     STATUS=OK           470 CALLS     3646 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.1424        4.9205        .16928E-03   -1.5353    
   3  norm          1.9729        1.2674        .55101E-04   -1.5427    
   4  Prefactor     42.769        53.342        .30652E-03   -1.4399    
   5  Prefactor     .10000E-03    16.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4608        1.5326        .78398E-04   -1.5466    
   7  Prefactor     109.04        177.29        .38516E-04   -1.3616    
   8  norm          .10000E-03    .14190        .45072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.9328        .10691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.901        54.031        .78697E-04   -1.4690    
  11  Prefactor     6.1974        22.750        .16080E-03   -1.5210    
  12  Prefactor     .10000E-03    58.564        .39163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5722        1.1311        .37406E-04   -1.5387    
  14  Prefactor     .10002E-03    7.5232        .29931E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    19.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          272.31        351.50        .12287E-03   -1.2392    
  17  norm          6.7960        3.1977        .68236E-04   -1.5187    
  18  Prefactor     6.5358        5.3516        .10839E-03   -1.5197    
  19  Prefactor     .10000E-03    19.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.2238        9.2077        .17586E-03   -1.5251    
  21  norm          .10005E-03    37.975        .33478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.8635        .16281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3659        .31837        .25381E-03   -.81620    
  26  Prefactor     .88767        .31251        .31974E-03   -.96573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53185e-09
Minuit parameter uncertainties:
  1  4.96403e-06
  2  4.92111
  3  1.26742
  4  53.4015
  5  1.92232e-06
  6  1.53267
  7  178.163
  8  4.3268e-07
  9  2.89348e-06
  10  54.1328
  11  22.7823
  12  0.000827729
  13  1.13109
  14  0.000812819
  15  7.138e-06
  16  354.294
  17  3.19774
  18  5.35199
  19  3.32459e-05
  20  9.21021
  21  0.00280225
  22  9.04495e-06
  23  1.98164e-05
  24  5.28826e-06
  25  0.318835
  26  0.313144
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  6.197e+00  2.278e+01  1.000e-04  1.000e+04 ( 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:  8.877e-01  3.131e-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.366e+00  3.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 65.094 -37.752
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/390996/likelihoodResults_517190401_517449601_4FGL_J0420.3-3745_daily_bin1072.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4091.65481099
delta logL = 7.20134212315e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4091.65480167
delta logL = 8.1330588273e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1145       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2534       1.0000          .0000       10.000    
     3 'Normalizat'    1.3658       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88758       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=   4091.655     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      254 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1079        21.690        .16236E-03    .64969E-03
   2  Index         2.2523        1.3219        .10835E-01    .28847E-03
   3  Normalizat    1.3657        .29385        .25383E-03   -.99327E-03
   4  Prefactor     .88782        .30615        .31972E-03   -.81855E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.10794
  Index      = 2.25232
  Normalizat = 1.36567
  Prefactor  = 0.887824
 **********
 **   18 **HESSE 
 **********

 FCN=   4091.655     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1079        20.742        .64944E-05   -1.5214    
   2  Index         2.2523        1.2662        .43338E-03   -.58181    
   3  Normalizat    1.3657        .29409        .50766E-04   -.81627    
   4  Prefactor     .88782        .30633        .63944E-04   -.96568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.009e-08
Minuit parameter uncertainties:
  1  20.7662
  2  1.28647
  3  0.294457
  4  0.306929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390996': 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) = 4091.65480058
delta logL = 8.2419208411e-05

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  6.108e+00  2.077e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.252e+00  1.286e+00  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:  8.878e-01  3.069e-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.366e+00  2.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/390996/cmap_HighResolution_517190401_517449601_4FGL_J0420.3-3745_daily_bin1072.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-08-20 12:45:23.486872', job_id='390996', GAL2='0.89', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1629488723.49', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='8.24e-05', ts2='0.11', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1072' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:45:23 PDT 2021


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

Job <4FGL_J0420.3-3745_daily_bin1072> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 12:30:50 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:30:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 12:30:52 2021
Terminated at Fri Aug 20 12:45:24 2021
Results reported at Fri Aug 20 12:45:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1072 65.0936 -37.7522 517190401 517449601 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 :                                   774.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

