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


Performing analysis on: 4FGL_J0116.0-1136_daily_bin1028
RA = 19.0006, Dec = -11.606
tmin = 505785601, tmax = 506044801
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='508824', job_status='RUN', time_executed='2021-08-13 21:12:53.691975', time_epoch_executed='1628914373.69' WHERE source_name='4FGL J0116.0-1136' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/508824

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/508824/ft1_4FGL_J0116.0-1136_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/508824/ft2_4FGL_J0116.0-1136_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/508824/ft1_4FGL_J0116.0-1136_daily_bin1028.fits outfile=/scratch/kocevski/508824/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin1028.fits ra=19.0006 dec=-11.606 rad=12.0 tmin=505785601.0 tmax=506044801.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 9.25
user 3.42
sys 5.73

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/508824/ft2_4FGL_J0116.0-1136_daily_bin1028.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/508824/ft2_4FGL_J0116.0-1136_daily_bin1028.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/508824/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin1028.fits evtable="EVENTS" outfile="/scratch/kocevski/508824/ft1_filtered_4FGL_J0116.0-1136_daily_bin1028.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 5.68
user 0.34
sys 5.31

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/508824/ft1_filtered_4FGL_J0116.0-1136_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/508824/ft2_4FGL_J0116.0-1136_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/508824/ltcube_505785601_506044801_4FGL_J0116.0-1136_daily_bin1028.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/508824/ft2_4FGL_J0116.0-1136_daily_bin1028.fits
.....................!
real 19.09
user 12.89
sys 6.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/508824/ft1_filtered_4FGL_J0116.0-1136_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/508824/ft2_4FGL_J0116.0-1136_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/508824/ltcube_505785601_506044801_4FGL_J0116.0-1136_daily_bin1028.fits outfile=/scratch/kocevski/508824/expmap_505785601_506044801_4FGL_J0116.0-1136_daily_bin1028.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/508824/ltcube_505785601_506044801_4FGL_J0116.0-1136_daily_bin1028.fits
.....................!
real 198.75
user 186.66
sys 11.62

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

Setting source of interest to:
4FGL J0116.0-1136 @ 19.0006 -11.606

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/508824/ft1_filtered_4FGL_J0116.0-1136_daily_bin1028.fits scfile=/scratch/kocevski/508824/ft2_4FGL_J0116.0-1136_daily_bin1028.fits outfile=/scratch/kocevski/508824/cmap_505785601_506044801_4FGL_J0116.0-1136_daily_bin1028.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=19.0006 yref=-11.606 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 5.55
user 0.38
sys 5.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/508824/ft1_filtered_4FGL_J0116.0-1136_daily_bin1028.fits scfile=/scratch/kocevski/508824/ft2_4FGL_J0116.0-1136_daily_bin1028.fits outfile=/scratch/kocevski/508824/cmap_HighResolution_505785601_506044801_4FGL_J0116.0-1136_daily_bin1028.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=19.0006 yref=-11.606 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 5.63
user 0.39
sys 5.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/508824/ft1_filtered_4FGL_J0116.0-1136_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/508824/ft2_4FGL_J0116.0-1136_daily_bin1028.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/508824/Model_4FGL_J0116.0-1136_daily_bin1028.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/508824/ft1_filtered_4FGL_J0116.0-1136_daily_bin1028.fits.....................!
real 62.96
user 55.00
sys 7.83

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/508824/ft1_filtered_4FGL_J0116.0-1136_daily_bin1028.fits', '/scratch/kocevski/508824/ft2_4FGL_J0116.0-1136_daily_bin1028.fits', expMap='/scratch/kocevski/508824/expmap_505785601_506044801_4FGL_J0116.0-1136_daily_bin1028.fits', expCube='/scratch/kocevski/508824/ltcube_505785601_506044801_4FGL_J0116.0-1136_daily_bin1028.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/508824/Model_4FGL_J0116.0-1136_daily_bin1028.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0116.0-1136'

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  2.100e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.362e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  7.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/508824/ft1_filtered_4FGL_J0116.0-1136_daily_bin1028.fits
Spacecraft file(s): /scratch/kocevski/508824/ft2_4FGL_J0116.0-1136_daily_bin1028.fits
Exposure map: /scratch/kocevski/508824/expmap_505785601_506044801_4FGL_J0116.0-1136_daily_bin1028.fits
Exposure cube: /scratch/kocevski/508824/ltcube_505785601_506044801_4FGL_J0116.0-1136_daily_bin1028.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/508824/Model_4FGL_J0116.0-1136_daily_bin1028.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) = 6036.95138403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4378       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8492       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    89.031       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.587       1.0000         .10000E-03   10000.    
     7 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    72.893       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3785       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    63.172       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.967       1.0000         .10000E-03   10000.    
    20 'Prefactor '    79.674       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .39014       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1818       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6036.894     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2358 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4378        2.6240       -.10959E-06   -.12576E-03
   2  norm          1.8491        3.0672        .21764E-05   -.46637E-04
   3  norm          .10000E-03    2.5658        .56012E-08** at limit **
   4  Prefactor     89.081        98.128       -.68600E-05   -.84247E-05
   5  Prefactor     .10000E-03    16.285       -.92171E-06** at limit **
   6  Prefactor     39.586        31.387       -.10396E-05    .37698E-05
   7  norm          .10000E-03    8.6660        .14021E-06** at limit **
   8  Prefactor     .10000E-03    11.324        .95773E-06** at limit **
   9  Prefactor     72.893        40.132        .58643E-07    .18292E-05
  10  Prefactor     .10000E-03    5.1065       -.33023E-06** at limit **
  11  Prefactor     5.3785        3.1858       -.29191E-06   -.61510E-04
  12  Prefactor     .10000E-03    1.9303       -.64640E-08** at limit **
  13  Prefactor     .10000E-03    29.140        .27636E-06** at limit **
  14  norm          .10000E-03    .36827       -.61365E-08** at limit **
  15  Prefactor     .10000E-03    5.8863        .64137E-07** at limit **
  16  Prefactor     .10000E-03    .84234       -.37839E-07** at limit **
  17  norm          63.171        26.599        .53912E-07   -.71378E-05
  18  norm          .10000E-03    .26018       -.74801E-07** at limit **
  19  norm          12.967        6.2007       -.36038E-07   -.18657E-04
  20  Prefactor     79.678        82.716       -.48369E-06   -.30553E-05
  21  Normalizat    .39006        .14961        .12920E-05    .44695E-05
  22  Prefactor     1.1819        .15188       -.44076E-06    .87526E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.43778
  norm       = 1.84907
  norm       = 0.0001
  Prefactor  = 89.081
  Prefactor  = 0.0001
  Prefactor  = 39.5857
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.8925
  Prefactor  = 0.0001
  Prefactor  = 5.37848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 63.1707
  norm       = 0.0001
  norm       = 12.9671
  Prefactor  = 79.6777
  Normalizat = 0.390061
  Prefactor  = 1.18189
 **********
 **   18 **HESSE 
 **********

 FCN=   6036.894     FROM HESSE     STATUS=OK           334 CALLS     2692 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4378        2.6085        .16117E-03   -1.5468    
   2  norm          1.8491        3.0714        .81863E-03   -1.5436    
   3  norm          .10000E-03    2.6052        .12138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     89.081        98.086        .21292E-03   -1.3817    
   5  Prefactor     .10000E-03    16.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.586        31.401        .63706E-04   -1.4449    
   7  norm          .10000E-03    8.6794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     72.893        40.050        .47024E-04   -1.3998    
  10  Prefactor     .10000E-03    5.2036        .17119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3785        3.1842        .10188E-03   -1.5244    
  12  Prefactor     .10000E-03    1.9367        .10541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .37017        .46037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .84617        .69629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          63.171        26.575        .50488E-04   -1.4117    
  18  norm          .10000E-03    .26827        .77337E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.967        6.1974        .11124E-03   -1.4988    
  20  Prefactor     79.678        82.676        .44993E-04   -1.3920    
  21  Normalizat    .39006        .16076        .30984E-03   -1.1782    
  22  Prefactor     1.1819        .16589        .19453E-03   -.86891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24617e-11
Minuit parameter uncertainties:
  1  2.60874
  2  3.07162
  3  4.06122e-06
  4  98.2648
  5  2.96254e-05
  6  31.4139
  7  8.9762e-05
  8  2.22477e-06
  9  40.065
  10  2.04505e-05
  11  3.18425
  12  1.34507e-07
  13  1.74921e-05
  14  9.52542e-08
  15  1.48058e-05
  16  1.2816e-06
  17  26.5799
  18  1.48246e-06
  19  6.19773
  20  82.7959
  21  0.160948
  22  0.165959
Done.

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

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  5.378e+00  3.184e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.362e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  7.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.182e+00  1.660e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  3.901e-01  1.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.72
Ra Dec: 19.001 -11.606
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 4.99e-08 +/- 2.95e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.02e-05

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) = 6036.83065777
delta logL = 0.0632014327157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6036.8255907
delta logL = 0.0682684972935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8938       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1840       1.0000          .0000       10.000    
     3 'Normalizat'    .39635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1783       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6036.826     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      232 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8946        93.944        .41354E-02    .13645E-03
   2  Index         2.1845        6.0058        .18507        .88420E-04
   3  Normalizat    .39629        .98248E-01    .69456E-01    .22640E-04
   4  Prefactor     1.1784        .81727E-01    .35164E-01   -.10871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.89464
  Index      = 2.1845
  Normalizat = 0.396287
  Prefactor  = 1.17836
 **********
 **   18 **HESSE 
 **********

 FCN=   6036.826     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8946        3.7072        .10928E-03   -1.5222    
   2  Index         2.1845        .47308        .69146E-02   -.59813    
   3  Normalizat    .39629        .15352        .30752E-03   -1.1749    
   4  Prefactor     1.1784        .16229        .19481E-03   -.87000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77854e-11
Minuit parameter uncertainties:
  1  3.70739
  2  0.474117
  3  0.153682
  4  0.162358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/508824': 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) = 6036.82558985
delta logL = 0.06826935564

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  5.895e+00  3.707e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.184e+00  4.741e-01  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  7.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.178e+00  1.624e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  3.963e-01  1.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.85
Ra Dec: 19.001 -11.606
Photon Index (Free Index): 2.18 +/- 0.47
Photon Flux (Free Index): 4.37e-08 +/- 3.13e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.60e-05

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/508824/cmap_HighResolution_505785601_506044801_4FGL_J0116.0-1136_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.99e-08', energy_flux2='2.02e-05', photon_flux_error='2.95e-08', dlogl='6.83e-02', energy_flux='1.72e-05', photon_flux2='4.37e-08', job_status='DONE', time_completed='2021-08-13 21:23:48.618495', photon_index_error2='0.47', photon_index2='2.18', ts='6.72', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='0.39', time_epoch_completed='1628915028.62', return_code='0', job_id='508824', GAL2='1.18', EG2='0.40', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.13e-08', ts2='6.85', photon_index='2.36' WHERE bin_id='1028' AND source_name='4FGL J0116.0-1136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:23:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 508824: <4FGL_J0116.0-1136_daily_bin1028> in cluster <slac> Done

Job <4FGL_J0116.0-1136_daily_bin1028> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 13 21:10:27 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:11:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 21:11:10 2021
Terminated at Fri Aug 13 21:23:50 2021
Results reported at Fri Aug 13 21:23:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0116.0-1136_daily_bin1028 19.0006 -11.606 505785601 506044801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0116.0-1136 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   731.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            803 sec.

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

