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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin528
RA = 319.505, Dec = 0.3295
tmin = 376185601, tmax = 376444801
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='425764', job_status='RUN', time_executed='2021-09-26 09:55:39.463687', time_epoch_executed='1632675339.46' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425764/ft1_4FGL_J2118.0+0019_daily_bin528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425764/ft2_4FGL_J2118.0+0019_daily_bin528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425764/ft1_4FGL_J2118.0+0019_daily_bin528.fits outfile=/scratch/kocevski/425764/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin528.fits ra=319.505 dec=0.3295 rad=12.0 tmin=376185601.0 tmax=376444801.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 2.93
user 2.58
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425764/ft1_filtered_4FGL_J2118.0+0019_daily_bin528.fits" evtable="EVENTS" scfile=/scratch/kocevski/425764/ft2_4FGL_J2118.0+0019_daily_bin528.fits sctable="SC_DATA" outfile=/scratch/kocevski/425764/ltcube_376185601_376444801_4FGL_J2118.0+0019_daily_bin528.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/425764/ft2_4FGL_J2118.0+0019_daily_bin528.fits
.....................!
real 11.52
user 10.68
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425764/ft1_filtered_4FGL_J2118.0+0019_daily_bin528.fits evtable="EVENTS" scfile=/scratch/kocevski/425764/ft2_4FGL_J2118.0+0019_daily_bin528.fits sctable="SC_DATA" expcube=/scratch/kocevski/425764/ltcube_376185601_376444801_4FGL_J2118.0+0019_daily_bin528.fits outfile=/scratch/kocevski/425764/expmap_376185601_376444801_4FGL_J2118.0+0019_daily_bin528.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/425764/ltcube_376185601_376444801_4FGL_J2118.0+0019_daily_bin528.fits
.....................!
real 160.78
user 151.09
sys 4.14

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/425764/ft1_filtered_4FGL_J2118.0+0019_daily_bin528.fits scfile=/scratch/kocevski/425764/ft2_4FGL_J2118.0+0019_daily_bin528.fits outfile=/scratch/kocevski/425764/cmap_376185601_376444801_4FGL_J2118.0+0019_daily_bin528.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.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425764/ft1_filtered_4FGL_J2118.0+0019_daily_bin528.fits scfile=/scratch/kocevski/425764/ft2_4FGL_J2118.0+0019_daily_bin528.fits outfile=/scratch/kocevski/425764/cmap_HighResolution_376185601_376444801_4FGL_J2118.0+0019_daily_bin528.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1195       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.378       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11314E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.573       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1945       1.0000         .10000E-03   10000.    
    19 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .25946E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.559       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .61040       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0532       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=   6171.335     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2508 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1212        9.8621        .24464E-05    .25938E-03
   2  Prefactor     .10000E-03    2.5095       -.15395E-07** at limit **
   3  Prefactor     .10000E-03    22.401        .10158E-05** at limit **
   4  Prefactor     29.950        43.926        .18856E-05    .55948E-04
   5  Prefactor     .10000E-03    20.276       -.65535E-06** at limit **
   6  Prefactor     .10000E-03    7.2780        .47315E-09** at limit **
   7  Prefactor     .10000E-03    13.730        .90443E-06** at limit **
   8  Prefactor     .10000E-03    26.088        .82046E-07** at limit **
   9  Prefactor     .10000E-03    58.552        .22147E-05** at limit **
  10  Prefactor     .10000E-03    41.213       -.27440E-05** at limit **
  11  Prefactor     54.374        37.781        .81076E-08   -.70198E-04
  12  Prefactor     .10000E-03    3.3908       -.26281E-07** at limit **
  13  Prefactor     .10000E-03    .78618       -.56418E-08** at limit **
  14  Prefactor     .10000E-03    10.271        .17967E-06** at limit **
  15  Prefactor     .10000E-03    76.213       -.11704E-05** at limit **
  16  Prefactor     .10000E-03    67.009        .15599E-05** at limit **
  17  Prefactor     46.626        39.844        .11863E-05   -.56992E-04
  18  norm          1.1956        2.8401        .99616E-06    .13868E-03
  19  norm          .10000E-03    13.950       -.87383E-07** at limit **
  20  Prefactor     .10004E-03    7.3361        .28175E-05** at limit **
  21  Prefactor     11.562        11.852        .11535E-05    .45363E-04
  22  Normalizat    .61044        .23846       -.38611E-05   -.25919E-03
  23  Prefactor     1.0531        .11250        .14513E-06   -.62717E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.12116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 54.3737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.6264
  norm       = 1.19559
  norm       = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 11.5618
  Normalizat = 0.610439
  Prefactor  = 1.05315
 **********
 **   18 **HESSE 
 **********

 FCN=   6171.335     FROM HESSE     STATUS=OK           356 CALLS     2864 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1212        10.047        .75169E-03   -1.5174    
   2  Prefactor     .10000E-03    2.5339        .12148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.950        44.216        .73222E-04   -1.4613    
   5  Prefactor     .10000E-03    20.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    60.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    42.269        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.374        37.785        .54394E-04   -1.4232    
  12  Prefactor     .10000E-03    3.4085        .14124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .79079        .67932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    76.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    67.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     46.626        40.266        .58753E-04   -1.4341    
  18  norm          1.1956        2.8568        .19466E-03   -1.5489    
  19  norm          .10000E-03    14.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    14.189        .33716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.562        11.888        .58915E-03   -1.5028    
  22  Normalizat    .61044        .26878        .40712E-03   -1.0754    
  23  Prefactor     1.0531        .12821        .15363E-03   -.90978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53577e-09
Minuit parameter uncertainties:
  1  10.0495
  2  5.60912e-06
  3  0.000196705
  4  44.2647
  5  4.27767e-05
  6  4.1063e-06
  7  9.82706e-05
  8  2.69271e-05
  9  0.000612134
  10  0.000350789
  11  37.802
  12  5.46959e-06
  13  1.76017e-06
  14  1.38904e-05
  15  0.00012841
  16  0.000327801
  17  40.2892
  18  2.85712
  19  6.55013e-05
  20  0.00157456
  21  11.8906
  22  0.269359
  23  0.128249
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.693e-05  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.572e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.053e+00  1.282e-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:  6.104e-01  2.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/425764/likelihoodResults_376185601_376444801_4FGL_J2118.0+0019_daily_bin528.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) = 6171.33552052
delta logL = -0.000182378378668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6171.33533962
delta logL = -1.47462014866e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.7717       1.0000          .0000       10.000    
     3 'Normalizat'    .61043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0531       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.

 FCN=   6171.335     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      245 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1204.5        .90712E-02** at limit **
   2  Index         3.7602        5.9515        .50000        .78840E-05
   3  Normalizat    .61044        .59001E-01    .91889E-01    .38018E-04
   4  Prefactor     1.0531        .28617E-01    .39729E-01    .33092E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.7602
  Normalizat = 0.61044
  Prefactor  = 1.05315
 **********
 **   18 **HESSE 
 **********

 FCN=   6171.335     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7602        6.6942        .50000       -.25057    
   3  Normalizat    .61044        .25617        .40712E-03   -1.0754    
   4  Prefactor     1.0531        .12569        .15363E-03   -.90978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52818e-10
Minuit parameter uncertainties:
  1  4.16647e-05
  2  8.27498
  3  0.256666
  4  0.125727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425764': 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) = 6171.33533959
delta logL = -1.44718251249e-06

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  4.166e-05  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  3.760e+00  8.275e+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:  1.053e+00  1.257e-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:  6.104e-01  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 319.505 0.330

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-03', job_status='DONE', photon_flux_upper_limit='8.26e-08', time_completed='2021-09-26 10:04:56.213632', job_id='425764', GAL2='1.05', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632675896.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-1.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='528' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:04:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 425764: <4FGL_J2118.0+0019_daily_bin528> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin528 319.505 0.3295 376185601 376444801 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 :                                   548.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            865 sec.

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

