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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin736
RA = 319.505, Dec = 0.3295
tmin = 430099201, tmax = 430358401
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='427204', job_status='RUN', time_executed='2021-09-26 09:59:00.321444', time_epoch_executed='1632675540.32' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427204/ft1_4FGL_J2118.0+0019_daily_bin736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427204/ft2_4FGL_J2118.0+0019_daily_bin736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427204/ft1_4FGL_J2118.0+0019_daily_bin736.fits outfile=/scratch/kocevski/427204/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin736.fits ra=319.505 dec=0.3295 rad=12.0 tmin=430099201.0 tmax=430358401.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 11.16
user 10.74
sys 0.32

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427204/ft1_filtered_4FGL_J2118.0+0019_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/427204/ft2_4FGL_J2118.0+0019_daily_bin736.fits sctable="SC_DATA" expcube=/scratch/kocevski/427204/ltcube_430099201_430358401_4FGL_J2118.0+0019_daily_bin736.fits outfile=/scratch/kocevski/427204/expmap_430099201_430358401_4FGL_J2118.0+0019_daily_bin736.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/427204/ltcube_430099201_430358401_4FGL_J2118.0+0019_daily_bin736.fits
.....................!
real 191.30
user 185.53
sys 5.17

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/427204/ft1_filtered_4FGL_J2118.0+0019_daily_bin736.fits scfile=/scratch/kocevski/427204/ft2_4FGL_J2118.0+0019_daily_bin736.fits outfile=/scratch/kocevski/427204/cmap_430099201_430358401_4FGL_J2118.0+0019_daily_bin736.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.60
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427204/ft1_filtered_4FGL_J2118.0+0019_daily_bin736.fits scfile=/scratch/kocevski/427204/ft2_4FGL_J2118.0+0019_daily_bin736.fits outfile=/scratch/kocevski/427204/cmap_HighResolution_430099201_430358401_4FGL_J2118.0+0019_daily_bin736.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.363       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2981       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6933       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.506       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10970E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.816       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .65982       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2531       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .62919E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.859       1.0000         .10000E-03   10000.    
    17 'Prefactor '    73.822       1.0000         .10000E-03   10000.    
    18 'norm      '    .16108E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0157       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1594       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78007       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=   3522.348     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     3107 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.385        22.275        .16942E-06   -.36965E-03
   2  Prefactor     5.2988        6.1042       -.62138E-07   -.61476E-04
   3  Prefactor     6.7059        19.808       -.37597E-06   -.12365E-03
   4  Prefactor     .10000E-03    39.062        .13459E-06** at limit **
   5  Prefactor     .10000E-03    10.034        .13088E-06** at limit **
   6  Prefactor     .10000E-03    19.598        .43121E-07** at limit **
   7  Prefactor     16.519        63.708       -.10275E-06    .47355E-04
   8  Prefactor     .10000E-03    212.80       -.19420E-06** at limit **
   9  Prefactor     .10000E-03    11.119        .42831E-07** at limit **
  10  Prefactor     .10000E-03    26.212        .88666E-07** at limit **
  11  Prefactor     25.718        75.540        .62007E-05    .79374E-04
  12  Prefactor     .10000E-03    3.7701        .25898E-07** at limit **
  13  Prefactor     .66302        9.4693        .58930E-06    .60317E-04
  14  Prefactor     4.2138        131.60        .60713E-05    .10809E-03
  15  Prefactor     .10004E-03    364.33        .47833E-05** at limit **
  16  Prefactor     47.981        169.92        .24695E-04   -.23260E-04
  17  Prefactor     73.834        86.781       -.38582E-06    .10234E-03
  18  norm          .10001E-03    6.3398        .20310E-05** at limit **
  19  norm          .10000E-03    10.186       -.48436E-07** at limit **
  20  Prefactor     .10000E-03    6.3025        .91614E-07** at limit **
  21  Prefactor     1.0155        17.935        .23628E-06   -.69480E-04
  22  Normalizat    1.1589        .34926        .58840E-05    .33090E-03
  23  Prefactor     .78019        .14768       -.25191E-05    .46544E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.3846
  Prefactor  = 5.29879
  Prefactor  = 6.70595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5195
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.7177
  Prefactor  = 0.0001
  Prefactor  = 0.663018
  Prefactor  = 4.21381
  Prefactor  = 0.000100037
  Prefactor  = 47.9808
  Prefactor  = 73.834
  norm       = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.01545
  Normalizat = 1.15887
  Prefactor  = 0.780195
 **********
 **   18 **HESSE 
 **********

 FCN=   3522.348     FROM HESSE     STATUS=OK           364 CALLS     3471 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.385        22.174        .91020E-04   -1.4827    
   2  Prefactor     5.2988        6.0992        .15046E-03   -1.5248    
   3  Prefactor     6.7059        19.847        .15510E-03   -1.5190    
   4  Prefactor     .10000E-03    39.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.519        63.779        .98581E-04   -1.4895    
   8  Prefactor     .10000E-03    213.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.718        79.076        .78842E-04   -1.4693    
  12  Prefactor     .10000E-03    3.7776        .11254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .66302        13.113        .21764E-02   -1.5545    
  14  Prefactor     4.2138        133.19        .19538E-03   -1.5297    
  15  Prefactor     .10004E-03    370.57        .42077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     47.981        173.21        .28981E-03   -1.4321    
  17  Prefactor     73.834        87.352        .46729E-04   -1.3987    
  18  norm          .10001E-03    7.7185        .22925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.3055        .14541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0155        61.665        .48128E-02   -1.5506    
  22  Normalizat    1.1589        .41405        .32186E-03   -.87883    
  23  Prefactor     .78019        .17487        .17064E-03   -1.0046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76688e-09
Minuit parameter uncertainties:
  1  22.1832
  2  6.09996
  3  19.8669
  4  0.000170084
  5  8.87243e-05
  6  2.34184e-05
  7  64.0441
  8  0.000656513
  9  2.42057e-05
  10  5.16985e-05
  11  79.4004
  12  2.65567e-06
  13  5.8981
  14  47.4966
  15  0.0074022
  16  175.078
  17  87.5047
  18  0.00049598
  19  8.96295e-05
  20  5.99305e-06
  21  15.8426
  22  0.415223
  23  0.174991
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  6.565e-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:  7.802e-01  1.750e-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.159e+00  4.152e-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: 1.95e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.53e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427204/likelihoodResults_430099201_430358401_4FGL_J2118.0+0019_daily_bin736.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) = 3522.34776825
delta logL = -2.21704672185e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3522.34776825
delta logL = -2.21697328016e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5724       1.0000          .0000       10.000    
     3 'Normalizat'    1.1589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78020       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=   3522.251     FROM MIGRAD    STATUS=CONVERGED    267 CALLS      413 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19692E-03    .30361E-01    .57990E-03** at limit **
   2  Index        10.0000        9.9947        .50000    ** at limit **
   3  Normalizat    1.1133        .85071E-01    .32185E-03   -.15948E-04
   4  Prefactor     .79444        .37682E-01    .17064E-03    .40440E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000196921
  Index      = 10
  Normalizat = 1.11333
  Prefactor  = 0.794445
 **********
 **   18 **HESSE 
 **********

 FCN=   3522.251     FROM HESSE     STATUS=OK            33 CALLS      446 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19692E-03    .73767E-03    .21372E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        8.2465        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1133        .39571        .12874E-04   -.89325    
   4  Prefactor     .79444        .17291        .68257E-05   -.99933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23973e-11
Minuit parameter uncertainties:
  1  0.000534774
  2  6.59634e-06
  3  0.396766
  4  0.173027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427204': 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) = 3522.2514031
delta logL = 0.0963429822123

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.969e-04  5.348e-04  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.000e+01  6.596e-06  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:  7.944e-01  1.730e-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.113e+00  3.968e-01  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/427204/cmap_HighResolution_430099201_430358401_4FGL_J2118.0+0019_daily_bin736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-02', job_status='DONE', photon_flux_upper_limit='1.95e-07', time_completed='2021-09-26 10:08:59.616389', job_id='427204', GAL2='0.79', fit_tolerance='1e-08', EG2='1.11', EG='1.16', time_epoch_completed='1632676139.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.63e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='736' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:08:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 427204: <4FGL_J2118.0+0019_daily_bin736> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin736 319.505 0.3295 430099201 430358401 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 :                                   585.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            804 sec.

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

