aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 65 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 = 7505
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2118.0+0019_daily_bin1687
RA = 319.505, Dec = 0.3295
tmin = 676598401, tmax = 676857601
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='698955', job_status='RUN', time_executed='2022-06-14 01:32:48.967250', time_epoch_executed='1655195568.97' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='1687'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698955/ft1_4FGL_J2118.0+0019_daily_bin1687.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698955/ft2_4FGL_J2118.0+0019_daily_bin1687.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698955/ft1_4FGL_J2118.0+0019_daily_bin1687.fits outfile=/scratch/kocevski/698955/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin1687.fits ra=319.505 dec=0.3295 rad=12.0 tmin=676598401.0 tmax=676857601.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 2.88
user 2.67
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698955/ft2_4FGL_J2118.0+0019_daily_bin1687.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/698955/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin1687.fits evtable="EVENTS" outfile="/scratch/kocevski/698955/ft1_filtered_4FGL_J2118.0+0019_daily_bin1687.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.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 599

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698955/ft1_filtered_4FGL_J2118.0+0019_daily_bin1687.fits evtable="EVENTS" scfile=/scratch/kocevski/698955/ft2_4FGL_J2118.0+0019_daily_bin1687.fits sctable="SC_DATA" expcube=/scratch/kocevski/698955/ltcube_676598401_676857601_4FGL_J2118.0+0019_daily_bin1687.fits outfile=/scratch/kocevski/698955/expmap_676598401_676857601_4FGL_J2118.0+0019_daily_bin1687.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/698955/ltcube_676598401_676857601_4FGL_J2118.0+0019_daily_bin1687.fits
.....................!
real 191.12
user 185.38
sys 5.35

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/698955/ft1_filtered_4FGL_J2118.0+0019_daily_bin1687.fits scfile=/scratch/kocevski/698955/ft2_4FGL_J2118.0+0019_daily_bin1687.fits outfile=/scratch/kocevski/698955/cmap_676598401_676857601_4FGL_J2118.0+0019_daily_bin1687.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/698955/ft1_filtered_4FGL_J2118.0+0019_daily_bin1687.fits scfile=/scratch/kocevski/698955/ft2_4FGL_J2118.0+0019_daily_bin1687.fits outfile=/scratch/kocevski/698955/cmap_HighResolution_676598401_676857601_4FGL_J2118.0+0019_daily_bin1687.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/698955/ft1_filtered_4FGL_J2118.0+0019_daily_bin1687.fits evtable="EVENTS" scfile=/scratch/kocevski/698955/ft2_4FGL_J2118.0+0019_daily_bin1687.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/698955/Model_4FGL_J2118.0+0019_daily_bin1687.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/698955/ft1_filtered_4FGL_J2118.0+0019_daily_bin1687.fits.....................!
real 67.64
user 66.25
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8376       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.127       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.424       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.850       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30478       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12177E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4368       1.0000         .10000E-03   10000.    
    14 'Prefactor '    62.198       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .79422       1.0000         .10000E-03   10000.    
    19 'norm      '    15.313       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97866       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89591       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=   6647.059     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2570 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8332        16.594        .22183E-05   -.48574E-04
   2  Prefactor     .10000E-03    9.5027        .19514E-06** at limit **
   3  Prefactor     .10000E-03    20.033       -.17141E-08** at limit **
   4  Prefactor     23.118        67.054       -.80118E-05    .35977E-05
   5  Prefactor     23.425        18.038        .72101E-06   -.27699E-05
   6  Prefactor     .10000E-03    8.9904        .48506E-07** at limit **
   7  Prefactor     .10000E-03    62.055        .78416E-05** at limit **
   8  Prefactor     62.805        72.532       -.16507E-04    .82423E-05
   9  Prefactor     .10000E-03    9.7606        .20559E-07** at limit **
  10  Prefactor     .10001E-03    16.687       -.60045E-07** at limit **
  11  Prefactor     .10000E-03    157.47       -.47009E-06** at limit **
  12  Prefactor     .10000E-03    1.7759       -.27419E-07** at limit **
  13  Prefactor     2.4348        2.0503       -.59282E-07   -.10728E-03
  14  Prefactor     62.196        35.917        .20280E-05    .24722E-04
  15  Prefactor     .10000E-03    67.530       -.50116E-05** at limit **
  16  Prefactor     .10000E-03    60.166       -.54416E-05** at limit **
  17  Prefactor     .10000E-03    26.258       -.14337E-06** at limit **
  18  norm          .79560        2.1988       -.72636E-06   -.12933E-02
  19  norm          15.313        19.445       -.58509E-06    .36110E-04
  20  Prefactor     .10000E-03    2.4778       -.30388E-07** at limit **
  21  Prefactor     .10000E-03    5.2532       -.27050E-07** at limit **
  22  Normalizat    .97831        .23120        .23675E-05    .43730E-05
  23  Prefactor     .89618        .10553        .24749E-06    .11047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.83316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1185
  Prefactor  = 23.4245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.8049
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.43476
  Prefactor  = 62.1964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.795603
  norm       = 15.3135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.978306
  Prefactor  = 0.896178
 **********
 **   18 **HESSE 
 **********

 FCN=   6647.059     FROM HESSE     STATUS=OK           372 CALLS     2942 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8332        16.540        .15344E-03   -1.5185    
   2  Prefactor     .10000E-03    9.8217        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.118        67.052        .83292E-04   -1.4746    
   5  Prefactor     23.425        18.029        .82764E-04   -1.4740    
   6  Prefactor     .10000E-03    8.9968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    62.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     62.805        71.818        .50616E-04   -1.4121    
   9  Prefactor     .10000E-03    9.7736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    22.717        .96805E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    160.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.7808        .10610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4348        2.0400        .10198E-03   -1.5396    
  14  Prefactor     62.196        36.021        .50879E-04   -1.4129    
  15  Prefactor     .10000E-03    67.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    60.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .79560        2.1635        .18866E-03   -1.5530    
  19  norm          15.313        19.086        .10235E-03   -1.4925    
  20  Prefactor     .10000E-03    2.4881        .12532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.2884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .97831        .27425        .34156E-03   -.93761    
  23  Prefactor     .89618        .12629        .16968E-03   -.96275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06719e-09
Minuit parameter uncertainties:
  1  16.5509
  2  4.7059e-05
  3  3.73824e-05
  4  67.2717
  5  18.0334
  6  1.59484e-05
  7  0.000127926
  8  71.9172
  9  9.2981e-06
  10  0.000946451
  11  0.00048414
  12  2.28062e-06
  13  2.04006
  14  36.0335
  15  0.000100674
  16  5.30239e-05
  17  2.57999e-05
  18  2.1637
  19  19.094
  20  4.23764e-06
  21  1.2114e-05
  22  0.274645
  23  0.126328
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  6.280e+01  7.192e+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:  8.962e-01  1.263e-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.783e-01  2.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/698955/likelihoodResults_676598401_676857601_4FGL_J2118.0+0019_daily_bin1687.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) = 6646.77931078
delta logL = 0.279650270448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6646.77099986
delta logL = 0.287961191592

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2976       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9304       1.0000          .0000       10.000    
     3 'Normalizat'    .91080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92350       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=   6646.771     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      357 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2936        122.73        .12353E-03   -.50671E-03
   2  Index         4.9311        7.4557        .67875E-02   -.10980E-03
   3  Normalizat    .91081        .22560        .35251E-03    .10375E-02
   4  Prefactor     .92348        .10671        .16743E-03    .23066E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.29357
  Index      = 4.9311
  Normalizat = 0.910807
  Prefactor  = 0.923479
 **********
 **   18 **HESSE 
 **********

 FCN=   6646.771     FROM HESSE     STATUS=OK            25 CALLS      382 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2936        17.321        .49413E-05   -1.5345    
   2  Index         4.9311        2.6128        .27150E-03   -.13781E-01
   3  Normalizat    .91081        .27067        .70503E-04   -.96081    
   4  Prefactor     .92348        .12690        .33486E-04   -.95325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59657e-09
Minuit parameter uncertainties:
  1  15.1126
  2  2.74925
  3  0.271079
  4  0.126937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698955': 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) = 6646.77099972
delta logL = 0.287961335334

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  3.294e+00  1.511e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  4.931e+00  2.749e+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.235e-01  1.269e-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.108e-01  2.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 319.505 0.330
Photon Index (Free Index): 4.93 +/- 2.75
Photon Flux (Free Index): 9.28e-08 +/- 8.34e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.16e-05

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/698955/cmap_HighResolution_676598401_676857601_4FGL_J2118.0+0019_daily_bin1687.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='2.88e-01', photon_flux2='9.28e-08', job_status='DONE', time_completed='2022-06-14 01:44:37.153823', photon_index_error2='2.75', photon_index2='4.93', ts='0.99', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.16e-05', EG='0.98', time_epoch_completed='1655196277.15', return_code='0', job_id='698955', GAL2='0.92', EG2='0.91', return_code2='0', photon_flux_error2='8.34e-08', ts2='1.68', photon_index='2.57' WHERE bin_id='1687' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jun 14 01:44:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 698955: <4FGL_J2118.0+0019_daily_bin1687> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin1687> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jun 14 01:30:35 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 14 01:31:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 14 01:31:35 2022
Terminated at Tue Jun 14 01:44:37 2022
Results reported at Tue Jun 14 01:44:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin1687 319.505 0.3295 676598401 676857601 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 :                                   710.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            842 sec.

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

