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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin710
RA = 319.505, Dec = 0.3295
tmin = 423360001, tmax = 423619201
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='427164', job_status='RUN', time_executed='2021-09-26 09:56:17.992205', time_epoch_executed='1632675377.99' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427164

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427164/ft1_4FGL_J2118.0+0019_daily_bin710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427164/ft2_4FGL_J2118.0+0019_daily_bin710.fits


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

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

Done.
real 5.66
user 5.38
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427164/ft1_filtered_4FGL_J2118.0+0019_daily_bin710.fits" evtable="EVENTS" scfile=/scratch/kocevski/427164/ft2_4FGL_J2118.0+0019_daily_bin710.fits sctable="SC_DATA" outfile=/scratch/kocevski/427164/ltcube_423360001_423619201_4FGL_J2118.0+0019_daily_bin710.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/427164/ft2_4FGL_J2118.0+0019_daily_bin710.fits
.....................!
real 12.39
user 12.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427164/ft1_filtered_4FGL_J2118.0+0019_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/427164/ft2_4FGL_J2118.0+0019_daily_bin710.fits sctable="SC_DATA" expcube=/scratch/kocevski/427164/ltcube_423360001_423619201_4FGL_J2118.0+0019_daily_bin710.fits outfile=/scratch/kocevski/427164/expmap_423360001_423619201_4FGL_J2118.0+0019_daily_bin710.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/427164/ltcube_423360001_423619201_4FGL_J2118.0+0019_daily_bin710.fits
.....................!
real 191.43
user 185.28
sys 5.32

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/427164/ft1_filtered_4FGL_J2118.0+0019_daily_bin710.fits scfile=/scratch/kocevski/427164/ft2_4FGL_J2118.0+0019_daily_bin710.fits outfile=/scratch/kocevski/427164/cmap_423360001_423619201_4FGL_J2118.0+0019_daily_bin710.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427164/ft1_filtered_4FGL_J2118.0+0019_daily_bin710.fits scfile=/scratch/kocevski/427164/ft2_4FGL_J2118.0+0019_daily_bin710.fits outfile=/scratch/kocevski/427164/cmap_HighResolution_423360001_423619201_4FGL_J2118.0+0019_daily_bin710.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9476       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.093       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.721       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9380       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1561       1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.208       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10734E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.053       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14725E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    23.670       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1649       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .37145E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0662       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81012       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=   4204.201     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2565 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.544        .11124E-06** at limit **
   2  Prefactor     5.9448        9.5665        .34272E-06   -.12132E-04
   3  Prefactor     .10000E-03    30.666       -.56608E-06** at limit **
   4  Prefactor     .10000E-03    21.575       -.22722E-06** at limit **
   5  Prefactor     .10000E-03    23.673        .62502E-06** at limit **
   6  Prefactor     .10000E-03    10.318        .75263E-07** at limit **
   7  Prefactor     30.110        62.962        .11402E-05    .38291E-05
   8  Prefactor     .10000E-03    27.935        .29501E-06** at limit **
   9  Prefactor     .10000E-03    13.548        .95650E-07** at limit **
  10  Prefactor     29.724        25.275        .26236E-06   -.20439E-04
  11  Prefactor     .10000E-03    28.629        .23115E-06** at limit **
  12  Prefactor     2.9375        4.5277        .71726E-07    .48504E-06
  13  Prefactor     1.1561        2.3213        .94990E-07    .15068E-03
  14  Prefactor     39.224        47.502       -.61069E-06   -.14486E-04
  15  Prefactor     .10000E-03    277.52       -.35805E-05** at limit **
  16  Prefactor     17.006        178.59        .34751E-05   -.14921E-04
  17  Prefactor     .10001E-03    262.90        .30930E-05** at limit **
  18  norm          .10000E-03    4.9163        .35242E-05** at limit **
  19  norm          23.693        30.893        .95463E-07    .43858E-04
  20  Prefactor     7.1906        11.576       -.10138E-05    .72292E-04
  21  Prefactor     .10000E-03    204.22        .84768E-05** at limit **
  22  Normalizat    1.0665        .30416        .47025E-06   -.79272E-04
  23  Prefactor     .81011        .13531       -.13257E-05   -.21439E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.94477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.1103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7236
  Prefactor  = 0.0001
  Prefactor  = 2.93746
  Prefactor  = 1.15608
  Prefactor  = 39.2238
  Prefactor  = 0.0001
  Prefactor  = 17.0064
  Prefactor  = 0.000100012
  norm       = 0.0001
  norm       = 23.6928
  Prefactor  = 7.19055
  Prefactor  = 0.0001
  Normalizat = 1.06652
  Prefactor  = 0.81011
 **********
 **   18 **HESSE 
 **********

 FCN=   4204.201     FROM HESSE     STATUS=OK           370 CALLS     2935 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.9448        9.5778        .16465E-03   -1.5220    
   3  Prefactor     .10000E-03    31.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.110        63.120        .73037E-04   -1.4610    
   8  Prefactor     .10000E-03    27.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.724        25.283        .73491E-04   -1.4617    
  11  Prefactor     .10000E-03    28.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9375        4.5151        .16663E-03   -1.5365    
  13  Prefactor     1.1561        2.2497        .13220E-03   -1.5493    
  14  Prefactor     39.224        47.668        .64012E-04   -1.4455    
  15  Prefactor     .10000E-03    279.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.006        178.76        .96988E-04   -1.4883    
  17  Prefactor     .10001E-03    266.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.9833        .20506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          23.693        31.050        .82334E-04   -1.4734    
  20  Prefactor     7.1906        11.509        .14986E-03   -1.5172    
  21  Prefactor     .10000E-03    195.88        .48383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0665        .36602        .32421E-03   -.90834    
  23  Prefactor     .81011        .16544        .17195E-03   -.99357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81684e-10
Minuit parameter uncertainties:
  1  3.17668e-05
  2  9.58027
  3  0.000134072
  4  5.75554e-05
  5  0.000166792
  6  9.94754e-06
  7  63.2603
  8  0.000109567
  9  3.34418e-05
  10  25.2922
  11  0.000110126
  12  4.51565
  13  2.24985
  14  47.7145
  15  0.000122114
  16  110.7
  17  0.00358978
  18  2.76861e-05
  19  31.071
  20  11.5126
  21  0.000192746
  22  0.366895
  23  0.165537
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.096e-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:  8.101e-01  1.655e-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.067e+00  3.669e-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.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427164/likelihoodResults_423360001_423619201_4FGL_J2118.0+0019_daily_bin710.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) = 4204.20083119
delta logL = -0.0001702117479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4204.20066244
delta logL = -1.46047568705e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6345       1.0000          .0000       10.000    
     3 'Normalizat'    1.0665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81011       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=   4204.201     FROM MIGRAD    STATUS=FAILED       102 CALLS      279 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1203.4        .18142E-01** at limit **
   2  Index         2.2203        8.2289        .83928E-01   -.54183E-08
   3  Normalizat    1.0665        .47934E-01    .32421E-03    .13497E-03
   4  Prefactor     .81011        .22606E-01    .17195E-03    .25427E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4204.201     FROM SIMPLEX   STATUS=UNCHANGED    173 CALLS      452 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1203.4        .79089E-03** at limit **
   2  Index         2.2203        8.2289        .24037E-05   -.54183E-08
   3  Normalizat    1.0665        .47934E-01    .50407E-07    .13497E-03
   4  Prefactor     .81011        .22606E-01    .18013E-07    .25427E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4204.201     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      480 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.685        .34440E-02** at limit **
   2  Index         2.2295        8.6700        .33571E-02    .60956E-07
   3  Normalizat    1.0665        .34294        .12968E-04    .13518E-03
   4  Prefactor     .81011        .16197        .34391E-04    .25428E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.22951
  Normalizat = 1.06652
  Prefactor  = 0.810111
 **********
 **   18 **HESSE 
 **********

 FCN=   4204.201     FROM HESSE     STATUS=OK            29 CALLS      509 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.661        .68881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2295        8.7082        .67142E-01   -.58728    
   3  Normalizat    1.0665        .34231        .25937E-05   -.90834    
   4  Prefactor     .81011        .16172        .68781E-05   -.99357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26583e-10
Minuit parameter uncertainties:
  1  0.00068468
  2  803.313
  3  0.343022
  4  0.161818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427164': 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) = 4204.20066088
delta logL = 9.71176632447e-08

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  6.847e-04  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.230e+00  8.033e+02  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:  8.101e-01  1.618e-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.067e+00  3.430e-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/427164/cmap_HighResolution_423360001_423619201_4FGL_J2118.0+0019_daily_bin710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.06e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-26 10:06:00.787594', job_id='427164', GAL2='0.81', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632675960.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='9.71e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='710' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:06:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 427164: <4FGL_J2118.0+0019_daily_bin710> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin710 319.505 0.3295 423360001 423619201 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 :                                   578.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   616 sec.
    Turnaround time :                            628 sec.

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

