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


Performing analysis on: 4FGL_J0116.0-1136_daily_bin834
RA = 19.0006, Dec = -11.606
tmin = 455500801, tmax = 455760001
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='507557', job_status='RUN', time_executed='2021-08-13 21:09:32.385149', time_epoch_executed='1628914172.39' WHERE source_name='4FGL J0116.0-1136' and cadence='daily' and bin_id='834'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507557

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507557/ft1_4FGL_J0116.0-1136_daily_bin834.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507557/ft2_4FGL_J0116.0-1136_daily_bin834.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507557/ft1_4FGL_J0116.0-1136_daily_bin834.fits outfile=/scratch/kocevski/507557/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin834.fits ra=19.0006 dec=-11.606 rad=12.0 tmin=455500801.0 tmax=455760001.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 8.92
user 3.22
sys 5.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/507557/ft2_4FGL_J0116.0-1136_daily_bin834.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/507557/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin834.fits evtable="EVENTS" outfile="/scratch/kocevski/507557/ft1_filtered_4FGL_J0116.0-1136_daily_bin834.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.50
user 0.33
sys 5.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507557/ft1_filtered_4FGL_J0116.0-1136_daily_bin834.fits" evtable="EVENTS" scfile=/scratch/kocevski/507557/ft2_4FGL_J0116.0-1136_daily_bin834.fits sctable="SC_DATA" outfile=/scratch/kocevski/507557/ltcube_455500801_455760001_4FGL_J0116.0-1136_daily_bin834.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/507557/ft2_4FGL_J0116.0-1136_daily_bin834.fits
.....................!
real 19.60
user 13.32
sys 6.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507557/ft1_filtered_4FGL_J0116.0-1136_daily_bin834.fits evtable="EVENTS" scfile=/scratch/kocevski/507557/ft2_4FGL_J0116.0-1136_daily_bin834.fits sctable="SC_DATA" expcube=/scratch/kocevski/507557/ltcube_455500801_455760001_4FGL_J0116.0-1136_daily_bin834.fits outfile=/scratch/kocevski/507557/expmap_455500801_455760001_4FGL_J0116.0-1136_daily_bin834.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/507557/ltcube_455500801_455760001_4FGL_J0116.0-1136_daily_bin834.fits
.....................!
real 197.87
user 186.83
sys 10.58

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/507557/ft1_filtered_4FGL_J0116.0-1136_daily_bin834.fits scfile=/scratch/kocevski/507557/ft2_4FGL_J0116.0-1136_daily_bin834.fits outfile=/scratch/kocevski/507557/cmap_455500801_455760001_4FGL_J0116.0-1136_daily_bin834.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.73
user 0.39
sys 5.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507557/ft1_filtered_4FGL_J0116.0-1136_daily_bin834.fits scfile=/scratch/kocevski/507557/ft2_4FGL_J0116.0-1136_daily_bin834.fits outfile=/scratch/kocevski/507557/cmap_HighResolution_455500801_455760001_4FGL_J0116.0-1136_daily_bin834.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.46
user 0.39
sys 5.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507557/ft1_filtered_4FGL_J0116.0-1136_daily_bin834.fits evtable="EVENTS" scfile=/scratch/kocevski/507557/ft2_4FGL_J0116.0-1136_daily_bin834.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507557/Model_4FGL_J0116.0-1136_daily_bin834.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/507557/ft1_filtered_4FGL_J0116.0-1136_daily_bin834.fits.....................!
real 63.77
user 55.49
sys 8.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.9841       1.0000         .10000E-03   10000.    
     3 'norm      '    5.9197       1.0000         .10000E-03   10000.    
     4 'Prefactor '    68.208       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.878       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6962       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.550       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .61740E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5344       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70699       1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0072       1.0000         .10000E-03   10000.    
    19 'norm      '    .97194E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .61404       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97990       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=   5772.948     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2429 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3402        .90712E-02** at limit **
   2  norm          4.9840        4.2062        .45034E-02    .34483E-03
   3  norm          5.9199        5.8528        .41262E-02    .31091E-03
   4  Prefactor     68.208        84.528        .12150E-02    .73719E-03
   5  Prefactor     .10000E-03    5.9968        .90712E-02** at limit **
   6  Prefactor     .10000E-03    23.903        .90712E-02** at limit **
   7  norm          .10000E-03    4.2947        .90712E-02** at limit **
   8  Prefactor     36.877        26.541        .16499E-02    .28973E-03
   9  Prefactor     .10000E-03    14.965        .90712E-02** at limit **
  10  Prefactor     .10000E-03    3.9379        .48957E-01** at limit **
  11  Prefactor     3.6962        3.5135        .52516E-02    .36773E-03
  12  Prefactor     26.535        11.876        .19437E-02    .25469E-03
  13  Prefactor     .10000E-03    9.4169        .90712E-02** at limit **
  14  norm          .10021E-03    1.1782        .56883E-01** at limit **
  15  Prefactor     3.5347        7.4288        .53754E-02    .31566E-03
  16  Prefactor     .70735        5.7665        .12089E-01    .12706E-02
  17  norm          .10000E-03    7.2811        .90712E-02** at limit **
  18  norm          1.0072        .93556        .13326E-01    .39350E-03
  19  norm          .10001E-03    2.5864        .72860E-01** at limit **
  20  Prefactor     .10000E-03    48.757        .90712E-02** at limit **
  21  Normalizat    .61406        .14826        .41131E-01   -.18048E-03
  22  Prefactor     .97990        .14375        .46015E-01   -.15874E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.984
  norm       = 5.91985
  Prefactor  = 68.2077
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 36.8767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.69619
  Prefactor  = 26.5355
  Prefactor  = 0.0001
  norm       = 0.000100205
  Prefactor  = 3.5347
  Prefactor  = 0.707346
  norm       = 0.0001
  norm       = 1.00716
  norm       = 0.000100007
  Prefactor  = 0.000100005
  Normalizat = 0.614063
  Prefactor  = 0.979898
 **********
 **   18 **HESSE 
 **********

 FCN=   5772.948     FROM HESSE     STATUS=OK           350 CALLS     2779 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3651        .85663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9840        4.1884        .13360E-03   -1.5261    
   3  norm          5.9199        5.8321        .16505E-03   -1.5221    
   4  Prefactor     68.208        84.586        .48600E-04   -1.4054    
   5  Prefactor     .10000E-03    6.0064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.2995        .15375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.877        26.450        .65996E-04   -1.4493    
   9  Prefactor     .10000E-03    14.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.3156        .29016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6962        3.5046        .13066E-03   -1.5323    
  12  Prefactor     26.535        12.397        .77747E-04   -1.4677    
  13  Prefactor     .10000E-03    9.4220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10021E-03    4.0166        .24914E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5347        7.4107        .21501E-03   -1.5332    
  16  Prefactor     .70735        5.4406        .31193E-03   -1.5540    
  17  norm          .10000E-03    7.2894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0072        .90391        .67117E-03   -1.5507    
  19  norm          .10001E-03    20.696        .23252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    48.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .61406        .16662        .24928E-03   -1.0739    
  22  Prefactor     .97990        .16512        .20549E-03   -.93403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79004e-09
Minuit parameter uncertainties:
  1  9.38409e-06
  2  4.18862
  3  5.83262
  4  84.7352
  5  1.5673e-05
  6  0.000258568
  7  2.99889e-06
  8  26.458
  9  0.000140038
  10  0.000122381
  11  3.5048
  12  12.3977
  13  2.98338e-05
  14  0.00181584
  15  7.41264
  16  3.9237
  17  1.92969e-05
  18  0.903924
  19  0.000755763
  20  0.000946305
  21  0.166753
  22  0.165207
Done.

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

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  3.696e+00  3.505e+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:  9.799e-01  1.652e-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:  6.141e-01  1.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 19.001 -11.606
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 3.43e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.12e-05

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

Saving results to:
/scratch/kocevski/507557/likelihoodResults_455500801_455760001_4FGL_J0116.0-1136_daily_bin834.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) = 5772.57540386
delta logL = 0.372592430613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5772.56608877
delta logL = 0.381907517294

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8958       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1450       1.0000          .0000       10.000    
     3 'Normalizat'    .58429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99989       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=   5772.566     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      237 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8952        24.501        .75533E-02    .60451E-03
   2  Index         3.1452        3.1594        .16617        .10354E-03
   3  Normalizat    .58429        .40977E-01    .40724E-01    .26094E-04
   4  Prefactor     .99989        .41622E-01    .46266E-01    .33273E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.89521
  Index      = 3.14523
  Normalizat = 0.584291
  Prefactor  = 0.999889
 **********
 **   18 **HESSE 
 **********

 FCN=   5772.566     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8952        4.9502        .74867E-04   -1.5433    
   2  Index         3.1452        1.6289        .56533E-02   -.38004    
   3  Normalizat    .58429        .16404        .25503E-03   -1.0866    
   4  Prefactor     .99989        .16624        .20364E-03   -.92733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16746e-11
Minuit parameter uncertainties:
  1  4.95132
  2  1.66428
  3  0.16418
  4  0.166325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507557': 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) = 5772.56608875
delta logL = 0.381907542114

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  1.895e+00  4.951e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  3.145e+00  1.664e+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:  9.999e-01  1.663e-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:  5.843e-01  1.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 19.001 -11.606
Photon Index (Free Index): 3.15 +/- 1.66
Photon Flux (Free Index): 5.56e-08 +/- 4.30e-08
Energy Flux (Free Index): 1.04e-05 +/- 9.71e-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/507557/cmap_HighResolution_455500801_455760001_4FGL_J0116.0-1136_daily_bin834.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.81e-03', comment='SUCCESS', photon_flux='3.43e-08', energy_flux2='1.04e-05', photon_flux_error='3.25e-08', dlogl='3.82e-01', energy_flux='1.18e-05', photon_flux2='5.56e-08', job_status='DONE', time_completed='2021-08-13 21:21:21.987611', photon_index_error2='1.66', photon_index2='3.15', ts='1.46', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='9.71e-06', EG='0.61', time_epoch_completed='1628914881.99', return_code='0', job_id='507557', GAL2='1.00', EG2='0.58', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.30e-08', ts2='2.28', photon_index='2.36' WHERE bin_id='834' AND source_name='4FGL J0116.0-1136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:21:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 507557: <4FGL_J0116.0-1136_daily_bin834> in cluster <slac> Done

Job <4FGL_J0116.0-1136_daily_bin834> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 21:05:47 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:08:01 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:08:01 2021
Terminated at Fri Aug 13 21:21:23 2021
Results reported at Fri Aug 13 21:21:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0116.0-1136_daily_bin834 19.0006 -11.606 455500801 455760001 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 :                                   785.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            936 sec.

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

