/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 13 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 = 7423
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2118.0+0019_daily_bin374
RA = 319.505, Dec = 0.3295
tmin = 336268801, tmax = 336528001
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='424399', job_status='RUN', time_executed='2021-09-26 09:48:49.678892', time_epoch_executed='1632674929.68' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='374'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424399

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424399/ft1_4FGL_J2118.0+0019_daily_bin374.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424399/ft2_4FGL_J2118.0+0019_daily_bin374.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424399/ft1_4FGL_J2118.0+0019_daily_bin374.fits outfile=/scratch/kocevski/424399/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin374.fits ra=319.505 dec=0.3295 rad=12.0 tmin=336268801.0 tmax=336528001.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 7.06
user 6.80
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/424399/ft2_4FGL_J2118.0+0019_daily_bin374.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/424399/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin374.fits evtable="EVENTS" outfile="/scratch/kocevski/424399/ft1_filtered_4FGL_J2118.0+0019_daily_bin374.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/424399/ft1_filtered_4FGL_J2118.0+0019_daily_bin374.fits" evtable="EVENTS" scfile=/scratch/kocevski/424399/ft2_4FGL_J2118.0+0019_daily_bin374.fits sctable="SC_DATA" outfile=/scratch/kocevski/424399/ltcube_336268801_336528001_4FGL_J2118.0+0019_daily_bin374.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/424399/ft2_4FGL_J2118.0+0019_daily_bin374.fits
.....................!
real 14.48
user 14.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424399/ft1_filtered_4FGL_J2118.0+0019_daily_bin374.fits evtable="EVENTS" scfile=/scratch/kocevski/424399/ft2_4FGL_J2118.0+0019_daily_bin374.fits sctable="SC_DATA" expcube=/scratch/kocevski/424399/ltcube_336268801_336528001_4FGL_J2118.0+0019_daily_bin374.fits outfile=/scratch/kocevski/424399/expmap_336268801_336528001_4FGL_J2118.0+0019_daily_bin374.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/424399/ltcube_336268801_336528001_4FGL_J2118.0+0019_daily_bin374.fits
.....................!
real 190.58
user 185.53
sys 4.63

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/424399/ft1_filtered_4FGL_J2118.0+0019_daily_bin374.fits scfile=/scratch/kocevski/424399/ft2_4FGL_J2118.0+0019_daily_bin374.fits outfile=/scratch/kocevski/424399/cmap_336268801_336528001_4FGL_J2118.0+0019_daily_bin374.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.57
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424399/ft1_filtered_4FGL_J2118.0+0019_daily_bin374.fits scfile=/scratch/kocevski/424399/ft2_4FGL_J2118.0+0019_daily_bin374.fits outfile=/scratch/kocevski/424399/cmap_HighResolution_336268801_336528001_4FGL_J2118.0+0019_daily_bin374.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.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5273       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.222       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.896       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.722       1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.075       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3980       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7353       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1419       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10364E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .95799       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.678       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .47852       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1230       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=   6395.796     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2532 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5601       -.18152E-07** at limit **
   2  Prefactor     4.5280        5.0157       -.16277E-06   -.19706E-03
   3  Prefactor     31.227        16.886       -.14985E-06    .11835E-04
   4  Prefactor     .10000E-03    110.43       -.42926E-04** at limit **
   5  Prefactor     .10000E-03    34.715       -.23422E-05** at limit **
   6  Prefactor     29.912        27.884        .30132E-05   -.31888E-05
   7  Prefactor     .10000E-03    91.224        .30686E-04** at limit **
   8  Prefactor     .10000E-03    46.749       -.55091E-05** at limit **
   9  Prefactor     .10000E-03    20.084       -.38749E-06** at limit **
  10  Prefactor     10.710        26.146       -.41132E-05   -.24722E-04
  11  Prefactor     55.095        58.906        .16177E-04    .24521E-04
  12  Prefactor     7.4003        6.4854        .50935E-06   -.11908E-03
  13  Prefactor     3.7355        3.4657       -.37581E-06   -.14387E-03
  14  Prefactor     6.1286        84.423       -.34022E-04   -.23517E-04
  15  Prefactor     .10000E-03    32.956        .11650E-04** at limit **
  16  Prefactor     .10000E-03    49.143        .25034E-05** at limit **
  17  Prefactor     .10000E-03    37.331       -.12541E-04** at limit **
  18  norm          .10000E-03    1.5799       -.21639E-07** at limit **
  19  norm          .81015        18.393        .39392E-05   -.53825E-03
  20  Prefactor     .10000E-03    8.9166        .19795E-06** at limit **
  21  Prefactor     21.682        16.089        .64506E-06   -.10576E-04
  22  Normalizat    .47833        .31272       -.11934E-05   -.11073E-03
  23  Prefactor     1.1230        .13197        .23926E-06   -.92749E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 4.52803
  Prefactor  = 31.2268
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 29.9116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7101
  Prefactor  = 55.0946
  Prefactor  = 7.40029
  Prefactor  = 3.7355
  Prefactor  = 6.12859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.81015
  Prefactor  = 0.0001
  Prefactor  = 21.6824
  Normalizat = 0.478331
  Prefactor  = 1.12304
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.796     FROM HESSE     STATUS=OK           370 CALLS     2902 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5695        .16679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.5280        5.0030        .17989E-03   -1.5282    
   3  Prefactor     31.227        16.838        .71708E-04   -1.4590    
   4  Prefactor     .10000E-03    110.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    34.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.912        27.826        .73276E-04   -1.4614    
   7  Prefactor     .10000E-03    91.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.710        26.070        .12236E-03   -1.5053    
  11  Prefactor     55.095        58.684        .54051E-04   -1.4222    
  12  Prefactor     7.4003        6.4686        .14746E-03   -1.5164    
  13  Prefactor     3.7355        3.4290        .12166E-03   -1.5321    
  14  Prefactor     6.1286        82.833        .16199E-03   -1.5213    
  15  Prefactor     .10000E-03    32.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    49.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5890        .98012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .81015        177.27        .62793E-02   -1.5528    
  20  Prefactor     .10000E-03    9.0279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.682        16.047        .86027E-04   -1.4776    
  22  Normalizat    .47833        .32059        .50121E-03   -1.1343    
  23  Prefactor     1.1230        .13865        .15885E-03   -.88734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7855e-08
Minuit parameter uncertainties:
  1  8.49567e-08
  2  5.00341
  3  16.8408
  4  0.000480069
  5  0.000153163
  6  27.8376
  7  0.000141416
  8  2.80017e-05
  9  1.77039e-05
  10  26.0974
  11  58.7452
  12  6.46924
  13  3.42916
  14  45.138
  15  9.6837e-05
  16  6.51674e-06
  17  4.03145e-05
  18  4.19594e-06
  19  24.0387
  20  3.8625e-05
  21  16.0497
  22  0.321836
  23  0.138691
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.800e-05  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.123e+00  1.387e-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:  4.783e-01  3.218e-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.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/424399/likelihoodResults_336268801_336528001_4FGL_J2118.0+0019_daily_bin374.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) = 6395.79637291
delta logL = -0.000101752365481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6395.79627118
delta logL = -2.65445123659e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5092       1.0000          .0000       10.000    
     3 'Normalizat'    .47834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1230       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6395.462     FROM MIGRAD    STATUS=FAILED       195 CALLS      369 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28992E-03    .23073E-01    .50897E-03** at limit **
   2  Index        10.0000        9.8679        .50000    ** at limit **
   3  Normalizat    .41466        .81724E-01    .50121E-02    .12432E-04
   4  Prefactor     1.1432        .37435E-01    .15885E-03   -.17249E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6395.462     FROM SIMPLEX   STATUS=UNCHANGED    141 CALLS      510 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28992E-03    .23073E-01    .15800E-06** at limit **
   2  Index        10.0000        9.8679        .25184E-01** at limit **
   3  Normalizat    .41466        .81724E-01    .11911E-05    .12432E-04
   4  Prefactor     1.1432        .37435E-01    .35881E-07   -.17249E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6395.462     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      549 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28992E-03    .42690E-03    .21949E-05** at limit **
   2  Index        10.0000        2.2852        .50000    ** at limit **
   3  Normalizat    .41466        .29949        .20048E-03    .45932E-05
   4  Prefactor     1.1432        .13939        .63538E-05   -.17177E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000289919
  Index      = 10
  Normalizat = 0.414664
  Prefactor  = 1.14323
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.462     FROM HESSE     STATUS=OK            31 CALLS      580 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28992E-03    .42565E-03    .87796E-07   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        2.2737        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .41466        .29976        .80193E-05   -1.1655    
   4  Prefactor     1.1432        .13952        .12708E-05   -.88097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12326e-12
Minuit parameter uncertainties:
  1  0.000425647
  2  1.8464e-05
  3  0.300934
  4  0.139564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424399': 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) = 6395.46163904
delta logL = 0.334632117887

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  2.899e-04  4.256e-04  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.000e+01  1.846e-05  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.143e+00  1.396e-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:  4.147e-01  3.009e-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/424399/cmap_HighResolution_336268801_336528001_4FGL_J2118.0+0019_daily_bin374.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.03e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-26 10:00:51.066165', job_id='424399', GAL2='1.14', fit_tolerance='1e-08', EG2='0.41', EG='0.48', time_epoch_completed='1632675651.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.35e-01', ts2='0.72', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='374' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:00:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 424399: <4FGL_J2118.0+0019_daily_bin374> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin374> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 09:45:29 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 09:48:18 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:48:18 2021
Terminated at Sun Sep 26 10:00:51 2021
Results reported at Sun Sep 26 10:00:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin374 319.505 0.3295 336268801 336528001 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 :                                   718.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            922 sec.

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

