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


Performing analysis on: 4FGL_J0116.0-1136_daily_bin846
RA = 19.0006, Dec = -11.606
tmin = 458611201, tmax = 458870401
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='510236', job_status='RUN', time_executed='2021-08-13 21:15:56.203086', time_epoch_executed='1628914556.2' WHERE source_name='4FGL J0116.0-1136' and cadence='daily' and bin_id='846'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510236

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510236/ft1_4FGL_J0116.0-1136_daily_bin846.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510236/ft2_4FGL_J0116.0-1136_daily_bin846.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510236/ft1_4FGL_J0116.0-1136_daily_bin846.fits outfile=/scratch/kocevski/510236/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin846.fits ra=19.0006 dec=-11.606 rad=12.0 tmin=458611201.0 tmax=458870401.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.42
user 3.40
sys 0.97

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510236/ft1_filtered_4FGL_J0116.0-1136_daily_bin846.fits" evtable="EVENTS" scfile=/scratch/kocevski/510236/ft2_4FGL_J0116.0-1136_daily_bin846.fits sctable="SC_DATA" outfile=/scratch/kocevski/510236/ltcube_458611201_458870401_4FGL_J0116.0-1136_daily_bin846.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/510236/ft2_4FGL_J0116.0-1136_daily_bin846.fits
.....................!
real 13.66
user 12.40
sys 1.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510236/ft1_filtered_4FGL_J0116.0-1136_daily_bin846.fits evtable="EVENTS" scfile=/scratch/kocevski/510236/ft2_4FGL_J0116.0-1136_daily_bin846.fits sctable="SC_DATA" expcube=/scratch/kocevski/510236/ltcube_458611201_458870401_4FGL_J0116.0-1136_daily_bin846.fits outfile=/scratch/kocevski/510236/expmap_458611201_458870401_4FGL_J0116.0-1136_daily_bin846.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/510236/ltcube_458611201_458870401_4FGL_J0116.0-1136_daily_bin846.fits
.....................!
real 190.68
user 184.93
sys 5.15

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/510236/ft1_filtered_4FGL_J0116.0-1136_daily_bin846.fits scfile=/scratch/kocevski/510236/ft2_4FGL_J0116.0-1136_daily_bin846.fits outfile=/scratch/kocevski/510236/cmap_458611201_458870401_4FGL_J0116.0-1136_daily_bin846.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.22
user 0.38
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510236/ft1_filtered_4FGL_J0116.0-1136_daily_bin846.fits scfile=/scratch/kocevski/510236/ft2_4FGL_J0116.0-1136_daily_bin846.fits outfile=/scratch/kocevski/510236/cmap_HighResolution_458611201_458870401_4FGL_J0116.0-1136_daily_bin846.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.34
user 0.38
sys 0.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/510236/ft1_filtered_4FGL_J0116.0-1136_daily_bin846.fits evtable="EVENTS" scfile=/scratch/kocevski/510236/ft2_4FGL_J0116.0-1136_daily_bin846.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/510236/Model_4FGL_J0116.0-1136_daily_bin846.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/510236/ft1_filtered_4FGL_J0116.0-1136_daily_bin846.fits.....................!
real 44.68
user 42.25
sys 2.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.200       1.0000         .10000E-03   10000.    
     2 'norm      '    3.5988       1.0000         .10000E-03   10000.    
     3 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12182E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.789       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6866       1.0000         .10000E-03   10000.    
     9 'Prefactor '    90.313       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.000       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.5313       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8970       1.0000         .10000E-03   10000.    
    17 'norm      '    11.482       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2268       1.0000         .10000E-03   10000.    
    19 'norm      '    13.566       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .32047       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1849       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=   3988.387     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2383 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.205        5.4622        .88743E-05    .51336E-03
   2  norm          3.5994        3.4065        .71942E-06    .26104E-03
   3  norm          .10000E-03    2.0967        .37858E-06** at limit **
   4  Prefactor     .10000E-03    140.02        .19443E-04** at limit **
   5  Prefactor     22.788        26.432       -.10359E-05    .29569E-04
   6  Prefactor     .10000E-03    14.400       -.18894E-05** at limit **
   7  norm          .10000E-03    12.818        .89186E-07** at limit **
   8  Prefactor     8.6048        71.058       -.16679E-03   -.33276E-04
   9  Prefactor     90.311        53.685        .32800E-05    .11641E-03
  10  Prefactor     .10000E-03    9.6584       -.91148E-07** at limit **
  11  Prefactor     .10000E-03    1.2156        .17465E-07** at limit **
  12  Prefactor     18.997        14.066        .14042E-06   -.70909E-04
  13  Prefactor     .10000E-03    13.972        .22391E-05** at limit **
  14  norm          4.5317        3.3482       -.10302E-05   -.17786E-03
  15  Prefactor     .10000E-03    3.0620        .58595E-07** at limit **
  16  Prefactor     3.8961        5.7045        .33490E-05   -.21819E-03
  17  norm          11.483        17.566       -.14273E-05   -.43211E-06
  18  norm          2.2267        1.4899       -.47216E-06   -.21862E-03
  19  norm          13.565        7.1970       -.82850E-06   -.55876E-05
  20  Prefactor     .10000E-03    30.285       -.68495E-06** at limit **
  21  Normalizat    .32067        .20542        .93480E-05    .23195E-03
  22  Prefactor     1.1847        .19789        .24789E-05    .90764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.205
  norm       = 3.59942
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.788
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.6048
  Prefactor  = 90.311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.997
  Prefactor  = 0.0001
  norm       = 4.53166
  Prefactor  = 0.0001
  Prefactor  = 3.89606
  norm       = 11.4827
  norm       = 2.22667
  norm       = 13.5652
  Prefactor  = 0.0001
  Normalizat = 0.320674
  Prefactor  = 1.18472
 **********
 **   18 **HESSE 
 **********

 FCN=   3988.387     FROM HESSE     STATUS=OK           342 CALLS     2725 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.205        5.4555        .89223E-04   -1.5069    
   2  norm          3.5994        3.4060        .10881E-03   -1.5329    
   3  norm          .10000E-03    2.1011        .89289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    140.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.788        26.335        .83908E-04   -1.4753    
   6  Prefactor     .10000E-03    14.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.6048        71.480        .13600E-03   -1.5121    
   9  Prefactor     90.311        53.467        .42282E-04   -1.3804    
  10  Prefactor     .10000E-03    10.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.2258        .67986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.997        14.086        .91885E-04   -1.4836    
  13  Prefactor     .10000E-03    13.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.5317        3.3517        .85819E-04   -1.5282    
  15  Prefactor     .10000E-03    3.0658        .10792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8961        5.6659        .16839E-03   -1.5313    
  17  norm          11.483        17.548        .11822E-03   -1.5030    
  18  norm          2.2267        1.4840        .59586E-04   -1.5410    
  19  norm          13.565        7.1856        .10875E-03   -1.4971    
  20  Prefactor     .10000E-03    30.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .32067        .20946        .35699E-03   -1.2162    
  22  Prefactor     1.1847        .20646        .19743E-03   -.86803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08664e-09
Minuit parameter uncertainties:
  1  5.45577
  2  3.40615
  3  5.71084e-05
  4  0.000683084
  5  26.3483
  6  9.06941e-05
  7  6.87788e-05
  8  49.6818
  9  53.4952
  10  3.79639e-05
  11  2.52081e-06
  12  14.0884
  13  7.67855e-05
  14  3.35185
  15  1.09359e-05
  16  5.66672
  17  17.5554
  18  1.48403
  19  7.18609
  20  3.97714e-05
  21  0.209971
  22  0.206596
Done.

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

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  2.521e-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:  1.185e+00  2.066e-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:  3.207e-01  2.100e-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.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/510236/likelihoodResults_458611201_458870401_4FGL_J0116.0-1136_daily_bin846.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) = 3988.39092741
delta logL = -0.00366752943137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3988.38725952
delta logL = 3.6422852645e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3444       1.0000          .0000       10.000    
     3 'Normalizat'    .32061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1848       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=   3988.387     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      255 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.231        .68957E-02** at limit **
   2  Index         1.6901        6.4273        .50000       -.18159E-06
   3  Normalizat    .32067        .15568E-01    .35699E-03   -.52285E-03
   4  Prefactor     1.1847        .16088E-01    .19743E-03   -.93245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.69013
  Normalizat = 0.320669
  Prefactor  = 1.18472
 **********
 **   18 **HESSE 
 **********

 FCN=   3988.387     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    144.97        .78678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6901        8.5540        .50000       -.72345    
   3  Normalizat    .32067        .47449E-01    .14280E-04   -1.2162    
   4  Prefactor     1.1847        .49036E-01    .39485E-04   -.86803    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20878e-09
Minuit parameter uncertainties:
  1  8.78541e-07
  2  606.279
  3  0.0474546
  4  0.0490383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510236': 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) = 3988.38724974
delta logL = 1.01404825728e-05

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  8.785e-07  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  1.690e+00  6.063e+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:  1.185e+00  4.904e-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:  3.207e-01  4.745e-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/510236/cmap_HighResolution_458611201_458870401_4FGL_J0116.0-1136_daily_bin846.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.47e-08', time_completed='2021-08-13 21:24:55.144928', job_id='510236', GAL2='1.18', fit_tolerance='1e-08', EG2='0.32', EG='0.32', time_epoch_completed='1628915095.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.01e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='846' AND source_name='4FGL J0116.0-1136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:24:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 510236: <4FGL_J0116.0-1136_daily_bin846> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0116.0-1136_daily_bin846 19.0006 -11.606 458611201 458870401 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 :                                   549.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            575 sec.

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

