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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin798
RA = 319.505, Dec = 0.3295
tmin = 446169601, tmax = 446428801
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='428477', job_status='RUN', time_executed='2021-09-26 10:03:13.111330', time_epoch_executed='1632675793.11' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='798'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428477/ft1_4FGL_J2118.0+0019_daily_bin798.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428477/ft2_4FGL_J2118.0+0019_daily_bin798.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428477/ft1_4FGL_J2118.0+0019_daily_bin798.fits outfile=/scratch/kocevski/428477/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin798.fits ra=319.505 dec=0.3295 rad=12.0 tmin=446169601.0 tmax=446428801.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.53
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428477/ft2_4FGL_J2118.0+0019_daily_bin798.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/428477/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin798.fits evtable="EVENTS" outfile="/scratch/kocevski/428477/ft1_filtered_4FGL_J2118.0+0019_daily_bin798.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.67
user 0.34
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428477/ft1_filtered_4FGL_J2118.0+0019_daily_bin798.fits evtable="EVENTS" scfile=/scratch/kocevski/428477/ft2_4FGL_J2118.0+0019_daily_bin798.fits sctable="SC_DATA" expcube=/scratch/kocevski/428477/ltcube_446169601_446428801_4FGL_J2118.0+0019_daily_bin798.fits outfile=/scratch/kocevski/428477/expmap_446169601_446428801_4FGL_J2118.0+0019_daily_bin798.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/428477/ltcube_446169601_446428801_4FGL_J2118.0+0019_daily_bin798.fits
.....................!
real 192.23
user 186.28
sys 5.23

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/428477/ft1_filtered_4FGL_J2118.0+0019_daily_bin798.fits scfile=/scratch/kocevski/428477/ft2_4FGL_J2118.0+0019_daily_bin798.fits outfile=/scratch/kocevski/428477/cmap_446169601_446428801_4FGL_J2118.0+0019_daily_bin798.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.71
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428477/ft1_filtered_4FGL_J2118.0+0019_daily_bin798.fits scfile=/scratch/kocevski/428477/ft2_4FGL_J2118.0+0019_daily_bin798.fits outfile=/scratch/kocevski/428477/cmap_HighResolution_446169601_446428801_4FGL_J2118.0+0019_daily_bin798.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10723E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1273       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19531E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.135       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.128       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.609       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4620       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3701       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4341       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.069       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.750       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.125       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .58072E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.842       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1132       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96061       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=   6954.840     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2608 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.6152       -.18588E-06** at limit **
   2  Prefactor     .10001E-03    4.8741       -.15133E-05** at limit **
   3  Prefactor     10.334        20.823       -.34223E-05    .81235E-04
   4  Prefactor     2.1320        200.60       -.23907E-05    .65838E-05
   5  Prefactor     .10000E-03    13.924       -.17573E-06** at limit **
   6  Prefactor     .10201E-03    83.947       -.34024E-04** at limit **
   7  Prefactor     11.119        30.531        .87879E-06    .13941E-04
   8  Prefactor     .10000E-03    46.362        .84125E-06** at limit **
   9  Prefactor     48.128        29.282       -.14182E-05    .49672E-04
  10  Prefactor     34.613        27.802       -.79222E-06    .93727E-04
  11  Prefactor     .10000E-03    109.76       -.19000E-04** at limit **
  12  Prefactor     2.4644        8.2799        .90759E-06   -.19094E-04
  13  Prefactor     1.3719        2.3331       -.16645E-05    .25456E-03
  14  Prefactor     4.4330        39.854        .37227E-05    .68062E-04
  15  Prefactor     23.071        27.418       -.96345E-06    .76519E-04
  16  Prefactor     .10000E-03    46.470        .64279E-06** at limit **
  17  Prefactor     46.670        50.275        .16683E-05    .98172E-04
  18  norm          .10000E-03    1.3238        .94974E-06** at limit **
  19  norm          10.127        20.762        .78129E-05    .14793E-04
  20  Prefactor     .10830        103.18       -.39175E-04   -.10710E-03
  21  Prefactor     19.842        13.502        .16929E-06    .12822E-03
  22  Normalizat    1.1129        .26244        .40343E-05    .43496E-03
  23  Prefactor     .96067        .11244        .93236E-06    .11683E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 10.3341
  Prefactor  = 2.13198
  Prefactor  = 0.0001
  Prefactor  = 0.000102007
  Prefactor  = 11.119
  Prefactor  = 0.0001
  Prefactor  = 48.1285
  Prefactor  = 34.6128
  Prefactor  = 0.000100003
  Prefactor  = 2.46435
  Prefactor  = 1.37187
  Prefactor  = 4.43301
  Prefactor  = 23.0705
  Prefactor  = 0.0001
  Prefactor  = 46.6705
  norm       = 0.0001
  norm       = 10.1269
  Prefactor  = 0.108302
  Prefactor  = 19.8418
  Normalizat = 1.11294
  Prefactor  = 0.960674
 **********
 **   18 **HESSE 
 **********

 FCN=   6954.840     FROM HESSE     STATUS=OK           384 CALLS     2992 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.6958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    20.234        .34643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.334        20.855        .12467E-03   -1.5065    
   4  Prefactor     2.1320        201.31        .28270E-03   -1.5416    
   5  Prefactor     .10000E-03    13.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10201E-03    14.695        .10311       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.119        30.516        .12006E-03   -1.5041    
   8  Prefactor     .10000E-03    46.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.128        29.312        .57801E-04   -1.4319    
  10  Prefactor     34.613        27.838        .68118E-04   -1.4531    
  11  Prefactor     .10000E-03    109.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4644        8.2867        .13032E-02   -1.5394    
  13  Prefactor     1.3719        2.2932        .15546E-03   -1.5474    
  14  Prefactor     4.4330        39.640        .19124E-03   -1.5287    
  15  Prefactor     23.071        27.403        .83398E-04   -1.4747    
  16  Prefactor     .10000E-03    46.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     46.670        50.518        .58643E-04   -1.4341    
  18  norm          .10000E-03    1.3206        .92900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.127        20.688        .12592E-03   -1.5071    
  20  Prefactor     .10830        8.7978        .61127E-01   -1.5642    
  21  Prefactor     19.842        13.527        .89917E-04   -1.4817    
  22  Normalizat    1.1129        .31390        .35893E-03   -.89337    
  23  Prefactor     .96067        .13586        .17712E-03   -.94052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81665e-09
Minuit parameter uncertainties:
  1  4.19389e-05
  2  0.000767893
  3  20.87
  4  41.5776
  5  4.57337e-05
  6  0.010865
  7  30.5591
  8  0.000118218
  9  29.3205
  10  27.8482
  11  0.00114502
  12  8.29052
  13  2.29333
  14  26.5354
  15  27.4182
  16  8.40558e-05
  17  50.5645
  18  4.06706e-05
  19  20.703
  20  1.95164
  21  13.5288
  22  0.31443
  23  0.135911
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.182e-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.607e-01  1.359e-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.113e+00  3.144e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/428477/likelihoodResults_446169601_446428801_4FGL_J2118.0+0019_daily_bin798.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) = 6954.83997786
delta logL = -0.00010255163761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6954.83987649
delta logL = -1.17748732009e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11511E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1978       1.0000          .0000       10.000    
     3 'Normalizat'    1.1129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96067       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=   6954.840     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      272 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11039E-03    35.247        .18142E-01** at limit **
   2  Index         2.9786        6.1290        .50000        .79570E-05
   3  Normalizat    1.1129        .64781E-02    .35893E-03    .36488E-04
   4  Prefactor     .96067        .30138E-02    .17712E-03    .50797E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110391
  Index      = 2.97858
  Normalizat = 1.11295
  Prefactor  = 0.960671
 **********
 **   18 **HESSE 
 **********

 FCN=   6954.840     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11039E-03    251.55        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9786        8.4159        .50000       -.41620    
   3  Normalizat    1.1129        .17399E-01    .14357E-04   -.89337    
   4  Prefactor     .96067        .80943E-02    .35424E-04   -.94052    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.23201e-09
Minuit parameter uncertainties:
  1  0.102684
  2  940.401
  3  0.0173986
  4  0.00809432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428477': 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) = 6954.83987595
delta logL = -6.35945980321e-07

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.104e-04  1.027e-01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.979e+00  9.404e+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:  9.607e-01  8.094e-03  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.113e+00  1.740e-02  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 -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/428477/cmap_HighResolution_446169601_446428801_4FGL_J2118.0+0019_daily_bin798.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-26 10:15:32.126572', job_id='428477', GAL2='0.96', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632676532.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-6.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='798' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:15:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 428477: <4FGL_J2118.0+0019_daily_bin798> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin798 319.505 0.3295 446169601 446428801 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 :                                   734.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            908 sec.

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

