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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin706
RA = 319.505, Dec = 0.3295
tmin = 422323201, tmax = 422582401
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='427149', job_status='RUN', time_executed='2021-09-26 09:58:33.949251', time_epoch_executed='1632675513.95' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='706'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427149/ft1_4FGL_J2118.0+0019_daily_bin706.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427149/ft2_4FGL_J2118.0+0019_daily_bin706.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427149/ft1_4FGL_J2118.0+0019_daily_bin706.fits outfile=/scratch/kocevski/427149/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin706.fits ra=319.505 dec=0.3295 rad=12.0 tmin=422323201.0 tmax=422582401.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.78
user 3.42
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427149/ft1_filtered_4FGL_J2118.0+0019_daily_bin706.fits" evtable="EVENTS" scfile=/scratch/kocevski/427149/ft2_4FGL_J2118.0+0019_daily_bin706.fits sctable="SC_DATA" outfile=/scratch/kocevski/427149/ltcube_422323201_422582401_4FGL_J2118.0+0019_daily_bin706.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/427149/ft2_4FGL_J2118.0+0019_daily_bin706.fits
.....................!
real 19.54
user 18.99
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427149/ft1_filtered_4FGL_J2118.0+0019_daily_bin706.fits evtable="EVENTS" scfile=/scratch/kocevski/427149/ft2_4FGL_J2118.0+0019_daily_bin706.fits sctable="SC_DATA" expcube=/scratch/kocevski/427149/ltcube_422323201_422582401_4FGL_J2118.0+0019_daily_bin706.fits outfile=/scratch/kocevski/427149/expmap_422323201_422582401_4FGL_J2118.0+0019_daily_bin706.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/427149/ltcube_422323201_422582401_4FGL_J2118.0+0019_daily_bin706.fits
.....................!
real 194.64
user 187.68
sys 6.41

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/427149/ft1_filtered_4FGL_J2118.0+0019_daily_bin706.fits scfile=/scratch/kocevski/427149/ft2_4FGL_J2118.0+0019_daily_bin706.fits outfile=/scratch/kocevski/427149/cmap_422323201_422582401_4FGL_J2118.0+0019_daily_bin706.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427149/ft1_filtered_4FGL_J2118.0+0019_daily_bin706.fits scfile=/scratch/kocevski/427149/ft2_4FGL_J2118.0+0019_daily_bin706.fits outfile=/scratch/kocevski/427149/cmap_HighResolution_422323201_422582401_4FGL_J2118.0+0019_daily_bin706.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.62
user 0.43
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8909       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.670       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4564       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.936       1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.639       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4895       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .40092       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.497       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7635       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .45206E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1277       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87848       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=   6762.282     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2562 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.2562        .41273E-06** at limit **
   2  Prefactor     5.8923        6.0152        .13206E-05   -.50199E-03
   3  Prefactor     .10000E-03    15.217        .20544E-04** at limit **
   4  Prefactor     .10000E-03    33.109       -.44686E-05** at limit **
   5  Prefactor     21.663        28.294       -.42779E-05   -.14890E-03
   6  Prefactor     .10000E-03    34.608        .12380E-04** at limit **
   7  Prefactor     .10000E-03    14.333       -.15089E-04** at limit **
   8  Prefactor     8.5004        89.948        .10854E-03    .23382E-05
   9  Prefactor     43.941        22.367        .42308E-06   -.46060E-04
  10  Prefactor     40.651        28.154        .38024E-05   -.27310E-04
  11  Prefactor     2.4822        78.125       -.76784E-05   -.39064E-04
  12  Prefactor     .10000E-03    1.7926        .13367E-07** at limit **
  13  Prefactor     .40043        1.6107       -.43311E-06   -.17875E-02
  14  Prefactor     42.497        32.971       -.10765E-05   -.19759E-04
  15  Prefactor     4.7466        55.252       -.23721E-04   -.13769E-04
  16  Prefactor     .10000E-03    96.027        .64752E-07** at limit **
  17  Prefactor     .10000E-03    21.767       -.11345E-04** at limit **
  18  norm          .10000E-03    1.9899        .10041E-06** at limit **
  19  norm          .10241E-03    17.351       -.17899E-05** at limit **
  20  Prefactor     .10000E-03    2.5510       -.37670E-07** at limit **
  21  Prefactor     .10000E-03    7.3132        .12028E-05** at limit **
  22  Normalizat    1.1276        .24338       -.26784E-05   -.15665E-03
  23  Prefactor     .87851        .10638       -.10441E-05   -.20580E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.89226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6629
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.50041
  Prefactor  = 43.9409
  Prefactor  = 40.6514
  Prefactor  = 2.4822
  Prefactor  = 0.0001
  Prefactor  = 0.400429
  Prefactor  = 42.4967
  Prefactor  = 4.74657
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000102409
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.12761
  Prefactor  = 0.87851
 **********
 **   18 **HESSE 
 **********

 FCN=   6762.282     FROM HESSE     STATUS=OK           370 CALLS     2932 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.3622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8923        5.9914        .16546E-03   -1.5222    
   3  Prefactor     .10000E-03    15.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.663        28.208        .86043E-04   -1.4777    
   6  Prefactor     .10000E-03    34.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.5004        89.462        .13785E-03   -1.5125    
   9  Prefactor     43.941        22.371        .60483E-04   -1.4381    
  10  Prefactor     40.651        28.177        .62879E-04   -1.4432    
  11  Prefactor     2.4822        75.494        .25906E-03   -1.5393    
  12  Prefactor     .10000E-03    1.7954        .10752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .40043        1.5352        .19092E-03   -1.5581    
  14  Prefactor     42.497        32.969        .61494E-04   -1.4403    
  15  Prefactor     4.7466        54.773        .18435E-03   -1.5272    
  16  Prefactor     .10000E-03    96.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0418        .22593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10241E-03    160.50        .64272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5556        .12825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.292        .42668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1276        .28477        .33008E-03   -.88870    
  23  Prefactor     .87851        .12793        .17341E-03   -.96896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6132e-08
Minuit parameter uncertainties:
  1  3.05222e-05
  2  5.99198
  3  7.6238e-05
  4  0.000203024
  5  28.2249
  6  0.000341382
  7  1.43014e-05
  8  55.259
  9  22.3754
  10  28.1867
  11  27.4156
  12  3.4967e-06
  13  1.53539
  14  32.9828
  15  32.2849
  16  9.27441e-05
  17  3.76219e-05
  18  1.82092e-05
  19  0.0394345
  20  6.302e-06
  21  0.000291738
  22  0.28516
  23  0.127974
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  8.500e+00  5.526e+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.785e-01  1.280e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  1.128e+00  2.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 319.505 0.330
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427149/likelihoodResults_422323201_422582401_4FGL_J2118.0+0019_daily_bin706.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) = 6762.24162559
delta logL = 0.0407370039165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6762.23928167
delta logL = 0.0430809294157

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.147       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0529       1.0000          .0000       10.000    
     3 'Normalizat'    1.1308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87528       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=   6762.239     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      317 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.150        73.574        .83257E-04   -.69832E-04
   2  Index         2.0523        1.2592        .13416E-01   -.56896E-04
   3  Normalizat    1.1309        .26906        .32964E-03    .12133E-03
   4  Prefactor     .87521        .12774        .17369E-03    .27867E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.1497
  Index      = 2.05226
  Normalizat = 1.13092
  Prefactor  = 0.875214
 **********
 **   18 **HESSE 
 **********

 FCN=   6762.239     FROM HESSE     STATUS=OK            23 CALLS      340 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.150        72.877        .16651E-04   -1.4745    
   2  Index         2.0523        1.2484        .53663E-03   -.63050    
   3  Normalizat    1.1309        .26927        .13186E-04   -.88765    
   4  Prefactor     .87521        .12781        .34738E-04   -.97013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45769e-10
Minuit parameter uncertainties:
  1  73.159
  2  1.26922
  3  0.269594
  4  0.127855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427149': 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) = 6762.23928141
delta logL = 0.0430811918632

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  2.315e+01  7.316e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.052e+00  1.269e+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:  8.752e-01  1.279e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  1.131e+00  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 319.505 0.330

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/427149/cmap_HighResolution_422323201_422582401_4FGL_J2118.0+0019_daily_bin706.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.33e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-26 10:11:05.498982', job_id='427149', GAL2='0.88', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632676265.5', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.31e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='706' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:11:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 427149: <4FGL_J2118.0+0019_daily_bin706> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin706 319.505 0.3295 422323201 422582401 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 :                                   749.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            934 sec.

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

