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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1218
RA = 65.0936, Dec = -37.7522
tmin = 555033601, tmax = 555292801
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='391210', job_status='RUN', time_executed='2021-08-20 12:34:50.047734', time_epoch_executed='1629488090.05' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1218'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/391210

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/391210/ft1_4FGL_J0420.3-3745_daily_bin1218.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/391210/ft2_4FGL_J0420.3-3745_daily_bin1218.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/391210/ft1_4FGL_J0420.3-3745_daily_bin1218.fits outfile=/scratch/kocevski/391210/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1218.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=555033601.0 tmax=555292801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 8.17
user 3.40
sys 4.71

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/391210/ft1_filtered_4FGL_J0420.3-3745_daily_bin1218.fits" evtable="EVENTS" scfile=/scratch/kocevski/391210/ft2_4FGL_J0420.3-3745_daily_bin1218.fits sctable="SC_DATA" outfile=/scratch/kocevski/391210/ltcube_555033601_555292801_4FGL_J0420.3-3745_daily_bin1218.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/391210/ft2_4FGL_J0420.3-3745_daily_bin1218.fits
.....................!
real 22.10
user 16.44
sys 5.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/391210/ft1_filtered_4FGL_J0420.3-3745_daily_bin1218.fits evtable="EVENTS" scfile=/scratch/kocevski/391210/ft2_4FGL_J0420.3-3745_daily_bin1218.fits sctable="SC_DATA" expcube=/scratch/kocevski/391210/ltcube_555033601_555292801_4FGL_J0420.3-3745_daily_bin1218.fits outfile=/scratch/kocevski/391210/expmap_555033601_555292801_4FGL_J0420.3-3745_daily_bin1218.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/391210/ltcube_555033601_555292801_4FGL_J0420.3-3745_daily_bin1218.fits
.....................!
real 195.78
user 185.27
sys 10.17

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/391210/ft1_filtered_4FGL_J0420.3-3745_daily_bin1218.fits scfile=/scratch/kocevski/391210/ft2_4FGL_J0420.3-3745_daily_bin1218.fits outfile=/scratch/kocevski/391210/cmap_555033601_555292801_4FGL_J0420.3-3745_daily_bin1218.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 5.57
user 0.38
sys 4.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/391210/ft1_filtered_4FGL_J0420.3-3745_daily_bin1218.fits scfile=/scratch/kocevski/391210/ft2_4FGL_J0420.3-3745_daily_bin1218.fits outfile=/scratch/kocevski/391210/cmap_HighResolution_555033601_555292801_4FGL_J0420.3-3745_daily_bin1218.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 5.23
user 0.41
sys 4.71

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/391210/ft1_filtered_4FGL_J0420.3-3745_daily_bin1218.fits evtable="EVENTS" scfile=/scratch/kocevski/391210/ft2_4FGL_J0420.3-3745_daily_bin1218.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/391210/Model_4FGL_J0420.3-3745_daily_bin1218.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/391210/ft1_filtered_4FGL_J0420.3-3745_daily_bin1218.fits.......!
real 21.37
user 14.08
sys 7.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/391210/ft1_filtered_4FGL_J0420.3-3745_daily_bin1218.fits', '/scratch/kocevski/391210/ft2_4FGL_J0420.3-3745_daily_bin1218.fits', expMap='/scratch/kocevski/391210/expmap_555033601_555292801_4FGL_J0420.3-3745_daily_bin1218.fits', expCube='/scratch/kocevski/391210/ltcube_555033601_555292801_4FGL_J0420.3-3745_daily_bin1218.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/391210/Model_4FGL_J0420.3-3745_daily_bin1218.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/391210/ft1_filtered_4FGL_J0420.3-3745_daily_bin1218.fits
Spacecraft file(s): /scratch/kocevski/391210/ft2_4FGL_J0420.3-3745_daily_bin1218.fits
Exposure map: /scratch/kocevski/391210/expmap_555033601_555292801_4FGL_J0420.3-3745_daily_bin1218.fits
Exposure cube: /scratch/kocevski/391210/ltcube_555033601_555292801_4FGL_J0420.3-3745_daily_bin1218.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/391210/Model_4FGL_J0420.3-3745_daily_bin1218.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 89.560198333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 87.7555832443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0932       1.0000         .10000E-03   10000.    
     2 'norm      '    .12861E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .61512       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0205       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2046       1.0000         .10000E-03   10000.    
     6 'norm      '    21.690       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.437       1.0000         .10000E-03   10000.    
     8 'norm      '    44.177       1.0000         .10000E-03   10000.    
     9 'norm      '    8.5698       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4850       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3047       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1838       1.0000         .10000E-03   10000.    
    13 'norm      '    4.2063       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4680       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5258       1.0000         .10000E-03   10000.    
    16 'norm      '    6.6755       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2793       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3568       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8738       1.0000         .10000E-03   10000.    
    20 'norm      '    .16471E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    4.0610       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3826       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0038       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.3696       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .34627       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .11471E-04   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   87.27975     FROM MIGRAD    STATUS=CONVERGED    372 CALLS      532 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10354E-03    1093.3        .71328E-02** at limit **
   2  norm          .10000E-03    116.95        .90872E-02** at limit **
   3  norm          .10002E-03    242.86        .11732E-01** at limit **
   4  Prefactor     9.0205        1.0015         .0000         .0000    
   5  Prefactor     226.22        7.3057       -.11104E-03   -.17011E-03
   6  norm          18.012        .91169       -.19777E-06   -.10167E-03
   7  Prefactor     2661.2        13.702        .38573E-04   -.13069E-02
   8  norm          14.999        .58357        .70986E-05    .20195E-04
   9  norm          7.3861        .93001       -.39776E-05   -.11636E-01
  10  Prefactor     4.4850        1.0063         .0000         .0000    
  11  Prefactor     7.3047        1.0024         .0000         .0000    
  12  Prefactor     8.1838        1.0019         .0000         .0000    
  13  norm          4.2063        1.0072         .0000         .0000    
  14  Prefactor     1.4680        1.0745         .0000         .0000    
  15  norm          4.5258        1.0062         .0000         .0000    
  16  norm          .49149E-02    .37688E-01    .17776E-04   -.92922E-03
  17  norm          4.2793        1.0070         .0000         .0000    
  18  Prefactor     1.3568        1.0924         .0000         .0000    
  19  Prefactor     4.8738        1.0054         .0000         .0000    
  20  norm          .10000E-03    .20726        .57895E-05** at limit **
  21  norm          4.0610        1.0078         .0000         .0000    
  22  Prefactor     3.3826        1.0114         .0000         .0000    
  23  Prefactor     .10000E-03    .45859       -.30516E-04** at limit **
  24  Prefactor     4.3696        1.0067         .0000         .0000    
  25  Normalizat    .10000E-01    .34427        .15000E-04** at limit **
  26  Prefactor     .63144E-11    .25504       -.58548E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103535
  norm       = 0.000100002
  norm       = 0.000100022
  Prefactor  = 9.02049
  Prefactor  = 226.218
  norm       = 18.0123
  Prefactor  = 2661.15
  norm       = 14.999
  norm       = 7.38607
  Prefactor  = 4.48504
  Prefactor  = 7.30465
  Prefactor  = 8.18383
  norm       = 4.2063
  Prefactor  = 1.46798
  norm       = 4.52582
  norm       = 0.00491489
  norm       = 4.27927
  Prefactor  = 1.3568
  Prefactor  = 4.87376
  norm       = 0.000100004
  norm       = 4.06101
  Prefactor  = 3.38264
  Prefactor  = 0.0001
  Prefactor  = 4.36955
  Normalizat = 0.01
  Prefactor  = 6.31439e-12
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   87.27975     FROM HESSE     STATUS=FAILED        17 CALLS      549 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10354E-03    1093.3        .71328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    116.95        .90872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10002E-03    242.86        .11732E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     497.60        488.55         .0000       -1.5107    
   5  Prefactor     226.22        7.3057       -.11104E-03   -1.2688    
   6  norm          18.012        .91169       -.19777E-06   -1.4859    
   7  Prefactor     2661.2        13.702        .38573E-04   -.48677    
   8  norm          14.999        .58357        .70986E-05   -1.4933    
   9  norm          7.3861        .93001       -.39776E-05   -1.6252    
  10  Prefactor     4.4850        1.0063         .0000       -1.5284    
  11  Prefactor     7.3047        1.0024         .0000       -1.5167    
  12  Prefactor     8.1838        1.0019         .0000       -1.5136    
  13  norm          4.2063        1.0072         .0000       -1.5298    
  14  Prefactor     1.4680        1.0745         .0000       -1.5466    
  15  norm          4.5258        1.0062         .0000       -1.5282    
  16  norm          .49149E-02    .37688E-01    .17776E-04   -1.5722    
  17  norm          4.2793        1.0070         .0000       -1.5294    
  18  Prefactor     1.3568        1.0924         .0000       -1.5475    
  19  Prefactor     4.8738        1.0054         .0000       -1.5266    
  20  norm          .10000E-03    .20726        .57895E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.0610        1.0078         .0000       -1.5305    
  22  Prefactor     3.3826        1.0114         .0000       -1.5340    
  23  Prefactor     .10000E-03    .45859       -.30516E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.3696        1.0067         .0000       -1.5290    
  25  Normalizat    .10000E-01    .34427        .15000E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .63144E-11    .25504       -.58548E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.28304e-09
Minuit parameter uncertainties:
  1  0.126725
  2  0.000956049
  3  0.00466068
  4  1.00154
  5  7.30577
  6  0.91169
  7  13.7022
  8  0.58357
  9  0.930015
  10  1.00635
  11  1.00236
  12  1.00188
  13  1.00724
  14  1.07456
  15  1.00624
  16  0.0269419
  17  1.00699
  18  1.09245
  19  1.00536
  20  5.62334e-05
  21  1.00779
  22  1.01136
  23  2.62301e-05
  24  1.0067
  25  7.6862e-06
  26  2.54894e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 87.2797480278

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  7.305e+00  1.002e+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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  6.314e-12  2.549e-06  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.000e-02  7.686e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.00
Ra Dec: 65.094 -37.752
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.64e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/391210/likelihoodResults_555033601_555292801_4FGL_J0420.3-3745_daily_bin1218.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 87.2798690759
delta logL = -0.000121048100823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 87.2798690759
delta logL = -0.000121048100823

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.2358       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   87.27987     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.2358        1.0142        .24588         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.23579
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   87.27987     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .55359        1.7653        .24588       -.58577    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.02445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/391210': 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): 101
logL (Free Index) = 87.2798690759
delta logL = -0.000121048100823

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  7.305e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
277        Index:  2.236e+00  1.024e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  1.316e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.622e-07  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.00
Ra Dec: 65.094 -37.752

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/391210/cmap_HighResolution_555033601_555292801_4FGL_J0420.3-3745_daily_bin1218.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.64e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-08-20 12:41:28.423067', job_id='391210', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629488488.42', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-1.21e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1218' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:41:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0131>
Subject: Job 391210: <4FGL_J0420.3-3745_daily_bin1218> in cluster <slac> Done

Job <4FGL_J0420.3-3745_daily_bin1218> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 12:31:10 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:31:12 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:31:12 2021
Terminated at Fri Aug 20 12:41:29 2021
Results reported at Fri Aug 20 12:41:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1218 65.0936 -37.7522 555033601 555292801 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 :                                   467.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            619 sec.

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

