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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin1566
RA = 319.505, Dec = 0.3295
tmin = 645235201, tmax = 645494401
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='431725', job_status='RUN', time_executed='2021-09-26 10:15:03.442797', time_epoch_executed='1632676503.44' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='1566'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/431725

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/431725/ft1_4FGL_J2118.0+0019_daily_bin1566.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/431725/ft2_4FGL_J2118.0+0019_daily_bin1566.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/431725/ft1_4FGL_J2118.0+0019_daily_bin1566.fits outfile=/scratch/kocevski/431725/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin1566.fits ra=319.505 dec=0.3295 rad=12.0 tmin=645235201.0 tmax=645494401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.03
user 2.57
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/431725/ft1_filtered_4FGL_J2118.0+0019_daily_bin1566.fits" evtable="EVENTS" scfile=/scratch/kocevski/431725/ft2_4FGL_J2118.0+0019_daily_bin1566.fits sctable="SC_DATA" outfile=/scratch/kocevski/431725/ltcube_645235201_645494401_4FGL_J2118.0+0019_daily_bin1566.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/431725/ft2_4FGL_J2118.0+0019_daily_bin1566.fits
.....................!
real 16.29
user 15.74
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/431725/ft1_filtered_4FGL_J2118.0+0019_daily_bin1566.fits evtable="EVENTS" scfile=/scratch/kocevski/431725/ft2_4FGL_J2118.0+0019_daily_bin1566.fits sctable="SC_DATA" expcube=/scratch/kocevski/431725/ltcube_645235201_645494401_4FGL_J2118.0+0019_daily_bin1566.fits outfile=/scratch/kocevski/431725/expmap_645235201_645494401_4FGL_J2118.0+0019_daily_bin1566.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/431725/ltcube_645235201_645494401_4FGL_J2118.0+0019_daily_bin1566.fits
.....................!
real 191.38
user 186.31
sys 4.54

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/431725/ft1_filtered_4FGL_J2118.0+0019_daily_bin1566.fits scfile=/scratch/kocevski/431725/ft2_4FGL_J2118.0+0019_daily_bin1566.fits outfile=/scratch/kocevski/431725/cmap_645235201_645494401_4FGL_J2118.0+0019_daily_bin1566.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.61
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/431725/ft1_filtered_4FGL_J2118.0+0019_daily_bin1566.fits scfile=/scratch/kocevski/431725/ft2_4FGL_J2118.0+0019_daily_bin1566.fits outfile=/scratch/kocevski/431725/cmap_HighResolution_645235201_645494401_4FGL_J2118.0+0019_daily_bin1566.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.59
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.538       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39940E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10826E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.730       1.0000         .10000E-03   10000.    
     8 'Prefactor '    140.90       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.173       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1483       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    61.123       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10617E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .90196       1.0000         .10000E-03   10000.    
    19 'norm      '    18.268       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.687       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.556       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75889       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82217       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=   7138.245     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2557 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7813       -.17298E-06** at limit **
   2  Prefactor     .10000E-03    3.7270        .18297E-06** at limit **
   3  Prefactor     37.529        23.383       -.22483E-05    .26756E-04
   4  Prefactor     .10006E-03    166.03       -.21303E-04** at limit **
   5  Prefactor     .10000E-03    29.422        .53357E-06** at limit **
   6  Prefactor     .10000E-03    6.0573       -.96395E-07** at limit **
   7  Prefactor     28.734        29.399        .35734E-06    .40641E-05
   8  Prefactor     140.83        77.471       -.49275E-04    .45184E-04
   9  Prefactor     .10000E-03    9.4065        .29965E-06** at limit **
  10  Prefactor     .10000E-03    9.7474       -.46066E-06** at limit **
  11  Prefactor     15.157        39.768       -.15444E-04   -.35827E-05
  12  Prefactor     4.1478        4.4195       -.42636E-06    .40530E-04
  13  Prefactor     .10000E-03    1.3288        .55165E-06** at limit **
  14  Prefactor     61.115        40.311       -.18939E-05    .36521E-05
  15  Prefactor     .10000E-03    32.771       -.28595E-05** at limit **
  16  Prefactor     .10000E-03    30.000        .42231E-06** at limit **
  17  Prefactor     .10000E-03    98.040        .72297E-05** at limit **
  18  norm          .90206        1.2503       -.28185E-06   -.11068E-03
  19  norm          18.265        16.723       -.16268E-05   -.35539E-04
  20  Prefactor     17.685        8.7456        .94045E-06   -.97036E-04
  21  Prefactor     19.556        11.848       -.86548E-06   -.64415E-05
  22  Normalizat    .75936        .23390        .14168E-04   -.81423E-04
  23  Prefactor     .82195        .98702E-01   -.42677E-06    .50522E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.529
  Prefactor  = 0.000100065
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 28.7342
  Prefactor  = 140.831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.157
  Prefactor  = 4.14777
  Prefactor  = 0.000100001
  Prefactor  = 61.1151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.902064
  norm       = 18.2655
  Prefactor  = 17.6847
  Prefactor  = 19.5556
  Normalizat = 0.759355
  Prefactor  = 0.821953
 **********
 **   18 **HESSE 
 **********

 FCN=   7138.245     FROM HESSE     STATUS=OK           366 CALLS     2923 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7919        .18042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7665        .15919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.529        23.443        .65416E-04   -1.4482    
   4  Prefactor     .10006E-03    170.04        .42529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.734        29.403        .74745E-04   -1.4635    
   8  Prefactor     140.83        77.367        .16969E-03   -1.3329    
   9  Prefactor     .10000E-03    9.4306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.157        39.609        .10282E-03   -1.4929    
  12  Prefactor     4.1478        4.4213        .17811E-03   -1.5301    
  13  Prefactor     .10000E-03    1.3588        .18894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     61.115        40.479        .51322E-04   -1.4143    
  15  Prefactor     .10000E-03    32.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    98.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .90206        1.2493        .51259E-04   -1.5518    
  19  norm          18.265        16.734        .93707E-04   -1.4853    
  20  Prefactor     17.685        8.7421        .95235E-04   -1.4867    
  21  Prefactor     19.556        11.849        .90570E-04   -1.4823    
  22  Normalizat    .75936        .27710        .36798E-03   -1.0159    
  23  Prefactor     .82195        .11836        .16356E-03   -.98924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02565e-09
Minuit parameter uncertainties:
  1  2.89282e-05
  2  3.90527e-05
  3  23.4486
  4  0.00666259
  5  0.000431222
  6  2.13332e-05
  7  29.4183
  8  77.4222
  9  2.56645e-05
  10  4.10708e-07
  11  39.6777
  12  4.42167
  13  6.8586e-05
  14  40.4973
  15  1.65158e-05
  16  1.02849e-05
  17  0.00111309
  18  1.2493
  19  16.7378
  20  8.74274
  21  11.8507
  22  0.277617
  23  0.118396
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.408e+02  7.742e+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.220e-01  1.184e-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:  7.594e-01  2.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.90
Ra Dec: 319.505 0.330
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 6.32e-08
Energy Flux (Fixed Index): 3.10e-05 +/- 1.70e-05

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) = 7138.22929528
delta logL = 0.0156839808051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7138.22166222
delta logL = 0.0233170441388

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    130.64       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6842       1.0000          .0000       10.000    
     3 'Normalizat'    .74796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82581       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=   7138.222     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      264 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     130.64        91.478        .35227E-04    .13148E-03
   2  Index         2.6842        .55203        .61558E-02    .74252E-04
   3  Normalizat    .74811        .25905        .37049E-03   -.59867E-04
   4  Prefactor     .82574        .11790        .16323E-03   -.15638E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 130.638
  Index      = 2.68419
  Normalizat = 0.748105
  Prefactor  = 0.825741
 **********
 **   18 **HESSE 
 **********

 FCN=   7138.222     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     130.64        87.940        .70455E-05   -1.3417    
   2  Index         2.6842        .53001        .24623E-03   -.48156    
   3  Normalizat    .74811        .25896        .14820E-04   -1.0202    
   4  Prefactor     .82574        .11784        .32645E-04   -.98786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95087e-11
Minuit parameter uncertainties:
  1  88.0285
  2  0.531277
  3  0.259386
  4  0.11788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/431725': 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) = 7138.22166205
delta logL = 0.0233172117423

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.306e+02  8.803e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.684e+00  5.313e-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.257e-01  1.179e-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:  7.481e-01  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.95
Ra Dec: 319.505 0.330
Photon Index (Free Index): 2.68 +/- 0.53
Photon Flux (Free Index): 1.23e-07 +/- 7.43e-08
Energy Flux (Free Index): 3.00e-05 +/- 1.67e-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/431725/cmap_HighResolution_645235201_645494401_4FGL_J2118.0+0019_daily_bin1566.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='3.00e-05', photon_flux_error='6.32e-08', dlogl='2.33e-02', energy_flux='3.10e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-26 10:26:05.155488', photon_index_error2='0.53', photon_index2='2.68', ts='4.90', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.76', time_epoch_completed='1632677165.16', return_code='0', job_id='431725', GAL2='0.83', EG2='0.75', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='7.43e-08', ts2='4.95', photon_index='2.57' WHERE bin_id='1566' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:26:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 431725: <4FGL_J2118.0+0019_daily_bin1566> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin1566> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 10:10:51 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 10:14:38 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:14:38 2021
Terminated at Sun Sep 26 10:26:06 2021
Results reported at Sun Sep 26 10:26:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin1566 319.505 0.3295 645235201 645494401 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 :                                   653.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            915 sec.

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

