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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin849
RA = 319.505, Dec = 0.3295
tmin = 459388801, tmax = 459648001
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='428563', job_status='RUN', time_executed='2021-09-26 10:03:46.912589', time_epoch_executed='1632675826.91' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='849'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428563

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428563/ft1_4FGL_J2118.0+0019_daily_bin849.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428563/ft2_4FGL_J2118.0+0019_daily_bin849.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428563/ft1_4FGL_J2118.0+0019_daily_bin849.fits outfile=/scratch/kocevski/428563/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin849.fits ra=319.505 dec=0.3295 rad=12.0 tmin=459388801.0 tmax=459648001.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.69
user 3.36
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428563/ft1_filtered_4FGL_J2118.0+0019_daily_bin849.fits evtable="EVENTS" scfile=/scratch/kocevski/428563/ft2_4FGL_J2118.0+0019_daily_bin849.fits sctable="SC_DATA" expcube=/scratch/kocevski/428563/ltcube_459388801_459648001_4FGL_J2118.0+0019_daily_bin849.fits outfile=/scratch/kocevski/428563/expmap_459388801_459648001_4FGL_J2118.0+0019_daily_bin849.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/428563/ltcube_459388801_459648001_4FGL_J2118.0+0019_daily_bin849.fits
.....................!
real 192.48
user 187.22
sys 4.50

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/428563/ft1_filtered_4FGL_J2118.0+0019_daily_bin849.fits scfile=/scratch/kocevski/428563/ft2_4FGL_J2118.0+0019_daily_bin849.fits outfile=/scratch/kocevski/428563/cmap_459388801_459648001_4FGL_J2118.0+0019_daily_bin849.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 1.78
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428563/ft1_filtered_4FGL_J2118.0+0019_daily_bin849.fits scfile=/scratch/kocevski/428563/ft2_4FGL_J2118.0+0019_daily_bin849.fits outfile=/scratch/kocevski/428563/cmap_HighResolution_459388801_459648001_4FGL_J2118.0+0019_daily_bin849.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42769E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8432       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7008       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0674       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.329       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38479E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.799       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4234       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9920       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.231       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.936       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10749E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.9342       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2356       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .84921       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94976       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=   6039.518     FROM MIGRAD    STATUS=CONVERGED    911 CALLS     3342 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    38.457        .42551E-02** at limit **
   2  Prefactor     8.8406        7.6183        .13479E-03   -.35653E-03
   3  Prefactor     9.7027        18.536        .12866E-03   -.53105E-04
   4  Prefactor     .10000E-03    32.754        .18142E-02** at limit **
   5  Prefactor     2.0564        22.424        .14367E-02   -.36179E-03
   6  Prefactor     29.336        26.405        .73980E-04   -.13142E-03
   7  Prefactor     .10000E-03    16.351        .18142E-02** at limit **
   8  Prefactor     .10026E-03    63.707        .17039    ** at limit **
   9  Prefactor     42.790        25.622        .61278E-04   -.20037E-04
  10  Prefactor     5.4236        10.459        .86275E-03   -.15208E-03
  11  Prefactor     .10000E-03    48.470        .18142E-02** at limit **
  12  Prefactor     .10000E-03    2.1917        .11220E-02** at limit **
  13  Prefactor     4.9923        3.0260        .98509E-04   -.30837E-03
  14  Prefactor     35.202        38.175        .67516E-04   -.97663E-05
  15  Prefactor     .10000E-03    23.884        .18142E-02** at limit **
  16  Prefactor     18.073        139.64        .94572E-04    .56331E-04
  17  Prefactor     .10003E-03    118.37        .18142E-02** at limit **
  18  norm          .10000E-03    2.0166        .16966E-02** at limit **
  19  norm          2.9233        26.142        .11856E-02   -.26954E-04
  20  Prefactor     .10000E-03    3.8040        .14773E-02** at limit **
  21  Prefactor     5.2368        10.944        .87836E-03   -.24502E-03
  22  Normalizat    .84907        .29564        .36246E-03   -.26278E-03
  23  Prefactor     .94983        .13315        .16445E-03   -.72428E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100035
  Prefactor  = 8.84063
  Prefactor  = 9.70267
  Prefactor  = 0.0001
  Prefactor  = 2.05636
  Prefactor  = 29.3355
  Prefactor  = 0.0001
  Prefactor  = 0.000100263
  Prefactor  = 42.7904
  Prefactor  = 5.42361
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.99232
  Prefactor  = 35.2015
  Prefactor  = 0.0001
  Prefactor  = 18.0725
  Prefactor  = 0.000100027
  norm       = 0.000100001
  norm       = 2.92328
  Prefactor  = 0.0001
  Prefactor  = 5.23682
  Normalizat = 0.849067
  Prefactor  = 0.949832
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.518     FROM HESSE     STATUS=OK           358 CALLS     3700 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    38.784        .85103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8406        7.6172        .53915E-05   -1.5113    
   3  Prefactor     9.7027        18.536        .51465E-05   -1.5085    
   4  Prefactor     .10000E-03    32.757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0564        22.259        .57466E-04   -1.5421    
   6  Prefactor     29.336        26.315        .14796E-04   -1.4624    
   7  Prefactor     .10000E-03    16.352        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10026E-03    65.330        .16745       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     42.790        25.623        .24511E-05   -1.4399    
  10  Prefactor     5.4236        10.458        .34510E-04   -1.5242    
  11  Prefactor     .10000E-03    48.475        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.1918        .22439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9923        3.0258        .39404E-05   -1.5261    
  14  Prefactor     35.202        38.182        .27006E-05   -1.4521    
  15  Prefactor     .10000E-03    23.885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.073        139.53        .18914E-04   -1.4857    
  17  Prefactor     .10003E-03    118.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0189        .33933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9233        26.094        .47426E-04   -1.5366    
  20  Prefactor     .10000E-03    3.8044        .29545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2368        10.942        .35134E-04   -1.5250    
  22  Normalizat    .84907        .29568        .14498E-04   -.98274    
  23  Prefactor     .94983        .13324        .32891E-04   -.94421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3507e-09
Minuit parameter uncertainties:
  1  0.00231684
  2  7.618
  3  18.5471
  4  4.84123e-05
  5  13.5372
  6  26.3251
  7  2.11331e-05
  8  0.0083009
  9  25.6292
  10  10.4613
  11  0.000409762
  12  9.52091e-06
  13  3.02587
  14  38.2081
  15  8.09383e-05
  16  100.758
  17  0.00359657
  18  8.46953e-05
  19  17.4777
  20  7.16833e-05
  21  10.9457
  22  0.296246
  23  0.133283
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.003e-04  8.301e-03  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.498e-01  1.333e-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:  8.491e-01  2.962e-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.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/428563/likelihoodResults_459388801_459648001_4FGL_J2118.0+0019_daily_bin849.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) = 6039.51792936
delta logL = -3.98132306145e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6039.51792936
delta logL = -3.98128395318e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5724       1.0000          .0000       10.000    
     3 'Normalizat'    .84906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94983       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=   6039.494     FROM MIGRAD    STATUS=CONVERGED    166 CALLS      348 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.602        554.76        .90712E-02    .30412E-04
   2  Index         1.9003        2.8534        .35167       -.37905E-04
   3  Normalizat    .85013        .23603        .81822E-01    .25367E-04
   4  Prefactor     .94751        .11551        .45637E-01   -.95378E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6021
  Index      = 1.90027
  Normalizat = 0.850126
  Prefactor  = 0.947513
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.494     FROM HESSE     STATUS=OK            31 CALLS      379 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.602        67.006        .36285E-03   -1.5027    
   2  Index         1.9003        1.6231        .21152E-01   -.66868    
   3  Normalizat    .85013        .27331        .36225E-03   -.98235    
   4  Prefactor     .94751        .13189        .16463E-03   -.94500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26262e-09
Minuit parameter uncertainties:
  1  55.8592
  2  1.67337
  3  0.27375
  4  0.131937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428563': 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) = 6039.49382724
delta logL = 0.0240981391898

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.160e+01  5.586e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.900e+00  1.673e+00  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  9.475e-01  1.319e-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:  8.501e-01  2.737e-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/428563/cmap_HighResolution_459388801_459648001_4FGL_J2118.0+0019_daily_bin849.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-26 10:16:17.712716', job_id='428563', GAL2='0.95', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632676577.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.41e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='849' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:16:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 428563: <4FGL_J2118.0+0019_daily_bin849> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin849 319.505 0.3295 459388801 459648001 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 :                                   746.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            943 sec.

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

