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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin737
RA = 319.505, Dec = 0.3295
tmin = 430358401, tmax = 430617601
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='427206', job_status='RUN', time_executed='2021-09-26 09:58:42.247170', time_epoch_executed='1632675522.25' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='737'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427206

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427206/ft1_4FGL_J2118.0+0019_daily_bin737.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427206/ft2_4FGL_J2118.0+0019_daily_bin737.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427206/ft1_4FGL_J2118.0+0019_daily_bin737.fits outfile=/scratch/kocevski/427206/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin737.fits ra=319.505 dec=0.3295 rad=12.0 tmin=430358401.0 tmax=430617601.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 4.89
user 4.65
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/427206/ft2_4FGL_J2118.0+0019_daily_bin737.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/427206/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin737.fits evtable="EVENTS" outfile="/scratch/kocevski/427206/ft1_filtered_4FGL_J2118.0+0019_daily_bin737.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.46
user 0.30
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427206/ft1_filtered_4FGL_J2118.0+0019_daily_bin737.fits" evtable="EVENTS" scfile=/scratch/kocevski/427206/ft2_4FGL_J2118.0+0019_daily_bin737.fits sctable="SC_DATA" outfile=/scratch/kocevski/427206/ltcube_430358401_430617601_4FGL_J2118.0+0019_daily_bin737.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/427206/ft2_4FGL_J2118.0+0019_daily_bin737.fits
.....................!
real 11.49
user 11.13
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427206/ft1_filtered_4FGL_J2118.0+0019_daily_bin737.fits evtable="EVENTS" scfile=/scratch/kocevski/427206/ft2_4FGL_J2118.0+0019_daily_bin737.fits sctable="SC_DATA" expcube=/scratch/kocevski/427206/ltcube_430358401_430617601_4FGL_J2118.0+0019_daily_bin737.fits outfile=/scratch/kocevski/427206/expmap_430358401_430617601_4FGL_J2118.0+0019_daily_bin737.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/427206/ltcube_430358401_430617601_4FGL_J2118.0+0019_daily_bin737.fits
.....................!
real 156.38
user 150.97
sys 4.82

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/427206/ft1_filtered_4FGL_J2118.0+0019_daily_bin737.fits scfile=/scratch/kocevski/427206/ft2_4FGL_J2118.0+0019_daily_bin737.fits outfile=/scratch/kocevski/427206/cmap_430358401_430617601_4FGL_J2118.0+0019_daily_bin737.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.95
user 0.32
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427206/ft1_filtered_4FGL_J2118.0+0019_daily_bin737.fits scfile=/scratch/kocevski/427206/ft2_4FGL_J2118.0+0019_daily_bin737.fits outfile=/scratch/kocevski/427206/cmap_HighResolution_430358401_430617601_4FGL_J2118.0+0019_daily_bin737.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.50
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7435       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8100       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12543E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.958       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.611       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9480       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3086       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.718       1.0000         .10000E-03   10000.    
    15 'Prefactor '    108.42       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5587       1.0000         .10000E-03   10000.    
    18 'norm      '    3.7919       1.0000         .10000E-03   10000.    
    19 'norm      '    8.1843       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.447       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9718       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .66971       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98964       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=   9146.255     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2532 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7434        10.023        .43970E-06   -.17824E-04
   2  Prefactor     .10000E-03    1.1578        .17329E-06** at limit **
   3  Prefactor     9.8097        12.448        .61910E-06   -.23273E-04
   4  Prefactor     .10000E-03    7.2086        .35732E-07** at limit **
   5  Prefactor     .10000E-03    22.130       -.37067E-06** at limit **
   6  Prefactor     24.960        17.851       -.57998E-07    .64806E-05
   7  Prefactor     37.606        38.819       -.21022E-06   -.37969E-04
   8  Prefactor     .10000E-03    15.456        .61977E-06** at limit **
   9  Prefactor     .10000E-03    22.495        .38456E-06** at limit **
  10  Prefactor     2.9253        20.505        .16165E-04   -.23381E-03
  11  Prefactor     .10000E-03    12.717       -.29261E-07** at limit **
  12  Prefactor     7.3086        7.7231        .41644E-06   -.29785E-04
  13  Prefactor     .10000E-03    .63068        .21387E-07** at limit **
  14  Prefactor     16.720        28.841       -.18705E-06   -.49318E-05
  15  Prefactor     108.42        56.843       -.36636E-06   -.41183E-04
  16  Prefactor     .10000E-03    48.636        .18493E-05** at limit **
  17  Prefactor     5.4637        89.331       -.35906E-04   -.23894E-03
  18  norm          3.7915        2.2430        .39461E-07    .16309E-04
  19  norm          8.1896        14.738        .13307E-05    .77119E-04
  20  Prefactor     11.455        8.7521        .15112E-05    .22923E-03
  21  Prefactor     2.9698        12.899        .15274E-04   -.35854E-03
  22  Normalizat    .66972        .22391       -.14045E-05   -.98567E-04
  23  Prefactor     .98965        .96465E-01   -.74140E-06   -.39680E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.74338
  Prefactor  = 0.0001
  Prefactor  = 9.8097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.96
  Prefactor  = 37.6064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.92527
  Prefactor  = 0.0001
  Prefactor  = 7.30864
  Prefactor  = 0.0001
  Prefactor  = 16.7201
  Prefactor  = 108.418
  Prefactor  = 0.0001
  Prefactor  = 5.46371
  norm       = 3.79153
  norm       = 8.18962
  Prefactor  = 11.4555
  Prefactor  = 2.96977
  Normalizat = 0.669716
  Prefactor  = 0.989646
 **********
 **   18 **HESSE 
 **********

 FCN=   9146.255     FROM HESSE     STATUS=OK           370 CALLS     2902 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7434        10.023        .13556E-03   -1.5116    
   2  Prefactor     .10000E-03    1.1634        .10047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.8097        12.458        .12794E-03   -1.5081    
   4  Prefactor     .10000E-03    7.2108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.960        17.827        .80183E-04   -1.4708    
   7  Prefactor     37.606        38.836        .65352E-04   -1.4481    
   8  Prefactor     .10000E-03    15.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.103        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9253        21.021        .11827E-02   -1.5366    
  11  Prefactor     .10000E-03    12.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.3086        7.7226        .14836E-03   -1.5167    
  13  Prefactor     .10000E-03    .63380        .74070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.720        28.933        .97955E-04   -1.4890    
  15  Prefactor     108.42        56.909        .38625E-04   -1.3622    
  16  Prefactor     .10000E-03    48.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4637        101.79        .17040E-03   -1.5240    
  18  norm          3.7915        2.2403        .10624E-03   -1.5319    
  19  norm          8.1896        14.734        .14014E-03   -1.5136    
  20  Prefactor     11.455        8.8406        .11841E-03   -1.5031    
  21  Prefactor     2.9698        13.374        .11777E-02   -1.5363    
  22  Normalizat    .66972        .25476        .40723E-03   -1.0510    
  23  Prefactor     .98965        .11110        .15680E-03   -.93075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82671e-09
Minuit parameter uncertainties:
  1  10.0244
  2  2.58121e-06
  3  12.4611
  4  6.61493e-07
  5  7.32559e-05
  6  17.8312
  7  38.8618
  8  5.22798e-05
  9  2.70115e-05
  10  15.6909
  11  5.13092e-06
  12  7.72366
  13  1.97597e-07
  14  28.9568
  15  56.9374
  16  0.000309355
  17  47.2589
  18  2.24035
  19  14.7405
  20  8.84163
  21  12.6089
  22  0.255206
  23  0.111121
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  5.228e-05  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.896e-01  1.111e-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:  6.697e-01  2.552e-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: 5.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427206/likelihoodResults_430358401_430617601_4FGL_J2118.0+0019_daily_bin737.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) = 9146.25550188
delta logL = -0.00030810258977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9146.25519402
delta logL = -2.43326212512e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5615       1.0000          .0000       10.000    
     3 'Normalizat'    .66962       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98967       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=   9146.255     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      253 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10113E-03    322.16        .18142E-02** at limit **
   2  Index         2.4935        5.4451        .50000        .47199E-05
   3  Normalizat    .66972        .22241E-01    .40722E-03    .38722E-03
   4  Prefactor     .98964        .10338E-01    .15680E-03    .73334E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010113
  Index      = 2.49349
  Normalizat = 0.669721
  Prefactor  = 0.989644
 **********
 **   18 **HESSE 
 **********

 FCN=   9146.255     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10113E-03    1247.1        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4935        8.5743        .50000       -.52510    
   3  Normalizat    .66972        .48308E-01    .16289E-04   -1.0510    
   4  Prefactor     .98964        .22454E-01    .31361E-04   -.93076    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.8203e-08
Minuit parameter uncertainties:
  1  0.0767277
  2  2140.06
  3  0.0483112
  4  0.0224545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427206': 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) = 9146.25519372
delta logL = 6.30989234196e-08

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.011e-04  7.673e-02  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.493e+00  2.140e+03  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.896e-01  2.245e-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:  6.697e-01  4.831e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/427206/cmap_HighResolution_430358401_430617601_4FGL_J2118.0+0019_daily_bin737.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', job_status='DONE', photon_flux_upper_limit='5.86e-08', time_completed='2021-09-26 10:10:32.582258', job_id='427206', GAL2='0.99', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632676232.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.31e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='737' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:10:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 427206: <4FGL_J2118.0+0019_daily_bin737> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin737 319.505 0.3295 430358401 430617601 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            897 sec.

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

