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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin694
RA = 319.505, Dec = 0.3295
tmin = 419212801, tmax = 419472001
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='427131', job_status='RUN', time_executed='2021-09-26 09:57:45.161431', time_epoch_executed='1632675465.16' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427131/ft1_4FGL_J2118.0+0019_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427131/ft2_4FGL_J2118.0+0019_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427131/ft1_4FGL_J2118.0+0019_daily_bin694.fits outfile=/scratch/kocevski/427131/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin694.fits ra=319.505 dec=0.3295 rad=12.0 tmin=419212801.0 tmax=419472001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.48
user 5.17
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427131/ft1_filtered_4FGL_J2118.0+0019_daily_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/427131/ft2_4FGL_J2118.0+0019_daily_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/427131/ltcube_419212801_419472001_4FGL_J2118.0+0019_daily_bin694.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/427131/ft2_4FGL_J2118.0+0019_daily_bin694.fits
.....................!
real 13.37
user 12.98
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427131/ft1_filtered_4FGL_J2118.0+0019_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/427131/ft2_4FGL_J2118.0+0019_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/427131/ltcube_419212801_419472001_4FGL_J2118.0+0019_daily_bin694.fits outfile=/scratch/kocevski/427131/expmap_419212801_419472001_4FGL_J2118.0+0019_daily_bin694.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/427131/ltcube_419212801_419472001_4FGL_J2118.0+0019_daily_bin694.fits
.....................!
real 194.73
user 188.15
sys 5.78

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/427131/ft1_filtered_4FGL_J2118.0+0019_daily_bin694.fits scfile=/scratch/kocevski/427131/ft2_4FGL_J2118.0+0019_daily_bin694.fits outfile=/scratch/kocevski/427131/cmap_419212801_419472001_4FGL_J2118.0+0019_daily_bin694.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427131/ft1_filtered_4FGL_J2118.0+0019_daily_bin694.fits scfile=/scratch/kocevski/427131/ft2_4FGL_J2118.0+0019_daily_bin694.fits outfile=/scratch/kocevski/427131/cmap_HighResolution_419212801_419472001_4FGL_J2118.0+0019_daily_bin694.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.911       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11081E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10714E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .70474       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12397E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14266E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9399       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7403       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.387       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6547       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .64206       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=   6776.164     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2527 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9686       -.97306E-08** at limit **
   2  Prefactor     .10000E-03    1.4740        .15132E-08** at limit **
   3  Prefactor     11.916        17.663       -.44483E-06   -.42151E-05
   4  Prefactor     .10000E-03    31.593        .79554E-05** at limit **
   5  Prefactor     .10000E-03    17.101        .81838E-05** at limit **
   6  Prefactor     .10000E-03    12.962        .29482E-07** at limit **
   7  Prefactor     .10000E-03    72.006       -.12751E-04** at limit **
   8  Prefactor     .44888        56.090       -.47455E-05    .12927E-03
   9  Prefactor     .10000E-03    17.420       -.39947E-05** at limit **
  10  Prefactor     .10000E-03    21.366       -.84497E-06** at limit **
  11  Prefactor     .10000E-03    42.028       -.94356E-05** at limit **
  12  Prefactor     2.9406        4.1599       -.12441E-06   -.16734E-03
  13  Prefactor     1.7405        1.9540        .81438E-07    .37651E-03
  14  Prefactor     .10000E-03    72.113       -.16870E-04** at limit **
  15  Prefactor     .10000E-03    40.272       -.34484E-04** at limit **
  16  Prefactor     .10000E-03    120.34        .25912E-04** at limit **
  17  Prefactor     .10000E-03    46.311        .51291E-04** at limit **
  18  norm          .10000E-03    2.0617       -.10098E-07** at limit **
  19  norm          .10000E-03    16.749       -.42294E-05** at limit **
  20  Prefactor     .10000E-03    5.8231       -.62337E-07** at limit **
  21  Prefactor     24.398        17.265       -.80702E-06    .18531E-04
  22  Normalizat    1.6549        .25226        .54400E-06    .24687E-03
  23  Prefactor     .64202        .10301       -.16917E-07    .31763E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.448884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.94063
  Prefactor  = 1.7405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3982
  Normalizat = 1.65491
  Prefactor  = 0.642024
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.164     FROM HESSE     STATUS=OK           364 CALLS     2891 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.9847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4790        .97575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.916        17.888        .11607E-03   -1.5017    
   4  Prefactor     .10000E-03    31.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    72.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .44888        57.558        .16797       -1.5574    
   9  Prefactor     .10000E-03    17.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9406        4.1503        .19411E-03   -1.5365    
  13  Prefactor     1.7405        1.9476        .11798E-03   -1.5444    
  14  Prefactor     .10000E-03    72.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    120.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    46.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0791        .11542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    16.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.8398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.398        17.269        .81115E-04   -1.4720    
  22  Normalizat    1.6549        .31550        .29456E-03   -.73514    
  23  Prefactor     .64202        .12805        .18945E-03   -1.0584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00153e-09
Minuit parameter uncertainties:
  1  1.85309e-06
  2  1.11502e-07
  3  17.8958
  4  4.1794e-06
  5  1.23565e-05
  6  7.31397e-06
  7  5.37774e-06
  8  10.1748
  9  9.33875e-06
  10  1.52944e-06
  11  4.84537e-05
  12  4.15071
  13  1.9477
  14  0.000163059
  15  4.36563e-05
  16  2.68526e-05
  17  2.42821e-05
  18  1.31804e-06
  19  4.09989e-06
  20  3.29555e-06
  21  17.2728
  22  0.315883
  23  0.128109
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  4.489e-01  1.017e+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:  6.420e-01  1.281e-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.655e+00  3.159e-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.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427131/likelihoodResults_419212801_419472001_4FGL_J2118.0+0019_daily_bin694.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) = 6776.1635428
delta logL = 6.29398709862e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6776.16335362
delta logL = 0.000195476301087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23506       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7197       1.0000          .0000       10.000    
     3 'Normalizat'    1.6549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64203       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6776.161     FROM MIGRAD    STATUS=CONVERGED    136 CALLS      358 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8199        228.40        .20273E-02   -.17384E-05
   2  Index         2.9231        6.4597        .26288E-01    .37596E-04
   3  Normalizat    1.6517        .30278        .29479E-03    .47165E-04
   4  Prefactor     .64255        .12721        .18938E-03    .14089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.81992
  Index      = 2.92305
  Normalizat = 1.6517
  Prefactor  = 0.642551
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.161     FROM HESSE     STATUS=OK            27 CALLS      385 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8199        168.33        .81092E-04   -1.5372    
   2  Index         2.9231        3.6995        .52577E-02   -.42837    
   3  Normalizat    1.6517        .30300        .11792E-04   -.73600    
   4  Prefactor     .64255        .12740        .75751E-05   -1.0582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15283e-11
Minuit parameter uncertainties:
  1  43.7023
  2  4.32065
  3  0.303335
  4  0.127456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427131': 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) = 6776.16124433
delta logL = 0.00230476911747

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  2.820e+00  4.370e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.923e+00  4.321e+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:  6.426e-01  1.275e-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.652e+00  3.033e-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/427131/cmap_HighResolution_419212801_419472001_4FGL_J2118.0+0019_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.20e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-26 10:09:49.477395', job_id='427131', GAL2='0.64', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1632676189.48', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='2.30e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='694' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:09:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 427131: <4FGL_J2118.0+0019_daily_bin694> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin694 319.505 0.3295 419212801 419472001 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 :                                   723.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            860 sec.

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

