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


Performing analysis on: 4FGL_J0116.0-1136_daily_bin245
RA = 19.0006, Dec = -11.606
tmin = 302832001, tmax = 303091201
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='504629', job_status='RUN', time_executed='2021-08-13 21:02:46.215356', time_epoch_executed='1628913766.22' WHERE source_name='4FGL J0116.0-1136' and cadence='daily' and bin_id='245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504629

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504629/ft1_4FGL_J0116.0-1136_daily_bin245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504629/ft2_4FGL_J0116.0-1136_daily_bin245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504629/ft1_4FGL_J0116.0-1136_daily_bin245.fits outfile=/scratch/kocevski/504629/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin245.fits ra=19.0006 dec=-11.606 rad=12.0 tmin=302832001.0 tmax=303091201.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 5.08
user 3.38
sys 1.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504629/ft2_4FGL_J0116.0-1136_daily_bin245.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/504629/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin245.fits evtable="EVENTS" outfile="/scratch/kocevski/504629/ft1_filtered_4FGL_J0116.0-1136_daily_bin245.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.99
user 0.32
sys 1.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504629/ft1_filtered_4FGL_J0116.0-1136_daily_bin245.fits" evtable="EVENTS" scfile=/scratch/kocevski/504629/ft2_4FGL_J0116.0-1136_daily_bin245.fits sctable="SC_DATA" outfile=/scratch/kocevski/504629/ltcube_302832001_303091201_4FGL_J0116.0-1136_daily_bin245.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/504629/ft2_4FGL_J0116.0-1136_daily_bin245.fits
.....................!
real 14.76
user 12.77
sys 1.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504629/ft1_filtered_4FGL_J0116.0-1136_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/504629/ft2_4FGL_J0116.0-1136_daily_bin245.fits sctable="SC_DATA" expcube=/scratch/kocevski/504629/ltcube_302832001_303091201_4FGL_J0116.0-1136_daily_bin245.fits outfile=/scratch/kocevski/504629/expmap_302832001_303091201_4FGL_J0116.0-1136_daily_bin245.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/504629/ltcube_302832001_303091201_4FGL_J0116.0-1136_daily_bin245.fits
.....................!
real 194.62
user 187.35
sys 6.88

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/504629/ft1_filtered_4FGL_J0116.0-1136_daily_bin245.fits scfile=/scratch/kocevski/504629/ft2_4FGL_J0116.0-1136_daily_bin245.fits outfile=/scratch/kocevski/504629/cmap_302832001_303091201_4FGL_J0116.0-1136_daily_bin245.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.87
user 0.37
sys 1.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504629/ft1_filtered_4FGL_J0116.0-1136_daily_bin245.fits scfile=/scratch/kocevski/504629/ft2_4FGL_J0116.0-1136_daily_bin245.fits outfile=/scratch/kocevski/504629/cmap_HighResolution_302832001_303091201_4FGL_J0116.0-1136_daily_bin245.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.98
user 0.38
sys 1.59

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504629/ft1_filtered_4FGL_J0116.0-1136_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/504629/ft2_4FGL_J0116.0-1136_daily_bin245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504629/Model_4FGL_J0116.0-1136_daily_bin245.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/504629/ft1_filtered_4FGL_J0116.0-1136_daily_bin245.fits......................!
real 42.04
user 38.84
sys 3.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10980E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    258.30       1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.241       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    17.585       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   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 '    .76199       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.079       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2091       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2644       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.996       1.0000         .10000E-03   10000.    
    17 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.0808       1.0000         .10000E-03   10000.    
    19 'norm      '    4.0934       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71143       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85798       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=   3760.260     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2336 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10021E-03    1.9876        .66938E-06** at limit **
   2  norm          .10000E-03    1.5931        .85540E-08** at limit **
   3  norm          .10000E-03    3.9229        .11212E-07** at limit **
   4  Prefactor     258.33        202.91        .20295E-05    .20625E-04
   5  Prefactor     52.239        31.361       -.15780E-06   -.91881E-04
   6  Prefactor     .10000E-03    19.709        .13963E-05** at limit **
   7  norm          17.575        21.142       -.11156E-05   -.19421E-03
   8  Prefactor     .10000E-03    16.542       -.19578E-05** at limit **
   9  Prefactor     .10000E-03    19.370        .76973E-06** at limit **
  10  Prefactor     .10000E-03    2.5643        .36994E-08** at limit **
  11  Prefactor     .76094        3.1789        .99731E-06   -.46711E-04
  12  Prefactor     .10000E-03    6.5300        .21272E-07** at limit **
  13  Prefactor     24.081        44.824       -.60840E-06    .46275E-05
  14  norm          3.2091        2.6180        .23985E-07    .38131E-05
  15  Prefactor     4.2639        6.0850        .20230E-05   -.17993E-03
  16  Prefactor     10.996        6.4170        .84920E-08   -.29809E-04
  17  norm          .10000E-03    10.899        .21121E-06** at limit **
  18  norm          3.0810        1.8439        .34599E-07   -.41643E-04
  19  norm          4.0937        4.5893        .16753E-07   -.16770E-04
  20  Prefactor     .10000E-03    32.277       -.18755E-05** at limit **
  21  Normalizat    .71127        .19693       -.56756E-06   -.11216E-03
  22  Prefactor     .85814        .17976       -.10073E-06   -.12365E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100209
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 258.325
  Prefactor  = 52.2392
  Prefactor  = 0.000100001
  norm       = 17.5754
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.760935
  Prefactor  = 0.0001
  Prefactor  = 24.0814
  norm       = 3.20912
  Prefactor  = 4.26386
  Prefactor  = 10.9964
  norm       = 0.0001
  norm       = 3.08101
  norm       = 4.09374
  Prefactor  = 0.000100002
  Normalizat = 0.711271
  Prefactor  = 0.858143
 **********
 **   18 **HESSE 
 **********

 FCN=   3760.260     FROM HESSE     STATUS=OK           338 CALLS     2674 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10021E-03    29.559        .15902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5989        .75570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.9892        .11852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     258.33        204.54        .25216E-04   -1.2479    
   5  Prefactor     52.239        31.428        .55490E-04   -1.4261    
   6  Prefactor     .10000E-03    20.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.575        21.548        .95511E-04   -1.4869    
   8  Prefactor     .10000E-03    17.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5756        .95889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .76094        3.1072        .20698E-03   -1.5534    
  12  Prefactor     .10000E-03    6.5460        .15294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.081        44.734        .81632E-04   -1.4726    
  14  norm          3.2091        2.6158        .85742E-04   -1.5350    
  15  Prefactor     4.2639        6.1956        .88901E-03   -1.5295    
  16  Prefactor     10.996        6.4173        .11321E-03   -1.5045    
  17  norm          .10000E-03    10.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.0810        1.8421        .60713E-04   -1.5357    
  19  norm          4.0937        4.5864        .13445E-03   -1.5303    
  20  Prefactor     .10000E-03    32.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .71127        .22266        .25330E-03   -1.0345    
  22  Prefactor     .85814        .20445        .22193E-03   -.97619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21725e-09
Minuit parameter uncertainties:
  1  0.00496981
  2  8.51345e-07
  3  3.4901e-06
  4  205.106
  5  31.4384
  6  0.000309362
  7  21.5573
  8  0.000410594
  9  0.000162782
  10  3.62704e-07
  11  3.0754
  12  1.09725e-06
  13  44.796
  14  2.61589
  15  6.1965
  16  6.41765
  17  2.96757e-05
  18  1.84212
  19  4.58683
  20  0.000528721
  21  0.222943
  22  0.204629
Done.

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

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  7.609e-01  3.075e+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:  8.581e-01  2.046e-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:  7.113e-01  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 19.001 -11.606
Photon Flux Upper Limit: 9.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504629/likelihoodResults_302832001_303091201_4FGL_J0116.0-1136_daily_bin245.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) = 3760.24887039
delta logL = 0.0106327807684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3760.24831638
delta logL = 0.0111867932324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70172       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7020       1.0000          .0000       10.000    
     3 'Normalizat'    .70769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86006       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=   3760.248     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      216 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70305        38.819        .12068E-01    .11936E-03
   2  Index         2.7030        2.4564        .46136       -.25130E-04
   3  Normalizat    .70783        .21453E-01    .42393E-01   -.10454E-03
   4  Prefactor     .85979        .20633E-01    .44494E-01    .20029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.703055
  Index      = 2.70297
  Normalizat = 0.707833
  Prefactor  = 0.859794
 **********
 **   18 **HESSE 
 **********

 FCN=   3760.248     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70305        3.0423        .17137E-03   -1.5540    
   2  Index         2.7030        2.3666        .80542E-02   -.47733    
   3  Normalizat    .70783        .21309        .25387E-03   -1.0358    
   4  Prefactor     .85979        .20330        .22174E-03   -.97560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15794e-10
Minuit parameter uncertainties:
  1  2.92504
  2  2.49595
  3  0.213343
  4  0.203479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504629': 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) = 3760.24831478
delta logL = 0.0111883923128

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  7.031e-01  2.925e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.703e+00  2.496e+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:  8.598e-01  2.035e-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:  7.078e-01  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/504629/cmap_HighResolution_302832001_303091201_4FGL_J0116.0-1136_daily_bin245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', job_status='DONE', photon_flux_upper_limit='9.15e-08', time_completed='2021-08-13 21:11:37.368471', job_id='504629', GAL2='0.86', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1628914297.37', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.12e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='245' AND source_name='4FGL J0116.0-1136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:11:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 504629: <4FGL_J0116.0-1136_daily_bin245> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0116.0-1136_daily_bin245 19.0006 -11.606 302832001 303091201 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 :                                   552.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            937 sec.

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

