/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 116 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0116.0-1136_daily_bin188
RA = 19.0006, Dec = -11.606
tmin = 288057601, tmax = 288316801
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='504569', job_status='RUN', time_executed='2021-08-13 21:01:56.384679', time_epoch_executed='1628913716.38' WHERE source_name='4FGL J0116.0-1136' and cadence='daily' and bin_id='188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504569

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504569/ft1_4FGL_J0116.0-1136_daily_bin188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504569/ft2_4FGL_J0116.0-1136_daily_bin188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504569/ft1_4FGL_J0116.0-1136_daily_bin188.fits outfile=/scratch/kocevski/504569/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin188.fits ra=19.0006 dec=-11.606 rad=12.0 tmin=288057601.0 tmax=288316801.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 6.17
user 3.38
sys 2.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504569/ft2_4FGL_J0116.0-1136_daily_bin188.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/504569/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin188.fits evtable="EVENTS" outfile="/scratch/kocevski/504569/ft1_filtered_4FGL_J0116.0-1136_daily_bin188.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 2.83
user 0.35
sys 2.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504569/ft1_filtered_4FGL_J0116.0-1136_daily_bin188.fits" evtable="EVENTS" scfile=/scratch/kocevski/504569/ft2_4FGL_J0116.0-1136_daily_bin188.fits sctable="SC_DATA" outfile=/scratch/kocevski/504569/ltcube_288057601_288316801_4FGL_J0116.0-1136_daily_bin188.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/504569/ft2_4FGL_J0116.0-1136_daily_bin188.fits
.....................!
real 15.41
user 12.14
sys 3.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504569/ft1_filtered_4FGL_J0116.0-1136_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/504569/ft2_4FGL_J0116.0-1136_daily_bin188.fits sctable="SC_DATA" expcube=/scratch/kocevski/504569/ltcube_288057601_288316801_4FGL_J0116.0-1136_daily_bin188.fits outfile=/scratch/kocevski/504569/expmap_288057601_288316801_4FGL_J0116.0-1136_daily_bin188.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/504569/ltcube_288057601_288316801_4FGL_J0116.0-1136_daily_bin188.fits
.....................!
real 194.40
user 185.44
sys 8.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/504569/ft1_filtered_4FGL_J0116.0-1136_daily_bin188.fits scfile=/scratch/kocevski/504569/ft2_4FGL_J0116.0-1136_daily_bin188.fits outfile=/scratch/kocevski/504569/cmap_288057601_288316801_4FGL_J0116.0-1136_daily_bin188.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 3.04
user 0.38
sys 2.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504569/ft1_filtered_4FGL_J0116.0-1136_daily_bin188.fits scfile=/scratch/kocevski/504569/ft2_4FGL_J0116.0-1136_daily_bin188.fits outfile=/scratch/kocevski/504569/cmap_HighResolution_288057601_288316801_4FGL_J0116.0-1136_daily_bin188.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 3.05
user 0.39
sys 2.64

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504569/ft1_filtered_4FGL_J0116.0-1136_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/504569/ft2_4FGL_J0116.0-1136_daily_bin188.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504569/Model_4FGL_J0116.0-1136_daily_bin188.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/504569/ft1_filtered_4FGL_J0116.0-1136_daily_bin188.fits.....................!
real 47.63
user 43.09
sys 4.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6168       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.2642       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14396E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5724       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35257E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.9803       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4624       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.8324       1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.9638       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2749       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73050       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=   4047.524     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2030 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3054        .20625E-06** at limit **
   2  norm          .10000E-03    2.2113        .19964E-07** at limit **
   3  norm          6.6159        7.8608        .67714E-07    .20196E-03
   4  Prefactor     .10000E-03    36.169       -.40444E-06** at limit **
   5  Prefactor     .10000E-03    26.351        .11991E-06** at limit **
   6  Prefactor     .10000E-03    47.896       -.93760E-06** at limit **
   7  norm          5.2639        9.4315       -.88961E-07    .27179E-05
   8  Prefactor     .10000E-03    13.678        .10638E-05** at limit **
   9  Prefactor     .10000E-03    13.806       -.10226E-05** at limit **
  10  Prefactor     .10000E-03    2.2518       -.40934E-07** at limit **
  11  Prefactor     .10451E-03    10.295       -.34158E-05** at limit **
  12  Prefactor     9.5782        16.106       -.20846E-06    .62754E-04
  13  Prefactor     .10015E-03    317.28        .18633E-04** at limit **
  14  norm          4.9793        3.7305       -.31206E-07    .10594E-03
  15  Prefactor     1.4660        26.412        .99081E-06    .37767E-03
  16  Prefactor     .10000E-03    3.3313       -.59423E-07** at limit **
  17  norm          9.8307        35.784        .27467E-05    .19625E-03
  18  norm          .10000E-03    1.0817       -.43459E-06** at limit **
  19  norm          7.9644        6.6182       -.23976E-06    .94191E-04
  20  Prefactor     .10000E-03    26.432        .21218E-06** at limit **
  21  Normalizat    1.2750        .20592        .12423E-05    .92909E-03
  22  Prefactor     .73046        .19230        .44517E-06    .68925E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.61587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.2639
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000104515
  Prefactor  = 9.5782
  Prefactor  = 0.000100149
  norm       = 4.97926
  Prefactor  = 1.46601
  Prefactor  = 0.0001
  norm       = 9.83069
  norm       = 0.0001
  norm       = 7.96436
  Prefactor  = 0.0001
  Normalizat = 1.27501
  Prefactor  = 0.730462
 **********
 **   18 **HESSE 
 **********

 FCN=   4047.524     FROM HESSE     STATUS=OK           338 CALLS     2368 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3164        .93948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.2257        .92341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6159        7.8427        .15600E-03   -1.5193    
   4  Prefactor     .10000E-03    36.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.2639        9.4233        .17519E-03   -1.5249    
   8  Prefactor     .10000E-03    13.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2586        .93246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10451E-03    92.435        .20973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.5782        16.228        .12953E-03   -1.5089    
  13  Prefactor     .10015E-03    309.50        .42641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9793        3.7542        .88216E-04   -1.5262    
  15  Prefactor     1.4660        26.871        .17786E-02   -1.5466    
  16  Prefactor     .10000E-03    3.3464        .11335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.8307        35.656        .12779E-03   -1.5081    
  18  norm          .10000E-03    1.7317        .12719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.9644        6.6099        .13980E-03   -1.5143    
  20  Prefactor     .10000E-03    26.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2750        .23511        .22232E-03   -.84315    
  22  Prefactor     .73046        .22019        .26696E-03   -1.0234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7081e-08
Minuit parameter uncertainties:
  1  6.90171e-06
  2  1.05877e-06
  3  7.84387
  4  0.000114197
  5  2.29505e-05
  6  0.000315763
  7  9.42599
  8  0.000170392
  9  0.000180512
  10  4.2209e-06
  11  0.0409209
  12  16.2359
  13  0.0136739
  14  3.7544
  15  12.559
  16  5.51305e-06
  17  35.7338
  18  1.14185e-05
  19  6.61052
  20  4.69308e-05
  21  0.235312
  22  0.220452
Done.

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

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  1.045e-04  4.092e-02  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:  7.305e-01  2.205e-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.275e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/504569/likelihoodResults_288057601_288316801_4FGL_J0116.0-1136_daily_bin188.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): 102
logL (Free Index) = 4047.5241113
delta logL = -5.11288799316e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4047.27179195
delta logL = 0.25226822164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94715       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4826       1.0000          .0000       10.000    
     3 'Normalizat'    1.2290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74894       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=   4047.272     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      277 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94922        35.835        .12978E-01    .67915E-03
   2  Index         3.4815        6.7039        .15663        .73096E-04
   3  Normalizat    1.2289        .48190E-01    .51076E-01   -.11378E-05
   4  Prefactor     .74904        .45585E-01    .43049E-01    .18345E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.949216
  Index      = 3.48152
  Normalizat = 1.22891
  Prefactor  = 0.749044
 **********
 **   18 **HESSE 
 **********

 FCN=   4047.272     FROM HESSE     STATUS=OK            33 CALLS      310 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94922        3.3700        .89769E-04   -1.5513    
   2  Index         3.4815        1.8699        .81725E-02   -.30857    
   3  Normalizat    1.2289        .23804        .22581E-03   -.85714    
   4  Prefactor     .74904        .21742        .26382E-03   -1.0163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42619e-08
Minuit parameter uncertainties:
  1  3.37069
  2  1.92155
  3  0.238249
  4  0.21767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504569': 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) = 4047.27179145
delta logL = 0.25226872239

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  9.492e-01  3.371e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  3.482e+00  1.922e+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:  7.490e-01  2.177e-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.229e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 19.001 -11.606

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/504569/cmap_HighResolution_288057601_288316801_4FGL_J0116.0-1136_daily_bin188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-08-13 21:11:10.322937', job_id='504569', GAL2='0.75', fit_tolerance='1e-08', EG2='1.23', EG='1.28', time_epoch_completed='1628914270.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.52e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='188' AND source_name='4FGL J0116.0-1136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:11:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 504569: <4FGL_J0116.0-1136_daily_bin188> in cluster <slac> Done

Job <4FGL_J0116.0-1136_daily_bin188> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 20:55:56 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 20:59: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 20:59:10 2021
Terminated at Fri Aug 13 21:11:11 2021
Results reported at Fri Aug 13 21:11:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0116.0-1136_daily_bin188 19.0006 -11.606 288057601 288316801 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 :                                   591.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            915 sec.

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

