/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 3 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 = 7444
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2118.0+0019_daily_bin376
RA = 319.505, Dec = 0.3295
tmin = 336787201, tmax = 337046401
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='424402', job_status='RUN', time_executed='2021-09-26 09:48:34.969708', time_epoch_executed='1632674914.97' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424402

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424402/ft1_4FGL_J2118.0+0019_daily_bin376.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424402/ft2_4FGL_J2118.0+0019_daily_bin376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424402/ft1_4FGL_J2118.0+0019_daily_bin376.fits outfile=/scratch/kocevski/424402/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin376.fits ra=319.505 dec=0.3295 rad=12.0 tmin=336787201.0 tmax=337046401.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.51
user 5.23
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424402/ft1_filtered_4FGL_J2118.0+0019_daily_bin376.fits" evtable="EVENTS" scfile=/scratch/kocevski/424402/ft2_4FGL_J2118.0+0019_daily_bin376.fits sctable="SC_DATA" outfile=/scratch/kocevski/424402/ltcube_336787201_337046401_4FGL_J2118.0+0019_daily_bin376.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/424402/ft2_4FGL_J2118.0+0019_daily_bin376.fits
.....................!
real 12.57
user 12.27
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424402/ft1_filtered_4FGL_J2118.0+0019_daily_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/424402/ft2_4FGL_J2118.0+0019_daily_bin376.fits sctable="SC_DATA" expcube=/scratch/kocevski/424402/ltcube_336787201_337046401_4FGL_J2118.0+0019_daily_bin376.fits outfile=/scratch/kocevski/424402/expmap_336787201_337046401_4FGL_J2118.0+0019_daily_bin376.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/424402/ltcube_336787201_337046401_4FGL_J2118.0+0019_daily_bin376.fits
.....................!
real 156.45
user 152.25
sys 3.86

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/424402/ft1_filtered_4FGL_J2118.0+0019_daily_bin376.fits scfile=/scratch/kocevski/424402/ft2_4FGL_J2118.0+0019_daily_bin376.fits outfile=/scratch/kocevski/424402/cmap_336787201_337046401_4FGL_J2118.0+0019_daily_bin376.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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424402/ft1_filtered_4FGL_J2118.0+0019_daily_bin376.fits scfile=/scratch/kocevski/424402/ft2_4FGL_J2118.0+0019_daily_bin376.fits outfile=/scratch/kocevski/424402/cmap_HighResolution_336787201_337046401_4FGL_J2118.0+0019_daily_bin376.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.50
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5658       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.841       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.346       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.080       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3699       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .27388       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0188       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7660       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.219       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0126       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84023       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=   7271.183     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2570 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    11.429        .45397E-06** at limit **
   2  Prefactor     6.5661        5.0001       -.19279E-06   -.14695E-03
   3  Prefactor     11.845        18.795       -.49178E-06   -.13582E-04
   4  Prefactor     15.296        42.876       -.90231E-05    .64834E-04
   5  Prefactor     .10000E-03    6.8943       -.24009E-06** at limit **
   6  Prefactor     .10000E-03    5.6882        .14314E-06** at limit **
   7  Prefactor     .10000E-03    31.993       -.79033E-05** at limit **
   8  Prefactor     .10000E-03    32.557        .85639E-05** at limit **
   9  Prefactor     .10000E-03    5.6071       -.46478E-07** at limit **
  10  Prefactor     59.081        27.215       -.43387E-06    .62466E-04
  11  Prefactor     .10000E-03    55.722       -.16840E-05** at limit **
  12  Prefactor     5.3702        4.4393       -.79453E-07   -.42309E-04
  13  Prefactor     .10000E-03    1.3047       -.33393E-07** at limit **
  14  Prefactor     .10000E-03    12.687       -.19957E-06** at limit **
  15  Prefactor     .10000E-03    7.7723        .19957E-06** at limit **
  16  Prefactor     .10000E-03    308.36        .69466E-05** at limit **
  17  Prefactor     .10000E-03    10.339        .17544E-06** at limit **
  18  norm          .28161        1.6959       -.38329E-06   -.12000E-03
  19  norm          1.0162        11.061       -.39823E-06   -.88611E-04
  20  Prefactor     2.7660        3.2705       -.86769E-06   -.18562E-02
  21  Prefactor     27.220        12.592        .48370E-07   -.20059E-05
  22  Normalizat    1.0124        .22287        .17409E-06    .63519E-04
  23  Prefactor     .84026        .99568E-01    .30370E-06    .57794E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100029
  Prefactor  = 6.56606
  Prefactor  = 11.8445
  Prefactor  = 15.2956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 59.0812
  Prefactor  = 0.0001
  Prefactor  = 5.37016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.281605
  norm       = 1.01621
  Prefactor  = 2.76597
  Prefactor  = 27.2196
  Normalizat = 1.01239
  Prefactor  = 0.840258
 **********
 **   18 **HESSE 
 **********

 FCN=   7271.183     FROM HESSE     STATUS=OK           376 CALLS     2946 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    69.860        .55332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5661        5.0051        .15661E-03   -1.5195    
   3  Prefactor     11.845        18.847        .11642E-03   -1.5020    
   4  Prefactor     15.296        42.135        .10224E-03   -1.4926    
   5  Prefactor     .10000E-03    6.8980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.6890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     59.081        27.217        .52197E-04   -1.4169    
  11  Prefactor     .10000E-03    56.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3702        4.4423        .15830E-03   -1.5244    
  13  Prefactor     .10000E-03    2.8336        .18724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.7722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    308.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .28161        7.0029        .20246E-02   -1.5602    
  19  norm          1.0162        66.427        .51723E-02   -1.5506    
  20  Prefactor     2.7660        3.6336        .90882E-03   -1.5375    
  21  Prefactor     27.220        12.600        .76788E-04   -1.4664    
  22  Normalizat    1.0124        .26614        .33223E-03   -.92616    
  23  Prefactor     .84026        .12056        .16946E-03   -.98261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34635e-08
Minuit parameter uncertainties:
  1  0.00284014
  2  5.00543
  3  18.8562
  4  42.2169
  5  6.42066e-06
  6  2.79378e-06
  7  0.000399
  8  0.000415368
  9  3.77624e-07
  10  27.223
  11  0.000121189
  12  4.44258
  13  1.98046e-06
  14  8.1202e-06
  15  5.40927e-06
  16  0.000826505
  17  6.61184e-07
  18  2.80846
  19  16.4504
  20  3.6339
  21  12.6007
  22  0.266485
  23  0.120597
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  4.154e-04  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.403e-01  1.206e-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.012e+00  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/424402/likelihoodResults_336787201_337046401_4FGL_J2118.0+0019_daily_bin376.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): 102
logL (Free Index) = 7271.18324999
delta logL = -0.000151638844727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7271.18309974
delta logL = -1.3904473235e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0488       1.0000          .0000       10.000    
     3 'Normalizat'    1.0124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84026       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=   7271.183     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      298 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    154.30        .18142E-01** at limit **
   2  Index         1.9622        8.5616        .50000        .18410E-06
   3  Normalizat    1.0124        .98154E-02    .33223E-03    .27160E-03
   4  Prefactor     .84026        .46338E-02    .16946E-03    .53988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100057
  Index      = 1.9622
  Normalizat = 1.01239
  Prefactor  = 0.840259
 **********
 **   18 **HESSE 
 **********

 FCN=   7271.183     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      327 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    755.38        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9622        8.1891        .50000       -.65298    
   3  Normalizat    1.0124        .22187E-01    .13289E-04   -.92616    
   4  Prefactor     .84026        .10474E-01    .33892E-04   -.98261    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.06966e-09
Minuit parameter uncertainties:
  1  0.0133455
  2  1042.52
  3  0.0221869
  4  0.0104743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424402': 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): 102
logL (Free Index) = 7271.18309784
delta logL = 5.14456587553e-07

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.001e-04  1.335e-02  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.962e+00  1.043e+03  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.403e-01  1.047e-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.012e+00  2.219e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 319.505 0.330

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/424402/cmap_HighResolution_336787201_337046401_4FGL_J2118.0+0019_daily_bin376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-09-26 09:59:03.186382', job_id='424402', GAL2='0.84', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632675543.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='5.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='376' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 09:59:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 424402: <4FGL_J2118.0+0019_daily_bin376> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin376> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 09:45:30 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 09:48:23 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:48:23 2021
Terminated at Sun Sep 26 09:59:06 2021
Results reported at Sun Sep 26 09:59:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin376 319.505 0.3295 336787201 337046401 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 :                                   622.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            816 sec.

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

