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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin667
RA = 319.505, Dec = 0.3295
tmin = 412214401, tmax = 412473601
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='427089', job_status='RUN', time_executed='2021-09-26 09:58:03.415252', time_epoch_executed='1632675483.42' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427089

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427089/ft1_4FGL_J2118.0+0019_daily_bin667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427089/ft2_4FGL_J2118.0+0019_daily_bin667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427089/ft1_4FGL_J2118.0+0019_daily_bin667.fits outfile=/scratch/kocevski/427089/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin667.fits ra=319.505 dec=0.3295 rad=12.0 tmin=412214401.0 tmax=412473601.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.48
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427089/ft1_filtered_4FGL_J2118.0+0019_daily_bin667.fits" evtable="EVENTS" scfile=/scratch/kocevski/427089/ft2_4FGL_J2118.0+0019_daily_bin667.fits sctable="SC_DATA" outfile=/scratch/kocevski/427089/ltcube_412214401_412473601_4FGL_J2118.0+0019_daily_bin667.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/427089/ft2_4FGL_J2118.0+0019_daily_bin667.fits
.....................!
real 14.02
user 13.60
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427089/ft1_filtered_4FGL_J2118.0+0019_daily_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/427089/ft2_4FGL_J2118.0+0019_daily_bin667.fits sctable="SC_DATA" expcube=/scratch/kocevski/427089/ltcube_412214401_412473601_4FGL_J2118.0+0019_daily_bin667.fits outfile=/scratch/kocevski/427089/expmap_412214401_412473601_4FGL_J2118.0+0019_daily_bin667.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/427089/ltcube_412214401_412473601_4FGL_J2118.0+0019_daily_bin667.fits
.....................!
real 191.26
user 185.01
sys 5.14

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/427089/ft1_filtered_4FGL_J2118.0+0019_daily_bin667.fits scfile=/scratch/kocevski/427089/ft2_4FGL_J2118.0+0019_daily_bin667.fits outfile=/scratch/kocevski/427089/cmap_412214401_412473601_4FGL_J2118.0+0019_daily_bin667.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.58
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427089/ft1_filtered_4FGL_J2118.0+0019_daily_bin667.fits scfile=/scratch/kocevski/427089/ft2_4FGL_J2118.0+0019_daily_bin667.fits outfile=/scratch/kocevski/427089/cmap_HighResolution_412214401_412473601_4FGL_J2118.0+0019_daily_bin667.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.58
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.905       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10540       1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.591       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6463       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.940       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11068E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4220       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13644E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.170       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3483       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0664       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3471       1.0000         .10000E-03   10000.    
    19 'norm      '    11.680       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1012       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89369       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=   7219.977     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2943 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.902        13.913       -.15259E-05   -.72904E-05
   2  Prefactor     .71138E-01    5.6556       -.24483E-06   -.13843E-03
   3  Prefactor     55.602        34.933       -.70806E-05    .32486E-04
   4  Prefactor     .10000E-03    18.144       -.10946E-04** at limit **
   5  Prefactor     4.6282        22.180       -.57669E-05   -.59303E-04
   6  Prefactor     .10000E-03    8.3696        .11115E-06** at limit **
   7  Prefactor     .10000E-03    14.415        .81181E-07** at limit **
   8  Prefactor     .10000E-03    21.508       -.37797E-05** at limit **
   9  Prefactor     41.902        49.140       -.84329E-05    .37661E-05
  10  Prefactor     .10000E-03    18.565        .13144E-04** at limit **
  11  Prefactor     .10000E-03    37.459       -.16319E-05** at limit **
  12  Prefactor     3.4239        9.5869        .11863E-05   -.15882E-03
  13  Prefactor     .10000E-03    1.5612        .17933E-06** at limit **
  14  Prefactor     11.192        34.964       -.46533E-05   -.85305E-05
  15  Prefactor     4.2260        123.70       -.13522E-04   -.12836E-04
  16  Prefactor     .10000E-03    28.610        .23489E-05** at limit **
  17  Prefactor     7.0366        62.013       -.50579E-05    .16692E-05
  18  norm          2.3469        2.1160        .15424E-06   -.22205E-03
  19  norm          11.668        17.713       -.66105E-05   -.21855E-04
  20  Prefactor     .10000E-03    3.9705        .56244E-07** at limit **
  21  Prefactor     .10000E-03    3.9535       -.37639E-07** at limit **
  22  Normalizat    1.1012        .25276        .57698E-05   -.11516E-03
  23  Prefactor     .89386        .10434        .28466E-07    .19959E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.9016
  Prefactor  = 0.0711383
  Prefactor  = 55.6021
  Prefactor  = 0.0001
  Prefactor  = 4.62819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.9016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42394
  Prefactor  = 0.0001
  Prefactor  = 11.1917
  Prefactor  = 4.22605
  Prefactor  = 0.0001
  Prefactor  = 7.03661
  norm       = 2.34687
  norm       = 11.6681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10117
  Prefactor  = 0.89386
 **********
 **   18 **HESSE 
 **********

 FCN=   7219.977     FROM HESSE     STATUS=OK           380 CALLS     3323 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.902        13.921        .94654E-04   -1.4862    
   2  Prefactor     .71138E-01    7.6932        .54943E-01   -1.5655    
   3  Prefactor     55.602        34.881        .53800E-04   -1.4215    
   4  Prefactor     .10000E-03    18.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6282        22.279        .18671E-03   -1.5278    
   6  Prefactor     .10000E-03    8.3712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.902        48.945        .61900E-04   -1.4412    
  10  Prefactor     .10000E-03    18.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    37.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4239        9.5339        .21867E-03   -1.5338    
  13  Prefactor     .10000E-03    3.2744        .19777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.192        34.842        .11987E-03   -1.5039    
  15  Prefactor     4.2260        121.60        .19317E-03   -1.5297    
  16  Prefactor     .10000E-03    28.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.0366        61.626        .15091E-03   -1.5177    
  18  norm          2.3469        2.1037        .10971E-03   -1.5402    
  19  norm          11.668        17.647        .11722E-03   -1.5025    
  20  Prefactor     .10000E-03    3.9826        .16503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.9645        .16499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1012        .30555        .34353E-03   -.89714    
  23  Prefactor     .89386        .12734        .17325E-03   -.96356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65903e-10
Minuit parameter uncertainties:
  1  13.9231
  2  1.47872
  3  34.8937
  4  1.35979e-05
  5  20.321
  6  2.46629e-05
  7  1.03586e-05
  8  1.22847e-05
  9  48.9917
  10  7.91259e-05
  11  2.20508e-05
  12  9.53815
  13  3.40331e-05
  14  34.9058
  15  45.4389
  16  5.46417e-07
  17  41.7055
  18  2.10379
  19  17.6553
  20  1.45278e-05
  21  7.03014e-06
  22  0.306047
  23  0.127381
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.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:  8.939e-01  1.274e-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.101e+00  3.060e-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: 7.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427089/likelihoodResults_412214401_412473601_4FGL_J2118.0+0019_daily_bin667.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) = 7219.97746755
delta logL = -0.00022121218808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7219.97725291
delta logL = -6.57106920698e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5426       1.0000          .0000       10.000    
     3 'Normalizat'    1.1015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89355       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=   7219.977     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      263 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    105.44        .18142E-01** at limit **
   2  Index         2.0247        8.2377        .50000        .31109E-06
   3  Normalizat    1.1012        .10653E-01    .34352E-03   -.23950E-03
   4  Prefactor     .89386        .49264E-02    .17325E-03   -.47235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.02468
  Normalizat = 1.10117
  Prefactor  = 0.893857
 **********
 **   18 **HESSE 
 **********

 FCN=   7219.977     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      292 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    514.59        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0247        7.1425        .50000       -.63735    
   3  Normalizat    1.1012        .23958E-01    .13741E-04   -.89714    
   4  Prefactor     .89386        .11079E-01    .34651E-04   -.96356    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.99991e-09
Minuit parameter uncertainties:
  1  9.21024e-05
  2  981.057
  3  0.0239584
  4  0.011079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427089': 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) = 7219.97724562
delta logL = 7.21106516721e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  8.939e-01  1.108e-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.101e+00  2.396e-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/427089/cmap_HighResolution_412214401_412473601_4FGL_J2118.0+0019_daily_bin667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', job_status='DONE', photon_flux_upper_limit='7.13e-08', time_completed='2021-09-26 10:10:59.602324', job_id='427089', GAL2='0.89', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632676259.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='7.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='667' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:10:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 427089: <4FGL_J2118.0+0019_daily_bin667> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin667 319.505 0.3295 412214401 412473601 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 :                                   771.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            934 sec.

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

