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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin810
RA = 319.505, Dec = 0.3295
tmin = 449280001, tmax = 449539201
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='428499', job_status='RUN', time_executed='2021-09-26 10:01:41.415979', time_epoch_executed='1632675701.42' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='810'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428499/ft1_4FGL_J2118.0+0019_daily_bin810.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428499/ft2_4FGL_J2118.0+0019_daily_bin810.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428499/ft1_4FGL_J2118.0+0019_daily_bin810.fits outfile=/scratch/kocevski/428499/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin810.fits ra=319.505 dec=0.3295 rad=12.0 tmin=449280001.0 tmax=449539201.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 4.90
user 4.60
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428499/ft1_filtered_4FGL_J2118.0+0019_daily_bin810.fits" evtable="EVENTS" scfile=/scratch/kocevski/428499/ft2_4FGL_J2118.0+0019_daily_bin810.fits sctable="SC_DATA" outfile=/scratch/kocevski/428499/ltcube_449280001_449539201_4FGL_J2118.0+0019_daily_bin810.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/428499/ft2_4FGL_J2118.0+0019_daily_bin810.fits
.....................!
real 11.09
user 10.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428499/ft1_filtered_4FGL_J2118.0+0019_daily_bin810.fits evtable="EVENTS" scfile=/scratch/kocevski/428499/ft2_4FGL_J2118.0+0019_daily_bin810.fits sctable="SC_DATA" expcube=/scratch/kocevski/428499/ltcube_449280001_449539201_4FGL_J2118.0+0019_daily_bin810.fits outfile=/scratch/kocevski/428499/expmap_449280001_449539201_4FGL_J2118.0+0019_daily_bin810.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/428499/ltcube_449280001_449539201_4FGL_J2118.0+0019_daily_bin810.fits
.....................!
real 155.79
user 150.96
sys 4.24

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/428499/ft1_filtered_4FGL_J2118.0+0019_daily_bin810.fits scfile=/scratch/kocevski/428499/ft2_4FGL_J2118.0+0019_daily_bin810.fits outfile=/scratch/kocevski/428499/cmap_449280001_449539201_4FGL_J2118.0+0019_daily_bin810.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.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428499/ft1_filtered_4FGL_J2118.0+0019_daily_bin810.fits scfile=/scratch/kocevski/428499/ft2_4FGL_J2118.0+0019_daily_bin810.fits outfile=/scratch/kocevski/428499/cmap_HighResolution_449280001_449539201_4FGL_J2118.0+0019_daily_bin810.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.48
user 0.32
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.833       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10662E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.337       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.470       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1189       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3481       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.777       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.227       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10627E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1172       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.170       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3354       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81787       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=   13113.56     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2549 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1552        .36918E-07** at limit **
   2  Prefactor     .10000E-03    .93638        .23422E-07** at limit **
   3  Prefactor     14.836        10.803       -.10956E-06    .56351E-04
   4  Prefactor     .10000E-03    84.569        .10090E-05** at limit **
   5  Prefactor     .10000E-03    13.267        .21167E-06** at limit **
   6  Prefactor     .10000E-03    5.6147       -.27059E-06** at limit **
   7  Prefactor     37.341        35.686        .69790E-07    .33114E-04
   8  Prefactor     28.475        37.436        .13057E-05    .10909E-03
   9  Prefactor     7.1208        13.357       -.23197E-06   -.10286E-05
  10  Prefactor     4.3491        9.6023        .63477E-05    .21293E-03
  11  Prefactor     15.693        27.633       -.47592E-05   -.16174E-03
  12  Prefactor     .10000E-03    1.6407       -.30192E-08** at limit **
  13  Prefactor     .10001E-03    .96728       -.11223E-05** at limit **
  14  Prefactor     16.217        19.389        .18176E-05    .27023E-03
  15  Prefactor     .10000E-03    7.3465       -.43340E-06** at limit **
  16  Prefactor     .10000E-03    29.531       -.59952E-06** at limit **
  17  Prefactor     .10000E-03    83.216        .56933E-05** at limit **
  18  norm          3.1174        2.3590        .31575E-08    .13004E-04
  19  norm          .10000E-03    6.5709        .40806E-06** at limit **
  20  Prefactor     10.165        7.2771        .19911E-06    .70713E-04
  21  Prefactor     .10000E-03    5.3202        .17997E-06** at limit **
  22  Normalizat    1.3351        .17785        .21600E-05    .28980E-03
  23  Prefactor     .81798        .76979E-01   -.78940E-06    .82659E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.3411
  Prefactor  = 28.475
  Prefactor  = 7.1208
  Prefactor  = 4.34905
  Prefactor  = 15.6934
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 16.2175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 3.11741
  norm       = 0.0001
  Prefactor  = 10.1649
  Prefactor  = 0.0001
  Normalizat = 1.33509
  Prefactor  = 0.817975
 **********
 **   18 **HESSE 
 **********

 FCN=   13113.56     FROM HESSE     STATUS=OK           362 CALLS     2911 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .94472        .10816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.836        10.842        .10400E-03   -1.4937    
   4  Prefactor     .10000E-03    87.325        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.6268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.341        35.702        .65590E-04   -1.4485    
   8  Prefactor     28.475        37.539        .75085E-04   -1.4640    
   9  Prefactor     7.1208        13.372        .15035E-03   -1.5174    
  10  Prefactor     4.3491        9.9156        .96584E-03   -1.5291    
  11  Prefactor     15.693        28.492        .10084E-03   -1.4915    
  12  Prefactor     .10000E-03    1.6565        .14322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    2.1764        .19244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.217        19.467        .99426E-04   -1.4902    
  15  Prefactor     .10000E-03    7.3495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    83.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1174        2.3553        .14857E-03   -1.5355    
  19  norm          .10000E-03    6.5904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.165        7.2701        .12565E-03   -1.5070    
  21  Prefactor     .10000E-03    5.3689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3351        .21525        .31303E-03   -.82525    
  23  Prefactor     .81798        .93350E-01    .17636E-03   -.99069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88737e-09
Minuit parameter uncertainties:
  1  2.46627e-06
  2  1.75312e-06
  3  10.8434
  4  1.0235e-05
  5  1.72572e-05
  6  2.27925e-05
  7  35.7224
  8  37.5703
  9  13.3777
  10  9.91937
  11  28.5164
  12  9.66648e-07
  13  0.000343563
  14  19.475
  15  2.11253e-05
  16  9.16226e-05
  17  0.00105791
  18  2.35537
  19  1.8667e-05
  20  7.27076
  21  4.80209e-06
  22  0.215391
  23  0.0933684
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  2.848e+01  3.757e+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:  8.180e-01  9.337e-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.335e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/428499/likelihoodResults_449280001_449539201_4FGL_J2118.0+0019_daily_bin810.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) = 13113.407745
delta logL = 0.154522538705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13113.3954138
delta logL = 0.166853718471

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.638       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1245       1.0000          .0000       10.000    
     3 'Normalizat'    1.3457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81393       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=   13113.40     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      304 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.638        43.804        .65329E-04   -.14019E-03
   2  Index         2.1246        .69108        .14374E-01   -.54718E-04
   3  Normalizat    1.3455        .20429        .31198E-03    .29495E-03
   4  Prefactor     .81404        .92856E-01    .17672E-03    .32522E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.6381
  Index      = 2.12456
  Normalizat = 1.34546
  Prefactor  = 0.814038
 **********
 **   18 **HESSE 
 **********

 FCN=   13113.40     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.638        44.051        .13066E-04   -1.4480    
   2  Index         2.1246        .69528        .57496E-03   -.61271    
   3  Normalizat    1.3455        .20450        .12479E-04   -.82219    
   4  Prefactor     .81404        .92935E-01    .35343E-04   -.99213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29646e-10
Minuit parameter uncertainties:
  1  44.089
  2  0.698674
  3  0.204623
  4  0.0929527
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428499': 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) = 13113.395413
delta logL = 0.16685449839

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  3.764e+01  4.409e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.125e+00  6.987e-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:  8.140e-01  9.295e-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.345e+00  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 319.505 0.330
Photon Index (Free Index): 2.12 +/- 0.70
Photon Flux (Free Index): 1.85e-08 +/- 2.64e-08
Energy Flux (Free Index): 9.61e-06 +/- 1.27e-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/428499/cmap_HighResolution_449280001_449539201_4FGL_J2118.0+0019_daily_bin810.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', comment='SUCCESS', energy_flux2='9.61e-06', dlogl='1.67e-01', photon_flux2='1.85e-08', job_status='DONE', time_completed='2021-09-26 10:16:52.622634', photon_index_error2='0.70', photon_index2='2.12', ts='0.70', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='8.92e-08', energy_flux_error2='1.27e-05', EG='1.34', time_epoch_completed='1632676612.62', return_code='0', job_id='428499', GAL2='0.81', EG2='1.35', return_code2='0', photon_flux_error2='2.64e-08', ts2='1.03', photon_index='2.57' WHERE bin_id='810' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:16:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 428499: <4FGL_J2118.0+0019_daily_bin810> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin810> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 10:00:26 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 10:00:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 10:00:33 2021
Terminated at Sun Sep 26 10:16:53 2021
Results reported at Sun Sep 26 10:16:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin810 319.505 0.3295 449280001 449539201 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 :                                   905.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            987 sec.

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

