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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin605
RA = 319.505, Dec = 0.3295
tmin = 396144001, tmax = 396403201
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='426988', job_status='RUN', time_executed='2021-09-26 09:57:50.488914', time_epoch_executed='1632675470.49' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426988/ft1_4FGL_J2118.0+0019_daily_bin605.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426988/ft2_4FGL_J2118.0+0019_daily_bin605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426988/ft1_4FGL_J2118.0+0019_daily_bin605.fits outfile=/scratch/kocevski/426988/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin605.fits ra=319.505 dec=0.3295 rad=12.0 tmin=396144001.0 tmax=396403201.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.37
user 3.06
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/426988/ft1_filtered_4FGL_J2118.0+0019_daily_bin605.fits" evtable="EVENTS" scfile=/scratch/kocevski/426988/ft2_4FGL_J2118.0+0019_daily_bin605.fits sctable="SC_DATA" outfile=/scratch/kocevski/426988/ltcube_396144001_396403201_4FGL_J2118.0+0019_daily_bin605.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/426988/ft2_4FGL_J2118.0+0019_daily_bin605.fits
.....................!
real 14.77
user 14.33
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426988/ft1_filtered_4FGL_J2118.0+0019_daily_bin605.fits evtable="EVENTS" scfile=/scratch/kocevski/426988/ft2_4FGL_J2118.0+0019_daily_bin605.fits sctable="SC_DATA" expcube=/scratch/kocevski/426988/ltcube_396144001_396403201_4FGL_J2118.0+0019_daily_bin605.fits outfile=/scratch/kocevski/426988/expmap_396144001_396403201_4FGL_J2118.0+0019_daily_bin605.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/426988/ltcube_396144001_396403201_4FGL_J2118.0+0019_daily_bin605.fits
.....................!
real 191.89
user 186.52
sys 4.93

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/426988/ft1_filtered_4FGL_J2118.0+0019_daily_bin605.fits scfile=/scratch/kocevski/426988/ft2_4FGL_J2118.0+0019_daily_bin605.fits outfile=/scratch/kocevski/426988/cmap_396144001_396403201_4FGL_J2118.0+0019_daily_bin605.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426988/ft1_filtered_4FGL_J2118.0+0019_daily_bin605.fits scfile=/scratch/kocevski/426988/ft2_4FGL_J2118.0+0019_daily_bin605.fits outfile=/scratch/kocevski/426988/cmap_HighResolution_396144001_396403201_4FGL_J2118.0+0019_daily_bin605.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.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6150       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.265       1.0000         .10000E-03   10000.    
     8 'Prefactor '    102.22       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6439       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    46.045       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.0676       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0610       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8094       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5349       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .68117       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=   6938.265     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2489 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    29.460        .40594E-05** at limit **
   2  Prefactor     1.6156        3.9417        .42614E-06   -.23432E-03
   3  Prefactor     .10000E-03    5.6281        .12997E-07** at limit **
   4  Prefactor     .10000E-03    19.389        .72023E-06** at limit **
   5  Prefactor     .10000E-03    11.765       -.74570E-06** at limit **
   6  Prefactor     .10000E-03    8.9678       -.13822E-05** at limit **
   7  Prefactor     30.246        53.245       -.80915E-05   -.25859E-03
   8  Prefactor     102.21        75.399       -.12596E-05   -.58365E-04
   9  Prefactor     .10000E-03    23.899       -.23374E-05** at limit **
  10  Prefactor     .10000E-03    9.0832        .16422E-05** at limit **
  11  Prefactor     .10000E-03    18.895        .11355E-05** at limit **
  12  Prefactor     6.6436        5.4956       -.53348E-06   -.40396E-03
  13  Prefactor     .10000E-03    1.4014       -.17016E-07** at limit **
  14  Prefactor     .10000E-03    23.623       -.24566E-05** at limit **
  15  Prefactor     46.030        44.141       -.45339E-05   -.31527E-03
  16  Prefactor     .10000E-03    71.990       -.10199E-05** at limit **
  17  Prefactor     .10000E-03    14.347        .52886E-06** at limit **
  18  norm          3.0650        3.2409        .71348E-07   -.47650E-04
  19  norm          2.0503        55.668       -.95102E-06   -.38761E-04
  20  Prefactor     .10000E-03    1.6958       -.19111E-07** at limit **
  21  Prefactor     3.8091        9.4485        .56328E-05   -.89342E-03
  22  Normalizat    1.5351        .23464        .84802E-06   -.70746E-04
  23  Prefactor     .68107        .10179       -.32137E-06    .25519E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  Prefactor  = 1.61559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.2459
  Prefactor  = 102.21
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.6436
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 46.0303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.06502
  norm       = 2.05033
  Prefactor  = 0.0001
  Prefactor  = 3.80906
  Normalizat = 1.53512
  Prefactor  = 0.68107
 **********
 **   18 **HESSE 
 **********

 FCN=   6938.265     FROM HESSE     STATUS=OK           360 CALLS     2849 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    30.622        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6156        3.9349        .24903E-03   -1.5454    
   3  Prefactor     .10000E-03    5.6365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.0158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.246        55.406        .72829E-04   -1.4607    
   8  Prefactor     102.21        75.865        .39768E-04   -1.3683    
   9  Prefactor     .10000E-03    24.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6436        5.5217        .15568E-03   -1.5192    
  13  Prefactor     .10000E-03    1.4541        .19231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     46.030        45.211        .59088E-04   -1.4350    
  16  Prefactor     .10000E-03    72.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.0650        3.2068        .14349E-03   -1.5358    
  19  norm          2.0503        55.371        .28785E-03   -1.5422    
  20  Prefactor     .10000E-03    1.6971        .10593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.8091        10.831        .10340E-02   -1.5318    
  22  Normalizat    1.5351        .28364        .29508E-03   -.76796    
  23  Prefactor     .68107        .12268        .18904E-03   -1.0427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32153e-09
Minuit parameter uncertainties:
  1  0.000568251
  2  3.93549
  3  5.41878e-06
  4  9.83107e-05
  5  7.31819e-05
  6  0.000129029
  7  55.5003
  8  75.9368
  9  0.000372508
  10  0.000158474
  11  0.000184055
  12  5.52215
  13  7.05652e-06
  14  0.000386191
  15  45.2451
  16  0.000286548
  17  6.53475e-05
  18  3.20702
  19  21.3313
  20  1.22077e-06
  21  10.8364
  22  0.283935
  23  0.122725
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.022e+02  7.594e+01  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:  6.811e-01  1.227e-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.535e+00  2.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.62
Ra Dec: 319.505 0.330
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 8.35e-08 +/- 6.20e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.67e-05

TS (Fixed Index): 2.62
Ra Dec: 319.505 0.330
Photon Flux Upper Limit: 2.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.62e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/426988/likelihoodResults_396144001_396403201_4FGL_J2118.0+0019_daily_bin605.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): 0
logL (Free Index) = 6938.19659471
delta logL = 0.0688017818829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6938.19270901
delta logL = 0.072687482967

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    112.63       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2847       1.0000          .0000       10.000    
     3 'Normalizat'    1.5608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67302       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=   6938.193     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      251 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     112.64        86.101        .37905E-04   -.57676E-03
   2  Index         2.2845        .71352        .90867E-02   -.40601E-03
   3  Normalizat    1.5616        .28134        .29304E-03    .34713E-03
   4  Prefactor     .67273        .12357        .19008E-03    .65281E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 112.643
  Index      = 2.28449
  Normalizat = 1.56161
  Prefactor  = 0.672726
 **********
 **   18 **HESSE 
 **********

 FCN=   6938.193     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     112.64        85.912        .75809E-05   -1.3581    
   2  Index         2.2845        .71105        .36347E-03   -.57413    
   3  Normalizat    1.5616        .28147        .58609E-04   -.76061    
   4  Prefactor     .67273        .12361        .38015E-04   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54601e-09
Minuit parameter uncertainties:
  1  86.0074
  2  0.714493
  3  0.28176
  4  0.12366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426988': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6938.19270513
delta logL = 0.07269136169

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.126e+02  8.601e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.284e+00  7.145e-01  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:  6.727e-01  1.237e-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.562e+00  2.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 319.505 0.330
Photon Index (Free Index): 2.28 +/- 0.71
Photon Flux (Free Index): 6.54e-08 +/- 7.09e-08
Energy Flux (Free Index): 2.54e-05 +/- 2.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/426988/cmap_HighResolution_396144001_396403201_4FGL_J2118.0+0019_daily_bin605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-02', comment='SUCCESS', photon_flux='8.35e-08', energy_flux2='2.54e-05', photon_flux_error='6.20e-08', dlogl='7.27e-02', energy_flux='2.25e-05', photon_flux2='6.54e-08', job_status='DONE', time_completed='2021-09-26 10:09:42.687246', photon_index_error2='0.71', photon_index2='2.28', ts='2.62', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='2.07e-07', energy_flux_error2='2.16e-05', EG='1.54', time_epoch_completed='1632676182.69', return_code='0', job_id='426988', GAL2='0.67', EG2='1.56', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='7.09e-08', ts2='2.74', photon_index='2.57' WHERE bin_id='605' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:09:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 426988: <4FGL_J2118.0+0019_daily_bin605> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin605 319.505 0.3295 396144001 396403201 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

