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


Performing analysis on: 4FGL_J0116.0-1136_daily_bin990
RA = 19.0006, Dec = -11.606
tmin = 495936001, tmax = 496195201
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='508763', job_status='RUN', time_executed='2021-08-13 21:14:31.912149', time_epoch_executed='1628914471.91' WHERE source_name='4FGL J0116.0-1136' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/508763

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/508763/ft1_4FGL_J0116.0-1136_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/508763/ft2_4FGL_J0116.0-1136_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/508763/ft1_4FGL_J0116.0-1136_daily_bin990.fits outfile=/scratch/kocevski/508763/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin990.fits ra=19.0006 dec=-11.606 rad=12.0 tmin=495936001.0 tmax=496195201.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.72
user 3.29
sys 3.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/508763/ft2_4FGL_J0116.0-1136_daily_bin990.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/508763/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin990.fits evtable="EVENTS" outfile="/scratch/kocevski/508763/ft1_filtered_4FGL_J0116.0-1136_daily_bin990.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 3.90
user 0.34
sys 3.53

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/508763/ft1_filtered_4FGL_J0116.0-1136_daily_bin990.fits" evtable="EVENTS" scfile=/scratch/kocevski/508763/ft2_4FGL_J0116.0-1136_daily_bin990.fits sctable="SC_DATA" outfile=/scratch/kocevski/508763/ltcube_495936001_496195201_4FGL_J0116.0-1136_daily_bin990.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/508763/ft2_4FGL_J0116.0-1136_daily_bin990.fits
.....................!
real 17.14
user 13.09
sys 3.91

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/508763/ft1_filtered_4FGL_J0116.0-1136_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/508763/ft2_4FGL_J0116.0-1136_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/508763/ltcube_495936001_496195201_4FGL_J0116.0-1136_daily_bin990.fits outfile=/scratch/kocevski/508763/expmap_495936001_496195201_4FGL_J0116.0-1136_daily_bin990.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/508763/ltcube_495936001_496195201_4FGL_J0116.0-1136_daily_bin990.fits
.....................!
real 195.77
user 186.19
sys 9.09

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/508763/ft1_filtered_4FGL_J0116.0-1136_daily_bin990.fits scfile=/scratch/kocevski/508763/ft2_4FGL_J0116.0-1136_daily_bin990.fits outfile=/scratch/kocevski/508763/cmap_495936001_496195201_4FGL_J0116.0-1136_daily_bin990.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.63
user 0.39
sys 3.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/508763/ft1_filtered_4FGL_J0116.0-1136_daily_bin990.fits scfile=/scratch/kocevski/508763/ft2_4FGL_J0116.0-1136_daily_bin990.fits outfile=/scratch/kocevski/508763/cmap_HighResolution_495936001_496195201_4FGL_J0116.0-1136_daily_bin990.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.63
user 0.39
sys 3.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/508763/ft1_filtered_4FGL_J0116.0-1136_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/508763/ft2_4FGL_J0116.0-1136_daily_bin990.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/508763/Model_4FGL_J0116.0-1136_daily_bin990.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/508763/ft1_filtered_4FGL_J0116.0-1136_daily_bin990.fits.....................!
real 55.23
user 49.48
sys 5.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5242       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9747       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.7179       1.0000         .10000E-03   10000.    
     8 'Prefactor '    80.820       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3256       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8625       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3643       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4953       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4310       1.0000         .10000E-03   10000.    
    19 'norm      '    4.0389       1.0000         .10000E-03   10000.    
    20 'Prefactor '    67.873       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93302       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98584       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=   4943.247     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2046 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7590       -.44294E-06** at limit **
   2  norm          1.5244        2.3319       -.44600E-06   -.33781E-03
   3  norm          2.9759        7.7290        .96260E-05   -.30054E-03
   4  Prefactor     .10000E-03    100.73       -.74422E-05** at limit **
   5  Prefactor     .10000E-03    6.2053       -.16444E-06** at limit **
   6  Prefactor     .10000E-03    33.737       -.96632E-05** at limit **
   7  norm          8.7186        10.996       -.10523E-06    .22324E-05
   8  Prefactor     80.816        43.783       -.17213E-05   -.76238E-04
   9  Prefactor     .10000E-03    41.809        .14073E-04** at limit **
  10  Prefactor     8.3290        10.486       -.79693E-06   -.18328E-03
  11  Prefactor     2.8634        4.7432       -.11443E-05   -.50656E-03
  12  Prefactor     .10000E-03    18.996        .93467E-06** at limit **
  13  Prefactor     .10000E-03    38.160       -.17515E-05** at limit **
  14  norm          2.3650        2.5065       -.16747E-06   -.24315E-03
  15  Prefactor     .10000E-03    3.3372       -.47630E-07** at limit **
  16  Prefactor     3.4953        4.6177        .98323E-06   -.13553E-03
  17  norm          .10000E-03    8.0951        .49837E-07** at limit **
  18  norm          3.4311        1.8841        .28659E-07   -.22824E-03
  19  norm          4.0392        3.7568        .14599E-06    .85656E-04
  20  Prefactor     67.874        60.876        .55490E-06   -.17329E-05
  21  Normalizat    .93309        .19744        .11546E-06   -.98088E-04
  22  Prefactor     .98582        .18487       -.13079E-05   -.38126E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 1.5244
  norm       = 2.9759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.71856
  Prefactor  = 80.8163
  Prefactor  = 0.0001
  Prefactor  = 8.32895
  Prefactor  = 2.86338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.365
  Prefactor  = 0.0001
  Prefactor  = 3.49535
  norm       = 0.0001
  norm       = 3.43105
  norm       = 4.03924
  Prefactor  = 67.8741
  Normalizat = 0.933086
  Prefactor  = 0.985817
 **********
 **   18 **HESSE 
 **********

 FCN=   4943.247     FROM HESSE     STATUS=OK           342 CALLS     2388 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8504        .26549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5244        2.3030        .12880E-03   -1.5461    
   3  norm          2.9759        7.4345        .23541E-03   -1.5363    
   4  Prefactor     .10000E-03    100.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.2072        .17106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.7186        10.994        .13576E-03   -1.5117    
   8  Prefactor     80.816        43.523        .44676E-04   -1.3908    
   9  Prefactor     .10000E-03    42.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3290        10.499        .13894E-03   -1.5131    
  11  Prefactor     2.8634        4.7681        .18652E-03   -1.5370    
  12  Prefactor     .10000E-03    19.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3650        2.4892        .10947E-03   -1.5400    
  15  Prefactor     .10000E-03    3.3449        .12543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4953        4.5986        .16606E-03   -1.5334    
  17  norm          .10000E-03    8.1007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4311        1.8883        .66979E-04   -1.5337    
  19  norm          4.0392        3.7621        .12768E-03   -1.5306    
  20  Prefactor     67.874        60.887        .48719E-04   -1.4058    
  21  Normalizat    .93309        .22415        .26165E-03   -.95307    
  22  Prefactor     .98582        .20981        .24529E-03   -.93204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57654e-10
Minuit parameter uncertainties:
  1  0.000103321
  2  2.30317
  3  7.43681
  4  4.4021e-05
  5  1.05451e-06
  6  7.00711e-05
  7  10.9969
  8  43.5401
  9  5.21234e-05
  10  10.5016
  11  4.76872
  12  1.81378e-05
  13  8.15784e-05
  14  2.48929
  15  3.73119e-06
  16  4.59902
  17  7.26194e-06
  18  1.88835
  19  3.76227
  20  60.9426
  21  0.224376
  22  0.209981
Done.

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

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  2.863e+00  4.769e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.362e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  7.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  9.858e-01  2.100e-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:  9.331e-01  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/508763/likelihoodResults_495936001_496195201_4FGL_J0116.0-1136_daily_bin990.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4943.11067477
delta logL = 0.135973050952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4943.08933836
delta logL = 0.157309455274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83822       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6505       1.0000          .0000       10.000    
     3 'Normalizat'    .89353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0137       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=   4943.089     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      246 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83026        20.120        .12582E-01    .24632E-02
   2  Index         3.6552        3.9055        .14814        .21629E-03
   3  Normalizat    .89369        .43199E-01    .44819E-01   -.48857E-04
   4  Prefactor     1.0136        .41820E-01    .42837E-01   -.38730E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.83026
  Index      = 3.6552
  Normalizat = 0.893686
  Prefactor  = 1.0136
 **********
 **   18 **HESSE 
 **********

 FCN=   4943.089     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83026        59.149        .76421E-04   -1.5526    
   2  Index         3.6552        5.9362        .80540E-02   -.27231    
   3  Normalizat    .89369        .20476        .26675E-03   -.96682    
   4  Prefactor     1.0136        .20247        .24232E-03   -.92277    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.9387e-09
Minuit parameter uncertainties:
  1  14.0292
  2  10.4517
  3  0.204936
  4  0.202623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/508763': 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) = 4943.08933538
delta logL = 0.157312436213

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  8.303e-01  1.403e+01  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  3.655e+00  1.045e+01  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.014e+00  2.026e-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.937e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
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/508763/cmap_HighResolution_495936001_496195201_4FGL_J0116.0-1136_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.70e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-08-13 21:24:36.698521', job_id='508763', GAL2='1.01', fit_tolerance='1e-08', EG2='0.89', EG='0.93', time_epoch_completed='1628915076.7', return_code2='102', ts='0.46', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.57e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='990' AND source_name='4FGL J0116.0-1136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:24:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 508763: <4FGL_J0116.0-1136_daily_bin990> in cluster <slac> Done

Job <4FGL_J0116.0-1136_daily_bin990> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 13 21:10:22 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:10:37 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:10:37 2021
Terminated at Fri Aug 13 21:24:37 2021
Results reported at Fri Aug 13 21:24:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0116.0-1136_daily_bin990 19.0006 -11.606 495936001 496195201 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 :                                   648.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            855 sec.

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

