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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin635
RA = 319.505, Dec = 0.3295
tmin = 403920001, tmax = 404179201
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='427035', job_status='RUN', time_executed='2021-09-26 09:58:31.917109', time_epoch_executed='1632675511.92' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427035

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427035/ft1_4FGL_J2118.0+0019_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427035/ft2_4FGL_J2118.0+0019_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427035/ft1_4FGL_J2118.0+0019_daily_bin635.fits outfile=/scratch/kocevski/427035/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin635.fits ra=319.505 dec=0.3295 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.10
user 9.68
sys 0.32

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427035/ft1_filtered_4FGL_J2118.0+0019_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/427035/ft2_4FGL_J2118.0+0019_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/427035/ltcube_403920001_404179201_4FGL_J2118.0+0019_daily_bin635.fits outfile=/scratch/kocevski/427035/expmap_403920001_404179201_4FGL_J2118.0+0019_daily_bin635.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/427035/ltcube_403920001_404179201_4FGL_J2118.0+0019_daily_bin635.fits
.....................!
real 192.09
user 185.94
sys 5.18

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/427035/ft1_filtered_4FGL_J2118.0+0019_daily_bin635.fits scfile=/scratch/kocevski/427035/ft2_4FGL_J2118.0+0019_daily_bin635.fits outfile=/scratch/kocevski/427035/cmap_403920001_404179201_4FGL_J2118.0+0019_daily_bin635.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427035/ft1_filtered_4FGL_J2118.0+0019_daily_bin635.fits scfile=/scratch/kocevski/427035/ft2_4FGL_J2118.0+0019_daily_bin635.fits outfile=/scratch/kocevski/427035/cmap_HighResolution_403920001_404179201_4FGL_J2118.0+0019_daily_bin635.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.169       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5771       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    51.029       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.812       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11309E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.086       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4399       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.967       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4530       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .60165       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=   3137.211     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2541 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.5875        .74177E-07** at limit **
   2  Prefactor     .10000E-03    2.3120        .69525E-09** at limit **
   3  Prefactor     .10000E-03    12.308       -.43255E-07** at limit **
   4  Prefactor     36.174        60.636        .48926E-06    .61495E-05
   5  Prefactor     5.5859        37.788       -.60345E-05   -.25112E-04
   6  Prefactor     .10000E-03    122.88       -.21568E-05** at limit **
   7  Prefactor     .10000E-03    28.724       -.10931E-06** at limit **
   8  Prefactor     51.078        101.69       -.34699E-05    .41732E-04
   9  Prefactor     .10000E-03    23.387        .18404E-07** at limit **
  10  Prefactor     .10000E-03    14.159        .11551E-06** at limit **
  11  Prefactor     12.566        107.04        .32969E-05    .71582E-04
  12  Prefactor     .10000E-03    4.5919        .39892E-07** at limit **
  13  Prefactor     .10000E-03    2.8504       -.51305E-05** at limit **
  14  Prefactor     .10000E-03    18.458       -.13678E-05** at limit **
  15  Prefactor     25.205        92.124       -.35017E-05    .94837E-04
  16  Prefactor     .10000E-03    189.64        .12720E-05** at limit **
  17  Prefactor     .10000E-03    33.407        .14036E-06** at limit **
  18  norm          4.4400        3.1906        .19716E-06    .12981E-03
  19  norm          .10000E-03    22.995        .24888E-06** at limit **
  20  Prefactor     .10000E-03    3.8737        .12866E-09** at limit **
  21  Prefactor     18.960        21.283       -.32989E-06    .49364E-04
  22  Normalizat    1.4532        .36843        .86532E-05   -.21751E-04
  23  Prefactor     .60162        .15684       -.52551E-05    .34196E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.1736
  Prefactor  = 5.58591
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 51.0782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5661
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 25.2046
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 4.43999
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9603
  Normalizat = 1.45316
  Prefactor  = 0.601621
 **********
 **   18 **HESSE 
 **********

 FCN=   3137.211     FROM HESSE     STATUS=OK           356 CALLS     2897 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.5977        .16031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3147        .83172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.174        60.683        .66637E-04   -1.4504    
   5  Prefactor     5.5859        37.104        .17012E-03   -1.5235    
   6  Prefactor     .10000E-03    123.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     51.078        102.10        .56141E-04   -1.4277    
   9  Prefactor     .10000E-03    23.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.566        110.39        .11191E-03   -1.4999    
  12  Prefactor     .10000E-03    4.5998        .11722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0239        .93998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.205        91.218        .79979E-04   -1.4703    
  16  Prefactor     .10000E-03    189.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4400        3.1938        .82304E-04   -1.5287    
  19  norm          .10000E-03    23.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8843        .10766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.960        21.327        .91966E-04   -1.4837    
  22  Normalizat    1.4532        .42290        .27740E-03   -.79103    
  23  Prefactor     .60162        .17898        .18596E-03   -1.0752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.618e-09
Minuit parameter uncertainties:
  1  4.23738e-06
  2  1.69332e-06
  3  9.112e-06
  4  60.7867
  5  28.8188
  6  0.000875827
  7  7.3192e-05
  8  102.454
  9  6.4567e-06
  10  2.94712e-06
  11  74.673
  12  3.22122e-06
  13  8.38873e-05
  14  7.11854e-05
  15  91.7288
  16  0.00154458
  17  4.663e-05
  18  3.19391
  19  1.3273e-05
  20  2.66304e-06
  21  21.3352
  22  0.42393
  23  0.179153
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  5.108e+01  1.025e+02  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.016e-01  1.792e-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.453e+00  4.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/427035/likelihoodResults_403920001_404179201_4FGL_J2118.0+0019_daily_bin635.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) = 3136.05192969
delta logL = 1.15943332792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3136.03613931
delta logL = 1.17522371085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7310       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7352       1.0000          .0000       10.000    
     3 'Normalizat'    1.2669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65814       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=   3136.036     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      296 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7359        196.71        .10773E-03    .24685E-02
   2  Index         4.7354        7.2327        .41295E-02    .62358E-03
   3  Normalizat    1.2670        .39115        .29303E-03    .72502E-03
   4  Prefactor     .65801        .17400        .17820E-03    .97117E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.7359
  Index      = 4.73535
  Normalizat = 1.26705
  Prefactor  = 0.658012
 **********
 **   18 **HESSE 
 **********

 FCN=   3136.036     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7359        24.228        .21545E-04   -1.5117    
   2  Index         4.7354        1.6927        .16518E-03   -.52955E-01
   3  Normalizat    1.2670        .40887        .58605E-04   -.84555    
   4  Prefactor     .65801        .18034        .35639E-04   -1.0520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21634e-09
Minuit parameter uncertainties:
  1  24.2556
  2  1.72695
  3  0.409919
  4  0.1805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427035': 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) = 3136.03613806
delta logL = 1.17522496139

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  8.736e+00  2.426e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  4.735e+00  1.727e+00  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.580e-01  1.805e-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.267e+00  4.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 319.505 0.330
Photon Index (Free Index): 4.74 +/- 1.73
Photon Flux (Free Index): 1.79e-07 +/- 1.29e-07
Energy Flux (Free Index): 2.44e-05 +/- 1.75e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/427035/cmap_HighResolution_403920001_404179201_4FGL_J2118.0+0019_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-02', comment='SUCCESS', energy_flux2='2.44e-05', dlogl='1.18e+00', photon_flux2='1.79e-07', job_status='DONE', time_completed='2021-09-26 10:07:23.861120', photon_index_error2='1.73', photon_index2='4.74', ts='0.33', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='2.28e-07', energy_flux_error2='1.75e-05', EG='1.45', time_epoch_completed='1632676043.86', return_code='0', job_id='427035', GAL2='0.66', EG2='1.27', return_code2='0', photon_flux_error2='1.29e-07', ts2='2.96', photon_index='2.57' WHERE bin_id='635' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:07:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 427035: <4FGL_J2118.0+0019_daily_bin635> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin635 319.505 0.3295 403920001 404179201 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 :                                   528.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            723 sec.

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

