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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin897
RA = 319.505, Dec = 0.3295
tmin = 471830401, tmax = 472089601
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='428638', job_status='RUN', time_executed='2021-09-26 10:03:57.394463', time_epoch_executed='1632675837.39' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428638

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428638/ft1_4FGL_J2118.0+0019_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428638/ft2_4FGL_J2118.0+0019_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428638/ft1_4FGL_J2118.0+0019_daily_bin897.fits outfile=/scratch/kocevski/428638/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin897.fits ra=319.505 dec=0.3295 rad=12.0 tmin=471830401.0 tmax=472089601.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.67
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428638/ft1_filtered_4FGL_J2118.0+0019_daily_bin897.fits" evtable="EVENTS" scfile=/scratch/kocevski/428638/ft2_4FGL_J2118.0+0019_daily_bin897.fits sctable="SC_DATA" outfile=/scratch/kocevski/428638/ltcube_471830401_472089601_4FGL_J2118.0+0019_daily_bin897.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/428638/ft2_4FGL_J2118.0+0019_daily_bin897.fits
.....................!
real 15.24
user 14.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428638/ft1_filtered_4FGL_J2118.0+0019_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/428638/ft2_4FGL_J2118.0+0019_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/428638/ltcube_471830401_472089601_4FGL_J2118.0+0019_daily_bin897.fits outfile=/scratch/kocevski/428638/expmap_471830401_472089601_4FGL_J2118.0+0019_daily_bin897.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/428638/ltcube_471830401_472089601_4FGL_J2118.0+0019_daily_bin897.fits
.....................!
real 191.76
user 186.85
sys 4.20

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/428638/ft1_filtered_4FGL_J2118.0+0019_daily_bin897.fits scfile=/scratch/kocevski/428638/ft2_4FGL_J2118.0+0019_daily_bin897.fits outfile=/scratch/kocevski/428638/cmap_471830401_472089601_4FGL_J2118.0+0019_daily_bin897.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.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10885E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .36353       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.253       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3673       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9108       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.892       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.243       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.013       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9149       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3132       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0577       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11120E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36087E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .13015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2974       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.029       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2625       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84243       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=   7165.297     FROM MIGRAD    STATUS=CONVERGED    929 CALLS     2983 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7968        .18095E-02** at limit **
   2  Prefactor     .10000E-03    7.4992        .36285E-03** at limit **
   3  Prefactor     .35455        74.938        .44572E-02   -.50053E-04
   4  Prefactor     27.280        47.365        .76740E-04    .16323E-03
   5  Prefactor     5.3586        24.705        .17346E-03    .40700E-04
   6  Prefactor     9.9055        25.816        .12729E-03    .86012E-04
   7  Prefactor     23.903        29.556        .81949E-04    .14283E-03
   8  Prefactor     .10000E-03    25.542        .18142E-02** at limit **
   9  Prefactor     26.231        24.247        .78199E-04    .29981E-03
  10  Prefactor     27.047        23.110        .77079E-04   -.12336E-03
  11  Prefactor     4.9251        51.161        .18142E-03    .10966E-04
  12  Prefactor     .10002E-03    19.688        .31081E-02** at limit **
  13  Prefactor     2.3132        2.3292        .11900E-03   -.77631E-03
  14  Prefactor     8.0823        47.061        .14125E-03    .91596E-04
  15  Prefactor     .10000E-03    31.647        .18142E-02** at limit **
  16  Prefactor     .10000E-03    42.838        .18142E-02** at limit **
  17  Prefactor     .10142E-03    70.062        .16653    ** at limit **
  18  norm          .10000E-03    .85866        .76427E-03** at limit **
  19  norm          .10000E-03    20.941        .18142E-02** at limit **
  20  Prefactor     4.2634        11.295        .19434E-03   -.18562E-03
  21  Prefactor     23.028        16.686        .83470E-04   -.41950E-04
  22  Normalizat    1.2619        .30759        .33300E-03    .57752E-03
  23  Prefactor     .84260        .13218        .18032E-03    .13920E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.354549
  Prefactor  = 27.2804
  Prefactor  = 5.35856
  Prefactor  = 9.90549
  Prefactor  = 23.9032
  Prefactor  = 0.000100002
  Prefactor  = 26.2306
  Prefactor  = 27.0469
  Prefactor  = 4.92513
  Prefactor  = 0.000100021
  Prefactor  = 2.31321
  Prefactor  = 8.08232
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000101417
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.26343
  Prefactor  = 23.0275
  Normalizat = 1.26192
  Prefactor  = 0.842598
 **********
 **   18 **HESSE 
 **********

 FCN=   7165.297     FROM HESSE     STATUS=OK           358 CALLS     3341 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7970        .36189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.4996        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .35455        76.191        .17829E-03   -1.5589    
   4  Prefactor     27.280        47.359        .15348E-04   -1.4663    
   5  Prefactor     5.3586        24.686        .69386E-05   -1.5245    
   6  Prefactor     9.9055        25.809        .50914E-05   -1.5078    
   7  Prefactor     23.903        29.555        .16390E-04   -1.4730    
   8  Prefactor     .10000E-03    25.543        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.231        24.245        .15640E-04   -1.4683    
  10  Prefactor     27.047        23.107        .15416E-04   -1.4667    
  11  Prefactor     4.9251        51.148        .72570E-05   -1.5264    
  12  Prefactor     .10002E-03    19.839        .62162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3132        2.3286        .47600E-05   -1.5404    
  14  Prefactor     8.0823        47.010        .56498E-05   -1.5139    
  15  Prefactor     .10000E-03    31.649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.838        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10142E-03    77.054        .15739       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .85869        .15285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    20.946        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2634        11.335        .77735E-05   -1.5295    
  21  Prefactor     23.028        16.683        .33388E-05   -1.4748    
  22  Normalizat    1.2619        .30761        .66599E-04   -.84710    
  23  Prefactor     .84260        .13231        .36064E-04   -.98177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16293e-09
Minuit parameter uncertainties:
  1  1.5873e-05
  2  0.000371876
  3  10.4068
  4  47.4245
  5  23.0179
  6  25.8384
  7  29.573
  8  0.000470924
  9  24.2544
  10  23.1143
  11  31.7782
  12  0.0012829
  13  2.32869
  14  39.0306
  15  0.000412248
  16  0.000145925
  17  0.0209282
  18  2.04088e-06
  19  2.79827e-06
  20  11.3403
  21  16.6859
  22  0.308054
  23  0.13236
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  4.709e-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.426e-01  1.324e-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.262e+00  3.081e-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: 8.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/428638/likelihoodResults_471830401_472089601_4FGL_J2118.0+0019_daily_bin897.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) = 7165.29765581
delta logL = -0.000186512887922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7165.29746976
delta logL = -4.60575392935e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2070       1.0000          .0000       10.000    
     3 'Normalizat'    1.2620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84258       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=   7165.264     FROM MIGRAD    STATUS=FAILED       158 CALLS      308 TOTAL
                     EDM=   .17E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .48620E-01    .49608E-03** at limit **
   2  Index         9.9318        7.5483        .50000       -.36165E-02
   3  Normalizat    1.2422        .11675        .33299E-03    .10741E-03
   4  Prefactor     .84882        .45659E-01    .18032E-03    .18823E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7165.264     FROM SIMPLEX   STATUS=UNCHANGED    160 CALLS      468 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .48620E-01    .14626E-04** at limit **
   2  Index         9.9318        7.5483        .48132E-03   -.36165E-02
   3  Normalizat    1.2422        .11675        .16595E-05    .10741E-03
   4  Prefactor     .84882        .45659E-01    .12367E-05    .18823E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7165.264     FROM MIGRAD    STATUS=FAILED        53 CALLS      521 TOTAL
                     EDM=   .90E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .56913E-01     .0000    ** at limit **
   2  Index         9.9317        5.2420         .0000       -.36186E-02
   3  Normalizat    1.2422        .12794         .0000        .85695E-04
   4  Prefactor     .84882        .48924E-01     .0000        .17168E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.93175
  Normalizat = 1.24225
  Prefactor  = 0.848815
 **********
 **   18 **HESSE 
 **********

 FCN=   7165.264     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      558 TOTAL
                     EDM=   .18E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .55021E-01    .46809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9317        5.5785        .50000        1.4054    
   3  Normalizat    1.2422        .12538        .26639E-05   -.85307    
   4  Prefactor     .84882        .48182E-01    .72129E-05   -.97953    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.0177473
Minuit parameter uncertainties:
  1  1.6876e-07
  2  30.3136
  3  0.125415
  4  0.0481842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428638': 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): 1
logL (Free Index) = 7165.26367719
delta logL = 0.0337921077535

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.688e-07  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  9.932e+00  3.031e+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:  8.488e-01  4.818e-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:  1.242e+00  1.254e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/428638/cmap_HighResolution_471830401_472089601_4FGL_J2118.0+0019_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.90e-03', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2021-09-26 10:17:20.030487', job_id='428638', GAL2='0.85', fit_tolerance='1e-08', EG2='1.24', EG='1.26', time_epoch_completed='1632676640.03', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.38e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='897' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:17:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 428638: <4FGL_J2118.0+0019_daily_bin897> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin897> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 10:00:41 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 10:01:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 10:01:47 2021
Terminated at Sun Sep 26 10:17:20 2021
Results reported at Sun Sep 26 10:17:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin897 319.505 0.3295 471830401 472089601 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 :                                   794.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            999 sec.

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

