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


Performing analysis on: 4FGL_J0116.0-1136_daily_bin682
RA = 19.0006, Dec = -11.606
tmin = 416102401, tmax = 416361601
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='507314', job_status='RUN', time_executed='2021-08-13 21:10:58.036473', time_epoch_executed='1628914258.04' WHERE source_name='4FGL J0116.0-1136' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507314

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507314/ft1_4FGL_J0116.0-1136_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507314/ft2_4FGL_J0116.0-1136_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507314/ft1_4FGL_J0116.0-1136_daily_bin682.fits outfile=/scratch/kocevski/507314/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin682.fits ra=19.0006 dec=-11.606 rad=12.0 tmin=416102401.0 tmax=416361601.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 14.67
user 6.16
sys 8.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/507314/ft2_4FGL_J0116.0-1136_daily_bin682.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/507314/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin682.fits evtable="EVENTS" outfile="/scratch/kocevski/507314/ft1_filtered_4FGL_J0116.0-1136_daily_bin682.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 8.77
user 0.37
sys 8.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507314/ft1_filtered_4FGL_J0116.0-1136_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/507314/ft2_4FGL_J0116.0-1136_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/507314/ltcube_416102401_416361601_4FGL_J0116.0-1136_daily_bin682.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/507314/ft2_4FGL_J0116.0-1136_daily_bin682.fits
.....................!
real 21.76
user 12.15
sys 9.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507314/ft1_filtered_4FGL_J0116.0-1136_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/507314/ft2_4FGL_J0116.0-1136_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/507314/ltcube_416102401_416361601_4FGL_J0116.0-1136_daily_bin682.fits outfile=/scratch/kocevski/507314/expmap_416102401_416361601_4FGL_J0116.0-1136_daily_bin682.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/507314/ltcube_416102401_416361601_4FGL_J0116.0-1136_daily_bin682.fits
.....................!
real 203.24
user 186.81
sys 16.03

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/507314/ft1_filtered_4FGL_J0116.0-1136_daily_bin682.fits scfile=/scratch/kocevski/507314/ft2_4FGL_J0116.0-1136_daily_bin682.fits outfile=/scratch/kocevski/507314/cmap_416102401_416361601_4FGL_J0116.0-1136_daily_bin682.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 8.59
user 0.38
sys 8.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507314/ft1_filtered_4FGL_J0116.0-1136_daily_bin682.fits scfile=/scratch/kocevski/507314/ft2_4FGL_J0116.0-1136_daily_bin682.fits outfile=/scratch/kocevski/507314/cmap_HighResolution_416102401_416361601_4FGL_J0116.0-1136_daily_bin682.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 8.66
user 0.40
sys 8.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507314/ft1_filtered_4FGL_J0116.0-1136_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/507314/ft2_4FGL_J0116.0-1136_daily_bin682.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507314/Model_4FGL_J0116.0-1136_daily_bin682.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/507314/ft1_filtered_4FGL_J0116.0-1136_daily_bin682.fits.....................!
real 53.46
user 41.48
sys 11.84

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/507314/ft1_filtered_4FGL_J0116.0-1136_daily_bin682.fits', '/scratch/kocevski/507314/ft2_4FGL_J0116.0-1136_daily_bin682.fits', expMap='/scratch/kocevski/507314/expmap_416102401_416361601_4FGL_J0116.0-1136_daily_bin682.fits', expCube='/scratch/kocevski/507314/ltcube_416102401_416361601_4FGL_J0116.0-1136_daily_bin682.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/507314/Model_4FGL_J0116.0-1136_daily_bin682.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/507314/ft1_filtered_4FGL_J0116.0-1136_daily_bin682.fits
Spacecraft file(s): /scratch/kocevski/507314/ft2_4FGL_J0116.0-1136_daily_bin682.fits
Exposure map: /scratch/kocevski/507314/expmap_416102401_416361601_4FGL_J0116.0-1136_daily_bin682.fits
Exposure cube: /scratch/kocevski/507314/ltcube_416102401_416361601_4FGL_J0116.0-1136_daily_bin682.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/507314/Model_4FGL_J0116.0-1136_daily_bin682.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) = 3805.94748288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0698       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .84585E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.970       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3590       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8262       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .84361       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0113       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3910       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.392       1.0000         .10000E-03   10000.    
    18 'norm      '    .79426       1.0000         .10000E-03   10000.    
    19 'norm      '    11.673       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0065       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89014       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3805.893     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     2422 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0688        3.3907        .19224E-03   -.63277E-04
   2  norm          .10000E-03    2.2371        .89648E-03** at limit **
   3  norm          .10000E-03    1.9590        .84271E-03** at limit **
   4  Prefactor     .10013E-03    470.92        .20869E-02** at limit **
   5  Prefactor     27.971        25.506        .75752E-04    .32267E-04
   6  Prefactor     .10000E-03    18.661        .18142E-02** at limit **
   7  norm          .10000E-03    23.578        .18142E-02** at limit **
   8  Prefactor     .10000E-03    13.602        .18142E-02** at limit **
   9  Prefactor     4.3688        149.85        .19292E-03   -.47438E-05
  10  Prefactor     .10000E-03    5.9612        .14647E-02** at limit **
  11  Prefactor     8.8353        6.2040        .58339E-03   -.50709E-03
  12  Prefactor     .10000E-03    15.672        .18142E-02** at limit **
  13  Prefactor     .44884        134.93        .13503        .63436E-04
  14  norm          1.0116        2.2016        .14317E-02    .20497E-03
  15  Prefactor     7.4105        13.743        .14753E-03   -.15798E-03
  16  Prefactor     .10000E-03    1.7633        .79951E-03** at limit **
  17  norm          10.460        41.933        .12429E-03   -.74456E-04
  18  norm          .79193        1.5135        .10492E-02    .27848E-03
  19  norm          11.669        8.6617        .11725E-03   -.11252E-03
  20  Prefactor     .10000E-03    22.914        .18142E-02** at limit **
  21  Normalizat    1.0066        .24746        .24190E-03    .11261E-03
  22  Prefactor     .89025        .23932        .24628E-03   -.23606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06876
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100135
  Prefactor  = 27.9707
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.36879
  Prefactor  = 0.0001
  Prefactor  = 8.83525
  Prefactor  = 0.000100001
  Prefactor  = 0.448836
  norm       = 1.01158
  Prefactor  = 7.41049
  Prefactor  = 0.0001
  norm       = 10.4601
  norm       = 0.791927
  norm       = 11.6695
  Prefactor  = 0.0001
  Normalizat = 1.00658
  Prefactor  = 0.890249
 **********
 **   18 **HESSE 
 **********

 FCN=   3805.893     FROM HESSE     STATUS=OK           334 CALLS     2756 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0688        3.3903        .76897E-05   -1.5501    
   2  norm          .10000E-03    2.2373        .17930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.9590        .16854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10013E-03    471.09        .41737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.971        25.506        .30301E-05   -1.4650    
   6  Prefactor     .10000E-03    18.662        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    23.588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3688        149.92        .77169E-05   -1.5290    
  10  Prefactor     .10000E-03    5.9620        .29293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8353        6.1954        .23336E-04   -1.5113    
  12  Prefactor     .10000E-03    15.679        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .44884        123.00        .14177       -1.5574    
  14  norm          1.0116        2.1993        .57269E-04   -1.5507    
  15  Prefactor     7.4105        13.715        .59011E-05   -1.5163    
  16  Prefactor     .10000E-03    1.7633        .15990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.460        41.840        .49716E-05   -1.5061    
  18  norm          .79193        1.5114        .41968E-04   -1.5530    
  19  norm          11.669        8.6602        .46901E-05   -1.5025    
  20  Prefactor     .10000E-03    22.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0066        .24751        .96758E-05   -.92810    
  22  Prefactor     .89025        .23951        .49256E-04   -.96483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73728e-09
Minuit parameter uncertainties:
  1  3.39092
  2  9.86051e-06
  3  1.08555e-05
  4  0.01606
  5  25.5158
  6  1.04143e-05
  7  3.38524e-05
  8  4.1518e-05
  9  51.3239
  10  1.59881e-05
  11  6.19588
  12  0.000216487
  13  14.8893
  14  2.19951
  15  13.7206
  16  6.18884e-06
  17  41.8914
  18  1.51151
  19  8.66113
  20  5.99296e-05
  21  0.24779
  22  0.239797
Done.

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

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  8.835e+00  6.196e+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:  8.902e-01  2.398e-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:  1.007e+00  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.44
Ra Dec: 19.001 -11.606
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 5.75e-08
Energy Flux (Fixed Index): 2.83e-05 +/- 1.98e-05

TS (Fixed Index): 3.44
Ra Dec: 19.001 -11.606
Photon Flux Upper Limit: 1.97e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507314/likelihoodResults_416102401_416361601_4FGL_J0116.0-1136_daily_bin682.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) = 3805.89286435
delta logL = 0.000187935899248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3805.89281853
delta logL = 0.000233754253259

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7831       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3742       1.0000          .0000       10.000    
     3 'Normalizat'    1.0059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89052       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=   3805.893     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      220 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7718        170.98        .33812E-02    .11182E-03
   2  Index         2.3730        6.1086        .13995        .44040E-04
   3  Normalizat    1.0060        .12949        .46241E-01    .43858E-05
   4  Prefactor     .89058        .13386        .44884E-01    .62671E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.77183
  Index      = 2.37302
  Normalizat = 1.00604
  Prefactor  = 0.890583
 **********
 **   18 **HESSE 
 **********

 FCN=   3805.893     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7718        6.6732        .11614E-03   -1.5116    
   2  Index         2.3730        .50642        .56138E-02   -.55318    
   3  Normalizat    1.0060        .24042        .24195E-03   -.92828    
   4  Prefactor     .89058        .23151        .24624E-03   -.96471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03329e-12
Minuit parameter uncertainties:
  1  6.67372
  2  0.507621
  3  0.240681
  4  0.231769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507314': 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) = 3805.89281068
delta logL = 0.000241609413933

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  8.772e+00  6.674e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.373e+00  5.076e-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:  8.906e-01  2.318e-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:  1.006e+00  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.43
Ra Dec: 19.001 -11.606
Photon Index (Free Index): 2.37 +/- 0.51
Photon Flux (Free Index): 8.26e-08 +/- 6.07e-08
Energy Flux (Free Index): 2.81e-05 +/- 2.18e-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/507314/cmap_HighResolution_416102401_416361601_4FGL_J0116.0-1136_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='2.81e-05', photon_flux_error='5.75e-08', dlogl='2.42e-04', energy_flux='2.83e-05', photon_flux2='8.26e-08', job_status='DONE', time_completed='2021-08-13 21:21:57.733999', photon_index_error2='0.51', photon_index2='2.37', ts='3.44', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.97e-07', energy_flux_error2='2.18e-05', EG='1.01', time_epoch_completed='1628914917.73', return_code='0', job_id='507314', GAL2='0.89', EG2='1.01', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='6.07e-08', ts2='3.43', photon_index='2.36' WHERE bin_id='682' AND source_name='4FGL J0116.0-1136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:21:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 507314: <4FGL_J0116.0-1136_daily_bin682> in cluster <slac> Done

Job <4FGL_J0116.0-1136_daily_bin682> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 21:05:28 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:05:52 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:05:52 2021
Terminated at Fri Aug 13 21:22:00 2021
Results reported at Fri Aug 13 21:22:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0116.0-1136_daily_bin682 19.0006 -11.606 416102401 416361601 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 :                                   784.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             227.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            992 sec.

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

