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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin625
RA = 319.505, Dec = 0.3295
tmin = 401328001, tmax = 401587201
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='427020', job_status='RUN', time_executed='2021-09-26 09:59:19.501512', time_epoch_executed='1632675559.5' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427020

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427020/ft1_4FGL_J2118.0+0019_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427020/ft2_4FGL_J2118.0+0019_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427020/ft1_4FGL_J2118.0+0019_daily_bin625.fits outfile=/scratch/kocevski/427020/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin625.fits ra=319.505 dec=0.3295 rad=12.0 tmin=401328001.0 tmax=401587201.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.50
user 3.29
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/427020/ft2_4FGL_J2118.0+0019_daily_bin625.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/427020/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin625.fits evtable="EVENTS" outfile="/scratch/kocevski/427020/ft1_filtered_4FGL_J2118.0+0019_daily_bin625.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.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427020/ft1_filtered_4FGL_J2118.0+0019_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/427020/ft2_4FGL_J2118.0+0019_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/427020/ltcube_401328001_401587201_4FGL_J2118.0+0019_daily_bin625.fits outfile=/scratch/kocevski/427020/expmap_401328001_401587201_4FGL_J2118.0+0019_daily_bin625.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/427020/ltcube_401328001_401587201_4FGL_J2118.0+0019_daily_bin625.fits
.....................!
real 191.45
user 185.91
sys 4.24

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/427020/ft1_filtered_4FGL_J2118.0+0019_daily_bin625.fits scfile=/scratch/kocevski/427020/ft2_4FGL_J2118.0+0019_daily_bin625.fits outfile=/scratch/kocevski/427020/cmap_401328001_401587201_4FGL_J2118.0+0019_daily_bin625.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.64
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427020/ft1_filtered_4FGL_J2118.0+0019_daily_bin625.fits scfile=/scratch/kocevski/427020/ft2_4FGL_J2118.0+0019_daily_bin625.fits outfile=/scratch/kocevski/427020/cmap_HighResolution_401328001_401587201_4FGL_J2118.0+0019_daily_bin625.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.077       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.410       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.902       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.661       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6882       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.082       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.310       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1717       1.0000         .10000E-03   10000.    
    19 'norm      '    19.029       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3087       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.213       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .44097       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0124       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=   7577.763     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2550 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    29.078        .46138E-06** at limit **
   2  Prefactor     .10000E-03    3.0546        .45919E-06** at limit **
   3  Prefactor     .10000E-03    10.675        .69861E-06** at limit **
   4  Prefactor     .10000E-03    14.839       -.29275E-06** at limit **
   5  Prefactor     37.069        26.658        .88304E-06    .69651E-04
   6  Prefactor     .10000E-03    10.225       -.61850E-06** at limit **
   7  Prefactor     .10000E-03    33.213       -.23365E-06** at limit **
   8  Prefactor     .10000E-03    36.577       -.78744E-06** at limit **
   9  Prefactor     22.408        16.728        .14162E-06    .28008E-05
  10  Prefactor     26.896        20.014        .27132E-06    .83509E-04
  11  Prefactor     12.660        26.537        .21529E-05    .33521E-03
  12  Prefactor     1.6842        5.5282        .11497E-05    .94015E-04
  13  Prefactor     .10000E-03    .92203       -.14502E-05** at limit **
  14  Prefactor     14.062        29.156        .32739E-05    .27576E-03
  15  Prefactor     26.308        25.168        .71888E-06    .24285E-03
  16  Prefactor     .10000E-03    54.838        .46544E-06** at limit **
  17  Prefactor     .10000E-03    17.865        .14828E-06** at limit **
  18  norm          3.1717        2.4228        .31365E-07    .52242E-04
  19  norm          19.021        18.376       -.17874E-07    .31028E-04
  20  Prefactor     2.3082        4.6436        .36970E-05   -.97791E-03
  21  Prefactor     24.211        11.998        .52595E-07    .22997E-03
  22  Normalizat    .44126        .23715       -.21548E-05    .14104E-03
  23  Prefactor     1.0124        .10486       -.44953E-07    .19261E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.4078
  Prefactor  = 26.8965
  Prefactor  = 12.6601
  Prefactor  = 1.6842
  Prefactor  = 0.000100001
  Prefactor  = 14.0625
  Prefactor  = 26.3083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.17168
  norm       = 19.0214
  Prefactor  = 2.3082
  Prefactor  = 24.2107
  Normalizat = 0.441265
  Prefactor  = 1.01239
 **********
 **   18 **HESSE 
 **********

 FCN=   7577.763     FROM HESSE     STATUS=OK           364 CALLS     2914 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    29.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1653        .29728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.069        26.573        .65820E-04   -1.4490    
   6  Prefactor     .10000E-03    10.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.408        16.685        .84613E-04   -1.4761    
  10  Prefactor     26.896        19.983        .77238E-04   -1.4670    
  11  Prefactor     12.660        26.664        .11258E-03   -1.4996    
  12  Prefactor     1.6842        5.4955        .32403E-03   -1.5448    
  13  Prefactor     .10000E-03    1.3861        .16006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.062        29.697        .10673E-03   -1.4958    
  15  Prefactor     26.308        25.213        .78100E-04   -1.4682    
  16  Prefactor     .10000E-03    54.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1717        2.4180        .11332E-03   -1.5352    
  19  norm          19.021        18.336        .91816E-04   -1.4835    
  20  Prefactor     2.3082        4.8180        .13381E-02   -1.5404    
  21  Prefactor     24.211        11.980        .81405E-04   -1.4723    
  22  Normalizat    .44126        .25242        .45517E-03   -1.1522    
  23  Prefactor     1.0124        .11505        .14988E-03   -.92318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09119e-09
Minuit parameter uncertainties:
  1  0.000191018
  2  5.13835e-05
  3  9.09682e-07
  4  0.000128079
  5  26.5819
  6  3.25706e-05
  7  8.32916e-05
  8  0.000278416
  9  16.6888
  10  19.9882
  11  26.6888
  12  5.49718
  13  8.44299e-05
  14  29.7283
  15  25.2232
  16  0.000169336
  17  0.000148505
  18  2.41803
  19  18.3415
  20  4.81883
  21  11.9812
  22  0.253078
  23  0.115076
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.784e-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:  1.012e+00  1.151e-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:  4.413e-01  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 319.505 0.330
Photon Flux Upper Limit: 8.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427020/likelihoodResults_401328001_401587201_4FGL_J2118.0+0019_daily_bin625.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) = 7577.76267693
delta logL = -0.000130536876895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7577.76254656
delta logL = -1.66341123986e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2356       1.0000          .0000       10.000    
     3 'Normalizat'    .44126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0124       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=   7577.763     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      277 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10146E-03    407.22        .18142E-02** at limit **
   2  Index         3.1666        6.8408        .50000        .33735E-05
   3  Normalizat    .44126        .17148E-01    .45516E-03    .34484E-03
   4  Prefactor     1.0124        .84143E-02    .14988E-03    .11248E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101455
  Index      = 3.16657
  Normalizat = 0.441263
  Prefactor  = 1.0124
 **********
 **   18 **HESSE 
 **********

 FCN=   7577.763     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10146E-03    1646.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1666        8.4059        .50000       -.37545    
   3  Normalizat    .44126        .36949E-01    .18206E-04   -1.1522    
   4  Prefactor     1.0124        .18131E-01    .29976E-04   -.92317    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.88186e-09
Minuit parameter uncertainties:
  1  0.100805
  2  2095.77
  3  0.0369513
  4  0.0181306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427020': 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) = 7577.76254653
delta logL = -1.33435605676e-07

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.015e-04  1.008e-01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  3.167e+00  2.096e+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:  1.012e+00  1.813e-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:  4.413e-01  3.695e-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/427020/cmap_HighResolution_401328001_401587201_4FGL_J2118.0+0019_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.25e-08', time_completed='2021-09-26 10:11:55.936051', job_id='427020', GAL2='1.01', fit_tolerance='1e-08', EG2='0.44', EG='0.44', time_epoch_completed='1632676315.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-1.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='625' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:11:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 427020: <4FGL_J2118.0+0019_daily_bin625> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin625 319.505 0.3295 401328001 401587201 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 :                                   753.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            997 sec.

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

