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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin600
RA = 319.505, Dec = 0.3295
tmin = 394848001, tmax = 395107201
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='426981', job_status='RUN', time_executed='2021-09-26 09:59:10.435038', time_epoch_executed='1632675550.44' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426981

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426981/ft1_4FGL_J2118.0+0019_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426981/ft2_4FGL_J2118.0+0019_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426981/ft1_4FGL_J2118.0+0019_daily_bin600.fits outfile=/scratch/kocevski/426981/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin600.fits ra=319.505 dec=0.3295 rad=12.0 tmin=394848001.0 tmax=395107201.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 5.26
user 4.93
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/426981/ft2_4FGL_J2118.0+0019_daily_bin600.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/426981/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin600.fits evtable="EVENTS" outfile="/scratch/kocevski/426981/ft1_filtered_4FGL_J2118.0+0019_daily_bin600.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/426981/ft1_filtered_4FGL_J2118.0+0019_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/426981/ft2_4FGL_J2118.0+0019_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/426981/ltcube_394848001_395107201_4FGL_J2118.0+0019_daily_bin600.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/426981/ft2_4FGL_J2118.0+0019_daily_bin600.fits
.....................!
real 13.92
user 13.47
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426981/ft1_filtered_4FGL_J2118.0+0019_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/426981/ft2_4FGL_J2118.0+0019_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/426981/ltcube_394848001_395107201_4FGL_J2118.0+0019_daily_bin600.fits outfile=/scratch/kocevski/426981/expmap_394848001_395107201_4FGL_J2118.0+0019_daily_bin600.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/426981/ltcube_394848001_395107201_4FGL_J2118.0+0019_daily_bin600.fits
.....................!
real 192.35
user 185.79
sys 5.97

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/426981/ft1_filtered_4FGL_J2118.0+0019_daily_bin600.fits scfile=/scratch/kocevski/426981/ft2_4FGL_J2118.0+0019_daily_bin600.fits outfile=/scratch/kocevski/426981/cmap_394848001_395107201_4FGL_J2118.0+0019_daily_bin600.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426981/ft1_filtered_4FGL_J2118.0+0019_daily_bin600.fits scfile=/scratch/kocevski/426981/ft2_4FGL_J2118.0+0019_daily_bin600.fits outfile=/scratch/kocevski/426981/cmap_HighResolution_394848001_395107201_4FGL_J2118.0+0019_daily_bin600.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.73
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.560       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7021       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.551       1.0000         .10000E-03   10000.    
     8 'Prefactor '    89.667       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.845       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    70.510       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27749       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.691       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1534       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.172       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .65876       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .63719       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97745       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=   5489.091     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2920 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.561        9.9842        .94777E-07   -.17308E-05
   2  Prefactor     2.7026        3.8677        .15881E-06   -.17046E-05
   3  Prefactor     .10000E-03    18.923        .14218E-06** at limit **
   4  Prefactor     .10000E-03    54.330       -.16773E-05** at limit **
   5  Prefactor     32.027        22.350        .11967E-06   -.55773E-05
   6  Prefactor     .10000E-03    14.690       -.19096E-06** at limit **
   7  Prefactor     26.555        50.364        .80237E-06    .28857E-05
   8  Prefactor     89.659        74.605       -.26177E-06   -.17333E-04
   9  Prefactor     32.862        28.314        .50426E-06   -.30426E-04
  10  Prefactor     .10000E-03    6.1993       -.35975E-07** at limit **
  11  Prefactor     70.487        57.816       -.98549E-06   -.29309E-04
  12  Prefactor     .25806        7.8290        .12993E-05   -.39326E-03
  13  Prefactor     .10000E-03    1.4449       -.49092E-06** at limit **
  14  Prefactor     41.679        35.296       -.82093E-06   -.45155E-04
  15  Prefactor     7.1897        47.272        .53600E-05    .29826E-04
  16  Prefactor     .10000E-03    48.927        .15972E-05** at limit **
  17  Prefactor     .10000E-03    13.353       -.56037E-07** at limit **
  18  norm          .10000E-03    1.8653       -.47462E-07** at limit **
  19  norm          16.168        20.286       -.24251E-06   -.30677E-04
  20  Prefactor     .66026        8.3004        .32749E-05   -.22569E-04
  21  Prefactor     .10000E-03    3.4887       -.21788E-07** at limit **
  22  Normalizat    .63748        .28794       -.33574E-07   -.10378E-03
  23  Prefactor     .97731        .12582       -.62466E-06   -.14570E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.5608
  Prefactor  = 2.70256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.0269
  Prefactor  = 0.0001
  Prefactor  = 26.5551
  Prefactor  = 89.659
  Prefactor  = 32.8616
  Prefactor  = 0.0001
  Prefactor  = 70.4867
  Prefactor  = 0.258058
  Prefactor  = 0.0001
  Prefactor  = 41.6794
  Prefactor  = 7.18971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.1678
  Prefactor  = 0.660259
  Prefactor  = 0.0001
  Normalizat = 0.637477
  Prefactor  = 0.977305
 **********
 **   18 **HESSE 
 **********

 FCN=   5489.091     FROM HESSE     STATUS=OK           370 CALLS     3290 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.561        9.9847        .11782E-03   -1.5028    
   2  Prefactor     2.7026        3.8528        .16785E-03   -1.5379    
   3  Prefactor     .10000E-03    19.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    54.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.027        22.340        .70803E-04   -1.4576    
   6  Prefactor     .10000E-03    14.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.555        50.358        .77745E-04   -1.4677    
   8  Prefactor     89.659        74.703        .42433E-04   -1.3811    
   9  Prefactor     32.862        28.449        .69918E-04   -1.4561    
  10  Prefactor     .10000E-03    6.2016        .18016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     70.487        57.797        .47806E-04   -1.4027    
  12  Prefactor     .25806        48.885        .37081E-02   -1.5606    
  13  Prefactor     .10000E-03    1.4558        .17230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.679        35.390        .62084E-04   -1.4416    
  15  Prefactor     7.1897        48.972        .14998E-03   -1.5172    
  16  Prefactor     .10000E-03    49.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8985        .98502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.168        20.260        .99594E-04   -1.4904    
  20  Prefactor     .66026        8.6856        .41843E-03   -1.5545    
  21  Prefactor     .10000E-03    3.4917        .13514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .63748        .32639        .40042E-03   -1.0642    
  23  Prefactor     .97731        .14362        .15616E-03   -.93490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11096e-09
Minuit parameter uncertainties:
  1  9.98619
  2  3.85312
  3  1.6615e-05
  4  8.49554e-05
  5  22.3454
  6  3.89965e-06
  7  50.4384
  8  74.7815
  9  28.4611
  10  1.90225e-06
  11  57.8433
  12  7.10809
  13  4.63489e-06
  14  35.4081
  15  37.5725
  16  0.000135264
  17  2.6988e-08
  18  3.34072e-06
  19  20.2684
  20  4.78996
  21  3.45616e-07
  22  0.327381
  23  0.143672
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  8.966e+01  7.478e+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:  9.773e-01  1.437e-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.375e-01  3.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.04
Ra Dec: 319.505 0.330
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 7.32e-08 +/- 6.10e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.64e-05

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

Saving results to:
/scratch/kocevski/426981/likelihoodResults_394848001_395107201_4FGL_J2118.0+0019_daily_bin600.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) = 5487.03621934
delta logL = 2.05487622485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5487.01147351
delta logL = 2.07962205247

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.526       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2714       1.0000          .0000       10.000    
     3 'Normalizat'    .50755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0184       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=   5487.011     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      296 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.499        54.407        .95671E-04   -.10540E-03
   2  Index         4.2722        1.8989        .40344E-02   -.53924E-04
   3  Normalizat    .50761        .30313        .44466E-03    .48067E-05
   4  Prefactor     1.0184        .14270        .15308E-03    .45366E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4987
  Index      = 4.27221
  Normalizat = 0.50761
  Prefactor  = 1.01841
 **********
 **   18 **HESSE 
 **********

 FCN=   5487.011     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.499        28.286        .38268E-05   -1.4871    
   2  Index         4.2722        1.0034        .16138E-03   -.14608    
   3  Normalizat    .50761        .30321        .17786E-04   -1.1206    
   4  Prefactor     1.0184        .14251        .30615E-04   -.92118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73738e-10
Minuit parameter uncertainties:
  1  28.308
  2  1.01042
  3  0.304204
  4  0.142564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426981': 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) = 5487.01147287
delta logL = 2.07962269599

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.750e+01  2.831e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  4.272e+00  1.010e+00  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.018e+00  1.426e-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:  5.076e-01  3.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.65
Ra Dec: 319.505 0.330
Photon Index (Free Index): 4.27 +/- 1.01
Photon Flux (Free Index): 1.70e-07 +/- 8.57e-08
Energy Flux (Free Index): 2.45e-05 +/- 1.24e-05

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/426981/cmap_HighResolution_394848001_395107201_4FGL_J2118.0+0019_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', comment='SUCCESS', photon_flux='7.32e-08', energy_flux2='2.45e-05', photon_flux_error='6.10e-08', dlogl='2.08e+00', energy_flux='1.97e-05', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-26 10:10:41.018590', photon_index_error2='1.01', photon_index2='4.27', ts='2.04', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.95e-07', energy_flux_error2='1.24e-05', EG='0.64', time_epoch_completed='1632676241.02', return_code='0', job_id='426981', GAL2='1.02', EG2='0.51', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='8.57e-08', ts2='6.65', photon_index='2.57' WHERE bin_id='600' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:10:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 426981: <4FGL_J2118.0+0019_daily_bin600> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin600> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 09:55:16 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 09:55:19 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:55:19 2021
Terminated at Sun Sep 26 10:10:41 2021
Results reported at Sun Sep 26 10:10:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin600 319.505 0.3295 394848001 395107201 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 :                                   685.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

