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


Performing analysis on: 4FGL_J0116.0-1136_daily_bin1503
RA = 19.0006, Dec = -11.606
tmin = 628905601, tmax = 629164801
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='510542', job_status='RUN', time_executed='2021-08-13 21:21:01.074977', time_epoch_executed='1628914861.08' WHERE source_name='4FGL J0116.0-1136' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510542

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510542/ft1_4FGL_J0116.0-1136_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510542/ft2_4FGL_J0116.0-1136_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510542/ft1_4FGL_J0116.0-1136_daily_bin1503.fits outfile=/scratch/kocevski/510542/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin1503.fits ra=19.0006 dec=-11.606 rad=12.0 tmin=628905601.0 tmax=629164801.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 7.61
user 3.33
sys 4.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510542/ft1_filtered_4FGL_J0116.0-1136_daily_bin1503.fits" evtable="EVENTS" scfile=/scratch/kocevski/510542/ft2_4FGL_J0116.0-1136_daily_bin1503.fits sctable="SC_DATA" outfile=/scratch/kocevski/510542/ltcube_628905601_629164801_4FGL_J0116.0-1136_daily_bin1503.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/510542/ft2_4FGL_J0116.0-1136_daily_bin1503.fits
.....................!
real 17.78
user 12.73
sys 4.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510542/ft1_filtered_4FGL_J0116.0-1136_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/510542/ft2_4FGL_J0116.0-1136_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/510542/ltcube_628905601_629164801_4FGL_J0116.0-1136_daily_bin1503.fits outfile=/scratch/kocevski/510542/expmap_628905601_629164801_4FGL_J0116.0-1136_daily_bin1503.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/510542/ltcube_628905601_629164801_4FGL_J0116.0-1136_daily_bin1503.fits
.....................!
real 197.73
user 186.33
sys 10.84

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/510542/ft1_filtered_4FGL_J0116.0-1136_daily_bin1503.fits scfile=/scratch/kocevski/510542/ft2_4FGL_J0116.0-1136_daily_bin1503.fits outfile=/scratch/kocevski/510542/cmap_628905601_629164801_4FGL_J0116.0-1136_daily_bin1503.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 4.43
user 0.40
sys 4.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510542/ft1_filtered_4FGL_J0116.0-1136_daily_bin1503.fits scfile=/scratch/kocevski/510542/ft2_4FGL_J0116.0-1136_daily_bin1503.fits outfile=/scratch/kocevski/510542/cmap_HighResolution_628905601_629164801_4FGL_J0116.0-1136_daily_bin1503.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 4.46
user 0.40
sys 4.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/510542/ft1_filtered_4FGL_J0116.0-1136_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/510542/ft2_4FGL_J0116.0-1136_daily_bin1503.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/510542/Model_4FGL_J0116.0-1136_daily_bin1503.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/510542/ft1_filtered_4FGL_J0116.0-1136_daily_bin1503.fits.....................!
real 57.79
user 51.18
sys 6.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3369       1.0000         .10000E-03   10000.    
     2 'norm      '    4.8975       1.0000         .10000E-03   10000.    
     3 'norm      '    .89919E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.900       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    65.212       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4883       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.8620       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3941       1.0000         .10000E-03   10000.    
    17 'norm      '    .10354E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0162       1.0000         .10000E-03   10000.    
    19 'norm      '    19.286       1.0000         .10000E-03   10000.    
    20 'Prefactor '    57.927       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0086       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71799       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=   5194.400     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2111 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3342        3.3633       -.56626E-07    .21092E-03
   2  norm          4.8963        3.4290        .10786E-06    .14482E-03
   3  norm          .15664        5.1487        .17078E-05   -.11805E-02
   4  Prefactor     .10000E-03    35.783        .77491E-06** at limit **
   5  Prefactor     10.902        18.686        .63669E-06    .30350E-04
   6  Prefactor     .10000E-03    11.105        .41043E-07** at limit **
   7  norm          .10000E-03    4.2233        .18332E-07** at limit **
   8  Prefactor     65.178        33.795        .56127E-05    .74231E-04
   9  Prefactor     .10000E-03    8.9939       -.90483E-07** at limit **
  10  Prefactor     .10000E-03    2.9301       -.30398E-07** at limit **
  11  Prefactor     .10000E-03    1.1573       -.92453E-08** at limit **
  12  Prefactor     2.4903        13.739        .10069E-04    .16286E-03
  13  Prefactor     .10000E-03    14.094       -.14108E-06** at limit **
  14  norm          7.8617        3.9285       -.12973E-05    .22758E-04
  15  Prefactor     .10000E-03    13.738        .23756E-07** at limit **
  16  Prefactor     3.3937        3.6987        .44772E-06    .12795E-04
  17  norm          .10000E-03    65.451       -.10897E-05** at limit **
  18  norm          1.0162        1.0875        .35798E-07    .68260E-04
  19  norm          19.285        7.7403        .89990E-07    .61592E-04
  20  Prefactor     57.944        58.059       -.19500E-05    .13066E-04
  21  Normalizat    1.0086        .16957       -.79881E-06    .15462E-03
  22  Prefactor     .71790        .16171        .73659E-06    .15901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.33419
  norm       = 4.89631
  norm       = 0.156639
  Prefactor  = 0.0001
  Prefactor  = 10.9015
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 65.1779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.49026
  Prefactor  = 0.0001
  norm       = 7.86171
  Prefactor  = 0.0001
  Prefactor  = 3.39375
  norm       = 0.0001
  norm       = 1.01623
  norm       = 19.2848
  Prefactor  = 57.9444
  Normalizat = 1.00856
  Prefactor  = 0.717896
 **********
 **   18 **HESSE 
 **********

 FCN=   5194.400     FROM HESSE     STATUS=OK           346 CALLS     2457 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3342        3.3573        .10762E-03   -1.5292    
   2  norm          4.8963        3.4285        .10711E-03   -1.5265    
   3  norm          .15664        69.459        .26969E-02   -1.5629    
   4  Prefactor     .10000E-03    35.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.902        18.702        .60677E-03   -1.5047    
   6  Prefactor     .10000E-03    11.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.2283        .14466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     65.178        35.002        .24849E-03   -1.4092    
   9  Prefactor     .10000E-03    8.9971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9708        .12046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.1625        .75696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4903        14.111        .12957E-02   -1.5392    
  13  Prefactor     .10000E-03    14.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.8617        3.9758        .71616E-04   -1.5147    
  15  Prefactor     .10000E-03    14.137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3937        3.6882        .13744E-03   -1.5340    
  17  norm          .10000E-03    66.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0162        1.0468        .73970E-03   -1.5506    
  19  norm          19.285        7.7454        .91202E-04   -1.4829    
  20  Prefactor     57.944        58.055        .26355E-03   -1.4184    
  21  Normalizat    1.0086        .19344        .22569E-03   -.92744    
  22  Prefactor     .71790        .18578        .25439E-03   -1.0283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8045e-08
Minuit parameter uncertainties:
  1  3.35749
  2  3.42861
  3  6.60258
  4  8.51592e-06
  5  18.7119
  6  1.49083e-05
  7  7.03676e-07
  8  35.0132
  9  1.29615e-05
  10  4.28336e-06
  11  8.715e-07
  12  11.86
  13  1.10923e-05
  14  3.97597
  15  9.79714e-07
  16  3.68844
  17  0.000142987
  18  1.04681
  19  7.74582
  20  58.1118
  21  0.193579
  22  0.185942
Done.

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

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  8.715e-07  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.179e-01  1.859e-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.009e+00  1.936e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/510542/likelihoodResults_628905601_629164801_4FGL_J0116.0-1136_daily_bin1503.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) = 5194.40372569
delta logL = -0.00405400582076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5194.39967175
delta logL = -7.21229298506e-08

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'    1.0086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71791       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=   5194.400     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      232 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3237        .75706E-03** at limit **
   2  Index         2.3661        6.1798        .50000       -.15205E-04
   3  Normalizat    1.0086        .18573        .22569E-03    .10830E-04
   4  Prefactor     .71790        .18028        .25438E-03    .28111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36612
  Normalizat = 1.00856
  Prefactor  = 0.717896
 **********
 **   18 **HESSE 
 **********

 FCN=   5194.400     FROM HESSE     STATUS=OK            29 CALLS      261 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1682        .15141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3661        6.1828        .50000       -.55480    
   3  Normalizat    1.0086        .18587        .90277E-05   -.92744    
   4  Prefactor     .71790        .18042        .10175E-04   -1.0283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98443e-10
Minuit parameter uncertainties:
  1  3.53755e-05
  2  4.26064
  3  0.185989
  4  0.180563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510542': 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) = 5194.39967167
delta logL = 1.41635609907e-08

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  3.538e-05  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.366e+00  4.261e+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.179e-01  1.806e-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.009e+00  1.860e-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/510542/cmap_HighResolution_628905601_629164801_4FGL_J0116.0-1136_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-03', job_status='DONE', photon_flux_upper_limit='5.39e-08', time_completed='2021-08-13 21:31:46.878372', job_id='510542', GAL2='0.72', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1628915506.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1503' AND source_name='4FGL J0116.0-1136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:31:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 510542: <4FGL_J0116.0-1136_daily_bin1503> in cluster <slac> Done

Job <4FGL_J0116.0-1136_daily_bin1503> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 21:15:41 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:17:44 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:17:44 2021
Terminated at Fri Aug 13 21:31:48 2021
Results reported at Fri Aug 13 21:31:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0116.0-1136_daily_bin1503 19.0006 -11.606 628905601 629164801 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 :                                   704.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             254.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            967 sec.

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

