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


Performing analysis on: 4FGL_J0116.0-1136_daily_bin1304
RA = 19.0006, Dec = -11.606
tmin = 577324801, tmax = 577584001
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='510251', job_status='RUN', time_executed='2021-08-13 21:15:49.969730', time_epoch_executed='1628914549.97' WHERE source_name='4FGL J0116.0-1136' and cadence='daily' and bin_id='1304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510251

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510251/ft1_4FGL_J0116.0-1136_daily_bin1304.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510251/ft2_4FGL_J0116.0-1136_daily_bin1304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510251/ft1_4FGL_J0116.0-1136_daily_bin1304.fits outfile=/scratch/kocevski/510251/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin1304.fits ra=19.0006 dec=-11.606 rad=12.0 tmin=577324801.0 tmax=577584001.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 3.69
user 2.82
sys 0.84

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510251/ft1_filtered_4FGL_J0116.0-1136_daily_bin1304.fits" evtable="EVENTS" scfile=/scratch/kocevski/510251/ft2_4FGL_J0116.0-1136_daily_bin1304.fits sctable="SC_DATA" outfile=/scratch/kocevski/510251/ltcube_577324801_577584001_4FGL_J0116.0-1136_daily_bin1304.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/510251/ft2_4FGL_J0116.0-1136_daily_bin1304.fits
.....................!
real 13.89
user 12.79
sys 1.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510251/ft1_filtered_4FGL_J0116.0-1136_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/510251/ft2_4FGL_J0116.0-1136_daily_bin1304.fits sctable="SC_DATA" expcube=/scratch/kocevski/510251/ltcube_577324801_577584001_4FGL_J0116.0-1136_daily_bin1304.fits outfile=/scratch/kocevski/510251/expmap_577324801_577584001_4FGL_J0116.0-1136_daily_bin1304.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/510251/ltcube_577324801_577584001_4FGL_J0116.0-1136_daily_bin1304.fits
.....................!
real 191.73
user 184.92
sys 6.41

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/510251/ft1_filtered_4FGL_J0116.0-1136_daily_bin1304.fits scfile=/scratch/kocevski/510251/ft2_4FGL_J0116.0-1136_daily_bin1304.fits outfile=/scratch/kocevski/510251/cmap_577324801_577584001_4FGL_J0116.0-1136_daily_bin1304.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.15
user 0.39
sys 0.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510251/ft1_filtered_4FGL_J0116.0-1136_daily_bin1304.fits scfile=/scratch/kocevski/510251/ft2_4FGL_J0116.0-1136_daily_bin1304.fits outfile=/scratch/kocevski/510251/cmap_HighResolution_577324801_577584001_4FGL_J0116.0-1136_daily_bin1304.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.16
user 0.38
sys 0.77

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/510251/ft1_filtered_4FGL_J0116.0-1136_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/510251/ft2_4FGL_J0116.0-1136_daily_bin1304.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/510251/Model_4FGL_J0116.0-1136_daily_bin1304.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/510251/ft1_filtered_4FGL_J0116.0-1136_daily_bin1304.fits......................!
real 35.38
user 33.23
sys 2.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42870       1.0000         .10000E-03   10000.    
     2 'norm      '    .93071E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.472       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    94.953       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30332E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4748       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32147E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3650       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.462       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    24.552       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5840       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .44168       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=   2809.276     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2754 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42581        15.102        .10047E-05    .53751E-04
   2  norm          .10000E-03    30.507       -.43855E-05** at limit **
   3  norm          12.461        19.883       -.33821E-05    .21177E-04
   4  Prefactor     .10000E-03    77.423        .15517E-06** at limit **
   5  Prefactor     .10000E-03    36.451       -.36086E-07** at limit **
   6  Prefactor     .10000E-03    157.18        .19910E-06** at limit **
   7  norm          .10000E-03    4.7017       -.45225E-09** at limit **
   8  Prefactor     94.949        135.13        .51282E-05    .16687E-04
   9  Prefactor     .10000E-03    1181.0        .42535E-05** at limit **
  10  Prefactor     .10000E-03    48.438        .66425E-06** at limit **
  11  Prefactor     1.4715        7.1609       -.13846E-05    .11626E-04
  12  Prefactor     .10000E-03    11.120        .22309E-07** at limit **
  13  Prefactor     .10000E-03    278.63        .15927E-05** at limit **
  14  norm          1.3653        1.6816       -.23362E-07    .10113E-05
  15  Prefactor     10.460        19.126       -.28158E-06    .81445E-05
  16  Prefactor     .10000E-03    5.2010        .18070E-07** at limit **
  17  norm          .10000E-03    17.553        .56309E-07** at limit **
  18  norm          .10000E-03    1.2133       -.31720E-07** at limit **
  19  norm          24.549        14.377        .18950E-06   -.79153E-05
  20  Prefactor     .10000E-03    240.28       -.42856E-06** at limit **
  21  Normalizat    1.5839        .27320        .12186E-06    .26070E-04
  22  Prefactor     .44157        .26631        .12277E-06    .89335E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.42581
  norm       = 0.0001
  norm       = 12.4609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 94.9492
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.47148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.36529
  Prefactor  = 10.4601
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 24.5491
  Prefactor  = 0.000100001
  Normalizat = 1.5839
  Prefactor  = 0.441572
 **********
 **   18 **HESSE 
 **********

 FCN=   2809.276     FROM HESSE     STATUS=OK           342 CALLS     3096 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42581        237.67        .28657E-02   -1.5577    
   2  norm          .10000E-03    30.469        .24309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.461        21.881        .11343E-03   -1.5002    
   4  Prefactor     .10000E-03    77.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    157.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.7027        .11225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     94.949        167.76        .41246E-04   -1.3756    
   9  Prefactor     .10000E-03    1179.9        .19816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    48.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4715        7.1533        .26598E-03   -1.5465    
  12  Prefactor     .10000E-03    11.262        .34278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    281.44        .21360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3653        1.6556        .73378E-04   -1.5474    
  15  Prefactor     10.460        19.139        .61937E-03   -1.5061    
  16  Prefactor     .10000E-03    5.3224        .23575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1739        .11246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          24.549        14.365        .80843E-04   -1.4717    
  20  Prefactor     .10000E-03    240.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5839        .30847        .21322E-03   -.75447    
  22  Prefactor     .44157        .29554        .35707E-03   -1.1474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94173e-10
Minuit parameter uncertainties:
  1  20.1987
  2  6.85863e-05
  3  21.8949
  4  0.000150695
  5  7.58318e-05
  6  0.000434642
  7  6.01959e-07
  8  168.605
  9  0.00281103
  10  1.56916e-05
  11  6.48974
  12  2.04631e-06
  13  0.00028649
  14  1.65564
  15  19.1502
  16  4.81653e-06
  17  2.51279e-06
  18  2.02196e-06
  19  14.3666
  20  0.000837811
  21  0.308841
  22  0.296567
Done.

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

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  1.471e+00  6.490e+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:  4.416e-01  2.966e-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.584e+00  3.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 19.001 -11.606
Photon Flux Upper Limit: 1.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/510251/likelihoodResults_577324801_577584001_4FGL_J0116.0-1136_daily_bin1304.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) = 2809.06770801
delta logL = 0.208786349653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2809.04108455
delta logL = 0.235409812341

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1743       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6784       1.0000          .0000       10.000    
     3 'Normalizat'    1.5242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47179       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=   2809.041     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      223 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1668        46.526        .10572E-01   -.29684E-03
   2  Index         3.6809        6.8404        .13289       -.95415E-05
   3  Normalizat    1.5242        .68455E-01    .48949E-01   -.13635E-03
   4  Prefactor     .47203        .64887E-01    .78055E-01    .92377E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16675
  Index      = 3.68089
  Normalizat = 1.5242
  Prefactor  = 0.472032
 **********
 **   18 **HESSE 
 **********

 FCN=   2809.041     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1668        9.9750        .77727E-04   -1.5492    
   2  Index         3.6809        3.2998        .74264E-02   -.26698    
   3  Normalizat    1.5242        .32111        .21638E-03   -.77101    
   4  Prefactor     .47203        .29474        .34572E-03   -1.1328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91449e-10
Minuit parameter uncertainties:
  1  6.82426
  2  3.63402
  3  0.32154
  4  0.295702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510251': 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) = 2809.04108103
delta logL = 0.235413333679

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  1.167e+00  6.824e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  3.681e+00  3.634e+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:  4.720e-01  2.957e-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.524e+00  3.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/510251/cmap_HighResolution_577324801_577584001_4FGL_J0116.0-1136_daily_bin1304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', job_status='DONE', photon_flux_upper_limit='1.72e-07', time_completed='2021-08-13 21:23:49.977967', job_id='510251', GAL2='0.47', fit_tolerance='1e-08', EG2='1.52', EG='1.58', time_epoch_completed='1628915029.98', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='2.35e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1304' AND source_name='4FGL J0116.0-1136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:23:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 510251: <4FGL_J0116.0-1136_daily_bin1304> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0116.0-1136_daily_bin1304 19.0006 -11.606 577324801 577584001 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 :                                   489.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   504 sec.
    Turnaround time :                            509 sec.

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

