/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 91 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 = 7396
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2118.0+0019_daily_bin14
RA = 319.505, Dec = 0.3295
tmin = 242956801, tmax = 243216001
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='421535', job_status='RUN', time_executed='2021-09-26 09:37:33.365717', time_epoch_executed='1632674253.37' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='14'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/421535

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/421535/ft1_4FGL_J2118.0+0019_daily_bin14.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/421535/ft2_4FGL_J2118.0+0019_daily_bin14.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/421535/ft1_4FGL_J2118.0+0019_daily_bin14.fits outfile=/scratch/kocevski/421535/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin14.fits ra=319.505 dec=0.3295 rad=12.0 tmin=242956801.0 tmax=243216001.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 1.43
user 1.24
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/421535/ft2_4FGL_J2118.0+0019_daily_bin14.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/421535/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin14.fits evtable="EVENTS" outfile="/scratch/kocevski/421535/ft1_filtered_4FGL_J2118.0+0019_daily_bin14.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/421535/ft1_filtered_4FGL_J2118.0+0019_daily_bin14.fits" evtable="EVENTS" scfile=/scratch/kocevski/421535/ft2_4FGL_J2118.0+0019_daily_bin14.fits sctable="SC_DATA" outfile=/scratch/kocevski/421535/ltcube_242956801_243216001_4FGL_J2118.0+0019_daily_bin14.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/421535/ft2_4FGL_J2118.0+0019_daily_bin14.fits
.....................!
real 14.38
user 14.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/421535/ft1_filtered_4FGL_J2118.0+0019_daily_bin14.fits evtable="EVENTS" scfile=/scratch/kocevski/421535/ft2_4FGL_J2118.0+0019_daily_bin14.fits sctable="SC_DATA" expcube=/scratch/kocevski/421535/ltcube_242956801_243216001_4FGL_J2118.0+0019_daily_bin14.fits outfile=/scratch/kocevski/421535/expmap_242956801_243216001_4FGL_J2118.0+0019_daily_bin14.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/421535/ltcube_242956801_243216001_4FGL_J2118.0+0019_daily_bin14.fits
.....................!
real 191.62
user 185.95
sys 4.89

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/421535/ft1_filtered_4FGL_J2118.0+0019_daily_bin14.fits scfile=/scratch/kocevski/421535/ft2_4FGL_J2118.0+0019_daily_bin14.fits outfile=/scratch/kocevski/421535/cmap_242956801_243216001_4FGL_J2118.0+0019_daily_bin14.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/421535/ft1_filtered_4FGL_J2118.0+0019_daily_bin14.fits scfile=/scratch/kocevski/421535/ft2_4FGL_J2118.0+0019_daily_bin14.fits outfile=/scratch/kocevski/421535/cmap_HighResolution_242956801_243216001_4FGL_J2118.0+0019_daily_bin14.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.58
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/421535/ft1_filtered_4FGL_J2118.0+0019_daily_bin14.fits evtable="EVENTS" scfile=/scratch/kocevski/421535/ft2_4FGL_J2118.0+0019_daily_bin14.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/421535/Model_4FGL_J2118.0+0019_daily_bin14.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/421535/ft1_filtered_4FGL_J2118.0+0019_daily_bin14.fits.....................!
real 74.25
user 72.78
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/421535/ft1_filtered_4FGL_J2118.0+0019_daily_bin14.fits', '/scratch/kocevski/421535/ft2_4FGL_J2118.0+0019_daily_bin14.fits', expMap='/scratch/kocevski/421535/expmap_242956801_243216001_4FGL_J2118.0+0019_daily_bin14.fits', expCube='/scratch/kocevski/421535/ltcube_242956801_243216001_4FGL_J2118.0+0019_daily_bin14.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/421535/Model_4FGL_J2118.0+0019_daily_bin14.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/421535/ft1_filtered_4FGL_J2118.0+0019_daily_bin14.fits
Spacecraft file(s): /scratch/kocevski/421535/ft2_4FGL_J2118.0+0019_daily_bin14.fits
Exposure map: /scratch/kocevski/421535/expmap_242956801_243216001_4FGL_J2118.0+0019_daily_bin14.fits
Exposure cube: /scratch/kocevski/421535/ltcube_242956801_243216001_4FGL_J2118.0+0019_daily_bin14.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/421535/Model_4FGL_J2118.0+0019_daily_bin14.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) = 7558.22461174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8614       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11077E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.446       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    61.195       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5965       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.574       1.0000         .10000E-03   10000.    
     8 'Prefactor '    72.722       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8695       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.817       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .57110       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.813       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    71.665       1.0000         .10000E-03   10000.    
    18 'norm      '    16.939       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5444       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .62111       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0734       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=   7558.066     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2665 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8612        5.5648        .66236E-06    .17264E-03
   2  Prefactor     .10000E-03    3.4332        .11980E-05** at limit **
   3  Prefactor     12.445        16.808        .49479E-06   -.22567E-04
   4  Prefactor     .10000E-03    17.034       -.60942E-06** at limit **
   5  Prefactor     61.199        35.037       -.40193E-06   -.74477E-04
   6  Prefactor     8.5913        34.873        .19936E-05    .37315E-04
   7  Prefactor     31.578        57.560       -.48635E-07   -.10231E-04
   8  Prefactor     72.722        55.024        .27810E-06   -.21904E-04
   9  Prefactor     .10001E-03    37.482       -.46816E-06** at limit **
  10  Prefactor     2.8671        31.884        .15561E-05    .55190E-04
  11  Prefactor     15.824        27.673       -.71987E-06    .81069E-05
  12  Prefactor     .10001E-03    5.3390       -.35101E-05** at limit **
  13  Prefactor     .57113        1.8353        .10809E-05    .16899E-02
  14  Prefactor     33.821        30.741       -.70880E-06   -.14466E-04
  15  Prefactor     .10000E-03    47.352       -.24569E-07** at limit **
  16  Prefactor     .10000E-03    55.392        .37172E-05** at limit **
  17  Prefactor     71.622        62.051       -.31592E-05    .55512E-04
  18  norm          16.939        5.3495       -.18580E-06   -.28339E-03
  19  norm          1.5446        111.84        .56033E-05    .77353E-04
  20  Prefactor     .10001E-03    22.055       -.12596E-04** at limit **
  21  Prefactor     .10000E-03    13.970        .75658E-06** at limit **
  22  Normalizat    .62120        .26595       -.83823E-06   -.16353E-03
  23  Prefactor     1.0733        .11533       -.57063E-06   -.64868E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.86117
  Prefactor  = 0.000100001
  Prefactor  = 12.4452
  Prefactor  = 0.0001
  Prefactor  = 61.1994
  Prefactor  = 8.59129
  Prefactor  = 31.5784
  Prefactor  = 72.7218
  Prefactor  = 0.000100009
  Prefactor  = 2.86713
  Prefactor  = 15.8238
  Prefactor  = 0.000100005
  Prefactor  = 0.571125
  Prefactor  = 33.8205
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 71.6222
  norm       = 16.9395
  norm       = 1.54465
  Prefactor  = 0.00010001
  Prefactor  = 0.000100001
  Normalizat = 0.621205
  Prefactor  = 1.07335
 **********
 **   18 **HESSE 
 **********

 FCN=   7558.066     FROM HESSE     STATUS=OK           376 CALLS     3041 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8612        5.5713        .20536E-03   -1.5315    
   2  Prefactor     .10000E-03    8.8266        .30551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.445        16.762        .11355E-03   -1.5002    
   4  Prefactor     .10000E-03    17.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     61.199        34.679        .51292E-04   -1.4142    
   6  Prefactor     8.5913        34.439        .13672E-03   -1.5122    
   7  Prefactor     31.578        57.477        .71308E-04   -1.4583    
   8  Prefactor     72.722        54.968        .47079E-04   -1.4000    
   9  Prefactor     .10001E-03    38.349        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8671        31.926        .23996E-03   -1.5369    
  11  Prefactor     15.824        27.410        .10071E-03   -1.4912    
  12  Prefactor     .10001E-03    24.039        .32868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .57113        1.8484        .19676E-03   -1.5557    
  14  Prefactor     33.821        30.607        .68913E-04   -1.4544    
  15  Prefactor     .10000E-03    47.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    55.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     71.622        61.827        .47422E-04   -1.4013    
  18  norm          16.939        5.2436        .97312E-04   -1.4885    
  19  norm          1.5446        106.96        .34295E-03   -1.5459    
  20  Prefactor     .10001E-03    23.348        .35503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .62120        .28948        .43727E-03   -1.0709    
  23  Prefactor     1.0733        .13051        .16298E-03   -.90323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60609e-09
Minuit parameter uncertainties:
  1  5.572
  2  0.000189832
  3  16.7682
  4  1.03781e-06
  5  34.6909
  6  34.4365
  7  57.5781
  8  55.0068
  9  0.00120428
  10  19.1476
  11  27.4315
  12  0.000724662
  13  1.84857
  14  30.6207
  15  0.000426529
  16  0.000477138
  17  61.8826
  18  5.24375
  19  25.7544
  20  0.000986959
  21  0.000204184
  22  0.290192
  23  0.130552
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  7.272e+01  5.501e+01  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:  1.073e+00  1.306e-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:  6.212e-01  2.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.11
Ra Dec: 319.505 0.330
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 5.94e-08 +/- 4.49e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.21e-05

TS (Fixed Index): 3.11
Ra Dec: 319.505 0.330
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/421535/likelihoodResults_242956801_243216001_4FGL_J2118.0+0019_daily_bin14.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): 0
logL (Free Index) = 7557.82005551
delta logL = 0.245500305944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7557.78597118
delta logL = 0.279584635478

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.696       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1133       1.0000          .0000       10.000    
     3 'Normalizat'    .64619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0651       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=   7557.786     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.662        69.212        .21331E-03   -.16095E-04
   2  Index         2.1129        .57411        .88452E-02   -.14897E-05
   3  Normalizat    .64624        .26633        .42923E-03   -.87961E-04
   4  Prefactor     1.0651        .12802        .16351E-03    .72239E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.6616
  Index      = 2.11286
  Normalizat = 0.646241
  Prefactor  = 1.06514
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.786     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.662        69.349        .85326E-05   -1.3822    
   2  Index         2.1129        .57516        .35381E-03   -.61558    
   3  Normalizat    .64624        .26648        .17169E-04   -1.0606    
   4  Prefactor     1.0651        .12809        .65406E-05   -.90588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52828e-10
Minuit parameter uncertainties:
  1  69.4122
  2  0.577085
  3  0.267013
  4  0.128125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/421535': 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) = 7557.78597076
delta logL = 0.279585050226

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  8.866e+01  6.941e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.113e+00  5.771e-01  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:  1.065e+00  1.281e-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:  6.462e-01  2.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.65
Ra Dec: 319.505 0.330
Photon Index (Free Index): 2.11 +/- 0.58
Photon Flux (Free Index): 4.30e-08 +/- 4.31e-08
Energy Flux (Free Index): 2.29e-05 +/- 2.24e-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/421535/cmap_HighResolution_242956801_243216001_4FGL_J2118.0+0019_daily_bin14.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='5.94e-08', energy_flux2='2.29e-05', photon_flux_error='4.49e-08', dlogl='2.80e-01', energy_flux='1.60e-05', photon_flux2='4.30e-08', job_status='DONE', time_completed='2021-09-26 09:50:22.227274', photon_index_error2='0.58', photon_index2='2.11', ts='3.11', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='2.24e-05', EG='0.62', time_epoch_completed='1632675022.23', return_code='0', job_id='421535', GAL2='1.07', EG2='0.65', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.31e-08', ts2='3.65', photon_index='2.57' WHERE bin_id='14' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 09:50:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 421535: <4FGL_J2118.0+0019_daily_bin14> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin14> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 09:35:14 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 09:35:53 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:35:53 2021
Terminated at Sun Sep 26 09:50:22 2021
Results reported at Sun Sep 26 09:50:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin14 319.505 0.3295 242956801 243216001 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 :                                   768.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            908 sec.

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

