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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin582
RA = 319.505, Dec = 0.3295
tmin = 390182401, tmax = 390441601
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='426952', job_status='RUN', time_executed='2021-09-26 09:57:17.670300', time_epoch_executed='1632675437.67' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426952

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426952/ft1_4FGL_J2118.0+0019_daily_bin582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426952/ft2_4FGL_J2118.0+0019_daily_bin582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426952/ft1_4FGL_J2118.0+0019_daily_bin582.fits outfile=/scratch/kocevski/426952/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin582.fits ra=319.505 dec=0.3295 rad=12.0 tmin=390182401.0 tmax=390441601.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.17
user 3.93
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/426952/ft1_filtered_4FGL_J2118.0+0019_daily_bin582.fits" evtable="EVENTS" scfile=/scratch/kocevski/426952/ft2_4FGL_J2118.0+0019_daily_bin582.fits sctable="SC_DATA" outfile=/scratch/kocevski/426952/ltcube_390182401_390441601_4FGL_J2118.0+0019_daily_bin582.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/426952/ft2_4FGL_J2118.0+0019_daily_bin582.fits
.....................!
real 15.01
user 14.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426952/ft1_filtered_4FGL_J2118.0+0019_daily_bin582.fits evtable="EVENTS" scfile=/scratch/kocevski/426952/ft2_4FGL_J2118.0+0019_daily_bin582.fits sctable="SC_DATA" expcube=/scratch/kocevski/426952/ltcube_390182401_390441601_4FGL_J2118.0+0019_daily_bin582.fits outfile=/scratch/kocevski/426952/expmap_390182401_390441601_4FGL_J2118.0+0019_daily_bin582.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/426952/ltcube_390182401_390441601_4FGL_J2118.0+0019_daily_bin582.fits
.....................!
real 192.20
user 187.32
sys 4.46

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/426952/ft1_filtered_4FGL_J2118.0+0019_daily_bin582.fits scfile=/scratch/kocevski/426952/ft2_4FGL_J2118.0+0019_daily_bin582.fits outfile=/scratch/kocevski/426952/cmap_390182401_390441601_4FGL_J2118.0+0019_daily_bin582.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.55
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426952/ft1_filtered_4FGL_J2118.0+0019_daily_bin582.fits scfile=/scratch/kocevski/426952/ft2_4FGL_J2118.0+0019_daily_bin582.fits outfile=/scratch/kocevski/426952/cmap_HighResolution_390182401_390441601_4FGL_J2118.0+0019_daily_bin582.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6216       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4245       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12461E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15598       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .77063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.664       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.594       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5278       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.889       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.786       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3252       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91668       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9550.712     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     2153 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6083        5.8920       -.17544E-05   -.45614E-02
   2  Prefactor     .10000E-03    1.7135        .11051E-05** at limit **
   3  Prefactor     .10000E-03    5.4469        .19525E-05** at limit **
   4  Prefactor     5.4287        7.4538        .72312E-06   -.16781E-02
   5  Prefactor     .10003E-03    33.023        .12039E-05** at limit **
   6  Prefactor     .10561E-03    1401.5       -.53028E-05** at limit **
   7  Prefactor     .10010E-03    121.28       -.24505E-05** at limit **
   8  Prefactor     17.719        15.351        .19662E-06    .42790E-02
   9  Prefactor     16.598        2.0427        .24484E-06   -.18494E-04
  10  Prefactor     .10000E-03    3.4166       -.16920E-05** at limit **
  11  Prefactor     .10000E-03    9.0642        .33194E-05** at limit **
  12  Prefactor     .10000E-03    3.0124       -.13512E-05** at limit **
  13  Prefactor     2.5271        1.6239       -.20289E-06   -.15654E-03
  14  Prefactor     .10000E-03    7.1603       -.33043E-05** at limit **
  15  Prefactor     30.895        1.5928        .44003E-08    .15363E-02
  16  Prefactor     .10002E-03    23.024        .39004E-05** at limit **
  17  Prefactor     .10000E-03    15.079       -.75260E-05** at limit **
  18  norm          .10000E-03    .74725       -.45029E-07** at limit **
  19  norm          16.762        12.484       -.18079E-05    .54150E-02
  20  Prefactor     .10000E-03    1.5237        .67332E-06** at limit **
  21  Prefactor     4.3279        6.9726        .66028E-06    .10862E-02
  22  Normalizat    .91600        .22041       -.15763E-05   -.14791E-03
  23  Prefactor     .98114        .10510       -.16139E-05   -.32192E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.60825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.42874
  Prefactor  = 0.000100029
  Prefactor  = 0.000105612
  Prefactor  = 0.000100102
  Prefactor  = 17.7192
  Prefactor  = 16.5984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.52706
  Prefactor  = 0.0001
  Prefactor  = 30.8948
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.7622
  Prefactor  = 0.0001
  Prefactor  = 4.32789
  Normalizat = 0.916004
  Prefactor  = 0.981145
 **********
 **   18 **HESSE 
 **********

 FCN=   9550.712     FROM HESSE     STATUS=OK           426 CALLS     2579 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6083        15.785        .83081E-02   -1.5454    
   2  Prefactor     .10000E-03    1.6966        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4318        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4287        27.816        .43133E-02   -1.5242    
   5  Prefactor     .10003E-03    32.952        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10561E-03    13.002        .12109       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10010E-03    21.278        .16088       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.719        30.677        .23824E-02   -1.4866    
   9  Prefactor     16.598        15.113        .24580E-02   -1.4893    
  10  Prefactor     .10000E-03    3.4157        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.0722        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9923        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5271        1.6419        .64230E-02   -1.5390    
  14  Prefactor     .10000E-03    7.1630        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.895        41.634        .18023E-02   -1.4596    
  16  Prefactor     .10002E-03    23.168        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.076        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .74105        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.762        14.620        .24439E-02   -1.4889    
  20  Prefactor     .10000E-03    1.5215        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.3279        7.0070        .48424E-02   -1.5292    
  22  Normalizat    .91600        .18835        .78970E-01   -.95900    
  23  Prefactor     .98114        .88280E-01    .46026E-01   -.93361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9349e-07
Minuit parameter uncertainties:
  1  10.0801
  2  5.31998e-06
  3  1.62261e-05
  4  24.5949
  5  0.00194244
  6  0.0170882
  7  0.00295188
  8  30.7047
  9  15.1162
  10  1.14461e-05
  11  4.27151e-05
  12  8.85303e-06
  13  1.6419
  14  3.47935e-05
  15  41.6731
  16  0.00118068
  17  6.3761e-06
  18  1.30528e-07
  19  14.623
  20  3.09516e-06
  21  7.00833
  22  0.188483
  23  0.0882928
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.772e+01  3.070e+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:  9.811e-01  8.829e-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:  9.160e-01  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/426952/likelihoodResults_390182401_390441601_4FGL_J2118.0+0019_daily_bin582.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) = 9550.71137679
delta logL = 0.000579220086365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9550.71126986
delta logL = 0.000686148416207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.130       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5169       1.0000          .0000       10.000    
     3 'Normalizat'    .91696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98092       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=   9550.711     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      272 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.138        33.586        .94063E-04    .33842E-04
   2  Index         2.5149        1.5258        .90550E-02    .29537E-04
   3  Normalizat    .91701        .21958        .34937E-03    .67360E-03
   4  Prefactor     .98084        .10508        .16217E-03    .13323E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1382
  Index      = 2.51491
  Normalizat = 0.917009
  Prefactor  = 0.980842
 **********
 **   18 **HESSE 
 **********

 FCN=   9550.711     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.138        33.094        .37625E-05   -1.4856    
   2  Index         2.5149        1.5038        .36220E-03   -.52016    
   3  Normalizat    .91701        .21966        .69874E-04   -.95865    
   4  Prefactor     .98084        .10514        .32435E-04   -.93371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53152e-10
Minuit parameter uncertainties:
  1  33.1274
  2  1.53561
  3  0.219878
  4  0.105158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426952': 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) = 9550.71126824
delta logL = 0.000687765306793

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.814e+01  3.313e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.515e+00  1.536e+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:  9.808e-01  1.052e-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:  9.170e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
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/426952/cmap_HighResolution_390182401_390441601_4FGL_J2118.0+0019_daily_bin582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', job_status='DONE', photon_flux_upper_limit='8.14e-08', time_completed='2021-09-26 10:11:24.099517', job_id='426952', GAL2='0.98', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632676284.1', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='6.88e-04', ts2='0.46', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='582' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:11:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 426952: <4FGL_J2118.0+0019_daily_bin582> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin582 319.505 0.3295 390182401 390441601 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 :                                   844.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

