/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 25 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 = 7378
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2118.0+0019_daily_bin29
RA = 319.505, Dec = 0.3295
tmin = 246844801, tmax = 247104001
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='421558', job_status='RUN', time_executed='2021-09-26 09:36:50.578766', time_epoch_executed='1632674210.58' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='29'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/421558

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/421558/ft1_4FGL_J2118.0+0019_daily_bin29.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/421558/ft2_4FGL_J2118.0+0019_daily_bin29.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/421558/ft1_4FGL_J2118.0+0019_daily_bin29.fits outfile=/scratch/kocevski/421558/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin29.fits ra=319.505 dec=0.3295 rad=12.0 tmin=246844801.0 tmax=247104001.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 1.21
user 1.03
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/421558/ft1_filtered_4FGL_J2118.0+0019_daily_bin29.fits" evtable="EVENTS" scfile=/scratch/kocevski/421558/ft2_4FGL_J2118.0+0019_daily_bin29.fits sctable="SC_DATA" outfile=/scratch/kocevski/421558/ltcube_246844801_247104001_4FGL_J2118.0+0019_daily_bin29.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/421558/ft2_4FGL_J2118.0+0019_daily_bin29.fits
.....................!
real 12.93
user 12.58
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/421558/ft1_filtered_4FGL_J2118.0+0019_daily_bin29.fits evtable="EVENTS" scfile=/scratch/kocevski/421558/ft2_4FGL_J2118.0+0019_daily_bin29.fits sctable="SC_DATA" expcube=/scratch/kocevski/421558/ltcube_246844801_247104001_4FGL_J2118.0+0019_daily_bin29.fits outfile=/scratch/kocevski/421558/expmap_246844801_247104001_4FGL_J2118.0+0019_daily_bin29.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/421558/ltcube_246844801_247104001_4FGL_J2118.0+0019_daily_bin29.fits
.....................!
real 157.34
user 152.28
sys 4.70

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/421558/ft1_filtered_4FGL_J2118.0+0019_daily_bin29.fits scfile=/scratch/kocevski/421558/ft2_4FGL_J2118.0+0019_daily_bin29.fits outfile=/scratch/kocevski/421558/cmap_246844801_247104001_4FGL_J2118.0+0019_daily_bin29.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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/421558/ft1_filtered_4FGL_J2118.0+0019_daily_bin29.fits scfile=/scratch/kocevski/421558/ft2_4FGL_J2118.0+0019_daily_bin29.fits outfile=/scratch/kocevski/421558/cmap_HighResolution_246844801_247104001_4FGL_J2118.0+0019_daily_bin29.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.48
user 0.32
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.283       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.530       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11230E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6978       1.0000         .10000E-03   10000.    
     8 'Prefactor '    56.459       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.301       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.001       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28332E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.200       1.0000         .10000E-03   10000.    
    19 'norm      '    11.756       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97013       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99648       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=   9421.259     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2565 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.282        11.265        .11876E-07    .16508E-04
   2  Prefactor     .10000E-03    6.6821       -.41008E-05** at limit **
   3  Prefactor     20.537        16.461       -.93396E-07    .58592E-04
   4  Prefactor     .10000E-03    24.404       -.54014E-05** at limit **
   5  Prefactor     .10000E-03    54.093       -.17958E-04** at limit **
   6  Prefactor     .10000E-03    11.978        .47462E-05** at limit **
   7  Prefactor     2.6867        59.967       -.21113E-04   -.25743E-04
   8  Prefactor     56.460        46.499        .17433E-05    .33385E-04
   9  Prefactor     27.302        21.098       -.49112E-07    .29797E-06
  10  Prefactor     23.000        21.189       -.94684E-07    .38779E-04
  11  Prefactor     .10000E-03    16.484       -.40341E-05** at limit **
  12  Prefactor     .10000E-03    1.9293       -.71101E-07** at limit **
  13  Prefactor     .10000E-03    .77433       -.46819E-07** at limit **
  14  Prefactor     .10000E-03    8.8300       -.43817E-05** at limit **
  15  Prefactor     .10000E-03    27.237        .76685E-05** at limit **
  16  Prefactor     .10000E-03    48.792        .16910E-04** at limit **
  17  Prefactor     .10000E-03    15.554        .59349E-06** at limit **
  18  norm          13.200        3.9968        .13660E-07   -.18229E-03
  19  norm          11.758        16.438       -.82660E-07   -.60281E-04
  20  Prefactor     .10000E-03    7.0827        .61003E-05** at limit **
  21  Prefactor     .10000E-03    5.0270        .12315E-08** at limit **
  22  Normalizat    .96976        .21138        .10001E-06    .17791E-03
  23  Prefactor     .99664        .95365E-01    .17988E-06    .37255E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.2822
  Prefactor  = 0.0001
  Prefactor  = 20.5371
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.68668
  Prefactor  = 56.4604
  Prefactor  = 27.3016
  Prefactor  = 23.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2003
  norm       = 11.758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.969758
  Prefactor  = 0.996639
 **********
 **   18 **HESSE 
 **********

 FCN=   9421.259     FROM HESSE     STATUS=OK           364 CALLS     2929 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.282        11.265        .11430E-03   -1.5007    
   2  Prefactor     .10000E-03    6.9506        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.537        16.495        .88398E-04   -1.4801    
   4  Prefactor     .10000E-03    24.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    55.154        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6867        61.113        .24803E-03   -1.5380    
   8  Prefactor     56.460        46.541        .53388E-04   -1.4204    
   9  Prefactor     27.302        21.118        .76673E-04   -1.4662    
  10  Prefactor     23.000        21.194        .83520E-04   -1.4748    
  11  Prefactor     .10000E-03    16.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9406        .13164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8257        .16418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.8448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    48.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.200        3.9981        .10083E-03   -1.4981    
  19  norm          11.758        16.428        .11684E-03   -1.5022    
  20  Prefactor     .10000E-03    7.2865        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.0481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96976        .25181        .36530E-03   -.94051    
  23  Prefactor     .99664        .11511        .17052E-03   -.92842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43319e-10
Minuit parameter uncertainties:
  1  11.2668
  2  4.18994e-05
  3  16.4988
  4  2.46723e-06
  5  0.000411917
  6  2.3497e-05
  7  25.6566
  8  46.571
  9  21.1234
  10  21.2005
  11  3.72997e-06
  12  5.31009e-07
  13  3.20522e-06
  14  2.16359e-06
  15  2.00625e-05
  16  2.65817e-06
  17  1.20791e-05
  18  3.99823
  19  16.4342
  20  7.49441e-05
  21  3.03744e-06
  22  0.252117
  23  0.115137
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  5.646e+01  4.657e+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:  9.966e-01  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:  9.698e-01  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.42
Ra Dec: 319.505 0.330
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 4.61e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.02e-05

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

Saving results to:
/scratch/kocevski/421558/likelihoodResults_246844801_247104001_4FGL_J2118.0+0019_daily_bin29.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) = 9420.98383974
delta logL = 0.275443418854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9420.97351118
delta logL = 0.285771977218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.535       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1217       1.0000          .0000       10.000    
     3 'Normalizat'    .98792       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99111       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=   9420.974     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      293 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.533        56.644        .48840E-04    .46610E-03
   2  Index         2.1218        .57238        .10093E-01    .30169E-03
   3  Normalizat    .98766        .24190        .36230E-03   -.96459E-04
   4  Prefactor     .99122        .11459        .17091E-03   -.22228E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.5328
  Index      = 2.12178
  Normalizat = 0.987661
  Prefactor  = 0.991217
 **********
 **   18 **HESSE 
 **********

 FCN=   9420.974     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.533        56.902        .97680E-05   -1.4063    
   2  Index         2.1218        .57502        .40373E-03   -.61339    
   3  Normalizat    .98766        .24209        .14492E-04   -.93445    
   4  Prefactor     .99122        .11467        .34182E-04   -.93023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33382e-09
Minuit parameter uncertainties:
  1  56.9476
  2  0.576929
  3  0.242363
  4  0.114699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/421558': 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) = 9420.97351062
delta logL = 0.285772544321

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  6.753e+01  5.695e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.122e+00  5.769e-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:  9.912e-01  1.147e-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:  9.877e-01  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 319.505 0.330
Photon Index (Free Index): 2.12 +/- 0.58
Photon Flux (Free Index): 3.30e-08 +/- 3.57e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.70e-05

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/421558/cmap_HighResolution_246844801_247104001_4FGL_J2118.0+0019_daily_bin29.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.61e-08', energy_flux2='1.73e-05', photon_flux_error='3.80e-08', dlogl='2.86e-01', energy_flux='1.24e-05', photon_flux2='3.30e-08', job_status='DONE', time_completed='2021-09-26 09:48:58.831735', photon_index_error2='0.58', photon_index2='2.12', ts='2.42', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.70e-05', EG='0.97', time_epoch_completed='1632674938.83', return_code='0', job_id='421558', GAL2='0.99', EG2='0.99', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.57e-08', ts2='2.98', photon_index='2.57' WHERE bin_id='29' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 09:48:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 421558: <4FGL_J2118.0+0019_daily_bin29> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin29> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 09:35:16 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 09:36:17 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:36:17 2021
Terminated at Sun Sep 26 09:48:59 2021
Results reported at Sun Sep 26 09:48:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin29 319.505 0.3295 246844801 247104001 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 :                                   724.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            823 sec.

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

