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


Performing analysis on: 4FGL_J0116.0-1136_daily_bin857
RA = 19.0006, Dec = -11.606
tmin = 461462401, tmax = 461721601
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='507593', job_status='RUN', time_executed='2021-08-13 21:08:54.937867', time_epoch_executed='1628914134.94' WHERE source_name='4FGL J0116.0-1136' and cadence='daily' and bin_id='857'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507593

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507593/ft1_4FGL_J0116.0-1136_daily_bin857.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507593/ft2_4FGL_J0116.0-1136_daily_bin857.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507593/ft1_4FGL_J0116.0-1136_daily_bin857.fits outfile=/scratch/kocevski/507593/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin857.fits ra=19.0006 dec=-11.606 rad=12.0 tmin=461462401.0 tmax=461721601.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 4.77
user 3.70
sys 1.05

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507593/ft1_filtered_4FGL_J0116.0-1136_daily_bin857.fits" evtable="EVENTS" scfile=/scratch/kocevski/507593/ft2_4FGL_J0116.0-1136_daily_bin857.fits sctable="SC_DATA" outfile=/scratch/kocevski/507593/ltcube_461462401_461721601_4FGL_J0116.0-1136_daily_bin857.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/507593/ft2_4FGL_J0116.0-1136_daily_bin857.fits
.....................!
real 13.00
user 11.60
sys 1.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507593/ft1_filtered_4FGL_J0116.0-1136_daily_bin857.fits evtable="EVENTS" scfile=/scratch/kocevski/507593/ft2_4FGL_J0116.0-1136_daily_bin857.fits sctable="SC_DATA" expcube=/scratch/kocevski/507593/ltcube_461462401_461721601_4FGL_J0116.0-1136_daily_bin857.fits outfile=/scratch/kocevski/507593/expmap_461462401_461721601_4FGL_J0116.0-1136_daily_bin857.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/507593/ltcube_461462401_461721601_4FGL_J0116.0-1136_daily_bin857.fits
.....................!
real 192.44
user 185.53
sys 6.29

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/507593/ft1_filtered_4FGL_J0116.0-1136_daily_bin857.fits scfile=/scratch/kocevski/507593/ft2_4FGL_J0116.0-1136_daily_bin857.fits outfile=/scratch/kocevski/507593/cmap_461462401_461721601_4FGL_J0116.0-1136_daily_bin857.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.41
user 0.37
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507593/ft1_filtered_4FGL_J0116.0-1136_daily_bin857.fits scfile=/scratch/kocevski/507593/ft2_4FGL_J0116.0-1136_daily_bin857.fits outfile=/scratch/kocevski/507593/cmap_HighResolution_461462401_461721601_4FGL_J0116.0-1136_daily_bin857.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.40
user 0.38
sys 1.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507593/ft1_filtered_4FGL_J0116.0-1136_daily_bin857.fits evtable="EVENTS" scfile=/scratch/kocevski/507593/ft2_4FGL_J0116.0-1136_daily_bin857.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507593/Model_4FGL_J0116.0-1136_daily_bin857.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/507593/ft1_filtered_4FGL_J0116.0-1136_daily_bin857.fits.....................!
real 58.22
user 55.73
sys 2.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6946       1.0000         .10000E-03   10000.    
     2 'norm      '    7.3103       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.107       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9473       1.0000         .10000E-03   10000.    
     7 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.876       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10560E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9897       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .86423       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0325       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.3972       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0525       1.0000         .10000E-03   10000.    
    19 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.561       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85443       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85895       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=   6022.592     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2085 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6948        3.7165       -.13884E-05    .23406E-03
   2  norm          7.3111        3.2458        .38934E-07    .22324E-03
   3  norm          .10000E-03    2.3066       -.27809E-06** at limit **
   4  Prefactor     .10000E-03    28.828        .33727E-04** at limit **
   5  Prefactor     12.095        13.050       -.41443E-05    .55390E-04
   6  Prefactor     5.9468        20.122        .42522E-06   -.51134E-06
   7  norm          .10000E-03    3.0900       -.87158E-07** at limit **
   8  Prefactor     24.864        25.852        .13222E-04    .19267E-03
   9  Prefactor     .10000E-03    29.758       -.35459E-04** at limit **
  10  Prefactor     7.9864        6.8849       -.41231E-05    .42514E-03
  11  Prefactor     .10000E-03    1.4272       -.41828E-07** at limit **
  12  Prefactor     .10000E-03    6.8543        .18469E-06** at limit **
  13  Prefactor     .58968        37.624       -.99571E-05    .19547E-03
  14  norm          3.0323        1.7505       -.24282E-07   -.65375E-04
  15  Prefactor     .10000E-03    6.5466       -.20546E-06** at limit **
  16  Prefactor     .10000E-03    2.4737       -.13649E-06** at limit **
  17  norm          4.3747        18.969        .23610E-04    .16954E-03
  18  norm          1.0526        1.0750       -.17241E-06   -.64535E-03
  19  norm          .10000E-03    3.4749       -.32108E-06** at limit **
  20  Prefactor     13.554        108.33       -.23708E-04    .17446E-04
  21  Normalizat    .85449        .14851        .61402E-06    .78308E-03
  22  Prefactor     .85895        .14492       -.19671E-06    .82026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.69481
  norm       = 7.31115
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0951
  Prefactor  = 5.94683
  norm       = 0.0001
  Prefactor  = 24.8644
  Prefactor  = 0.000100001
  Prefactor  = 7.98645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.589682
  norm       = 3.03234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.37466
  norm       = 1.05257
  norm       = 0.0001
  Prefactor  = 13.5535
  Normalizat = 0.854485
  Prefactor  = 0.858955
 **********
 **   18 **HESSE 
 **********

 FCN=   6022.592     FROM HESSE     STATUS=OK           348 CALLS     2433 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6948        3.7161        .94364E-04   -1.5153    
   2  norm          7.3111        3.2443        .88879E-04   -1.5167    
   3  norm          .10000E-03    2.3374        .11499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.095        13.053        .11513E-03   -1.5012    
   6  Prefactor     5.9468        20.114        .16466E-03   -1.5220    
   7  norm          .10000E-03    3.0923        .13323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.864        25.890        .80316E-04   -1.4710    
   9  Prefactor     .10000E-03    29.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9864        6.8641        .14185E-03   -1.5143    
  11  Prefactor     .10000E-03    1.4426        .90428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.9365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .58968        52.689        .11761       -1.5554    
  14  norm          3.0323        1.7408        .75075E-04   -1.5360    
  15  Prefactor     .10000E-03    6.6001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5343        .23801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.3747        19.017        .19206E-03   -1.5290    
  18  norm          1.0526        1.0484        .76535E-04   -1.5503    
  19  norm          .10000E-03    3.5915        .28232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.554        108.90        .10877E-03   -1.4971    
  21  Normalizat    .85449        .16901        .22820E-03   -.98078    
  22  Prefactor     .85895        .16537        .22837E-03   -.97590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34542e-09
Minuit parameter uncertainties:
  1  3.71625
  2  3.24438
  3  1.96757e-05
  4  7.76426e-06
  5  13.0561
  6  20.1372
  7  9.10445e-07
  8  25.9018
  9  0.000266036
  10  6.8648
  11  2.43669e-06
  12  1.69412e-06
  13  11.1572
  14  1.74086
  15  2.77547e-05
  16  1.17591e-06
  17  18.2516
  18  1.04838
  19  5.24224e-05
  20  77.0311
  21  0.169117
  22  0.165466
Done.

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

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  2.437e-06  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.590e-01  1.655e-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:  8.545e-01  1.691e-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: 5.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507593/likelihoodResults_461462401_461721601_4FGL_J0116.0-1136_daily_bin857.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) = 6022.59488231
delta logL = -0.0033002258715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6022.59158207
delta logL = 6.12362782704e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3641       1.0000          .0000       10.000    
     3 'Normalizat'    .85448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85895       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=   6022.592     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      238 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    63.508        .90436E-03** at limit **
   2  Index         2.3777        7.4633        .50000       -.93842E-05
   3  Normalizat    .85448        .26061E-01    .22820E-03    .28895E-05
   4  Prefactor     .85895        .26296E-01    .22837E-03    .15482E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100036
  Index      = 2.3777
  Normalizat = 0.854484
  Prefactor  = 0.858953
 **********
 **   18 **HESSE 
 **********

 FCN=   6022.592     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    241.01        .18087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3777        6.1870        .50000       -.55208    
   3  Normalizat    .85448        .66088E-01    .91281E-05   -.98078    
   4  Prefactor     .85895        .66540E-01    .91347E-05   -.97590    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42612e-08
Minuit parameter uncertainties:
  1  0.0059428
  2  913.955
  3  0.0660945
  4  0.0665461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507593': 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) = 6022.59158205
delta logL = 2.80169842881e-08

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  5.943e-03  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.378e+00  9.140e+02  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.590e-01  6.655e-02  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:  8.545e-01  6.609e-02  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/507593/cmap_HighResolution_461462401_461721601_4FGL_J0116.0-1136_daily_bin857.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.42e-08', time_completed='2021-08-13 21:19:21.900399', job_id='507593', GAL2='0.86', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1628914761.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.80e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='857' AND source_name='4FGL J0116.0-1136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:19:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 507593: <4FGL_J0116.0-1136_daily_bin857> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0116.0-1136_daily_bin857 19.0006 -11.606 461462401 461721601 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 :                                   639.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            813 sec.

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

