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


Performing analysis on: 4FGL_J0116.0-1136_daily_bin566
RA = 19.0006, Dec = -11.606
tmin = 386035201, tmax = 386294401
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='506120', job_status='RUN', time_executed='2021-08-13 21:04:21.564793', time_epoch_executed='1628913861.56' WHERE source_name='4FGL J0116.0-1136' and cadence='daily' and bin_id='566'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506120

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506120/ft1_4FGL_J0116.0-1136_daily_bin566.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506120/ft2_4FGL_J0116.0-1136_daily_bin566.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506120/ft1_4FGL_J0116.0-1136_daily_bin566.fits outfile=/scratch/kocevski/506120/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin566.fits ra=19.0006 dec=-11.606 rad=12.0 tmin=386035201.0 tmax=386294401.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.09
user 3.83
sys 1.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/506120/ft2_4FGL_J0116.0-1136_daily_bin566.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/506120/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin566.fits evtable="EVENTS" outfile="/scratch/kocevski/506120/ft1_filtered_4FGL_J0116.0-1136_daily_bin566.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 1.42
user 0.28
sys 1.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506120/ft1_filtered_4FGL_J0116.0-1136_daily_bin566.fits" evtable="EVENTS" scfile=/scratch/kocevski/506120/ft2_4FGL_J0116.0-1136_daily_bin566.fits sctable="SC_DATA" outfile=/scratch/kocevski/506120/ltcube_386035201_386294401_4FGL_J0116.0-1136_daily_bin566.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/506120/ft2_4FGL_J0116.0-1136_daily_bin566.fits
.....................!
real 11.47
user 10.06
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506120/ft1_filtered_4FGL_J0116.0-1136_daily_bin566.fits evtable="EVENTS" scfile=/scratch/kocevski/506120/ft2_4FGL_J0116.0-1136_daily_bin566.fits sctable="SC_DATA" expcube=/scratch/kocevski/506120/ltcube_386035201_386294401_4FGL_J0116.0-1136_daily_bin566.fits outfile=/scratch/kocevski/506120/expmap_386035201_386294401_4FGL_J0116.0-1136_daily_bin566.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/506120/ltcube_386035201_386294401_4FGL_J0116.0-1136_daily_bin566.fits
.....................!
real 158.52
user 151.59
sys 6.31

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/506120/ft1_filtered_4FGL_J0116.0-1136_daily_bin566.fits scfile=/scratch/kocevski/506120/ft2_4FGL_J0116.0-1136_daily_bin566.fits outfile=/scratch/kocevski/506120/cmap_386035201_386294401_4FGL_J0116.0-1136_daily_bin566.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 1.39
user 0.32
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506120/ft1_filtered_4FGL_J0116.0-1136_daily_bin566.fits scfile=/scratch/kocevski/506120/ft2_4FGL_J0116.0-1136_daily_bin566.fits outfile=/scratch/kocevski/506120/cmap_HighResolution_386035201_386294401_4FGL_J0116.0-1136_daily_bin566.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 1.41
user 0.33
sys 1.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506120/ft1_filtered_4FGL_J0116.0-1136_daily_bin566.fits evtable="EVENTS" scfile=/scratch/kocevski/506120/ft2_4FGL_J0116.0-1136_daily_bin566.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506120/Model_4FGL_J0116.0-1136_daily_bin566.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/506120/ft1_filtered_4FGL_J0116.0-1136_daily_bin566.fits.....................!
real 39.80
user 37.39
sys 2.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0509       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8546       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.378       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.330       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.353       1.0000         .10000E-03   10000.    
     9 'Prefactor '    113.57       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5457       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5040       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.006       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.090       1.0000         .10000E-03   10000.    
    14 'norm      '    3.3174       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7162       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11402E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .34576       1.0000         .10000E-03   10000.    
    19 'norm      '    3.6678       1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.709       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2028       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .62945       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=   4377.896     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2395 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0498        5.1159        .26104E-06   -.58193E-04
   2  norm          2.8546        2.8886        .36606E-07   -.18757E-04
   3  norm          .10000E-03    3.1809       -.38766E-07** at limit **
   4  Prefactor     31.621        119.45        .78867E-05    .12586E-03
   5  Prefactor     22.311        27.232        .92506E-06   -.65449E-04
   6  Prefactor     .10000E-03    12.737       -.10749E-06** at limit **
   7  norm          .10000E-03    8.3089        .26183E-05** at limit **
   8  Prefactor     44.372        45.207        .41095E-06    .26415E-04
   9  Prefactor     113.58        59.428       -.15259E-05   -.43615E-04
  10  Prefactor     4.5467        6.7499        .35038E-05   -.15615E-03
  11  Prefactor     1.5039        4.6958        .11769E-05   -.80249E-04
  12  Prefactor     11.992        14.793        .16412E-05    .20436E-04
  13  Prefactor     14.097        31.496       -.93063E-06   -.24546E-04
  14  norm          3.3201        3.2751       -.47227E-06    .57050E-04
  15  Prefactor     3.7169        8.0358        .81263E-05   -.19327E-03
  16  Prefactor     .10000E-03    7.1854       -.56424E-08** at limit **
  17  norm          .10000E-03    10.910       -.19568E-06** at limit **
  18  norm          .34539        1.3502        .77306E-06    .74712E-04
  19  norm          3.6688        3.7361        .25377E-07   -.41278E-04
  20  Prefactor     47.702        84.388        .78489E-07   -.31788E-04
  21  Normalizat    1.2027        .20507       -.42184E-05    .41121E-05
  22  Prefactor     .62948        .18437        .18532E-05   -.21757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.04982
  norm       = 2.8546
  norm       = 0.0001
  Prefactor  = 31.6211
  Prefactor  = 22.3115
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 44.3721
  Prefactor  = 113.578
  Prefactor  = 4.54672
  Prefactor  = 1.50395
  Prefactor  = 11.9921
  Prefactor  = 14.0967
  norm       = 3.32014
  Prefactor  = 3.7169
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.345386
  norm       = 3.66878
  Prefactor  = 47.7018
  Normalizat = 1.20271
  Prefactor  = 0.629477
 **********
 **   18 **HESSE 
 **********

 FCN=   4377.896     FROM HESSE     STATUS=OK           350 CALLS     2745 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0498        5.0967        .13146E-03   -1.5258    
   2  norm          2.8546        2.8891        .10969E-03   -1.5370    
   3  norm          .10000E-03    3.1904        .11515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.621        119.31        .35765E-03   -1.4583    
   5  Prefactor     22.311        27.266        .84763E-04   -1.4763    
   6  Prefactor     .10000E-03    12.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.3146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.372        45.107        .60200E-04   -1.4375    
   9  Prefactor     113.58        59.385        .37749E-04   -1.3572    
  10  Prefactor     4.5467        6.7443        .94408E-03   -1.5281    
  11  Prefactor     1.5039        4.6559        .23432E-03   -1.5463    
  12  Prefactor     11.992        15.373        .11561E-03   -1.5015    
  13  Prefactor     14.097        31.407        .10671E-03   -1.4957    
  14  norm          3.3201        3.4013        .87852E-04   -1.5344    
  15  Prefactor     3.7169        8.0806        .10474E-02   -1.5322    
  16  Prefactor     .10000E-03    7.4928        .34567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .34539        1.3371        .14045E-03   -1.5590    
  19  norm          3.6688        3.7411        .12542E-03   -1.5325    
  20  Prefactor     47.702        84.388        .58053E-04   -1.4326    
  21  Normalizat    1.2027        .23300        .22522E-03   -.86519    
  22  Prefactor     .62948        .21029        .28173E-03   -1.0636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15286e-09
Minuit parameter uncertainties:
  1  5.09709
  2  2.88925
  3  4.54213e-07
  4  120.226
  5  27.2809
  6  1.69553e-05
  7  4.14632e-05
  8  45.1415
  9  59.4166
  10  6.74538
  11  4.65699
  12  15.3782
  13  31.444
  14  3.40145
  15  8.08298
  16  3.48029e-05
  17  2.06529e-05
  18  1.3372
  19  3.74135
  20  84.6004
  21  0.233197
  22  0.210556
Done.

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

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  1.504e+00  4.657e+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:  6.295e-01  2.106e-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.203e+00  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 19.001 -11.606
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/506120/likelihoodResults_386035201_386294401_4FGL_J0116.0-1136_daily_bin566.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) = 4377.60802878
delta logL = 0.287987634392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4377.48882814
delta logL = 0.407188280028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39114E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.9394       1.0000          .0000       10.000    
     3 'Normalizat'    1.1422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67352       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=   4377.489     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      362 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37181E-03    .94171E-02    .32332E-03** at limit **
   2  Index         7.9666        3.0747        .20699        .92322E-04
   3  Normalizat    1.1426        .40552E-01    .36494E-01    .17401E-04
   4  Prefactor     .67337        .38082E-01    .61767E-01    .21456E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000371807
  Index      = 7.96664
  Normalizat = 1.14258
  Prefactor  = 0.673371
 **********
 **   18 **HESSE 
 **********

 FCN=   4377.489     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      397 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37181E-03    .32924E-01    .16682E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9666        8.9537        .74737E-02    .63519    
   3  Normalizat    1.1426        .16380        .22995E-03   -.88396    
   4  Prefactor     .67337        .15027        .27324E-03   -1.0458    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81257e-10
Minuit parameter uncertainties:
  1  0.00598299
  2  8.25839
  3  0.163873
  4  0.150362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506120': 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) = 4377.48881662
delta logL = 0.407199795794

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  3.718e-04  5.983e-03  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  7.967e+00  8.258e+00  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:  6.734e-01  1.504e-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.143e+00  1.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 19.001 -11.606
Photon Index (Free Index): 7.97 +/- 8.26
Photon Flux (Free Index): 6.66e-08 +/- 7.29e-08
Energy Flux (Free Index): 7.74e-06 +/- 9.07e-06

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/506120/cmap_HighResolution_386035201_386294401_4FGL_J0116.0-1136_daily_bin566.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.16e-03', comment='SUCCESS', energy_flux2='7.74e-06', dlogl='4.07e-01', photon_flux2='6.66e-08', job_status='DONE', time_completed='2021-08-13 21:12:19.471835', photon_index_error2='8.26', photon_index2='7.97', ts='0.13', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='9.07e-06', EG='1.20', time_epoch_completed='1628914339.47', return_code='0', job_id='506120', GAL2='0.67', EG2='1.14', return_code2='102', photon_flux_error2='7.29e-08', ts2='1.01', photon_index='2.36' WHERE bin_id='566' AND source_name='4FGL J0116.0-1136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:12:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 506120: <4FGL_J0116.0-1136_daily_bin566> in cluster <slac> Done

Job <4FGL_J0116.0-1136_daily_bin566> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 21:00:51 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:03:55 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:03:55 2021
Terminated at Fri Aug 13 21:12:19 2021
Results reported at Fri Aug 13 21:12:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0116.0-1136_daily_bin566 19.0006 -11.606 386035201 386294401 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 :                                   488.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   504 sec.
    Turnaround time :                            688 sec.

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

