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


Performing analysis on: 4FGL_J0116.0-1136_daily_bin731
RA = 19.0006, Dec = -11.606
tmin = 428803201, tmax = 429062401
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='507391', job_status='RUN', time_executed='2021-08-13 21:09:09.916452', time_epoch_executed='1628914149.92' WHERE source_name='4FGL J0116.0-1136' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507391

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507391/ft1_4FGL_J0116.0-1136_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507391/ft2_4FGL_J0116.0-1136_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507391/ft1_4FGL_J0116.0-1136_daily_bin731.fits outfile=/scratch/kocevski/507391/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin731.fits ra=19.0006 dec=-11.606 rad=12.0 tmin=428803201.0 tmax=429062401.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 8.75
user 6.25
sys 2.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507391/ft1_filtered_4FGL_J0116.0-1136_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/507391/ft2_4FGL_J0116.0-1136_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/507391/ltcube_428803201_429062401_4FGL_J0116.0-1136_daily_bin731.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/507391/ft2_4FGL_J0116.0-1136_daily_bin731.fits
.....................!
real 14.97
user 12.03
sys 2.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507391/ft1_filtered_4FGL_J0116.0-1136_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/507391/ft2_4FGL_J0116.0-1136_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/507391/ltcube_428803201_429062401_4FGL_J0116.0-1136_daily_bin731.fits outfile=/scratch/kocevski/507391/expmap_428803201_429062401_4FGL_J0116.0-1136_daily_bin731.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/507391/ltcube_428803201_429062401_4FGL_J0116.0-1136_daily_bin731.fits
.....................!
real 195.76
user 187.51
sys 7.78

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/507391/ft1_filtered_4FGL_J0116.0-1136_daily_bin731.fits scfile=/scratch/kocevski/507391/ft2_4FGL_J0116.0-1136_daily_bin731.fits outfile=/scratch/kocevski/507391/cmap_428803201_429062401_4FGL_J0116.0-1136_daily_bin731.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 2.53
user 0.37
sys 2.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507391/ft1_filtered_4FGL_J0116.0-1136_daily_bin731.fits scfile=/scratch/kocevski/507391/ft2_4FGL_J0116.0-1136_daily_bin731.fits outfile=/scratch/kocevski/507391/cmap_HighResolution_428803201_429062401_4FGL_J0116.0-1136_daily_bin731.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 2.55
user 0.37
sys 2.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507391/ft1_filtered_4FGL_J0116.0-1136_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/507391/ft2_4FGL_J0116.0-1136_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507391/Model_4FGL_J0116.0-1136_daily_bin731.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/507391/ft1_filtered_4FGL_J0116.0-1136_daily_bin731.fits.....................!
real 47.74
user 43.81
sys 3.83

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0900       1.0000         .10000E-03   10000.    
     2 'norm      '    3.9967       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9345       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2235       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.569       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30247E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1740       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4335       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.493       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1264       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13852E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0213       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13587E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .59765       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1798       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=   4378.615     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2418 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0888        4.3854       -.83742E-07    .68656E-04
   2  norm          3.9939        3.5727        .32464E-07    .59612E-04
   3  norm          2.9357        5.5359        .50914E-06   -.13622E-03
   4  Prefactor     .10000E-03    66.923        .17079E-05** at limit **
   5  Prefactor     .10000E-03    10.968       -.90734E-07** at limit **
   6  Prefactor     2.2374        77.648       -.67541E-05    .57532E-04
   7  norm          .10000E-03    10.597        .56636E-06** at limit **
   8  Prefactor     50.574        32.943       -.40366E-09    .22539E-04
   9  Prefactor     .10055E-03    35.341       -.10552E-05** at limit **
  10  Prefactor     2.1617        6.8150       -.98282E-06    .12407E-03
  11  Prefactor     .10000E-03    1.3261        .59560E-08** at limit **
  12  Prefactor     1.4586        27.478       -.10458E-04   -.80575E-04
  13  Prefactor     28.496        39.167        .79384E-06   -.38076E-04
  14  norm          1.1239        2.9125        .18391E-05    .13439E-02
  15  Prefactor     .10000E-03    12.535       -.20732E-06** at limit **
  16  Prefactor     .10000E-03    3.9540        .43942E-06** at limit **
  17  norm          .10000E-03    10.271       -.35628E-06** at limit **
  18  norm          .10000E-03    .46323        .10053E-07** at limit **
  19  norm          3.0161        3.6076        .15380E-05   -.16503E-02
  20  Prefactor     .10000E-03    38.039       -.22311E-05** at limit **
  21  Normalizat    .59766        .17143        .51425E-06    .95014E-04
  22  Prefactor     1.1797        .18329       -.12705E-06    .16310E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.08876
  norm       = 3.99386
  norm       = 2.93567
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.23738
  norm       = 0.0001
  Prefactor  = 50.5741
  Prefactor  = 0.000100549
  Prefactor  = 2.16167
  Prefactor  = 0.0001
  Prefactor  = 1.45859
  Prefactor  = 28.4965
  norm       = 1.12389
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.01614
  Prefactor  = 0.000100001
  Normalizat = 0.597662
  Prefactor  = 1.17967
 **********
 **   18 **HESSE 
 **********

 FCN=   4378.615     FROM HESSE     STATUS=OK           346 CALLS     2764 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0888        4.3769        .10088E-03   -1.5175    
   2  norm          3.9939        3.5677        .11333E-03   -1.5308    
   3  norm          2.9357        5.4926        .20060E-03   -1.5365    
   4  Prefactor     .10000E-03    66.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2374        75.420        .27576E-03   -1.5409    
   7  norm          .10000E-03    10.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     50.574        32.869        .56395E-04   -1.4284    
   9  Prefactor     .10055E-03    264.22        .73856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1617        6.6459        .27926E-03   -1.5414    
  11  Prefactor     .10000E-03    1.3351        .74361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4586        31.319        .36066E-03   -1.5466    
  13  Prefactor     28.496        39.054        .75055E-04   -1.4640    
  14  norm          1.1239        2.8263        .11704E-03   -1.5496    
  15  Prefactor     .10000E-03    12.874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.9649        .24121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .47650        .87789E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0161        5.4151        .98705E-03   -1.5361    
  20  Prefactor     .10000E-03    37.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .59766        .19421        .26126E-03   -1.0808    
  22  Prefactor     1.1797        .20915        .20598E-03   -.86959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79294e-09
Minuit parameter uncertainties:
  1  4.37714
  2  3.5679
  3  5.49353
  4  0.000391676
  5  1.16995e-05
  6  26.0154
  7  5.67172e-05
  8  32.8807
  9  0.0241981
  10  6.64821
  11  2.07921e-06
  12  13.5252
  13  39.0885
  14  2.82667
  15  8.01847e-08
  16  0.000195644
  17  1.15718e-05
  18  4.97965e-07
  19  5.41598
  20  0.00036211
  21  0.194437
  22  0.209296
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.180e+00  2.093e-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:  5.977e-01  1.944e-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.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507391/likelihoodResults_428803201_429062401_4FGL_J0116.0-1136_daily_bin731.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) = 4378.61887424
delta logL = -0.00350685184458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4378.6153674
delta logL = -1.47028913489e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3553       1.0000          .0000       10.000    
     3 'Normalizat'    .59765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1797       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=   4378.615     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      243 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4093        .74513E-03** at limit **
   2  Index         2.0999        7.6756        .20000E-01    .53433E-07
   3  Normalizat    .59766        .18928        .26126E-03    .38728E-04
   4  Prefactor     1.1797        .20519        .20598E-03    .61121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09986
  Normalizat = 0.597662
  Prefactor  = 1.17967
 **********
 **   18 **HESSE 
 **********

 FCN=   4378.615     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3890        .14903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0999        8.2069        .80000E-03   -.61876    
   3  Normalizat    .59766        .18941        .10450E-04   -1.0808    
   4  Prefactor     1.1797        .20533        .41196E-04   -.86959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05863e-11
Minuit parameter uncertainties:
  1  5.03178e-06
  2  147.854
  3  0.18962
  4  0.205472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507391': 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) = 4378.61536593
delta logL = 1.45240483107e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.180e+00  2.055e-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:  5.977e-01  1.896e-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/507391/cmap_HighResolution_428803201_429062401_4FGL_J0116.0-1136_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2021-08-13 21:19:12.028259', job_id='507391', GAL2='1.18', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1628914752.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='731' AND source_name='4FGL J0116.0-1136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:19:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 507391: <4FGL_J0116.0-1136_daily_bin731> in cluster <slac> Done

Job <4FGL_J0116.0-1136_daily_bin731> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 21:05:33 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:06:21 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:06:21 2021
Terminated at Fri Aug 13 21:19:12 2021
Results reported at Fri Aug 13 21:19:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0116.0-1136_daily_bin731 19.0006 -11.606 428803201 429062401 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 :                                   633.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            819 sec.

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

