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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1553
RA = 65.0936, Dec = -37.7522
tmin = 641865601, tmax = 642124801
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='392986', job_status='RUN', time_executed='2021-08-20 12:36:33.821975', time_epoch_executed='1629488193.82' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392986

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392986/ft1_4FGL_J0420.3-3745_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392986/ft2_4FGL_J0420.3-3745_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392986/ft1_4FGL_J0420.3-3745_daily_bin1553.fits outfile=/scratch/kocevski/392986/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1553.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=641865601.0 tmax=642124801.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 5.01
user 4.12
sys 0.85

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392986/ft1_filtered_4FGL_J0420.3-3745_daily_bin1553.fits" evtable="EVENTS" scfile=/scratch/kocevski/392986/ft2_4FGL_J0420.3-3745_daily_bin1553.fits sctable="SC_DATA" outfile=/scratch/kocevski/392986/ltcube_641865601_642124801_4FGL_J0420.3-3745_daily_bin1553.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/392986/ft2_4FGL_J0420.3-3745_daily_bin1553.fits
.....................!
real 12.73
user 11.56
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392986/ft1_filtered_4FGL_J0420.3-3745_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/392986/ft2_4FGL_J0420.3-3745_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/392986/ltcube_641865601_642124801_4FGL_J0420.3-3745_daily_bin1553.fits outfile=/scratch/kocevski/392986/expmap_641865601_642124801_4FGL_J0420.3-3745_daily_bin1553.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/392986/ltcube_641865601_642124801_4FGL_J0420.3-3745_daily_bin1553.fits
.....................!
real 191.57
user 185.02
sys 6.01

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/392986/ft1_filtered_4FGL_J0420.3-3745_daily_bin1553.fits scfile=/scratch/kocevski/392986/ft2_4FGL_J0420.3-3745_daily_bin1553.fits outfile=/scratch/kocevski/392986/cmap_641865601_642124801_4FGL_J0420.3-3745_daily_bin1553.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.23
user 0.36
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392986/ft1_filtered_4FGL_J0420.3-3745_daily_bin1553.fits scfile=/scratch/kocevski/392986/ft2_4FGL_J0420.3-3745_daily_bin1553.fits outfile=/scratch/kocevski/392986/cmap_HighResolution_641865601_642124801_4FGL_J0420.3-3745_daily_bin1553.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.23
user 0.37
sys 0.85

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/392986/ft1_filtered_4FGL_J0420.3-3745_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/392986/ft2_4FGL_J0420.3-3745_daily_bin1553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/392986/Model_4FGL_J0420.3-3745_daily_bin1553.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/392986/ft1_filtered_4FGL_J0420.3-3745_daily_bin1553.fits.....................!
real 172.11
user 168.60
sys 2.81

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.623       1.0000         .10000E-03   10000.    
     2 'norm      '    4.3139       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6293       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.636       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .81874E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.365       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .47209       1.0000         .10000E-03   10000.    
     9 'norm      '    28.797       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8675       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.888       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0397       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4832       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3109       1.0000         .10000E-03   10000.    
    15 'norm      '    26.724       1.0000         .10000E-03   10000.    
    16 'norm      '    .72835E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8755       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5478       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.626       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3182       1.0000         .10000E-03   10000.    
    21 'norm      '    5.2567       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82800       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0269       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=   8106.381     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     2262 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.624        23.807        .79558E-07   -.62042E-05
   2  norm          4.3137        2.4547       -.23506E-07   -.59668E-04
   3  norm          1.6294        .76799       -.51993E-08   -.16051E-03
   4  Prefactor     14.606        43.205        .65159E-05   -.29758E-05
   5  Prefactor     .10000E-03    25.785        .86401E-06** at limit **
   6  norm          15.366        2.4664        .11993E-07   -.41388E-04
   7  Prefactor     .10000E-03    21.513       -.19812E-06** at limit **
   8  norm          .47191        .31974        .12548E-07   -.23750E-03
   9  norm          28.799        9.6850       -.10429E-06   -.45047E-04
  10  Prefactor     3.8700        27.330        .15612E-06   -.21976E-05
  11  Prefactor     23.890        12.391       -.21846E-06   -.13539E-04
  12  Prefactor     4.0415        9.3276        .41125E-05   -.62375E-05
  13  norm          2.4832        .74742       -.19045E-06   -.38039E-04
  14  Prefactor     2.3114        2.3027        .23078E-07   -.54661E-06
  15  norm          26.725        10.505       -.52588E-07   -.76639E-05
  16  norm          .10000E-03    113.51       -.11969E-05** at limit **
  17  norm          1.8755        1.1966       -.59772E-08    .90169E-04
  18  Prefactor     2.5477        2.5488        .14612E-06    .81244E-04
  19  Prefactor     27.617        24.467        .38549E-06    .10136E-04
  20  norm          3.3150        3.9670        .16318E-06   -.62652E-06
  21  norm          5.2599        8.4807       -.47823E-06   -.42237E-04
  22  Prefactor     .10000E-03    15.101        .19676E-07** at limit **
  23  Prefactor     .10000E-03    2.2957        .49502E-07** at limit **
  24  Prefactor     .10000E-03    8.5233        .10583E-07** at limit **
  25  Normalizat    .82793        .16546       -.82008E-06   -.14929E-05
  26  Prefactor     1.0268        .16751        .10383E-07   -.70716E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6243
  norm       = 4.31365
  norm       = 1.62939
  Prefactor  = 14.6057
  Prefactor  = 0.0001
  norm       = 15.3657
  Prefactor  = 0.0001
  norm       = 0.471913
  norm       = 28.7993
  Prefactor  = 3.87001
  Prefactor  = 23.8896
  Prefactor  = 4.04149
  norm       = 2.48315
  Prefactor  = 2.31141
  norm       = 26.725
  norm       = 0.0001
  norm       = 1.87546
  Prefactor  = 2.5477
  Prefactor  = 27.6175
  norm       = 3.31505
  norm       = 5.25991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.827934
  Prefactor  = 1.02685
 **********
 **   18 **HESSE 
 **********

 FCN=   8106.381     FROM HESSE     STATUS=OK           470 CALLS     2732 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.624        23.808        .10474E-03   -1.4943    
   2  norm          4.3137        2.4558        .10315E-03   -1.5293    
   3  norm          1.6294        .76846        .52122E-04   -1.5453    
   4  Prefactor     14.606        43.173        .10469E-03   -1.4943    
   5  Prefactor     .10000E-03    26.838        .41777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.366        2.4701        .54800E-04   -1.4924    
   7  Prefactor     .10000E-03    21.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .47191        .30779        .37874E-03   -1.5571    
   9  norm          28.799        9.6513        .74658E-04   -1.4634    
  10  Prefactor     3.8700        27.329        .20519E-03   -1.5314    
  11  Prefactor     23.890        12.412        .81957E-04   -1.4730    
  12  Prefactor     4.0415        9.3714        .10031E-02   -1.5306    
  13  norm          2.4832        .74975        .35889E-04   -1.5393    
  14  Prefactor     2.3114        2.2783        .12467E-03   -1.5404    
  15  norm          26.725        10.466        .77494E-04   -1.4674    
  16  norm          .10000E-03    113.60        .20957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8755        1.2060        .72060E-04   -1.5434    
  18  Prefactor     2.5477        2.5298        .11962E-03   -1.5389    
  19  Prefactor     27.617        24.107        .76221E-04   -1.4656    
  20  norm          3.3150        3.9603        .18691E-03   -1.5344    
  21  norm          5.2599        8.3263        .17531E-03   -1.5249    
  22  Prefactor     .10000E-03    15.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.3357        .13308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.5251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .82793        .19611        .28290E-03   -.99041    
  26  Prefactor     1.0268        .19924        .27874E-03   -.91840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82568e-10
Minuit parameter uncertainties:
  1  23.823
  2  2.45588
  3  0.768461
  4  43.2653
  5  2.71822e-05
  6  2.47007
  7  1.47315e-06
  8  0.307787
  9  9.65187
  10  20.5815
  11  12.4138
  12  9.3748
  13  0.74975
  14  2.27843
  15  10.4665
  16  5.0722e-06
  17  1.20597
  18  2.52994
  19  24.1158
  20  3.96057
  21  8.32815
  22  4.16676e-06
  23  3.32985e-06
  24  1.67903e-06
  25  0.196282
  26  0.199379
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  2.389e+01  1.241e+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:  1.027e+00  1.994e-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:  8.279e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.42
Ra Dec: 65.094 -37.752
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 6.15e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 2.59e-05 +/- 1.35e-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) = 8105.34737672
delta logL = 1.03342289036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8105.28731376
delta logL = 1.0934858577

Fit tolerance = 1e-08

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

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

 FCN=   8105.287     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      218 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.218        15.902        .19209E-02   -.10452E-04
   2  Index         1.5664        .35948        .20721       -.55464E-04
   3  Normalizat    .86113        .15633        .44402E-01    .25390E-04
   4  Prefactor     1.0071        .16957        .63627E-01    .12365E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.2177
  Index      = 1.56641
  Normalizat = 0.861126
  Prefactor  = 1.00706
 **********
 **   18 **HESSE 
 **********

 FCN=   8105.287     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.218        15.420        .76834E-04   -1.4664    
   2  Index         1.5664        .39655        .79880E-02   -.75696    
   3  Normalizat    .86113        .18033        .27819E-03   -.97840    
   4  Prefactor     1.0071        .19635        .28139E-03   -.92495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54516e-10
Minuit parameter uncertainties:
  1  15.4221
  2  0.397345
  3  0.180454
  4  0.196493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392986': 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) = 8105.28730921
delta logL = 1.09349040727

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  2.722e+01  1.542e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  1.566e+00  3.973e-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:  1.007e+00  1.965e-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:  8.611e-01  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.72
Ra Dec: 65.094 -37.752
Photon Index (Free Index): 1.57 +/- 0.40
Photon Flux (Free Index): 2.67e-08 +/- 2.05e-08
Energy Flux (Free Index): 6.75e-05 +/- 6.44e-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/392986/cmap_HighResolution_641865601_642124801_4FGL_J0420.3-3745_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.15e-08', energy_flux2='6.75e-05', photon_flux_error='3.19e-08', dlogl='1.09e+00', energy_flux='2.59e-05', photon_flux2='2.67e-08', job_status='DONE', time_completed='2021-08-20 12:50:01.780695', photon_index_error2='0.40', photon_index2='1.57', ts='16.42', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='6.44e-05', EG='0.83', time_epoch_completed='1629489001.78', return_code='0', job_id='392986', GAL2='1.01', EG2='0.86', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='2.05e-08', ts2='18.72', photon_index='2.24' WHERE bin_id='1553' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:50:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 392986: <4FGL_J0420.3-3745_daily_bin1553> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1553 65.0936 -37.7522 641865601 642124801 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 :                                   814.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             363.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

