/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 101 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1748
RA = 65.0936, Dec = -37.7522
tmin = 692409601, tmax = 692668801
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='875888', job_status='RUN', time_executed='2022-12-14 00:07:13.289028', time_epoch_executed='1671005233.29' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875888

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875888/ft1_4FGL_J0420.3-3745_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875888/ft2_4FGL_J0420.3-3745_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875888/ft1_4FGL_J0420.3-3745_daily_bin1748.fits outfile=/scratch/kocevski/875888/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1748.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=692409601.0 tmax=692668801.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.94
user 3.34
sys 0.23

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

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

Number of photons that the gtmktime cut: 625

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875888/ft1_filtered_4FGL_J0420.3-3745_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/875888/ft2_4FGL_J0420.3-3745_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/875888/ltcube_692409601_692668801_4FGL_J0420.3-3745_daily_bin1748.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/875888/ft2_4FGL_J0420.3-3745_daily_bin1748.fits
.....................!
real 12.85
user 12.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875888/ft1_filtered_4FGL_J0420.3-3745_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875888/ft2_4FGL_J0420.3-3745_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/875888/ltcube_692409601_692668801_4FGL_J0420.3-3745_daily_bin1748.fits outfile=/scratch/kocevski/875888/expmap_692409601_692668801_4FGL_J0420.3-3745_daily_bin1748.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/875888/ltcube_692409601_692668801_4FGL_J0420.3-3745_daily_bin1748.fits
.....................!
real 190.98
user 185.59
sys 5.02

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_8years/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/875888/ft1_filtered_4FGL_J0420.3-3745_daily_bin1748.fits scfile=/scratch/kocevski/875888/ft2_4FGL_J0420.3-3745_daily_bin1748.fits outfile=/scratch/kocevski/875888/cmap_692409601_692668801_4FGL_J0420.3-3745_daily_bin1748.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 0.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875888/ft1_filtered_4FGL_J0420.3-3745_daily_bin1748.fits scfile=/scratch/kocevski/875888/ft2_4FGL_J0420.3-3745_daily_bin1748.fits outfile=/scratch/kocevski/875888/cmap_HighResolution_692409601_692668801_4FGL_J0420.3-3745_daily_bin1748.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 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875888/ft1_filtered_4FGL_J0420.3-3745_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875888/ft2_4FGL_J0420.3-3745_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875888/Model_4FGL_J0420.3-3745_daily_bin1748.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/875888/ft1_filtered_4FGL_J0420.3-3745_daily_bin1748.fits.....................!
real 143.23
user 141.83
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875888/ft1_filtered_4FGL_J0420.3-3745_daily_bin1748.fits', '/scratch/kocevski/875888/ft2_4FGL_J0420.3-3745_daily_bin1748.fits', expMap='/scratch/kocevski/875888/expmap_692409601_692668801_4FGL_J0420.3-3745_daily_bin1748.fits', expCube='/scratch/kocevski/875888/ltcube_692409601_692668801_4FGL_J0420.3-3745_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875888/Model_4FGL_J0420.3-3745_daily_bin1748.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  0.000e+00  1.000e+06 ( 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/875888/ft1_filtered_4FGL_J0420.3-3745_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/875888/ft2_4FGL_J0420.3-3745_daily_bin1748.fits
Exposure map: /scratch/kocevski/875888/expmap_692409601_692668801_4FGL_J0420.3-3745_daily_bin1748.fits
Exposure cube: /scratch/kocevski/875888/ltcube_692409601_692668801_4FGL_J0420.3-3745_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875888/Model_4FGL_J0420.3-3745_daily_bin1748.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) = 6602.87089137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64889E-02   1.0000          .0000       .10000E+07
     2 'norm      '    2.3326       1.0000          .0000       .10000E+07
     3 'norm      '    1.6620       1.0000          .0000       .10000E+07
     4 'Prefactor '    94.867       1.0000          .0000       .10000E+07
     5 'Prefactor '    .52136E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.8632       1.0000          .0000       .10000E+07
     7 'Prefactor '    .69125E-01   1.0000          .0000       .10000E+07
     8 'norm      '    1.9269       1.0000          .0000       .10000E+07
     9 'norm      '    13.341       1.0000          .0000       .10000E+07
    10 'Prefactor '    .44438E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .99231E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.6730       1.0000          .0000       .10000E+07
    13 'norm      '    2.1466       1.0000          .0000       .10000E+07
    14 'Prefactor '    6.8850       1.0000          .0000       .10000E+07
    15 'norm      '    21.657       1.0000          .0000       .10000E+07
    16 'norm      '    .47799E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .72164E-08   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.3808       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.0723       1.0000          .0000       .10000E+07
    20 'norm      '    9.3654       1.0000          .0000       .10000E+07
    21 'norm      '    .84920       1.0000          .0000       .10000E+07
    22 'Prefactor '    .24225E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    15.962       1.0000          .0000       .10000E+07
    24 'Normalizat'    .81581       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67436       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6602.857     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     1784 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    8.7332       -.74276E-07** at limit **
   2  norm          2.3317        1.7910       -.52190E-07   -.71946E-03
   3  norm          1.6613        .71102        .72089E-08    .11334E-02
   4  Prefactor     94.949        1.7805        .29016E-08    .33000E-01
   5  Prefactor     .34639E-07    31.718       -.38926E-06** at limit **
   6  norm          1.8619        1.0623       -.88439E-08   -.51562E-03
   7  Prefactor     .13017E-06    42.233       -.30888E-05** at limit **
   8  norm          1.9266        .40900        .58484E-08   -.89988E-03
   9  norm          13.300        7.1815       -.16108E-06   -.17150E-02
  10  Prefactor     .55511E-10    7.1088       -.12522E-07** at limit **
  11  Prefactor     .33307E-09    3.5959        .42755E-06** at limit **
  12  Prefactor     4.7028        8.1559        .96951E-06    .66155E-02
  13  norm          2.1451        .65396       -.66498E-07   -.31225E-02
  14  Prefactor     6.8861        2.9176        .13946E-06    .10541E-02
  15  norm          21.629        1.9608        .15498E-06    .72616E-02
  16  norm          .11768E-06    41.745       -.73162E-05** at limit **
  17  norm           .0000        .32499       -.66174E-09** at limit **
  18  Prefactor     4.3848        2.5823       -.48515E-07   -.61938E-02
  19  Prefactor     3.8912        4.2429       -.12816E-05    .42090E-01
  20  norm          9.3595        4.3126        .74642E-07    .26743E-02
  21  norm          .89280        1.0099       -.45360E-06   -.16200E-01
  22  Prefactor     .55511E-10    20.807        .89593E-07** at limit **
  23  Prefactor     14.137        39.538       -.20219E-05    .26669E-02
  24  Normalizat    .81566        .18161       -.42165E-05   -.22658E-04
  25  Prefactor     .67569        .18506        .48015E-05   -.11448E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 2.33167
  norm       = 1.66135
  Prefactor  = 94.9492
  Prefactor  = 3.4639e-08
  norm       = 1.8619
  Prefactor  = 1.30174e-07
  norm       = 1.9266
  norm       = 13.2995
  Prefactor  = 5.55112e-11
  Prefactor  = 3.33067e-10
  Prefactor  = 4.70278
  norm       = 2.14512
  Prefactor  = 6.88612
  norm       = 21.6289
  norm       = 1.17684e-07
  norm       = 0
  Prefactor  = 4.38483
  Prefactor  = 3.89118
  norm       = 9.35952
  norm       = 0.892803
  Prefactor  = 5.55112e-11
  Prefactor  = 14.1366
  Normalizat = 0.81566
  Prefactor  = 0.675689
 **********
 **   18 **HESSE 
 **********

 FCN=   6602.857     FROM HESSE     STATUS=OK           479 CALLS     2263 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    8.7351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3317        1.7905        .67116E-03   -1.5677    
   3  norm          1.6613        .71191        .81792E-03   -1.5682    
   4  Prefactor     94.949        51.849        .10268E-03   -1.5513    
   5  Prefactor     .34639E-07    31.605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8619        1.0629        .76302E-04   -1.5681    
   7  Prefactor     .13017E-06    46.944        .14847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9266        .40670        .50028E-03   -1.5680    
   9  norm          13.300        7.1711        .27398E-03   -1.5635    
  10  Prefactor     .55511E-10    7.1078        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .33307E-09    3.6039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7028        8.1994        .46530E-03   -1.5665    
  13  norm          2.1451        .64570        .70307E-03   -1.5679    
  14  Prefactor     6.8861        3.0222        .38212E-03   -1.5655    
  15  norm          21.629        9.7518        .21494E-03   -1.5615    
  16  norm          .11768E-06    43.086        .15629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .32511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3848        3.0059        .48096E-03   -1.5666    
  19  Prefactor     3.8912        41.438        .49938E-03   -1.5669    
  20  norm          9.3595        4.3147        .32724E-03   -1.5647    
  21  norm          .89280        20.986        .49337E-03   -1.5689    
  22  Prefactor     .55511E-10    20.801        .16773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.137        39.727        .25042E-03   -1.5633    
  24  Normalizat    .81566        .15515        .43816E-01   -.99490    
  25  Prefactor     .67569        .15816        .62623E-01   -1.0449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55872e-07
Minuit parameter uncertainties:
  1  4.46941e-05
  2  1.79053
  3  0.71191
  4  51.8495
  5  0.00209208
  6  1.06289
  7  0.00494388
  8  0.406699
  9  7.17113
  10  3.03652e-05
  11  7.11728e-05
  12  8.19942
  13  0.645698
  14  3.02219
  15  9.75185
  16  0.00450353
  17  1.03769e-06
  18  3.00588
  19  25.3964
  20  4.31474
  21  8.65709
  22  6.06787e-05
  23  39.7274
  24  0.155233
  25  0.15826
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  3.331e-10  7.117e-05  0.000e+00  1.000e+06 ( 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.757e-01  1.583e-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.157e-01  1.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 65.094 -37.752
Photon Flux Upper Limit: 4.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875888/likelihoodResults_692409601_692668801_4FGL_J0420.3-3745_daily_bin1748.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): 102
logL (Free Index) = 6602.86333904
delta logL = -0.00665613839465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6602.85668292
delta logL = -1.87983459909e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11124E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.4268       1.0000          .0000       10.000    
     3 'Normalizat'    .81566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67569       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=   6602.857     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      232 TOTAL
                     EDM=   .29E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .91606        .42118E-03** at limit **
   2  Index         .64483        .57909       -.25206E-04     .0000    
   3  Normalizat    .81566        1.1541        .16860E-05   -.63252E-05
   4  Prefactor     .67569        1.0253       -.24023E-05   -.49386E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.644829
  Normalizat = 0.81566
  Prefactor  = 0.675689
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6602.857     FROM HESSE     STATUS=FAILED         9 CALLS      241 TOTAL
                     EDM=   .29E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .91606        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .30495E-04    .76758       -.25206E-04   -1.0573    
   3  Normalizat    .81566        1.1541        .16860E-05   -.99490    
   4  Prefactor     .67569        1.0253       -.24023E-05   -1.0449    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.85422e-14
Minuit parameter uncertainties:
  1  1.05305e-07
  2  0.584597
  3  1.19183
  4  1.05615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875888': 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) = 6602.8566829
delta logL = 4.72937244922e-11

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  1.053e-07  0.000e+00  1.000e+06 ( 1.000e-13)
277        Index:  6.448e-01  5.846e-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:  6.757e-01  1.056e+00  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.157e-01  1.192e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/875888/cmap_HighResolution_692409601_692668801_4FGL_J0420.3-3745_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2022-12-14 00:18:59.152360', job_id='875888', GAL2='0.68', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1671005939.15', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='4.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1748' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:18:59 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 875888: <4FGL_J0420.3-3745_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0420.3-3745_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:05:17 2022
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:05:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:05:18 2022
Terminated at Wed Dec 14 00:19:00 2022
Results reported at Wed Dec 14 00:19:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1748 65.0936 -37.7522 692409601 692668801 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 :                                   706.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

