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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin599
RA = 319.505, Dec = 0.3295
tmin = 394588801, tmax = 394848001
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='426979', job_status='RUN', time_executed='2021-09-26 09:58:55.367913', time_epoch_executed='1632675535.37' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426979

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426979/ft1_4FGL_J2118.0+0019_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426979/ft2_4FGL_J2118.0+0019_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426979/ft1_4FGL_J2118.0+0019_daily_bin599.fits outfile=/scratch/kocevski/426979/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin599.fits ra=319.505 dec=0.3295 rad=12.0 tmin=394588801.0 tmax=394848001.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.60
user 4.30
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/426979/ft1_filtered_4FGL_J2118.0+0019_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/426979/ft2_4FGL_J2118.0+0019_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/426979/ltcube_394588801_394848001_4FGL_J2118.0+0019_daily_bin599.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/426979/ft2_4FGL_J2118.0+0019_daily_bin599.fits
.....................!
real 15.02
user 14.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426979/ft1_filtered_4FGL_J2118.0+0019_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/426979/ft2_4FGL_J2118.0+0019_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/426979/ltcube_394588801_394848001_4FGL_J2118.0+0019_daily_bin599.fits outfile=/scratch/kocevski/426979/expmap_394588801_394848001_4FGL_J2118.0+0019_daily_bin599.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/426979/ltcube_394588801_394848001_4FGL_J2118.0+0019_daily_bin599.fits
.....................!
real 192.94
user 187.67
sys 4.66

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/426979/ft1_filtered_4FGL_J2118.0+0019_daily_bin599.fits scfile=/scratch/kocevski/426979/ft2_4FGL_J2118.0+0019_daily_bin599.fits outfile=/scratch/kocevski/426979/cmap_394588801_394848001_4FGL_J2118.0+0019_daily_bin599.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426979/ft1_filtered_4FGL_J2118.0+0019_daily_bin599.fits scfile=/scratch/kocevski/426979/ft2_4FGL_J2118.0+0019_daily_bin599.fits outfile=/scratch/kocevski/426979/cmap_HighResolution_394588801_394848001_4FGL_J2118.0+0019_daily_bin599.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12246E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.364       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.326       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.673       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.426       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7910       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.588       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0865       1.0000         .10000E-03   10000.    
    16 'Prefactor '    262.16       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12405E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .44547       1.0000         .10000E-03   10000.    
    19 'norm      '    41.335       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.717       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .77603       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82054       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=   5679.001     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2554 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10018E-03    6.3073       -.26263E-06** at limit **
   2  Prefactor     .10000E-03    2.5109       -.69898E-07** at limit **
   3  Prefactor     14.363        14.209       -.13634E-06   -.19129E-04
   4  Prefactor     .10000E-03    27.328       -.94212E-05** at limit **
   5  Prefactor     21.319        27.638       -.24340E-05   -.22125E-04
   6  Prefactor     .10000E-03    11.230        .13959E-05** at limit **
   7  Prefactor     33.662        49.577       -.12433E-04   -.82547E-05
   8  Prefactor     .10000E-03    10.139        .51451E-06** at limit **
   9  Prefactor     39.425        28.173       -.13098E-05    .30169E-05
  10  Prefactor     5.7833        19.857        .40444E-05   -.47793E-04
  11  Prefactor     .10000E-03    21.417        .10350E-05** at limit **
  12  Prefactor     .10000E-03    8.3342       -.19314E-06** at limit **
  13  Prefactor     .10000E-03    .74155       -.10019E-06** at limit **
  14  Prefactor     51.583        36.760       -.34019E-05   -.21113E-04
  15  Prefactor     2.0737        48.653        .87166E-05   -.66250E-04
  16  Prefactor     262.13        192.38       -.16417E-04   -.12100E-03
  17  Prefactor     .10000E-03    29.118        .84570E-05** at limit **
  18  norm          .44370        3.5827        .19090E-05   -.11702E-02
  19  norm          41.319        22.489        .69742E-06   -.29579E-03
  20  Prefactor     .10000E-03    10.632       -.15904E-05** at limit **
  21  Prefactor     40.715        16.654        .13350E-06   -.17771E-04
  22  Normalizat    .77594        .24882        .12802E-05   -.11228E-03
  23  Prefactor     .82075        .10930        .34854E-06   -.13596E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100179
  Prefactor  = 0.0001
  Prefactor  = 14.3627
  Prefactor  = 0.0001
  Prefactor  = 21.3192
  Prefactor  = 0.0001
  Prefactor  = 33.662
  Prefactor  = 0.0001
  Prefactor  = 39.425
  Prefactor  = 5.78326
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.5828
  Prefactor  = 2.07372
  Prefactor  = 262.128
  Prefactor  = 0.0001
  norm       = 0.443703
  norm       = 41.3193
  Prefactor  = 0.0001
  Prefactor  = 40.7147
  Normalizat = 0.775944
  Prefactor  = 0.820748
 **********
 **   18 **HESSE 
 **********

 FCN=   5679.001     FROM HESSE     STATUS=OK           378 CALLS     2932 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10018E-03    9.7876        .68810E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5310        .11657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.363        14.215        .10568E-03   -1.4950    
   4  Prefactor     .10000E-03    27.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.319        27.645        .86733E-04   -1.4784    
   6  Prefactor     .10000E-03    11.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.662        49.583        .69056E-04   -1.4547    
   8  Prefactor     .10000E-03    10.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.425        28.178        .63836E-04   -1.4451    
  10  Prefactor     5.7833        19.800        .16690E-03   -1.5227    
  11  Prefactor     .10000E-03    21.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.6788        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .75334        .63309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.583        36.971        .55838E-04   -1.4270    
  15  Prefactor     2.0737        48.034        .28583E-03   -1.5420    
  16  Prefactor     262.13        191.66        .12518E-03   -1.2456    
  17  Prefactor     .10000E-03    29.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .44370        6.1777        .20731E-02   -1.5575    
  19  norm          41.319        22.076        .62350E-04   -1.4421    
  20  Prefactor     .10000E-03    11.131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     40.715        16.669        .62819E-04   -1.4431    
  22  Normalizat    .77594        .29680        .35625E-03   -1.0097    
  23  Prefactor     .82075        .13188        .16172E-03   -.98968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92727e-09
Minuit parameter uncertainties:
  1  0.00265012
  2  4.26744e-06
  3  14.2187
  4  8.77012e-06
  5  27.6614
  6  3.14996e-05
  7  49.6433
  8  5.16767e-07
  9  28.1872
  10  19.8223
  11  1.18484e-06
  12  4.65078e-06
  13  2.17039e-06
  14  36.9878
  15  19.9786
  16  192.119
  17  2.5703e-05
  18  3.31128
  19  22.0802
  20  1.16101e-06
  21  16.6705
  22  0.29742
  23  0.131933
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  5.168e-07  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.207e-01  1.319e-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.759e-01  2.974e-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: 4.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/426979/likelihoodResults_394588801_394848001_4FGL_J2118.0+0019_daily_bin599.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) = 5679.0011003
delta logL = -0.00046569407732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5679.00063455
delta logL = 6.28024281468e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5527       1.0000          .0000       10.000    
     3 'Normalizat'    .77598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82073       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=   5679.001     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      261 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.740        .18142E-01** at limit **
   2  Index         1.8724        5.3707        .50000       -.14893E-07
   3  Normalizat    .77595        .12460E-01    .35625E-03   -.16655E-03
   4  Prefactor     .82075        .58526E-02    .16172E-03   -.36267E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87237
  Normalizat = 0.775945
  Prefactor  = 0.820747
 **********
 **   18 **HESSE 
 **********

 FCN=   5679.001     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    407.49        .27625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8724        6.0869        .50000       -.67581    
   3  Normalizat    .77595        .32053E-01    .14250E-04   -1.0097    
   4  Prefactor     .82075        .15056E-01    .32344E-04   -.98968    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.1727e-11
Minuit parameter uncertainties:
  1  7.99069e-05
  2  1185.39
  3  0.0320539
  4  0.0150557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426979': 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) = 5679.00063323
delta logL = 1.3809376469e-06

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  7.991e-05  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.872e+00  1.185e+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.207e-01  1.506e-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:  7.759e-01  3.205e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/426979/cmap_HighResolution_394588801_394848001_4FGL_J2118.0+0019_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-03', job_status='DONE', photon_flux_upper_limit='4.83e-08', time_completed='2021-09-26 10:10:02.314110', job_id='426979', GAL2='0.82', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632676202.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='599' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:10:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 426979: <4FGL_J2118.0+0019_daily_bin599> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin599> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 09:55:16 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 09:55:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 09:55:19 2021
Terminated at Sun Sep 26 10:10:03 2021
Results reported at Sun Sep 26 10:10:03 2021

Your job looked like:

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

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

