/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 6 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 = 7659
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2118.0+0019_daily_bin240
RA = 319.505, Dec = 0.3295
tmin = 301536001, tmax = 301795201
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='422914', job_status='RUN', time_executed='2021-09-26 09:43:00.313339', time_epoch_executed='1632674580.31' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422914

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422914/ft1_4FGL_J2118.0+0019_daily_bin240.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422914/ft2_4FGL_J2118.0+0019_daily_bin240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422914/ft1_4FGL_J2118.0+0019_daily_bin240.fits outfile=/scratch/kocevski/422914/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin240.fits ra=319.505 dec=0.3295 rad=12.0 tmin=301536001.0 tmax=301795201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.62
user 4.34
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422914/ft1_filtered_4FGL_J2118.0+0019_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/422914/ft2_4FGL_J2118.0+0019_daily_bin240.fits sctable="SC_DATA" expcube=/scratch/kocevski/422914/ltcube_301536001_301795201_4FGL_J2118.0+0019_daily_bin240.fits outfile=/scratch/kocevski/422914/expmap_301536001_301795201_4FGL_J2118.0+0019_daily_bin240.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/422914/ltcube_301536001_301795201_4FGL_J2118.0+0019_daily_bin240.fits
.....................!
real 192.48
user 185.78
sys 6.11

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/422914/ft1_filtered_4FGL_J2118.0+0019_daily_bin240.fits scfile=/scratch/kocevski/422914/ft2_4FGL_J2118.0+0019_daily_bin240.fits outfile=/scratch/kocevski/422914/cmap_301536001_301795201_4FGL_J2118.0+0019_daily_bin240.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/422914/ft1_filtered_4FGL_J2118.0+0019_daily_bin240.fits scfile=/scratch/kocevski/422914/ft2_4FGL_J2118.0+0019_daily_bin240.fits outfile=/scratch/kocevski/422914/cmap_HighResolution_301536001_301795201_4FGL_J2118.0+0019_daily_bin240.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3720       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.851       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.309       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.517       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.343       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4487       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21738E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.384       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    102.50       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11781E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9194       1.0000         .10000E-03   10000.    
    19 'norm      '    .12467E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0953       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83077       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=   6777.063     FROM MIGRAD    STATUS=CONVERGED    901 CALLS     3347 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.974        .18142E-02** at limit **
   2  Prefactor     .10000E-03    2.9096        .13598E-02** at limit **
   3  Prefactor     9.3734        17.083        .13091E-03   -.11984E-04
   4  Prefactor     .10000E-03    14.358        .18142E-02** at limit **
   5  Prefactor     29.843        29.417        .73331E-04   -.51160E-05
   6  Prefactor     19.305        21.284        .91148E-04   -.33427E-05
   7  Prefactor     .10000E-03    26.927        .18142E-02** at limit **
   8  Prefactor     15.477        57.177        .10168E-03   -.11628E-04
   9  Prefactor     38.340        25.707        .64727E-04   -.12822E-04
  10  Prefactor     5.4363        19.967        .17214E-03   -.20473E-05
  11  Prefactor     .10000E-03    31.340        .12797    ** at limit **
  12  Prefactor     .10000E-03    1.4945        .98202E-03** at limit **
  13  Prefactor     .10000E-03    2.2313        .18326E-02** at limit **
  14  Prefactor     13.463        34.476        .10949E-03   -.63339E-04
  15  Prefactor     .10000E-03    13.497        .18142E-02** at limit **
  16  Prefactor     102.53        209.81        .39714E-04    .63550E-05
  17  Prefactor     .10000E-03    43.732        .18142E-02** at limit **
  18  norm          1.9219        6.4529        .24520E-03    .36813E-04
  19  norm          .10000E-03    29.759        .18142E-02** at limit **
  20  Prefactor     .10000E-03    8.2293        .18142E-02** at limit **
  21  Prefactor     .10000E-03    5.2268        .18142E-02** at limit **
  22  Normalizat    1.0950        .28991        .32831E-03   -.35494E-04
  23  Prefactor     .83099        .12301        .17015E-03   -.31530E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.37339
  Prefactor  = 0.0001
  Prefactor  = 29.8427
  Prefactor  = 19.3049
  Prefactor  = 0.0001
  Prefactor  = 15.4772
  Prefactor  = 38.34
  Prefactor  = 5.43627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4629
  Prefactor  = 0.0001
  Prefactor  = 102.533
  Prefactor  = 0.0001
  norm       = 1.92187
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09498
  Prefactor  = 0.830992
 **********
 **   18 **HESSE 
 **********

 FCN=   6777.063     FROM HESSE     STATUS=OK           356 CALLS     3703 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.978        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.9106        .27195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3734        17.080        .52364E-05   -1.5096    
   4  Prefactor     .10000E-03    14.358        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.843        29.415        .29333E-05   -1.4615    
   6  Prefactor     19.305        21.283        .18230E-04   -1.4829    
   7  Prefactor     .10000E-03    26.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.477        57.163        .40671E-05   -1.4921    
   9  Prefactor     38.340        25.703        .25891E-05   -1.4469    
  10  Prefactor     5.4363        19.967        .68857E-05   -1.5242    
  11  Prefactor     .10000E-03    30.637        .13015       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4945        .19640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2348        .36652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.463        34.469        .43795E-05   -1.4974    
  15  Prefactor     .10000E-03    13.497        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     102.53        209.08        .79428E-05   -1.3679    
  17  Prefactor     .10000E-03    43.736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9219        6.4310        .98081E-05   -1.5431    
  19  norm          .10000E-03    29.767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.2369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.2274        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0950        .29007        .13132E-04   -.89913    
  23  Prefactor     .83099        .12312        .34031E-04   -.98596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68697e-10
Minuit parameter uncertainties:
  1  7.28435e-06
  2  4.46098e-06
  3  17.0885
  4  9.10595e-06
  5  29.4297
  6  21.2911
  7  2.39945e-05
  8  57.366
  9  25.7103
  10  19.9911
  11  5.81162e-05
  12  2.92698e-07
  13  4.0613e-05
  14  34.5195
  15  2.77134e-06
  16  210.612
  17  5.52958e-05
  18  6.43327
  19  0.000108957
  20  1.82893e-05
  21  4.71543e-06
  22  0.290497
  23  0.123158
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.548e+01  5.737e+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:  8.310e-01  1.232e-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.095e+00  2.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 319.505 0.330
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422914/likelihoodResults_301536001_301795201_4FGL_J2118.0+0019_daily_bin240.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) = 6776.897019
delta logL = 0.166445683013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6776.89646758
delta logL = 0.166997104978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.854       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8432       1.0000          .0000       10.000    
     3 'Normalizat'    1.1050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82431       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=   6776.896     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      305 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.709        68.209        .31746E-03    .21845E-05
   2  Index         1.8430        .82241        .12108E-01   -.21028E-03
   3  Normalizat    1.1047        .26161        .32698E-03    .34178E-04
   4  Prefactor     .82429        .12086        .17073E-03   -.91690E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.7086
  Index      = 1.84302
  Normalizat = 1.10468
  Prefactor  = 0.824285
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.896     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.709        68.854        .12699E-04   -1.4447    
   2  Index         1.8430        .83070        .24216E-02   -.68335    
   3  Normalizat    1.1047        .26183        .13079E-04   -.89602    
   4  Prefactor     .82429        .12096        .34147E-04   -.98839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91399e-11
Minuit parameter uncertainties:
  1  68.9925
  2  0.837194
  3  0.26214
  4  0.120997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422914': 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) = 6776.89646075
delta logL = 0.167003934354

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  3.971e+01  6.899e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.843e+00  8.372e-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:  8.243e-01  1.210e-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.105e+00  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 319.505 0.330

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/422914/cmap_HighResolution_301536001_301795201_4FGL_J2118.0+0019_daily_bin240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.67e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-26 09:56:05.043702', job_id='422914', GAL2='0.82', fit_tolerance='1e-08', EG2='1.10', EG='1.09', time_epoch_completed='1632675365.04', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.67e-01', ts2='0.42', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='240' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 09:56:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 422914: <4FGL_J2118.0+0019_daily_bin240> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin240> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 09:40:12 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 09:42:44 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:42:44 2021
Terminated at Sun Sep 26 09:56:05 2021
Results reported at Sun Sep 26 09:56:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin240 319.505 0.3295 301536001 301795201 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 :                                   780.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            953 sec.

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

