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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin780
RA = 319.505, Dec = 0.3295
tmin = 441504001, tmax = 441763201
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='427272', job_status='RUN', time_executed='2021-09-26 09:56:49.174246', time_epoch_executed='1632675409.17' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427272

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427272/ft1_4FGL_J2118.0+0019_daily_bin780.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427272/ft2_4FGL_J2118.0+0019_daily_bin780.fits


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

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

Done.
real 3.52
user 3.24
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427272/ft1_filtered_4FGL_J2118.0+0019_daily_bin780.fits evtable="EVENTS" scfile=/scratch/kocevski/427272/ft2_4FGL_J2118.0+0019_daily_bin780.fits sctable="SC_DATA" expcube=/scratch/kocevski/427272/ltcube_441504001_441763201_4FGL_J2118.0+0019_daily_bin780.fits outfile=/scratch/kocevski/427272/expmap_441504001_441763201_4FGL_J2118.0+0019_daily_bin780.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/427272/ltcube_441504001_441763201_4FGL_J2118.0+0019_daily_bin780.fits
.....................!
real 192.94
user 186.91
sys 4.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/427272/ft1_filtered_4FGL_J2118.0+0019_daily_bin780.fits scfile=/scratch/kocevski/427272/ft2_4FGL_J2118.0+0019_daily_bin780.fits outfile=/scratch/kocevski/427272/cmap_441504001_441763201_4FGL_J2118.0+0019_daily_bin780.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427272/ft1_filtered_4FGL_J2118.0+0019_daily_bin780.fits scfile=/scratch/kocevski/427272/ft2_4FGL_J2118.0+0019_daily_bin780.fits outfile=/scratch/kocevski/427272/cmap_HighResolution_441504001_441763201_4FGL_J2118.0+0019_daily_bin780.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1370       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.910       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.606       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.383       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0339       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.048       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7016       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 '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72543       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97838       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=   6009.528     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2513 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1364        15.842       -.38436E-06   -.38119E-04
   2  Prefactor     .10000E-03    2.2925       -.37969E-07** at limit **
   3  Prefactor     .10000E-03    39.444       -.18824E-04** at limit **
   4  Prefactor     26.904        33.139       -.30716E-05    .67062E-04
   5  Prefactor     10.612        18.076       -.16478E-06    .28446E-03
   6  Prefactor     .10000E-03    39.224       -.17054E-04** at limit **
   7  Prefactor     17.367        45.603       -.21776E-04    .97184E-05
   8  Prefactor     .10000E-03    133.59       -.87244E-04** at limit **
   9  Prefactor     .10000E-03    32.440        .29016E-04** at limit **
  10  Prefactor     .10000E-03    9.2946       -.15099E-06** at limit **
  11  Prefactor     .10000E-03    15.018       -.18118E-05** at limit **
  12  Prefactor     .10000E-03    3.7348       -.19148E-08** at limit **
  13  Prefactor     1.0341        2.0044       -.17615E-06   -.68758E-03
  14  Prefactor     43.038        35.532       -.45888E-05    .71445E-04
  15  Prefactor     .10001E-03    72.712        .81711E-04** at limit **
  16  Prefactor     .10000E-03    41.138       -.19753E-04** at limit **
  17  Prefactor     7.6992        30.611       -.18708E-05   -.65656E-05
  18  norm          .10000E-03    .84813        .72626E-07** at limit **
  19  norm          .10000E-03    5.2136       -.45911E-07** at limit **
  20  Prefactor     .10000E-03    2.8148       -.91630E-09** at limit **
  21  Prefactor     .10000E-03    12.670        .13637E-05** at limit **
  22  Normalizat    .72553        .23470        .90695E-06    .93303E-04
  23  Prefactor     .97835        .11040        .38823E-06    .12941E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.13638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9042
  Prefactor  = 10.6125
  Prefactor  = 0.0001
  Prefactor  = 17.3666
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.03408
  Prefactor  = 43.0379
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 7.6992
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.725532
  Prefactor  = 0.978347
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.528     FROM HESSE     STATUS=OK           360 CALLS     2873 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1364        15.825        .16206E-03   -1.5212    
   2  Prefactor     .10000E-03    2.3106        .11458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    40.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.904        33.131        .77226E-04   -1.4670    
   5  Prefactor     10.612        17.968        .12303E-03   -1.5056    
   6  Prefactor     .10000E-03    39.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.367        45.649        .96062E-04   -1.4874    
   8  Prefactor     .10000E-03    134.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.3240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7574        .14628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0341        1.6644        .14348E-02   -1.5505    
  14  Prefactor     43.038        35.135        .61101E-04   -1.4395    
  15  Prefactor     .10001E-03    73.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6992        30.592        .14450E-03   -1.5153    
  18  norm          .10000E-03    .85480        .69709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.2182        .17287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.8294        .12695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .72553        .26767        .37168E-03   -1.0289    
  23  Prefactor     .97835        .12759        .15494E-03   -.93455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64237e-10
Minuit parameter uncertainties:
  1  15.8361
  2  2.32068e-06
  3  0.000181825
  4  33.1534
  5  17.9769
  6  0.000278453
  7  45.7408
  8  0.000904003
  9  0.000203933
  10  7.86218e-06
  11  1.72969e-05
  12  7.99167e-06
  13  1.66445
  14  35.152
  15  0.00166901
  16  8.98572e-07
  17  30.6545
  18  4.17237e-07
  19  2.16939e-06
  20  4.54861e-06
  21  1.44038e-05
  22  0.268155
  23  0.127625
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  9.040e-04  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:  9.783e-01  1.276e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  7.255e-01  2.682e-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.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427272/likelihoodResults_441504001_441763201_4FGL_J2118.0+0019_daily_bin780.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) = 6009.527839
delta logL = -3.53625373464e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6009.52780367
delta logL = -3.23134372593e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5346       1.0000          .0000       10.000    
     3 'Normalizat'    .72553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97835       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.

 FCN=   6009.528     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      248 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8627.6        .90712E-02** at limit **
   2  Index         2.5828        6.2492        .50000       -.37800E-05
   3  Normalizat    .72553        .55878E-01    .83928E-01    .30387E-04
   4  Prefactor     .97835        .26854E-01    .35064E-01    .14071E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58278
  Normalizat = 0.725531
  Prefactor  = 0.978347
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.528     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9848.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5828        6.3423        .50000       -.50458    
   3  Normalizat    .72553        .18052        .37168E-03   -1.0289    
   4  Prefactor     .97835        .87086E-01    .15494E-03   -.93455    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.13708e-09
Minuit parameter uncertainties:
  1  0.00571681
  2  66.7775
  3  0.180665
  4  0.0870981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427272': 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): 102
logL (Free Index) = 6009.52780362
delta logL = 8.86029738467e-09

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  5.717e-03  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.583e+00  6.678e+01  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.783e-01  8.710e-02  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  7.255e-01  1.807e-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/427272/cmap_HighResolution_441504001_441763201_4FGL_J2118.0+0019_daily_bin780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-26 10:08:18.830527', job_id='427272', GAL2='0.98', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632676098.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='8.86e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='780' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:08:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 427272: <4FGL_J2118.0+0019_daily_bin780> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin780 319.505 0.3295 441504001 441763201 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 :                                   679.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            757 sec.

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

