/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 = 7527
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2118.0+0019_daily_bin750
RA = 319.505, Dec = 0.3295
tmin = 433728001, tmax = 433987201
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='427226', job_status='RUN', time_executed='2021-09-26 09:56:47.281349', time_epoch_executed='1632675407.28' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427226/ft1_4FGL_J2118.0+0019_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427226/ft2_4FGL_J2118.0+0019_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427226/ft1_4FGL_J2118.0+0019_daily_bin750.fits outfile=/scratch/kocevski/427226/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin750.fits ra=319.505 dec=0.3295 rad=12.0 tmin=433728001.0 tmax=433987201.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 6.70
user 5.89
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427226/ft1_filtered_4FGL_J2118.0+0019_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/427226/ft2_4FGL_J2118.0+0019_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/427226/ltcube_433728001_433987201_4FGL_J2118.0+0019_daily_bin750.fits outfile=/scratch/kocevski/427226/expmap_433728001_433987201_4FGL_J2118.0+0019_daily_bin750.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/427226/ltcube_433728001_433987201_4FGL_J2118.0+0019_daily_bin750.fits
.....................!
real 193.75
user 186.76
sys 5.77

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/427226/ft1_filtered_4FGL_J2118.0+0019_daily_bin750.fits scfile=/scratch/kocevski/427226/ft2_4FGL_J2118.0+0019_daily_bin750.fits outfile=/scratch/kocevski/427226/cmap_433728001_433987201_4FGL_J2118.0+0019_daily_bin750.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/427226/ft1_filtered_4FGL_J2118.0+0019_daily_bin750.fits scfile=/scratch/kocevski/427226/ft2_4FGL_J2118.0+0019_daily_bin750.fits outfile=/scratch/kocevski/427226/cmap_HighResolution_433728001_433987201_4FGL_J2118.0+0019_daily_bin750.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5998       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.627       1.0000         .10000E-03   10000.    
     4 'Prefactor '    71.768       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7734       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.657       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3626       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3650       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.881       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47748       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.3719       1.0000         .10000E-03   10000.    
    19 'norm      '    11.075       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4141       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0842       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .64476       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=   4744.821     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2583 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5975        14.526        .11606E-05    .45575E-04
   2  Prefactor     .10000E-03    3.2891       -.58291E-07** at limit **
   3  Prefactor     26.629        21.012       -.12164E-06   -.59382E-04
   4  Prefactor     71.765        55.969       -.17015E-05   -.11350E-03
   5  Prefactor     4.7749        92.244       -.12953E-05    .11309E-05
   6  Prefactor     24.655        32.512        .25292E-05    .27788E-03
   7  Prefactor     .10000E-03    43.119       -.15349E-06** at limit **
   8  Prefactor     6.3386        137.92        .84545E-05    .36981E-04
   9  Prefactor     .10000E-03    11.449       -.67111E-07** at limit **
  10  Prefactor     .10000E-03    11.812        .17285E-07** at limit **
  11  Prefactor     .10000E-03    16.693        .24573E-07** at limit **
  12  Prefactor     .10000E-03    7.4011        .66517E-07** at limit **
  13  Prefactor     4.3677        3.9739        .75075E-07    .40903E-04
  14  Prefactor     43.880        43.678       -.51530E-06   -.18125E-04
  15  Prefactor     .20906E-02    73.889       -.10228E-05** at limit **
  16  Prefactor     .10000E-03    229.97       -.14014E-05** at limit **
  17  Prefactor     .10000E-03    25.560        .34615E-08** at limit **
  18  norm          4.3652        4.7183        .24874E-05   -.21517E-03
  19  norm          11.076        20.222       -.16005E-05   -.29338E-04
  20  Prefactor     .10000E-03    10.136        .52703E-07** at limit **
  21  Prefactor     3.4149        11.846        .10239E-05    .38710E-04
  22  Normalizat    1.0839        .27029        .33915E-06   -.13669E-04
  23  Prefactor     .64491        .10968       -.74432E-06    .64314E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.59751
  Prefactor  = 0.0001
  Prefactor  = 26.629
  Prefactor  = 71.7646
  Prefactor  = 4.77486
  Prefactor  = 24.6548
  Prefactor  = 0.0001
  Prefactor  = 6.33858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.36765
  Prefactor  = 43.8805
  Prefactor  = 0.00209063
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.36519
  norm       = 11.0762
  Prefactor  = 0.0001
  Prefactor  = 3.41486
  Normalizat = 1.08391
  Prefactor  = 0.64491
 **********
 **   18 **HESSE 
 **********

 FCN=   4744.821     FROM HESSE     STATUS=OK           376 CALLS     2959 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5975        14.525        .18768E-03   -1.5279    
   2  Prefactor     .10000E-03    3.3620        .12190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.629        21.177        .77635E-04   -1.4675    
   4  Prefactor     71.765        56.466        .47388E-04   -1.4012    
   5  Prefactor     4.7749        91.640        .18415E-03   -1.5271    
   6  Prefactor     24.655        33.324        .80671E-04   -1.4714    
   7  Prefactor     .10000E-03    43.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3386        140.16        .15912E-03   -1.5204    
   9  Prefactor     .10000E-03    11.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.4807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3677        3.9662        .12067E-03   -1.5290    
  14  Prefactor     43.880        43.823        .60521E-04   -1.4382    
  15  Prefactor     .20906E-02    74.234        .16047       -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    230.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3652        4.8136        .75443E-03   -1.5290    
  19  norm          11.076        20.225        .12039E-03   -1.5042    
  20  Prefactor     .10000E-03    10.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4149        11.841        .21893E-03   -1.5338    
  22  Normalizat    1.0839        .32774        .31415E-03   -.90270    
  23  Prefactor     .64491        .13256        .16948E-03   -1.0573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19233e-10
Minuit parameter uncertainties:
  1  14.5363
  2  5.24457e-06
  3  21.1827
  4  56.5084
  5  41.91
  6  33.3489
  7  3.04646e-05
  8  59.7718
  9  4.97538e-06
  10  6.98622e-07
  11  7.0074e-07
  12  4.10091e-06
  13  3.96643
  14  43.8549
  15  0.769777
  16  0.000992724
  17  1.29102e-06
  18  4.81398
  19  20.2378
  20  1.62338e-06
  21  11.8492
  22  0.328354
  23  0.132627
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  6.449e-01  1.326e-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.084e+00  3.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/427226/likelihoodResults_433728001_433987201_4FGL_J2118.0+0019_daily_bin750.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) = 4744.78202899
delta logL = 0.0393656292617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4744.78149453
delta logL = 0.0399000919988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.624       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0508       1.0000          .0000       10.000    
     3 'Normalizat'    1.0868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64156       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=   4744.781     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      296 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.628        79.930        .84212E-04   -.20755E-03
   2  Index         2.0507        1.3054        .15986E-01   -.13830E-03
   3  Normalizat    1.0870        .30360        .31373E-03    .80048E-04
   4  Prefactor     .64154        .13090        .16988E-03    .22848E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6283
  Index      = 2.05074
  Normalizat = 1.08697
  Prefactor  = 0.641537
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.628        78.973        .16842E-04   -1.4756    
   2  Index         2.0507        1.2912        .63943E-03   -.63088    
   3  Normalizat    1.0870        .30384        .12549E-04   -.90171    
   4  Prefactor     .64154        .13097        .33977E-04   -1.0586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02184e-09
Minuit parameter uncertainties:
  1  79.341
  2  1.31427
  3  0.304327
  4  0.131035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427226': 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) = 4744.78149437
delta logL = 0.0399002549411

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  2.263e+01  7.934e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.051e+00  1.314e+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.415e-01  1.310e-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.087e+00  3.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/427226/cmap_HighResolution_433728001_433987201_4FGL_J2118.0+0019_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-26 10:07:03.016293', job_id='427226', GAL2='0.64', fit_tolerance='1e-08', EG2='1.09', EG='1.08', time_epoch_completed='1632676023.02', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='3.99e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='750' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:07:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 427226: <4FGL_J2118.0+0019_daily_bin750> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin750 319.505 0.3295 433728001 433987201 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 :                                   608.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            685 sec.

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

