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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin661
RA = 319.505, Dec = 0.3295
tmin = 410659201, tmax = 410918401
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='427079', job_status='RUN', time_executed='2021-09-26 09:58:24.390357', time_epoch_executed='1632675504.39' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427079

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427079/ft1_4FGL_J2118.0+0019_daily_bin661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427079/ft2_4FGL_J2118.0+0019_daily_bin661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427079/ft1_4FGL_J2118.0+0019_daily_bin661.fits outfile=/scratch/kocevski/427079/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin661.fits ra=319.505 dec=0.3295 rad=12.0 tmin=410659201.0 tmax=410918401.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 6.92
user 6.63
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427079/ft1_filtered_4FGL_J2118.0+0019_daily_bin661.fits evtable="EVENTS" scfile=/scratch/kocevski/427079/ft2_4FGL_J2118.0+0019_daily_bin661.fits sctable="SC_DATA" expcube=/scratch/kocevski/427079/ltcube_410659201_410918401_4FGL_J2118.0+0019_daily_bin661.fits outfile=/scratch/kocevski/427079/expmap_410659201_410918401_4FGL_J2118.0+0019_daily_bin661.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/427079/ltcube_410659201_410918401_4FGL_J2118.0+0019_daily_bin661.fits
.....................!
real 192.18
user 186.57
sys 5.24

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/427079/ft1_filtered_4FGL_J2118.0+0019_daily_bin661.fits scfile=/scratch/kocevski/427079/ft2_4FGL_J2118.0+0019_daily_bin661.fits outfile=/scratch/kocevski/427079/cmap_410659201_410918401_4FGL_J2118.0+0019_daily_bin661.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427079/ft1_filtered_4FGL_J2118.0+0019_daily_bin661.fits scfile=/scratch/kocevski/427079/ft2_4FGL_J2118.0+0019_daily_bin661.fits outfile=/scratch/kocevski/427079/cmap_HighResolution_410659201_410918401_4FGL_J2118.0+0019_daily_bin661.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    36.413       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .46320       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.735       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.517       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9873       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1134       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9712       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4399       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    69.304       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.0664       1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.870       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .18439       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1150       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=   5050.618     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     3329 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          36.413        20.893        .66414E-04    .11811E-04
   2  Prefactor     .46424        15.929        .24311E-02    .64683E-04
   3  Prefactor     35.734        22.640        .67040E-04    .47482E-05
   4  Prefactor     .10000E-03    14.710        .18142E-02** at limit **
   5  Prefactor     41.516        38.298        .62213E-04    .76750E-05
   6  Prefactor     .10000E-03    37.133        .18142E-02** at limit **
   7  Prefactor     .10000E-03    63.585        .18142E-02** at limit **
   8  Prefactor     7.9824        134.81        .14187E-03    .79333E-05
   9  Prefactor     7.1119        23.766        .15040E-03    .10053E-04
  10  Prefactor     8.9708        33.200        .13382E-03    .90055E-05
  11  Prefactor     3.4491        264.55        .21807E-03    .27004E-04
  12  Prefactor     .10000E-03    3.1621        .12305E-02** at limit **
  13  Prefactor     .10000E-03    2.8850        .23145E-03** at limit **
  14  Prefactor     .10000E-03    16.181        .18142E-02** at limit **
  15  Prefactor     69.303        77.433        .48217E-04    .43195E-04
  16  Prefactor     .10000E-03    133.09        .18142E-02** at limit **
  17  Prefactor     .10000E-03    34.467        .18142E-02** at limit **
  18  norm          9.0659        6.2928        .13311E-03    .45096E-04
  19  norm          .10000E-03    122.80        .18142E-02** at limit **
  20  Prefactor     10.870        11.946        .12152E-03    .16185E-04
  21  Prefactor     .10000E-03    6.4971        .17683E-02** at limit **
  22  Normalizat    .18441        .36951        .77039E-03    .32377E-04
  23  Prefactor     1.1150        .15285        .14697E-03    .43164E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 36.4129
  Prefactor  = 0.464239
  Prefactor  = 35.7336
  Prefactor  = 0.0001
  Prefactor  = 41.5162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.9824
  Prefactor  = 7.11193
  Prefactor  = 8.9708
  Prefactor  = 3.44911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.06587
  norm       = 0.0001
  Prefactor  = 10.87
  Prefactor  = 0.0001
  Normalizat = 0.184406
  Prefactor  = 1.11496
 **********
 **   18 **HESSE 
 **********

 FCN=   5050.618     FROM HESSE     STATUS=OK           348 CALLS     3677 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          36.413        20.886        .26566E-05   -1.4500    
   2  Prefactor     .46424        15.748        .97245E-04   -1.5572    
   3  Prefactor     35.734        22.628        .26816E-05   -1.4512    
   4  Prefactor     .10000E-03    14.711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.516        38.276        .24885E-05   -1.4418    
   6  Prefactor     .10000E-03    37.136        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    63.588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9824        134.80        .56748E-05   -1.5143    
   9  Prefactor     7.1119        23.760        .60162E-05   -1.5175    
  10  Prefactor     8.9708        33.189        .53527E-05   -1.5109    
  11  Prefactor     3.4491        263.60        .87230E-05   -1.5337    
  12  Prefactor     .10000E-03    3.1625        .24609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8850        .46289E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     69.303        77.384        .96434E-05   -1.4041    
  16  Prefactor     .10000E-03    133.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.0659        6.2916        .53243E-05   -1.5106    
  19  norm          .10000E-03    122.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.870        11.943        .48607E-05   -1.5048    
  21  Prefactor     .10000E-03    6.4973        .35367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .18441        .36739        .30816E-04   -1.3058    
  23  Prefactor     1.1150        .15224        .58788E-05   -.88990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.1803e-11
Minuit parameter uncertainties:
  1  20.8898
  2  5.40863
  3  22.6332
  4  3.09449e-07
  5  38.2989
  6  9.60334e-05
  7  0.000118722
  8  65.7795
  9  23.7918
  10  33.2577
  11  60.5838
  12  1.75771e-07
  13  4.40004e-07
  14  1.20851e-06
  15  77.4963
  16  0.000346211
  17  9.6216e-05
  18  6.29207
  19  1.49674e-05
  20  11.9457
  21  1.60679e-06
  22  0.372399
  23  0.152302
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  7.982e+00  6.578e+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.115e+00  1.523e-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.844e-01  3.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 319.505 0.330
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427079/likelihoodResults_410659201_410918401_4FGL_J2118.0+0019_daily_bin661.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) = 5050.61788547
delta logL = 0.00056184879395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5050.61787604
delta logL = 0.000571283517274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7518       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6663       1.0000          .0000       10.000    
     3 'Normalizat'    .18371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1151       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=   5050.618     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      276 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6910        156.42        .14403E-03   -.37100E-05
   2  Index         2.6605        2.6877        .23795E-01    .80262E-04
   3  Normalizat    .18388        .32982        .77140E-03   -.61824E-04
   4  Prefactor     1.1151        .14928        .14696E-03    .29891E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.69099
  Index      = 2.66053
  Normalizat = 0.183882
  Prefactor  = 1.1151
 **********
 **   18 **HESSE 
 **********

 FCN=   5050.618     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6910        132.59        .57610E-05   -1.5153    
   2  Index         2.6605        2.5089        .47590E-02   -.48691    
   3  Normalizat    .18388        .32880        .30856E-04   -1.3062    
   4  Prefactor     1.1151        .14876        .29392E-04   -.88985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.43005e-10
Minuit parameter uncertainties:
  1  64.034
  2  2.66808
  3  0.332378
  4  0.148811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427079': 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) = 5050.61787207
delta logL = 0.000575256079173

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  7.691e+00  6.403e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.661e+00  2.668e+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.115e+00  1.488e-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.839e-01  3.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/427079/cmap_HighResolution_410659201_410918401_4FGL_J2118.0+0019_daily_bin661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-09-26 10:09:33.258181', job_id='427079', GAL2='1.12', fit_tolerance='1e-08', EG2='0.18', EG='0.18', time_epoch_completed='1632676173.26', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.75e-04', ts2='0.02', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='661' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:09:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 427079: <4FGL_J2118.0+0019_daily_bin661> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin661 319.505 0.3295 410659201 410918401 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 :                                   667.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            848 sec.

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

