/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 12 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 = 7392
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2118.0+0019_daily_bin244
RA = 319.505, Dec = 0.3295
tmin = 302572801, tmax = 302832001
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='422921', job_status='RUN', time_executed='2021-09-26 09:43:12.555080', time_epoch_executed='1632674592.56' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422921/ft1_4FGL_J2118.0+0019_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422921/ft2_4FGL_J2118.0+0019_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422921/ft1_4FGL_J2118.0+0019_daily_bin244.fits outfile=/scratch/kocevski/422921/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin244.fits ra=319.505 dec=0.3295 rad=12.0 tmin=302572801.0 tmax=302832001.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 2.93
user 2.71
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/422921/ft2_4FGL_J2118.0+0019_daily_bin244.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/422921/ft2_4FGL_J2118.0+0019_daily_bin244.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/422921/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin244.fits evtable="EVENTS" outfile="/scratch/kocevski/422921/ft1_filtered_4FGL_J2118.0+0019_daily_bin244.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.46
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422921/ft1_filtered_4FGL_J2118.0+0019_daily_bin244.fits" evtable="EVENTS" scfile=/scratch/kocevski/422921/ft2_4FGL_J2118.0+0019_daily_bin244.fits sctable="SC_DATA" outfile=/scratch/kocevski/422921/ltcube_302572801_302832001_4FGL_J2118.0+0019_daily_bin244.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/422921/ft2_4FGL_J2118.0+0019_daily_bin244.fits
.....................!
real 10.42
user 10.11
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422921/ft1_filtered_4FGL_J2118.0+0019_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/422921/ft2_4FGL_J2118.0+0019_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/422921/ltcube_302572801_302832001_4FGL_J2118.0+0019_daily_bin244.fits outfile=/scratch/kocevski/422921/expmap_302572801_302832001_4FGL_J2118.0+0019_daily_bin244.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/422921/ltcube_302572801_302832001_4FGL_J2118.0+0019_daily_bin244.fits
.....................!
real 155.34
user 150.93
sys 4.09

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
Added 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J2118.0+0019 @ 319.505 0.3295

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/422921/ft1_filtered_4FGL_J2118.0+0019_daily_bin244.fits scfile=/scratch/kocevski/422921/ft2_4FGL_J2118.0+0019_daily_bin244.fits outfile=/scratch/kocevski/422921/cmap_302572801_302832001_4FGL_J2118.0+0019_daily_bin244.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=319.505 yref=0.3295 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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422921/ft1_filtered_4FGL_J2118.0+0019_daily_bin244.fits scfile=/scratch/kocevski/422921/ft2_4FGL_J2118.0+0019_daily_bin244.fits outfile=/scratch/kocevski/422921/cmap_HighResolution_302572801_302832001_4FGL_J2118.0+0019_daily_bin244.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=319.505 yref=0.3295 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.55
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/422921/ft1_filtered_4FGL_J2118.0+0019_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/422921/ft2_4FGL_J2118.0+0019_daily_bin244.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/422921/Model_4FGL_J2118.0+0019_daily_bin244.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 GAL_V02
Working on...
/scratch/kocevski/422921/ft1_filtered_4FGL_J2118.0+0019_daily_bin244.fits.....................!
real 55.51
user 54.18
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/422921/ft1_filtered_4FGL_J2118.0+0019_daily_bin244.fits', '/scratch/kocevski/422921/ft2_4FGL_J2118.0+0019_daily_bin244.fits', expMap='/scratch/kocevski/422921/expmap_302572801_302832001_4FGL_J2118.0+0019_daily_bin244.fits', expCube='/scratch/kocevski/422921/ltcube_302572801_302832001_4FGL_J2118.0+0019_daily_bin244.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/422921/Model_4FGL_J2118.0+0019_daily_bin244.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2118.0+0019'

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  7.605e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.572e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/422921/ft1_filtered_4FGL_J2118.0+0019_daily_bin244.fits
Spacecraft file(s): /scratch/kocevski/422921/ft2_4FGL_J2118.0+0019_daily_bin244.fits
Exposure map: /scratch/kocevski/422921/expmap_302572801_302832001_4FGL_J2118.0+0019_daily_bin244.fits
Exposure cube: /scratch/kocevski/422921/ltcube_302572801_302832001_4FGL_J2118.0+0019_daily_bin244.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/422921/Model_4FGL_J2118.0+0019_daily_bin244.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) = 6370.96913807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .65783E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8213       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.170       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.773       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12561E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6552       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.3808       1.0000         .10000E-03   10000.    
    19 'norm      '    34.561       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9833       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.4935       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2424       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6370.953     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2516 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.837        .12903E-06** at limit **
   2  Prefactor     .10062E-03    6.4737        .24669E-05** at limit **
   3  Prefactor     9.8237        20.355        .66409E-06   -.13056E-03
   4  Prefactor     .10000E-03    17.820       -.15963E-06** at limit **
   5  Prefactor     17.160        23.623        .13678E-06   -.18840E-04
   6  Prefactor     16.996        19.630        .10134E-07    .48246E-05
   7  Prefactor     18.735        47.366       -.95105E-06   -.12228E-03
   8  Prefactor     .10002E-03    85.374        .33666E-05** at limit **
   9  Prefactor     .10000E-03    111.62       -.41757E-06** at limit **
  10  Prefactor     .10001E-03    121.91       -.32715E-05** at limit **
  11  Prefactor     .10000E-03    15.343        .17471E-06** at limit **
  12  Prefactor     .10000E-03    2.5952        .44907E-07** at limit **
  13  Prefactor     4.6552        2.8543        .96418E-07   -.82663E-04
  14  Prefactor     .10000E-03    18.548       -.20629E-07** at limit **
  15  Prefactor     .10000E-03    25.386        .42648E-06** at limit **
  16  Prefactor     .10000E-03    36.097       -.10355E-05** at limit **
  17  Prefactor     .10000E-03    25.853       -.80244E-07** at limit **
  18  norm          2.3804        2.3088        .10667E-07   -.24985E-04
  19  norm          34.561        23.060       -.28299E-06   -.30698E-04
  20  Prefactor     5.9843        8.9098        .46214E-05    .11846E-03
  21  Prefactor     9.4939        12.949        .21240E-05    .24693E-04
  22  Normalizat    1.2425        .25685       -.23431E-05   -.29718E-03
  23  Prefactor     .88509        .11342       -.84238E-07   -.64771E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100624
  Prefactor  = 9.82366
  Prefactor  = 0.0001
  Prefactor  = 17.1602
  Prefactor  = 16.9962
  Prefactor  = 18.7347
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.65517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 2.38044
  norm       = 34.5613
  Prefactor  = 5.98426
  Prefactor  = 9.4939
  Normalizat = 1.24248
  Prefactor  = 0.885091
 **********
 **   18 **HESSE 
 **********

 FCN=   6370.953     FROM HESSE     STATUS=OK           366 CALLS     2882 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10062E-03    50.623        .35309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.8237        20.431        .12787E-03   -1.5081    
   4  Prefactor     .10000E-03    17.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.160        23.608        .96657E-04   -1.4879    
   6  Prefactor     16.996        19.620        .97149E-04   -1.4883    
   7  Prefactor     18.735        47.449        .92439E-04   -1.4842    
   8  Prefactor     .10002E-03    86.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    114.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    124.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6027        .12558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6552        2.8551        .10105E-03   -1.5276    
  14  Prefactor     .10000E-03    18.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3804        2.3053        .11387E-03   -1.5399    
  19  norm          34.561        23.080        .68165E-04   -1.4532    
  20  Prefactor     5.9843        8.9396        .82078E-03   -1.5219    
  21  Prefactor     9.4939        12.950        .65032E-03   -1.5092    
  22  Normalizat    1.2425        .30860        .33021E-03   -.85300    
  23  Prefactor     .88509        .13741        .17857E-03   -.96664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19552e-08
Minuit parameter uncertainties:
  1  2.32421e-05
  2  0.0112541
  3  20.4451
  4  9.29911e-05
  5  23.6204
  6  19.6277
  7  47.5449
  8  0.00238002
  9  0.000421773
  10  0.00198012
  11  5.33214e-05
  12  2.8453e-06
  13  2.85515
  14  1.20191e-05
  15  0.000181527
  16  0.000621381
  17  3.59934e-05
  18  2.30537
  19  23.0858
  20  8.94159
  21  12.9538
  22  0.309058
  23  0.137464
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.380e-03  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.572e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  8.851e-01  1.375e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  1.242e+00  3.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 319.505 0.330
Photon Flux Upper Limit: 9.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422921/likelihoodResults_302572801_302832001_4FGL_J2118.0+0019_daily_bin244.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) = 6370.9530165
delta logL = -5.51332768737e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6370.95296173
delta logL = -3.61910679203e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8594       1.0000          .0000       10.000    
     3 'Normalizat'    1.2425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88509       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+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=   6370.953     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      282 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10657E-03    54.606        .18142E-01** at limit **
   2  Index         2.7368        8.6055        .50000        .54374E-05
   3  Normalizat    1.2425        .55743E-02    .33021E-03   -.13854E-03
   4  Prefactor     .88509        .26090E-02    .17856E-03   -.76846E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106569
  Index      = 2.7368
  Normalizat = 1.24248
  Prefactor  = 0.885094
 **********
 **   18 **HESSE 
 **********

 FCN=   6370.953     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10657E-03    1211.0        .72569E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7368        6.3020        .50000       -.46972    
   3  Normalizat    1.2425        .26859E-01    .13208E-04   -.85300    
   4  Prefactor     .88509        .12571E-01    .71426E-05   -.96664    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.24456e-09
Minuit parameter uncertainties:
  1  0.182198
  2  1014.42
  3  0.0268594
  4  0.0125712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422921': 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): 102
logL (Free Index) = 6370.95296155
delta logL = -1.82101757673e-07

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.066e-04  1.822e-01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.737e+00  1.014e+03  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  8.851e-01  1.257e-02  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  1.242e+00  2.686e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 319.505 0.330

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/422921/cmap_HighResolution_302572801_302832001_4FGL_J2118.0+0019_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.73e-03', job_status='DONE', photon_flux_upper_limit='9.89e-08', time_completed='2021-09-26 09:52:50.169968', job_id='422921', GAL2='0.89', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632675170.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-1.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='244' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 09:52:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 422921: <4FGL_J2118.0+0019_daily_bin244> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin244> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 09:40:14 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 09:42:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 09:42:47 2021
Terminated at Sun Sep 26 09:52:50 2021
Results reported at Sun Sep 26 09:52:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin244 319.505 0.3295 302572801 302832001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2118.0+0019 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   571.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            756 sec.

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

