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


Performing analysis on: 4FGL_J1114.5-0819_daily_bin1552
RA = 168.642, Dec = -8.3224
tmin = 641606401, tmax = 641865601
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='630407', job_status='RUN', time_executed='2021-09-03 14:02:41.863590', time_epoch_executed='1630702961.86' WHERE source_name='4FGL J1114.5-0819' and cadence='daily' and bin_id='1552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630407

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630407/ft1_4FGL_J1114.5-0819_daily_bin1552.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630407/ft2_4FGL_J1114.5-0819_daily_bin1552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630407/ft1_4FGL_J1114.5-0819_daily_bin1552.fits outfile=/scratch/kocevski/630407/ft1_filteredMKT_4FGL_J1114.5-0819_daily_bin1552.fits ra=168.642 dec=-8.3224 rad=12.0 tmin=641606401.0 tmax=641865601.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.70
user 2.35
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/630407/ft2_4FGL_J1114.5-0819_daily_bin1552.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/630407/ft2_4FGL_J1114.5-0819_daily_bin1552.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/630407/ft1_filteredMKT_4FGL_J1114.5-0819_daily_bin1552.fits evtable="EVENTS" outfile="/scratch/kocevski/630407/ft1_filtered_4FGL_J1114.5-0819_daily_bin1552.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630407/ft1_filtered_4FGL_J1114.5-0819_daily_bin1552.fits" evtable="EVENTS" scfile=/scratch/kocevski/630407/ft2_4FGL_J1114.5-0819_daily_bin1552.fits sctable="SC_DATA" outfile=/scratch/kocevski/630407/ltcube_641606401_641865601_4FGL_J1114.5-0819_daily_bin1552.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/630407/ft2_4FGL_J1114.5-0819_daily_bin1552.fits
.....................!
real 16.46
user 16.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630407/ft1_filtered_4FGL_J1114.5-0819_daily_bin1552.fits evtable="EVENTS" scfile=/scratch/kocevski/630407/ft2_4FGL_J1114.5-0819_daily_bin1552.fits sctable="SC_DATA" expcube=/scratch/kocevski/630407/ltcube_641606401_641865601_4FGL_J1114.5-0819_daily_bin1552.fits outfile=/scratch/kocevski/630407/expmap_641606401_641865601_4FGL_J1114.5-0819_daily_bin1552.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/630407/ltcube_641606401_641865601_4FGL_J1114.5-0819_daily_bin1552.fits
.....................!
real 192.00
user 186.61
sys 5.01

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1114.5-0819 @ 168.642 -8.3224

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/630407/ft1_filtered_4FGL_J1114.5-0819_daily_bin1552.fits scfile=/scratch/kocevski/630407/ft2_4FGL_J1114.5-0819_daily_bin1552.fits outfile=/scratch/kocevski/630407/cmap_641606401_641865601_4FGL_J1114.5-0819_daily_bin1552.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=168.642 yref=-8.3224 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630407/ft1_filtered_4FGL_J1114.5-0819_daily_bin1552.fits scfile=/scratch/kocevski/630407/ft2_4FGL_J1114.5-0819_daily_bin1552.fits outfile=/scratch/kocevski/630407/cmap_HighResolution_641606401_641865601_4FGL_J1114.5-0819_daily_bin1552.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=168.642 yref=-8.3224 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/630407/ft1_filtered_4FGL_J1114.5-0819_daily_bin1552.fits evtable="EVENTS" scfile=/scratch/kocevski/630407/ft2_4FGL_J1114.5-0819_daily_bin1552.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/630407/Model_4FGL_J1114.5-0819_daily_bin1552.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/630407/ft1_filtered_4FGL_J1114.5-0819_daily_bin1552.fits.....................!
real 48.74
user 47.55
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/630407/ft1_filtered_4FGL_J1114.5-0819_daily_bin1552.fits', '/scratch/kocevski/630407/ft2_4FGL_J1114.5-0819_daily_bin1552.fits', expMap='/scratch/kocevski/630407/expmap_641606401_641865601_4FGL_J1114.5-0819_daily_bin1552.fits', expCube='/scratch/kocevski/630407/ltcube_641606401_641865601_4FGL_J1114.5-0819_daily_bin1552.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/630407/Model_4FGL_J1114.5-0819_daily_bin1552.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1114.5-0819'

4FGL J1114.5-0819
   Spectrum: PowerLaw
280    Prefactor:  5.142e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.824e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  4.281e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/630407/ft1_filtered_4FGL_J1114.5-0819_daily_bin1552.fits
Spacecraft file(s): /scratch/kocevski/630407/ft2_4FGL_J1114.5-0819_daily_bin1552.fits
Exposure map: /scratch/kocevski/630407/expmap_641606401_641865601_4FGL_J1114.5-0819_daily_bin1552.fits
Exposure cube: /scratch/kocevski/630407/ltcube_641606401_641865601_4FGL_J1114.5-0819_daily_bin1552.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/630407/Model_4FGL_J1114.5-0819_daily_bin1552.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) = 4563.44301715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20878       1.0000         .10000E-03   10000.    
     2 'norm      '    .11313E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11162E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.946       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.681       1.0000         .10000E-03   10000.    
     9 'Prefactor '    82.413       1.0000         .10000E-03   10000.    
    10 'norm      '    24.520       1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11178E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.211       1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5231       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.705       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.583       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.381       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0148       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4563.324     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2219 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20824        .59017        .50269E-06    .69304E-03
   2  norm          .10004E-03    10.600        .31214E-05** at limit **
   3  Prefactor     7.8869        9.4537       -.72218E-06   -.13345E-03
   4  Prefactor     .10000E-03    21.824       -.51012E-06** at limit **
   5  Prefactor     .10000E-03    60.421        .10722E-05** at limit **
   6  Prefactor     .10000E-03    14.037       -.13891E-06** at limit **
   7  Prefactor     11.944        18.559        .13687E-06   -.36167E-04
   8  Prefactor     17.682        10.364        .27026E-07   -.87979E-04
   9  Prefactor     82.405        73.258       -.31115E-06   -.73733E-04
  10  norm          24.515        17.372       -.31263E-08   -.31840E-04
  11  norm          .10000E-03    .93958        .44424E-07** at limit **
  12  Prefactor     .10000E-03    5.7308       -.62437E-07** at limit **
  13  Prefactor     42.207        18.409        .87709E-07   -.55121E-04
  14  norm          .10000E-03    10.463        .12283E-08** at limit **
  15  Prefactor     3.5231        3.2861        .12185E-06    .37762E-04
  16  Prefactor     24.703        26.506       -.12951E-06   -.23682E-04
  17  Prefactor     .10000E-03    32.291       -.33261E-07** at limit **
  18  norm          .10000E-03    4.4732       -.12298E-06** at limit **
  19  Prefactor     11.584        8.1862        .13802E-05    .40500E-03
  20  Prefactor     11.363        43.995       -.39155E-05   -.95724E-04
  21  Prefactor     .10000E-03    68.493       -.12940E-05** at limit **
  22  Normalizat    1.0147        .24844       -.93208E-06   -.25597E-03
  23  Prefactor     .87709        .16799        .16374E-06   -.33155E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.208239
  norm       = 0.000100044
  Prefactor  = 7.88687
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 11.9438
  Prefactor  = 17.6818
  Prefactor  = 82.4046
  norm       = 24.5145
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.2073
  norm       = 0.0001
  Prefactor  = 3.52307
  Prefactor  = 24.7029
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.584
  Prefactor  = 11.3634
  Prefactor  = 0.000100004
  Normalizat = 1.01471
  Prefactor  = 0.877093
 **********
 **   18 **HESSE 
 **********

 FCN=   4563.324     FROM HESSE     STATUS=OK           368 CALLS     2587 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20824        .58622        .73456E-04   -1.5617    
   2  norm          .10004E-03    18.764        .31487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8869        9.2419        .14284E-03   -1.5146    
   4  Prefactor     .10000E-03    22.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    61.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.944        18.504        .11590E-03   -1.5017    
   8  Prefactor     17.682        10.384        .95249E-04   -1.4867    
   9  Prefactor     82.405        73.402        .22123E-03   -1.3890    
  10  norm          24.515        17.339        .80895E-04   -1.4717    
  11  norm          .10000E-03    .97016        .12775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.8196        .15753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.207        18.415        .61702E-04   -1.4408    
  14  norm          .10000E-03    10.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5231        3.2862        .11350E-03   -1.5333    
  16  Prefactor     24.703        26.491        .80592E-04   -1.4714    
  17  Prefactor     .10000E-03    32.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.4822        .13956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.584        8.4128        .58854E-03   -1.5027    
  20  Prefactor     11.363        44.487        .11875E-03   -1.5034    
  21  Prefactor     .10000E-03    69.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0147        .29355        .29506E-03   -.92539    
  23  Prefactor     .87709        .19868        .22152E-03   -.96946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08738e-09
Minuit parameter uncertainties:
  1  0.586241
  2  0.00181668
  3  9.2436
  4  0.000257614
  5  0.000812861
  6  3.97288e-05
  7  18.5124
  8  10.3849
  9  73.4833
  10  17.3423
  11  1.33585e-06
  12  4.053e-06
  13  18.4179
  14  1.73241e-06
  15  3.28639
  16  26.5039
  17  7.24643e-05
  18  1.28815e-05
  19  8.4137
  20  44.6178
  21  0.00104424
  22  0.294024
  23  0.198847
Done.

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

Extracting fit parameters...

4FGL J1114.5-0819
   Spectrum: PowerLaw
280    Prefactor:  1.000e-04  3.973e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.824e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  4.281e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  8.771e-01  1.988e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.015e+00  2.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 168.642 -8.322
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/630407/likelihoodResults_641606401_641865601_4FGL_J1114.5-0819_daily_bin1552.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) = 4563.32395721
delta logL = -0.000338615102919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4563.32361864
delta logL = -4.18631316279e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8291       1.0000          .0000       10.000    
     3 'Normalizat'    1.0147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87715       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+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=   4563.324     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      265 TOTAL
                     EDM=   .36E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .52518        .65608E-01** at limit **
   2  Index         3.5463        8.1745        .50000       -.47066E-08
   3  Normalizat    1.0147        .15502E-02    .29506E-03   -.17007E-03
   4  Prefactor     .87709        .10967E-02    .22152E-03   -.24003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.5463
  Normalizat = 1.01471
  Prefactor  = 0.877093
 **********
 **   18 **HESSE 
 **********

 FCN=   4563.324     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      296 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    307.15        .36983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5463        5.2819        .50000       -.29500    
   3  Normalizat    1.0147        .27770E-01    .11802E-04   -.92539    
   4  Prefactor     .87709        .19645E-01    .44304E-04   -.96946    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13355e-11
Minuit parameter uncertainties:
  1  8.37774e-07
  2  2495.46
  3  0.02777
  4  0.0196456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630407': 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): 102
logL (Free Index) = 4563.32361834
delta logL = 2.53079633694e-07

Extracting fit parameters...

4FGL J1114.5-0819
   Spectrum: PowerLaw
280    Prefactor:  1.000e-04  8.378e-07  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  3.546e+00  2.495e+03  0.000e+00  1.000e+01 (-1.000e+00)
282        Scale:  4.281e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  8.771e-01  1.965e-02  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.015e+00  2.777e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 168.642 -8.322

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/630407/cmap_HighResolution_641606401_641865601_4FGL_J1114.5-0819_daily_bin1552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-03 14:12:25.074642', job_id='630407', GAL2='0.88', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630703545.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='1552' AND source_name='4FGL J1114.5-0819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:12:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 630407: <4FGL_J1114.5-0819_daily_bin1552> in cluster <slac> Done

Job <4FGL_J1114.5-0819_daily_bin1552> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep  3 13:57:21 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 13:59:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 13:59:47 2021
Terminated at Fri Sep  3 14:12:25 2021
Results reported at Fri Sep  3 14:12:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1114.5-0819_daily_bin1552 168.642 -8.3224 641606401 641865601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1114.5-0819 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   579.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            904 sec.

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

