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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1567
RA = 65.0936, Dec = -37.7522
tmin = 645494401, tmax = 645753601
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='393005', job_status='RUN', time_executed='2021-08-20 12:36:52.526797', time_epoch_executed='1629488212.53' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1567'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393005

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393005/ft1_4FGL_J0420.3-3745_daily_bin1567.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393005/ft2_4FGL_J0420.3-3745_daily_bin1567.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393005/ft1_4FGL_J0420.3-3745_daily_bin1567.fits outfile=/scratch/kocevski/393005/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1567.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=645494401.0 tmax=645753601.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.46
user 2.37
sys 1.06

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/393005/ft2_4FGL_J0420.3-3745_daily_bin1567.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/393005/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1567.fits evtable="EVENTS" outfile="/scratch/kocevski/393005/ft1_filtered_4FGL_J0420.3-3745_daily_bin1567.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.37
user 0.33
sys 1.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393005/ft1_filtered_4FGL_J0420.3-3745_daily_bin1567.fits" evtable="EVENTS" scfile=/scratch/kocevski/393005/ft2_4FGL_J0420.3-3745_daily_bin1567.fits sctable="SC_DATA" outfile=/scratch/kocevski/393005/ltcube_645494401_645753601_4FGL_J0420.3-3745_daily_bin1567.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/393005/ft2_4FGL_J0420.3-3745_daily_bin1567.fits
.....................!
real 13.18
user 11.81
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393005/ft1_filtered_4FGL_J0420.3-3745_daily_bin1567.fits evtable="EVENTS" scfile=/scratch/kocevski/393005/ft2_4FGL_J0420.3-3745_daily_bin1567.fits sctable="SC_DATA" expcube=/scratch/kocevski/393005/ltcube_645494401_645753601_4FGL_J0420.3-3745_daily_bin1567.fits outfile=/scratch/kocevski/393005/expmap_645494401_645753601_4FGL_J0420.3-3745_daily_bin1567.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/393005/ltcube_645494401_645753601_4FGL_J0420.3-3745_daily_bin1567.fits
.....................!
real 191.58
user 185.74
sys 5.49

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/393005/ft1_filtered_4FGL_J0420.3-3745_daily_bin1567.fits scfile=/scratch/kocevski/393005/ft2_4FGL_J0420.3-3745_daily_bin1567.fits outfile=/scratch/kocevski/393005/cmap_645494401_645753601_4FGL_J0420.3-3745_daily_bin1567.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.37
user 0.37
sys 0.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393005/ft1_filtered_4FGL_J0420.3-3745_daily_bin1567.fits scfile=/scratch/kocevski/393005/ft2_4FGL_J0420.3-3745_daily_bin1567.fits outfile=/scratch/kocevski/393005/cmap_HighResolution_645494401_645753601_4FGL_J0420.3-3745_daily_bin1567.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.35
user 0.37
sys 0.97

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393005/ft1_filtered_4FGL_J0420.3-3745_daily_bin1567.fits evtable="EVENTS" scfile=/scratch/kocevski/393005/ft2_4FGL_J0420.3-3745_daily_bin1567.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393005/Model_4FGL_J0420.3-3745_daily_bin1567.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/393005/ft1_filtered_4FGL_J0420.3-3745_daily_bin1567.fits.....................!
real 162.59
user 159.89
sys 2.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6905       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5353       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .40092E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.9886       1.0000         .10000E-03   10000.    
     7 'Prefactor '    71.684       1.0000         .10000E-03   10000.    
     8 'norm      '    .49863E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    45.777       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.232       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.133       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8164       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2718       1.0000         .10000E-03   10000.    
    15 'norm      '    8.8735       1.0000         .10000E-03   10000.    
    16 'norm      '    81.606       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5447       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38168       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8779       1.0000         .10000E-03   10000.    
    20 'norm      '    .24266E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.7858       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.881       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.8721       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.8588       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2513       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83544       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=   7646.372     FROM MIGRAD    STATUS=CONVERGED   1099 CALLS     4088 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.611        .18142E-02** at limit **
   2  norm          2.6908        2.2986        .11869E-03    .82661E-04
   3  norm          1.5355        .78006        .52790E-04    .25391E-03
   4  Prefactor     .10001E-03    32.734        .15967    ** at limit **
   5  Prefactor     .10000E-03    8.6691        .18142E-02** at limit **
   6  norm          1.9890        1.2917        .77664E-04    .41895E-03
   7  Prefactor     71.658        101.72        .47416E-04    .59942E-05
   8  norm          .49924E-01    .23600        .18539E-03    .67419E-03
   9  norm          45.780        11.176        .59260E-04    .65841E-04
  10  Prefactor     .10000E-03    61.897        .18142E-02** at limit **
  11  Prefactor     17.234        12.874        .96484E-04    .37352E-04
  12  Prefactor     13.134        10.146        .11053E-03    .11674E-03
  13  norm          1.8164        .67082        .38698E-04    .39367E-03
  14  Prefactor     2.2708        2.1676        .11642E-03    .49683E-03
  15  norm          8.8701        7.4305        .13456E-03    .39440E-03
  16  norm          81.630        156.48        .44462E-04    .56304E-04
  17  norm          1.5436        1.4067        .79747E-04    .11258E-02
  18  Prefactor     .38528        5.1698        .20419E-02    .68953E-03
  19  Prefactor     3.9058        24.467        .20491E-03    .11862E-03
  20  norm          .10002E-03    14.875        .27746E-02** at limit **
  21  norm          2.7735        6.6445        .22575E-03    .48164E-03
  22  Prefactor     18.878        53.316        .92174E-04    .81527E-04
  23  Prefactor     4.8732        4.6752        .88899E-03    .54899E-03
  24  Prefactor     7.8535        27.411        .14303E-03    .17645E-04
  25  Normalizat    1.2508        .21444        .24603E-03    .23582E-03
  26  Prefactor     .83587        .21534        .31263E-03    .57655E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.69084
  norm       = 1.53545
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 1.98896
  Prefactor  = 71.6579
  norm       = 0.0499235
  norm       = 45.7799
  Prefactor  = 0.000100003
  Prefactor  = 17.2345
  Prefactor  = 13.1336
  norm       = 1.81642
  Prefactor  = 2.27084
  norm       = 8.8701
  norm       = 81.6296
  norm       = 1.54359
  Prefactor  = 0.385277
  Prefactor  = 3.90582
  norm       = 0.000100016
  norm       = 2.77349
  Prefactor  = 18.8781
  Prefactor  = 4.8732
  Prefactor  = 7.8535
  Normalizat = 1.25081
  Prefactor  = 0.835869
 **********
 **   18 **HESSE 
 **********

 FCN=   7646.372     FROM HESSE     STATUS=OK           444 CALLS     4532 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.615        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6908        2.2986        .47476E-05   -1.5380    
   3  norm          1.5355        .78002        .21116E-05   -1.5460    
   4  Prefactor     .10001E-03    32.719        .15972       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.6703        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9890        1.2916        .31066E-05   -1.5426    
   7  Prefactor     71.658        101.72        .94831E-05   -1.4013    
   8  norm          .49924E-01    .23547        .74155E-05   -1.5663    
   9  norm          45.780        11.171        .11852E-04   -1.4354    
  10  Prefactor     .10000E-03    61.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.234        12.874        .38594E-05   -1.4877    
  12  Prefactor     13.134        10.146        .44213E-05   -1.4983    
  13  norm          1.8164        .67081        .15479E-05   -1.5438    
  14  Prefactor     2.2708        2.1605        .46570E-05   -1.5407    
  15  norm          8.8701        7.4143        .53822E-05   -1.5112    
  16  norm          81.630        156.48        .88924E-05   -1.3899    
  17  norm          1.5436        1.3729        .31899E-05   -1.5459    
  18  Prefactor     .38528        4.7671        .81677E-04   -1.5584    
  19  Prefactor     3.9058        24.304        .81963E-05   -1.5313    
  20  norm          .10002E-03    15.299        .11099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.7735        6.6057        .90301E-05   -1.5375    
  22  Prefactor     18.878        53.242        .18435E-04   -1.4839    
  23  Prefactor     4.8732        4.6740        .35560E-04   -1.5266    
  24  Prefactor     7.8535        27.414        .57214E-05   -1.5147    
  25  Normalizat    1.2508        .21409        .49206E-04   -.85047    
  26  Prefactor     .83587        .21531        .62525E-04   -.98419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75079e-09
Minuit parameter uncertainties:
  1  5.91749e-05
  2  2.29864
  3  0.780028
  4  0.000887179
  5  5.29015e-05
  6  1.29166
  7  101.968
  8  0.21663
  9  11.1719
  10  0.000800858
  11  12.8762
  12  10.147
  13  0.670817
  14  2.16059
  15  7.41511
  16  157.28
  17  1.37288
  18  2.71039
  19  19.4974
  20  0.000977268
  21  6.60743
  22  53.3764
  23  4.67432
  24  27.4584
  25  0.214241
  26  0.215528
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  1.723e+01  1.288e+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.359e-01  2.155e-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.251e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.41
Ra Dec: 65.094 -37.752
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 4.44e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.40e-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) = 7646.06492188
delta logL = 0.307081936001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7645.92343826
delta logL = 0.44856555737

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6438       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1345       1.0000          .0000       10.000    
     3 'Normalizat'    1.2775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82933       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=   7645.923     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      222 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6438        6.2438        .42273E-02    .43475E-02
   2  Index         1.1344        .45757        .27227       -.71806E-04
   3  Normalizat    1.2776        .16721        .55252E-01    .60772E-05
   4  Prefactor     .82925        .17840        .71059E-01    .21887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.64384
  Index      = 1.13436
  Normalizat = 1.27757
  Prefactor  = 0.829252
 **********
 **   18 **HESSE 
 **********

 FCN=   7645.923     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6438        11.031        .16909E-03   -1.5233    
   2  Index         1.1344        .86714        .11121E-01   -.88376    
   3  Normalizat    1.2776        .19806        .24431E-03   -.84239    
   4  Prefactor     .82925        .21108        .31442E-03   -.98659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1416e-08
Minuit parameter uncertainties:
  1  11.0347
  2  0.87833
  3  0.198178
  4  0.211286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393005': 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) = 7645.92343815
delta logL = 0.448565672949

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  5.644e+00  1.103e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  1.134e+00  8.783e-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.293e-01  2.113e-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.278e+00  1.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.34
Ra Dec: 65.094 -37.752
Photon Index (Free Index): 1.13 +/- 0.88
Photon Flux (Free Index): 4.73e-09 +/- 8.02e-09
Energy Flux (Free Index): 4.78e-05 +/- 7.18e-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/393005/cmap_HighResolution_645494401_645753601_4FGL_J0420.3-3745_daily_bin1567.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.44e-08', energy_flux2='4.78e-05', photon_flux_error='3.31e-08', dlogl='4.49e-01', energy_flux='1.87e-05', photon_flux2='4.73e-09', job_status='DONE', time_completed='2021-08-20 12:52:14.530178', photon_index_error2='0.88', photon_index2='1.13', ts='8.41', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='7.18e-05', EG='1.25', time_epoch_completed='1629489134.53', return_code='0', job_id='393005', GAL2='0.83', EG2='1.28', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='8.02e-09', ts2='9.34', photon_index='2.24' WHERE bin_id='1567' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:52:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 393005: <4FGL_J0420.3-3745_daily_bin1567> in cluster <slac> Done

Job <4FGL_J0420.3-3745_daily_bin1567> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 12:35:53 2021
Job was executed on host(s) <bullet0120>, 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:52:15 2021
Results reported at Fri Aug 20 12:52:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1567 65.0936 -37.7522 645494401 645753601 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 :                                   932.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

