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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1099
RA = 65.0936, Dec = -37.7522
tmin = 524188801, tmax = 524448001
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='391043', job_status='RUN', time_executed='2021-08-20 12:32:31.150257', time_epoch_executed='1629487951.15' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/391043

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/391043/ft1_4FGL_J0420.3-3745_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/391043/ft2_4FGL_J0420.3-3745_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/391043/ft1_4FGL_J0420.3-3745_daily_bin1099.fits outfile=/scratch/kocevski/391043/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1099.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=524188801.0 tmax=524448001.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 7.14
user 3.20
sys 3.90

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/391043/ft1_filtered_4FGL_J0420.3-3745_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/391043/ft2_4FGL_J0420.3-3745_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/391043/ltcube_524188801_524448001_4FGL_J0420.3-3745_daily_bin1099.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/391043/ft2_4FGL_J0420.3-3745_daily_bin1099.fits
.....................!
real 15.87
user 11.32
sys 4.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/391043/ft1_filtered_4FGL_J0420.3-3745_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/391043/ft2_4FGL_J0420.3-3745_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/391043/ltcube_524188801_524448001_4FGL_J0420.3-3745_daily_bin1099.fits outfile=/scratch/kocevski/391043/expmap_524188801_524448001_4FGL_J0420.3-3745_daily_bin1099.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/391043/ltcube_524188801_524448001_4FGL_J0420.3-3745_daily_bin1099.fits
.....................!
real 196.29
user 185.94
sys 9.84

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/391043/ft1_filtered_4FGL_J0420.3-3745_daily_bin1099.fits scfile=/scratch/kocevski/391043/ft2_4FGL_J0420.3-3745_daily_bin1099.fits outfile=/scratch/kocevski/391043/cmap_524188801_524448001_4FGL_J0420.3-3745_daily_bin1099.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.23
user 0.36
sys 3.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/391043/ft1_filtered_4FGL_J0420.3-3745_daily_bin1099.fits scfile=/scratch/kocevski/391043/ft2_4FGL_J0420.3-3745_daily_bin1099.fits outfile=/scratch/kocevski/391043/cmap_HighResolution_524188801_524448001_4FGL_J0420.3-3745_daily_bin1099.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.18
user 0.36
sys 3.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/391043/ft1_filtered_4FGL_J0420.3-3745_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/391043/ft2_4FGL_J0420.3-3745_daily_bin1099.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/391043/Model_4FGL_J0420.3-3745_daily_bin1099.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/391043/ft1_filtered_4FGL_J0420.3-3745_daily_bin1099.fits.....................!
real 167.11
user 160.61
sys 6.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.4567       1.0000         .10000E-03   10000.    
     3 'norm      '    .92194       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.773       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8626       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.328       1.0000         .10000E-03   10000.    
     8 'norm      '    .23361       1.0000         .10000E-03   10000.    
     9 'norm      '    12.511       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.284       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.853       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.849       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0773       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27745       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3423       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7379       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.554       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4363       1.0000         .10000E-03   10000.    
    21 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4701       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96800       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81792       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=   7612.762     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     2713 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.837       -.10607E-06** at limit **
   2  norm          4.4561        2.5846       -.66231E-07   -.29136E-04
   3  norm          .92178        .62824       -.36237E-07   -.44830E-03
   4  Prefactor     21.770        27.010        .44031E-05   -.83967E-04
   5  Prefactor     .10000E-03    6.2517       -.15725E-06** at limit **
   6  norm          2.8621        1.2455       -.20269E-07   -.80745E-04
   7  Prefactor     18.094        57.690       -.69718E-06    .35640E-05
   8  norm          .23333        .24840       -.69855E-07   -.25920E-02
   9  norm          12.512        6.4492       -.23216E-07   -.90629E-05
  10  Prefactor     19.278        23.236        .54838E-05   -.81483E-04
  11  Prefactor     23.852        12.015        .70862E-07    .12694E-04
  12  Prefactor     12.843        8.7721        .28147E-07   -.37200E-04
  13  norm          2.0775        .62700        .12286E-07    .96400E-04
  14  Prefactor     .25786        1.2238       -.66350E-06    .21451E-03
  15  norm          5.3452        5.4756       -.15620E-06    .16982E-03
  16  norm          .10000E-03    39.095       -.58276E-07** at limit **
  17  norm          2.7381        1.3087       -.31773E-07    .35294E-03
  18  Prefactor     .10000E-03    1.6547        .51859E-07** at limit **
  19  Prefactor     20.557        13.267       -.89308E-07    .18490E-03
  20  norm          2.4355        2.7775       -.72720E-07   -.37911E-03
  21  norm          .10000E-03    1.7142       -.15501E-06** at limit **
  22  Prefactor     .10000E-03    45.217       -.85715E-06** at limit **
  23  Prefactor     1.4691        3.2914       -.79722E-06   -.10148E-02
  24  Prefactor     .10000E-03    7.6678       -.99984E-07** at limit **
  25  Normalizat    .96839        .15548       -.23260E-06    .22365E-03
  26  Prefactor     .81764        .15838       -.83592E-08    .11094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.45607
  norm       = 0.921778
  Prefactor  = 21.7695
  Prefactor  = 0.0001
  norm       = 2.86207
  Prefactor  = 18.0938
  norm       = 0.233333
  norm       = 12.5118
  Prefactor  = 19.2781
  Prefactor  = 23.8522
  Prefactor  = 12.8433
  norm       = 2.07755
  Prefactor  = 0.257859
  norm       = 5.34523
  norm       = 0.0001
  norm       = 2.73812
  Prefactor  = 0.0001
  Prefactor  = 20.5566
  norm       = 2.43549
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.46908
  Prefactor  = 0.0001
  Normalizat = 0.968386
  Prefactor  = 0.817641
 **********
 **   18 **HESSE 
 **********

 FCN=   7612.762     FROM HESSE     STATUS=OK           468 CALLS     3181 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.4561        2.5833        .10312E-03   -1.5286    
   3  norm          .92178        .61543        .54872E-04   -1.5516    
   4  Prefactor     21.770        26.502        .85840E-04   -1.4774    
   5  Prefactor     .10000E-03    6.2773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8621        1.2487        .61746E-04   -1.5370    
   7  Prefactor     18.094        57.681        .93554E-04   -1.4857    
   8  norm          .23333        .23824        .41381E-03   -1.5611    
   9  norm          12.512        6.4072        .11325E-03   -1.5000    
  10  Prefactor     19.278        22.517        .91207E-04   -1.4830    
  11  Prefactor     23.852        12.004        .82017E-04   -1.4731    
  12  Prefactor     12.843        8.8527        .11175E-03   -1.4991    
  13  norm          2.0775        .63246        .33380E-04   -1.5420    
  14  Prefactor     .25786        5.1725        .17331E-02   -1.5606    
  15  norm          5.3452        5.4772        .17388E-03   -1.5246    
  16  norm          .10000E-03    39.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7381        1.2998        .65755E-04   -1.5377    
  18  Prefactor     .10000E-03    1.6988        .21679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.557        13.198        .88347E-04   -1.4801    
  20  norm          2.4355        2.7638        .14913E-03   -1.5396    
  21  norm          .10000E-03    1.7187        .11123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    45.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4691        3.4708        .23833E-03   -1.5466    
  24  Prefactor     .10000E-03    7.6689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .96839        .18089        .23239E-03   -.94097    
  26  Prefactor     .81764        .18407        .27350E-03   -.99081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41648e-09
Minuit parameter uncertainties:
  1  1.97197e-05
  2  2.58339
  3  0.615436
  4  26.5164
  5  9.46899e-06
  6  1.24875
  7  57.8593
  8  0.238246
  9  6.40752
  10  22.527
  11  12.0052
  12  8.85365
  13  0.632463
  14  2.30955
  15  5.47775
  16  2.57727e-06
  17  1.29984
  18  1.07664e-05
  19  13.2001
  20  2.76393
  21  4.90762e-06
  22  6.12063e-05
  23  3.47123
  24  2.57094e-06
  25  0.181006
  26  0.184204
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  2.385e+01  1.201e+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.176e-01  1.842e-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:  9.684e-01  1.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.68
Ra Dec: 65.094 -37.752
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 6.14e-08 +/- 3.09e-08
Energy Flux (Fixed Index): 2.59e-05 +/- 1.30e-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) = 7611.93118853
delta logL = 0.83056110432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7611.93102401
delta logL = 0.830725617307

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.404       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7922       1.0000          .0000       10.000    
     3 'Normalizat'    .98802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80555       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=   7611.931     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      230 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.412        181.17        .17875E-02    .32697E-04
   2  Index         1.7924        2.5567        .16418        .42088E-04
   3  Normalizat    .98766        .20654        .46017E-01    .47188E-04
   4  Prefactor     .80590        .19009        .43789E-01    .13065E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.4125
  Index      = 1.79239
  Normalizat = 0.987663
  Prefactor  = 0.8059
 **********
 **   18 **HESSE 
 **********

 FCN=   7611.931     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.412        15.798        .71500E-04   -1.4586    
   2  Index         1.7924        .33004        .63570E-02   -.69648    
   3  Normalizat    .98766        .16632        .23057E-03   -.93445    
   4  Prefactor     .80590        .18181        .27538E-03   -.99511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68618e-11
Minuit parameter uncertainties:
  1  15.8002
  2  0.330451
  3  0.166412
  4  0.181946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/391043': 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) = 7611.93102146
delta logL = 0.830728170871

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  3.141e+01  1.580e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  1.792e+00  3.305e-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.059e-01  1.819e-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:  9.877e-01  1.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.51
Ra Dec: 65.094 -37.752
Photon Index (Free Index): 1.79 +/- 0.33
Photon Flux (Free Index): 4.00e-08 +/- 2.60e-08
Energy Flux (Free Index): 4.90e-05 +/- 3.78e-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/391043/cmap_HighResolution_524188801_524448001_4FGL_J0420.3-3745_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.14e-08', energy_flux2='4.90e-05', photon_flux_error='3.09e-08', dlogl='8.31e-01', energy_flux='2.59e-05', photon_flux2='4.00e-08', job_status='DONE', time_completed='2021-08-20 12:46:38.641543', photon_index_error2='0.33', photon_index2='1.79', ts='12.68', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='3.78e-05', EG='0.97', time_epoch_completed='1629488798.64', return_code='0', job_id='391043', GAL2='0.81', EG2='0.99', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='2.60e-08', ts2='14.51', photon_index='2.24' WHERE bin_id='1099' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:46:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 391043: <4FGL_J0420.3-3745_daily_bin1099> in cluster <slac> Done

Job <4FGL_J0420.3-3745_daily_bin1099> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 12:30:54 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:30:56 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:56 2021
Terminated at Fri Aug 20 12:46:39 2021
Results reported at Fri Aug 20 12:46:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1099 65.0936 -37.7522 524188801 524448001 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 :                                   903.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

