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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1514
RA = 65.0936, Dec = -37.7522
tmin = 631756801, tmax = 632016001
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='392931', job_status='RUN', time_executed='2021-08-20 12:36:48.873456', time_epoch_executed='1629488208.87' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392931

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392931/ft1_4FGL_J0420.3-3745_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392931/ft2_4FGL_J0420.3-3745_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392931/ft1_4FGL_J0420.3-3745_daily_bin1514.fits outfile=/scratch/kocevski/392931/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1514.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=631756801.0 tmax=632016001.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.97
user 2.19
sys 0.77

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/392931/ft2_4FGL_J0420.3-3745_daily_bin1514.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/392931/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1514.fits evtable="EVENTS" outfile="/scratch/kocevski/392931/ft1_filtered_4FGL_J0420.3-3745_daily_bin1514.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 1.07
user 0.31
sys 0.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392931/ft1_filtered_4FGL_J0420.3-3745_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/392931/ft2_4FGL_J0420.3-3745_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/392931/ltcube_631756801_632016001_4FGL_J0420.3-3745_daily_bin1514.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/392931/ft2_4FGL_J0420.3-3745_daily_bin1514.fits
.....................!
real 12.71
user 11.71
sys 0.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392931/ft1_filtered_4FGL_J0420.3-3745_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/392931/ft2_4FGL_J0420.3-3745_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/392931/ltcube_631756801_632016001_4FGL_J0420.3-3745_daily_bin1514.fits outfile=/scratch/kocevski/392931/expmap_631756801_632016001_4FGL_J0420.3-3745_daily_bin1514.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/392931/ltcube_631756801_632016001_4FGL_J0420.3-3745_daily_bin1514.fits
.....................!
real 190.76
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 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/392931/ft1_filtered_4FGL_J0420.3-3745_daily_bin1514.fits scfile=/scratch/kocevski/392931/ft2_4FGL_J0420.3-3745_daily_bin1514.fits outfile=/scratch/kocevski/392931/cmap_631756801_632016001_4FGL_J0420.3-3745_daily_bin1514.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 1.15
user 0.38
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392931/ft1_filtered_4FGL_J0420.3-3745_daily_bin1514.fits scfile=/scratch/kocevski/392931/ft2_4FGL_J0420.3-3745_daily_bin1514.fits outfile=/scratch/kocevski/392931/cmap_HighResolution_631756801_632016001_4FGL_J0420.3-3745_daily_bin1514.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 1.11
user 0.38
sys 0.72

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/392931/ft1_filtered_4FGL_J0420.3-3745_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/392931/ft2_4FGL_J0420.3-3745_daily_bin1514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/392931/Model_4FGL_J0420.3-3745_daily_bin1514.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/392931/ft1_filtered_4FGL_J0420.3-3745_daily_bin1514.fits.....................!
real 162.17
user 159.81
sys 2.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .97952       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.061       1.0000         .10000E-03   10000.    
     7 'Prefactor '    162.67       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6085       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.705       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4259       1.0000         .10000E-03   10000.    
    13 'norm      '    .29557       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8375       1.0000         .10000E-03   10000.    
    15 'norm      '    27.751       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8996       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4719       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.578       1.0000         .10000E-03   10000.    
    20 'norm      '    .61232       1.0000         .10000E-03   10000.    
    21 'norm      '    13.306       1.0000         .10000E-03   10000.    
    22 'Prefactor '    138.43       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.6671       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.366       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1161       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79288       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=   7592.852     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3122 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.042        .47382E-05** at limit **
   2  norm          .10000E-03    1.9382       -.34773E-07** at limit **
   3  norm          .97953        1.0743        .26588E-06    .35051E-04
   4  Prefactor     .10000E-03    28.997       -.10095E-05** at limit **
   5  Prefactor     .10000E-03    18.851        .18080E-06** at limit **
   6  norm          19.061        3.0794        .25304E-07   -.17320E-04
   7  Prefactor     162.67        122.27        .41046E-07   -.16698E-04
   8  norm          3.6085        .59118        .17131E-07   -.55408E-03
   9  norm          .10000E-03    6.0620       -.40574E-07** at limit **
  10  Prefactor     .10000E-03    31.136       -.26064E-06** at limit **
  11  Prefactor     29.706        15.619       -.23816E-07   -.42834E-04
  12  Prefactor     5.4178        11.528        .39385E-06   -.57552E-04
  13  norm          .29587        .38736        .14835E-07    .20625E-04
  14  Prefactor     1.8383        2.9302        .23205E-06   -.16368E-03
  15  norm          27.753        13.318       -.26487E-06   -.88787E-04
  16  norm          .10000E-03    61.719       -.44962E-05** at limit **
  17  norm          1.8996        1.4066       -.87037E-07    .42689E-04
  18  Prefactor     1.4709        3.2599        .63329E-06   -.12014E-03
  19  Prefactor     26.580        23.141        .15334E-07    .74103E-04
  20  norm          .61177        5.2448        .31540E-05   -.26632E-03
  21  norm          13.306        8.3357        .15502E-06    .18278E-03
  22  Prefactor     138.43        70.523        .23814E-06   -.54398E-05
  23  Prefactor     7.6687        5.6778        .42425E-06    .29531E-03
  24  Prefactor     29.364        32.189       -.13105E-06   -.27703E-04
  25  Normalizat    1.1159        .19880       -.13590E-05   -.10229E-03
  26  Prefactor     .79304        .18640        .77309E-07   -.14401E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.979526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.0609
  Prefactor  = 162.665
  norm       = 3.60846
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7061
  Prefactor  = 5.41783
  norm       = 0.295866
  Prefactor  = 1.8383
  norm       = 27.753
  norm       = 0.000100005
  norm       = 1.89957
  Prefactor  = 1.47089
  Prefactor  = 26.5798
  norm       = 0.611768
  norm       = 13.3059
  Prefactor  = 138.427
  Prefactor  = 7.66874
  Prefactor  = 29.3639
  Normalizat = 1.11593
  Prefactor  = 0.793036
 **********
 **   18 **HESSE 
 **********

 FCN=   7592.852     FROM HESSE     STATUS=OK           466 CALLS     3588 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.9805        .11833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .97953        1.0235        .88245E-03   -1.5510    
   4  Prefactor     .10000E-03    29.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.061        3.0819        .59408E-04   -1.4835    
   7  Prefactor     162.67        122.41        .31621E-04   -1.3150    
   8  norm          3.6085        .59611        .25215E-04   -1.5328    
   9  norm          .10000E-03    6.1088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.706        15.571        .73511E-04   -1.4617    
  12  Prefactor     5.4178        11.383        .17251E-03   -1.5242    
  13  norm          .29587        .34489        .56904E-03   -1.5599    
  14  Prefactor     1.8383        2.8547        .16242E-03   -1.5437    
  15  norm          27.753        13.157        .76049E-04   -1.4654    
  16  norm          .10000E-03    63.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8996        1.4210        .76618E-04   -1.5432    
  18  Prefactor     1.4709        3.1831        .17698E-03   -1.5465    
  19  Prefactor     26.580        23.248        .77706E-04   -1.4676    
  20  norm          .61177        5.5655        .38902E-03   -1.5552    
  21  norm          13.306        8.3571        .10981E-03   -1.4978    
  22  Prefactor     138.43        70.420        .34236E-04   -1.3349    
  23  Prefactor     7.6687        5.7544        .14483E-03   -1.5154    
  24  Prefactor     29.364        32.200        .73934E-04   -1.4624    
  25  Normalizat    1.1159        .23944        .27845E-03   -.89242    
  26  Prefactor     .79304        .22378        .33400E-03   -.99986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83574e-10
Minuit parameter uncertainties:
  1  0.000930896
  2  1.46725e-06
  3  1.02356
  4  0.000157358
  5  3.68837e-05
  6  3.08196
  7  122.607
  8  0.596111
  9  2.63862e-06
  10  1.3079e-05
  11  15.5726
  12  11.3875
  13  0.344896
  14  2.85495
  15  13.158
  16  0.00110063
  17  1.42102
  18  3.18347
  19  23.2561
  20  3.69058
  21  8.35782
  22  70.4629
  23  5.75482
  24  32.2195
  25  0.23967
  26  0.224041
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  2.971e+01  1.557e+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:  7.930e-01  2.240e-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.116e+00  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.94
Ra Dec: 65.094 -37.752
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 7.64e-08 +/- 4.01e-08
Energy Flux (Fixed Index): 3.22e-05 +/- 1.69e-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) = 7592.75607754
delta logL = 0.0960057012126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7592.74743349
delta logL = 0.104649749043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.323       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5003       1.0000          .0000       10.000    
     3 'Normalizat'    1.0840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81196       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=   7592.747     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      304 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.317        17.946        .79605E-04    .17595E-03
   2  Index         2.4998        .60911        .57823E-02    .40907E-04
   3  Normalizat    1.0839        .22718        .28170E-03    .22253E-03
   4  Prefactor     .81217        .22370        .33027E-03    .46918E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3173
  Index      = 2.49984
  Normalizat = 1.08392
  Prefactor  = 0.812167
 **********
 **   18 **HESSE 
 **********

 FCN=   7592.747     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.317        16.539        .31842E-05   -1.4701    
   2  Index         2.4998        .55980        .23129E-03   -.52364    
   3  Normalizat    1.0839        .22538        .11268E-04   -.90270    
   4  Prefactor     .81217        .22302        .13211E-04   -.99281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96871e-10
Minuit parameter uncertainties:
  1  16.5419
  2  0.56137
  3  0.225584
  4  0.223273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392931': 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) = 7592.74743159
delta logL = 0.104651651782

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  2.532e+01  1.654e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.500e+00  5.614e-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:  8.122e-01  2.233e-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.084e+00  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.14
Ra Dec: 65.094 -37.752
Photon Index (Free Index): 2.50 +/- 0.56
Photon Flux (Free Index): 1.06e-07 +/- 8.06e-08
Energy Flux (Free Index): 3.08e-05 +/- 1.41e-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/392931/cmap_HighResolution_631756801_632016001_4FGL_J0420.3-3745_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.64e-08', energy_flux2='3.08e-05', photon_flux_error='4.01e-08', dlogl='1.05e-01', energy_flux='3.22e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-08-20 12:50:43.617995', photon_index_error2='0.56', photon_index2='2.50', ts='14.94', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='1.12', time_epoch_completed='1629489043.62', return_code='0', job_id='392931', GAL2='0.81', EG2='1.08', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='8.06e-08', ts2='15.14', photon_index='2.24' WHERE bin_id='1514' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:50:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 392931: <4FGL_J0420.3-3745_daily_bin1514> in cluster <slac> Done

Job <4FGL_J0420.3-3745_daily_bin1514> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 12:35:49 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:35:49 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:35:49 2021
Terminated at Fri Aug 20 12:50:44 2021
Results reported at Fri Aug 20 12:50:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1514 65.0936 -37.7522 631756801 632016001 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 :                                   840.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            895 sec.

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

