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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin712
RA = 319.505, Dec = 0.3295
tmin = 423878401, tmax = 424137601
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='427167', job_status='RUN', time_executed='2021-09-26 09:56:55.955345', time_epoch_executed='1632675415.96' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427167

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427167/ft1_4FGL_J2118.0+0019_daily_bin712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427167/ft2_4FGL_J2118.0+0019_daily_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427167/ft1_4FGL_J2118.0+0019_daily_bin712.fits outfile=/scratch/kocevski/427167/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin712.fits ra=319.505 dec=0.3295 rad=12.0 tmin=423878401.0 tmax=424137601.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 5.37
user 5.06
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427167/ft1_filtered_4FGL_J2118.0+0019_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/427167/ft2_4FGL_J2118.0+0019_daily_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/427167/ltcube_423878401_424137601_4FGL_J2118.0+0019_daily_bin712.fits outfile=/scratch/kocevski/427167/expmap_423878401_424137601_4FGL_J2118.0+0019_daily_bin712.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/427167/ltcube_423878401_424137601_4FGL_J2118.0+0019_daily_bin712.fits
.....................!
real 192.57
user 186.89
sys 5.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/427167/ft1_filtered_4FGL_J2118.0+0019_daily_bin712.fits scfile=/scratch/kocevski/427167/ft2_4FGL_J2118.0+0019_daily_bin712.fits outfile=/scratch/kocevski/427167/cmap_423878401_424137601_4FGL_J2118.0+0019_daily_bin712.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.60
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427167/ft1_filtered_4FGL_J2118.0+0019_daily_bin712.fits scfile=/scratch/kocevski/427167/ft2_4FGL_J2118.0+0019_daily_bin712.fits outfile=/scratch/kocevski/427167/cmap_HighResolution_423878401_424137601_4FGL_J2118.0+0019_daily_bin712.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.199       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9817       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13084E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    73.623       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.170       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.047       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.288       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.694       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.935       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9770       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11147E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .13841       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8575       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.649       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.992       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0638       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79996       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=   5105.975     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2558 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.199        19.761        .75098E-07   -.49157E-04
   2  Prefactor     4.9841        6.4900        .93632E-07   -.87718E-04
   3  Prefactor     .10000E-03    48.210        .28452E-05** at limit **
   4  Prefactor     73.638        56.787       -.60175E-07   -.76842E-04
   5  Prefactor     .10000E-03    13.569        .32853E-06** at limit **
   6  Prefactor     20.167        22.582        .32684E-07   -.53088E-04
   7  Prefactor     11.044        35.777        .53008E-06   -.12557E-04
   8  Prefactor     34.127        82.446       -.23225E-05   -.92058E-04
   9  Prefactor     24.699        25.676       -.63344E-06   -.96844E-04
  10  Prefactor     .10000E-03    11.483       -.25045E-06** at limit **
  11  Prefactor     24.924        38.937       -.48000E-06   -.34794E-04
  12  Prefactor     3.9777        6.7837        .51894E-06    .24895E-03
  13  Prefactor     .10000E-03    1.1447       -.52465E-06** at limit **
  14  Prefactor     .10002E-03    140.05       -.50557E-05** at limit **
  15  Prefactor     .10000E-03    28.197        .57438E-06** at limit **
  16  Prefactor     .10000E-03    63.530        .26274E-06** at limit **
  17  Prefactor     .10000E-03    26.795        .79590E-07** at limit **
  18  norm          .14118        4.8398        .24429E-05   -.12640E-02
  19  norm          1.8626        97.852       -.12166E-05   -.66770E-04
  20  Prefactor     10.646        9.0111       -.31853E-06   -.27430E-03
  21  Prefactor     18.990        13.857       -.20424E-06   -.90989E-04
  22  Normalizat    1.0636        .30904        .64128E-05   -.31620E-03
  23  Prefactor     .80004        .13848       -.40110E-05   -.93688E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.1994
  Prefactor  = 4.98406
  Prefactor  = 0.000100005
  Prefactor  = 73.6377
  Prefactor  = 0.0001
  Prefactor  = 20.1674
  Prefactor  = 11.0442
  Prefactor  = 34.1266
  Prefactor  = 24.6992
  Prefactor  = 0.0001
  Prefactor  = 24.9241
  Prefactor  = 3.97772
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.141175
  norm       = 1.86261
  Prefactor  = 10.6463
  Prefactor  = 18.9897
  Normalizat = 1.06359
  Prefactor  = 0.800041
 **********
 **   18 **HESSE 
 **********

 FCN=   5105.975     FROM HESSE     STATUS=OK           368 CALLS     2926 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.199        19.765        .91408E-04   -1.4831    
   2  Prefactor     4.9841        6.4802        .18018E-03   -1.5261    
   3  Prefactor     .10000E-03    49.986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     73.638        56.802        .46792E-04   -1.3990    
   5  Prefactor     .10000E-03    13.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.167        22.583        .89183E-04   -1.4810    
   7  Prefactor     11.044        35.780        .12054E-03   -1.5043    
   8  Prefactor     34.127        83.023        .68436E-04   -1.4539    
   9  Prefactor     24.699        25.712        .80610E-04   -1.4714    
  10  Prefactor     .10000E-03    11.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.924        38.904        .80220E-04   -1.4709    
  12  Prefactor     3.9777        6.8277        .20225E-03   -1.5309    
  13  Prefactor     .10000E-03    1.1748        .75055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    144.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    63.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .14118        22.478        .18748E-02   -1.5633    
  19  norm          1.8626        96.380        .30579E-03   -1.5435    
  20  Prefactor     10.646        9.0088        .12278E-03   -1.5055    
  21  Prefactor     18.990        13.875        .91905E-04   -1.4836    
  22  Normalizat    1.0636        .32782        .32976E-03   -.90930    
  23  Prefactor     .80004        .14486        .17444E-03   -.99727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3086e-08
Minuit parameter uncertainties:
  1  19.7719
  2  6.48107
  3  0.000978975
  4  56.8442
  5  6.47841e-05
  6  22.5921
  7  35.8493
  8  83.3062
  9  25.7239
  10  4.70458e-05
  11  38.9432
  12  6.82902
  13  2.94135e-05
  14  0.00314863
  15  0.000181762
  16  0.000105687
  17  2.13296e-06
  18  3.56285
  19  26.8419
  20  9.00999
  21  13.8776
  22  0.328449
  23  0.144932
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  3.413e+01  8.331e+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.000e-01  1.449e-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.064e+00  3.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/427167/likelihoodResults_423878401_424137601_4FGL_J2118.0+0019_daily_bin712.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) = 5105.96415169
delta logL = 0.0103751430124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5105.9622127
delta logL = 0.0123141248077

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.348       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7922       1.0000          .0000       10.000    
     3 'Normalizat'    1.0580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80193       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=   5105.962     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      263 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.342        86.643        .73956E-04    .12903E-03
   2  Index         2.7922        1.5405        .13145E-01    .70456E-04
   3  Normalizat    1.0587        .31011        .33042E-03   -.28164E-03
   4  Prefactor     .80163        .14336        .17428E-03   -.53805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.3417
  Index      = 2.79225
  Normalizat = 1.05869
  Prefactor  = 0.801631
 **********
 **   18 **HESSE 
 **********

 FCN=   5105.962     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.342        79.147        .14791E-04   -1.4624    
   2  Index         2.7922        1.4105        .52579E-03   -.45733    
   3  Normalizat    1.0587        .31052        .66084E-04   -.91090    
   4  Prefactor     .80163        .14342        .34856E-04   -.99668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7141e-10
Minuit parameter uncertainties:
  1  79.4319
  2  1.43482
  3  0.31105
  4  0.143491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427167': 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) = 5105.96221039
delta logL = 0.0123164371089

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  2.934e+01  7.943e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.792e+00  1.435e+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:  8.016e-01  1.435e-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.059e+00  3.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/427167/cmap_HighResolution_423878401_424137601_4FGL_J2118.0+0019_daily_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', job_status='DONE', photon_flux_upper_limit='1.77e-07', time_completed='2021-09-26 10:07:27.624595', job_id='427167', GAL2='0.80', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632676047.62', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.23e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='712' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:07:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 427167: <4FGL_J2118.0+0019_daily_bin712> in cluster <slac> Done

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

Your job looked like:

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

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

