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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin799
RA = 319.505, Dec = 0.3295
tmin = 446428801, tmax = 446688001
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='428479', job_status='RUN', time_executed='2021-09-26 10:03:50.813288', time_epoch_executed='1632675830.81' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='799'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428479

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428479/ft1_4FGL_J2118.0+0019_daily_bin799.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428479/ft2_4FGL_J2118.0+0019_daily_bin799.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428479/ft1_4FGL_J2118.0+0019_daily_bin799.fits outfile=/scratch/kocevski/428479/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin799.fits ra=319.505 dec=0.3295 rad=12.0 tmin=446428801.0 tmax=446688001.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 3.55
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428479/ft2_4FGL_J2118.0+0019_daily_bin799.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/428479/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin799.fits evtable="EVENTS" outfile="/scratch/kocevski/428479/ft1_filtered_4FGL_J2118.0+0019_daily_bin799.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 7.51
user 0.36
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428479/ft1_filtered_4FGL_J2118.0+0019_daily_bin799.fits evtable="EVENTS" scfile=/scratch/kocevski/428479/ft2_4FGL_J2118.0+0019_daily_bin799.fits sctable="SC_DATA" expcube=/scratch/kocevski/428479/ltcube_446428801_446688001_4FGL_J2118.0+0019_daily_bin799.fits outfile=/scratch/kocevski/428479/expmap_446428801_446688001_4FGL_J2118.0+0019_daily_bin799.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/428479/ltcube_446428801_446688001_4FGL_J2118.0+0019_daily_bin799.fits
.....................!
real 192.09
user 186.08
sys 5.11

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/428479/ft1_filtered_4FGL_J2118.0+0019_daily_bin799.fits scfile=/scratch/kocevski/428479/ft2_4FGL_J2118.0+0019_daily_bin799.fits outfile=/scratch/kocevski/428479/cmap_446428801_446688001_4FGL_J2118.0+0019_daily_bin799.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.67
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428479/ft1_filtered_4FGL_J2118.0+0019_daily_bin799.fits scfile=/scratch/kocevski/428479/ft2_4FGL_J2118.0+0019_daily_bin799.fits outfile=/scratch/kocevski/428479/cmap_HighResolution_446428801_446688001_4FGL_J2118.0+0019_daily_bin799.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.78
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9079       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5794       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.463       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3966       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41566       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11531E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.230       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5680       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.461       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.899       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7584       1.0000         .10000E-03   10000.    
    19 'norm      '    31.667       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .70119E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.587       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .73661       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0037       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=   7264.000     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2714 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.3037        .39161E-06** at limit **
   2  Prefactor     5.9078        5.3862        .17522E-06    .74190E-04
   3  Prefactor     .10000E-03    8.3086        .66752E-06** at limit **
   4  Prefactor     .10000E-03    359.05       -.41605E-05** at limit **
   5  Prefactor     6.5891        35.473        .46690E-06    .15650E-04
   6  Prefactor     10.447        25.234       -.41661E-06    .45462E-05
   7  Prefactor     .10000E-03    22.657        .26193E-06** at limit **
   8  Prefactor     8.3931        75.856       -.19679E-05   -.11726E-04
   9  Prefactor     .34199        120.73        .11541E-04    .14251E-03
  10  Prefactor     .10000E-03    132.57       -.89007E-06** at limit **
  11  Prefactor     49.304        49.514       -.24629E-05   -.21134E-03
  12  Prefactor     7.5697        7.7467       -.22060E-07   -.23215E-03
  13  Prefactor     .10000E-03    2.9917       -.29040E-05** at limit **
  14  Prefactor     37.452        36.413       -.10037E-05   -.20671E-03
  15  Prefactor     .10000E-03    14.825        .13892E-06** at limit **
  16  Prefactor     .10000E-03    45.768       -.38295E-07** at limit **
  17  Prefactor     72.824        63.884        .53897E-06   -.19339E-03
  18  norm          1.7587        2.6813        .57553E-06    .55358E-04
  19  norm          31.657        28.216        .56150E-06    .37051E-04
  20  Prefactor     .10037E-03    132.25        .13696E-04** at limit **
  21  Prefactor     10.589        9.3992        .41067E-06    .49785E-04
  22  Normalizat    .73673        .25562       -.43321E-05   -.15475E-03
  23  Prefactor     1.0037        .10871       -.28043E-08   -.83682E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.90783
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.58911
  Prefactor  = 10.4465
  Prefactor  = 0.0001
  Prefactor  = 8.39314
  Prefactor  = 0.341992
  Prefactor  = 0.000100004
  Prefactor  = 49.3042
  Prefactor  = 7.56966
  Prefactor  = 0.0001
  Prefactor  = 37.4517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.8235
  norm       = 1.7587
  norm       = 31.6571
  Prefactor  = 0.000100366
  Prefactor  = 10.5888
  Normalizat = 0.736735
  Prefactor  = 1.00366
 **********
 **   18 **HESSE 
 **********

 FCN=   7264.000     FROM HESSE     STATUS=OK           380 CALLS     3094 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.9078        5.3830        .16521E-03   -1.5222    
   3  Prefactor     .10000E-03    8.3848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    361.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5891        34.605        .15645E-03   -1.5195    
   6  Prefactor     10.447        24.939        .12387E-03   -1.5061    
   7  Prefactor     .10000E-03    22.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3931        75.537        .13835E-03   -1.5128    
   9  Prefactor     .34199        282.42        .54945E-02   -1.5591    
  10  Prefactor     .10000E-03    134.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     49.304        46.384        .57153E-04   -1.4302    
  12  Prefactor     7.5697        7.7303        .14578E-03   -1.5158    
  13  Prefactor     .10000E-03    2.6561        .20026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.452        36.105        .65482E-04   -1.4483    
  15  Prefactor     .10000E-03    14.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     72.824        72.087        .47022E-04   -1.3999    
  18  norm          1.7587        2.6532        .16195E-03   -1.5443    
  19  norm          31.657        28.124        .71203E-04   -1.4582    
  20  Prefactor     .10037E-03    13.956        .63666E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.589        9.4047        .12314E-03   -1.5057    
  22  Normalizat    .73673        .29853        .40380E-03   -1.0246    
  23  Prefactor     1.0037        .12771        .16338E-03   -.92608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91693e-09
Minuit parameter uncertainties:
  1  4.1336e-05
  2  5.38346
  3  6.60156e-05
  4  0.00178571
  5  30.2278
  6  24.9642
  7  6.16107e-05
  8  50.4429
  9  19.7467
  10  0.00154438
  11  46.4178
  12  7.73127
  13  6.78984e-05
  14  36.1262
  15  2.94424e-05
  16  7.15226e-05
  17  72.1734
  18  2.65339
  19  28.1354
  20  0.00452203
  21  9.40601
  22  0.299195
  23  0.127753
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  8.393e+00  5.044e+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:  1.004e+00  1.278e-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.367e-01  2.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/428479/likelihoodResults_446428801_446688001_4FGL_J2118.0+0019_daily_bin799.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) = 7263.99975558
delta logL = 1.49349043568e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7263.99975217
delta logL = 1.83436595762e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3931       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5639       1.0000          .0000       10.000    
     3 'Normalizat'    .73663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0037       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=   7264.000     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      261 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4684        84.583        .13837E-03   -.30399E-04
   2  Index         2.5608        1.7931        .14650E-01    .70201E-05
   3  Normalizat    .73679        .26571        .40378E-03   -.16071E-03
   4  Prefactor     1.0036        .12471        .16338E-03   -.78096E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.46839
  Index      = 2.56076
  Normalizat = 0.73679
  Prefactor  = 1.00364
 **********
 **   18 **HESSE 
 **********

 FCN=   7264.000     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4684        78.716        .55350E-05   -1.5126    
   2  Index         2.5608        1.7349        .58598E-03   -.50962    
   3  Normalizat    .73679        .26590        .16151E-04   -1.0246    
   4  Prefactor     1.0036        .12476        .32676E-04   -.92608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00123e-10
Minuit parameter uncertainties:
  1  51.7267
  2  1.78414
  3  0.266365
  4  0.124799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428479': 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) = 7263.99974936
delta logL = 2.11491806112e-05

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  8.468e+00  5.173e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.561e+00  1.784e+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:  1.004e+00  1.248e-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.368e-01  2.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/428479/cmap_HighResolution_446428801_446688001_4FGL_J2118.0+0019_daily_bin799.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.95e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-26 10:16:45.642852', job_id='428479', GAL2='1.00', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632676605.64', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.11e-05', ts2='0.03', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='799' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:16:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 428479: <4FGL_J2118.0+0019_daily_bin799> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin799> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 10:00:25 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 10:00:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 10:00:27 2021
Terminated at Sun Sep 26 10:16:46 2021
Results reported at Sun Sep 26 10:16:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin799 319.505 0.3295 446428801 446688001 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 :                                   763.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

