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


Performing analysis on: 4FGL_J0116.0-1136_daily_bin844
RA = 19.0006, Dec = -11.606
tmin = 458092801, tmax = 458352001
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='507572', job_status='RUN', time_executed='2021-08-13 21:09:08.640803', time_epoch_executed='1628914148.64' WHERE source_name='4FGL J0116.0-1136' and cadence='daily' and bin_id='844'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507572

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507572/ft1_4FGL_J0116.0-1136_daily_bin844.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507572/ft2_4FGL_J0116.0-1136_daily_bin844.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507572/ft1_4FGL_J0116.0-1136_daily_bin844.fits outfile=/scratch/kocevski/507572/ft1_filteredMKT_4FGL_J0116.0-1136_daily_bin844.fits ra=19.0006 dec=-11.606 rad=12.0 tmin=458092801.0 tmax=458352001.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.97
user 3.37
sys 3.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507572/ft1_filtered_4FGL_J0116.0-1136_daily_bin844.fits" evtable="EVENTS" scfile=/scratch/kocevski/507572/ft2_4FGL_J0116.0-1136_daily_bin844.fits sctable="SC_DATA" outfile=/scratch/kocevski/507572/ltcube_458092801_458352001_4FGL_J0116.0-1136_daily_bin844.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/507572/ft2_4FGL_J0116.0-1136_daily_bin844.fits
.....................!
real 17.23
user 13.14
sys 4.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507572/ft1_filtered_4FGL_J0116.0-1136_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/507572/ft2_4FGL_J0116.0-1136_daily_bin844.fits sctable="SC_DATA" expcube=/scratch/kocevski/507572/ltcube_458092801_458352001_4FGL_J0116.0-1136_daily_bin844.fits outfile=/scratch/kocevski/507572/expmap_458092801_458352001_4FGL_J0116.0-1136_daily_bin844.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/507572/ltcube_458092801_458352001_4FGL_J0116.0-1136_daily_bin844.fits
.....................!
real 197.95
user 187.60
sys 9.81

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/507572/ft1_filtered_4FGL_J0116.0-1136_daily_bin844.fits scfile=/scratch/kocevski/507572/ft2_4FGL_J0116.0-1136_daily_bin844.fits outfile=/scratch/kocevski/507572/cmap_458092801_458352001_4FGL_J0116.0-1136_daily_bin844.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.75
user 0.37
sys 3.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507572/ft1_filtered_4FGL_J0116.0-1136_daily_bin844.fits scfile=/scratch/kocevski/507572/ft2_4FGL_J0116.0-1136_daily_bin844.fits outfile=/scratch/kocevski/507572/cmap_HighResolution_458092801_458352001_4FGL_J0116.0-1136_daily_bin844.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.77
user 0.39
sys 3.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507572/ft1_filtered_4FGL_J0116.0-1136_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/507572/ft2_4FGL_J0116.0-1136_daily_bin844.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507572/Model_4FGL_J0116.0-1136_daily_bin844.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/507572/ft1_filtered_4FGL_J0116.0-1136_daily_bin844.fits.....................!
real 53.40
user 47.66
sys 5.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0242       1.0000         .10000E-03   10000.    
     3 'norm      '    11.108       1.0000         .10000E-03   10000.    
     4 'Prefactor '    261.28       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.534       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.526       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.583       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14100E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.543       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .42780       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45232E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    79.853       1.0000         .10000E-03   10000.    
    14 'norm      '    .22827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    45.558       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6949       1.0000         .10000E-03   10000.    
    19 'norm      '    .30705E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77352       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99923       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=   4635.211     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2459 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    2.8122       -.14123E-05** at limit **
   2  norm          2.0232        3.2300       -.44788E-06   -.33491E-03
   3  norm          11.111        8.3210       -.32895E-05    .18659E-03
   4  Prefactor     261.36        156.75        .44854E-04    .68592E-05
   5  Prefactor     26.520        25.605       -.35234E-05   -.13864E-03
   6  Prefactor     38.539        36.265        .93103E-05   -.34367E-04
   7  norm          .10000E-03    5.7201        .25450E-05** at limit **
   8  Prefactor     17.617        37.813        .36403E-04    .98319E-04
   9  Prefactor     .10000E-03    95.292        .88273E-05** at limit **
  10  Prefactor     14.549        9.5246       -.31795E-05   -.14722E-03
  11  Prefactor     .42766        2.9944        .38875E-05   -.26418E-03
  12  Prefactor     .10000E-03    9.3252       -.22851E-05** at limit **
  13  Prefactor     79.813        60.447       -.33186E-04   -.35949E-03
  14  norm          .24863        2.1980        .42197E-06   -.85985E-03
  15  Prefactor     .10000E-03    5.6016       -.22139E-05** at limit **
  16  Prefactor     .10000E-03    3.8099       -.19839E-06** at limit **
  17  norm          45.556        31.027        .30233E-05   -.25240E-03
  18  norm          1.6953        1.3555        .86303E-07   -.33053E-03
  19  norm          .10000E-03    4.8352        .45248E-06** at limit **
  20  Prefactor     .10000E-03    40.573        .57684E-06** at limit **
  21  Normalizat    .77335        .20372       -.52913E-05   -.57169E-04
  22  Prefactor     .99942        .18957        .30606E-05   -.33114E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  norm       = 2.02316
  norm       = 11.1114
  Prefactor  = 261.355
  Prefactor  = 26.5199
  Prefactor  = 38.5393
  norm       = 0.0001
  Prefactor  = 17.6166
  Prefactor  = 0.000100002
  Prefactor  = 14.5492
  Prefactor  = 0.427664
  Prefactor  = 0.0001
  Prefactor  = 79.8126
  norm       = 0.248632
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 45.5562
  norm       = 1.69527
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.77335
  Prefactor  = 0.999424
 **********
 **   18 **HESSE 
 **********

 FCN=   4635.211     FROM HESSE     STATUS=OK           348 CALLS     2807 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    5.2680        .21357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0232        3.2000        .14714E-03   -1.5423    
   3  norm          11.111        8.2153        .12021E-03   -1.5041    
   4  Prefactor     261.36        156.36        .12538E-03   -1.2460    
   5  Prefactor     26.520        25.591        .77770E-04   -1.4678    
   6  Prefactor     38.539        36.200        .64574E-04   -1.4466    
   7  norm          .10000E-03    5.7160        .15896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.617        37.431        .95515E-04   -1.4868    
   9  Prefactor     .10000E-03    96.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.549        9.5168        .10503E-03   -1.4945    
  11  Prefactor     .42766        10.308        .21137E-02   -1.5577    
  12  Prefactor     .10000E-03    38.636        .34840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     79.813        60.340        .44943E-04   -1.3919    
  14  norm          .24863        6.2857        .16852E-02   -1.5608    
  15  Prefactor     .10000E-03    5.6287        .15721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.8504        .12950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          45.556        30.655        .59401E-04   -1.4357    
  18  norm          1.6953        1.3463        .67608E-04   -1.5448    
  19  norm          .10000E-03    11.233        .28515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .77335        .22665        .26942E-03   -1.0106    
  22  Prefactor     .99942        .21399        .23652E-03   -.92749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08326e-09
Minuit parameter uncertainties:
  1  0.000584262
  2  3.2003
  3  8.21616
  4  156.611
  5  25.6019
  6  36.2203
  7  5.71581e-05
  8  37.481
  9  0.00078656
  10  9.51784
  11  4.19944
  12  2.21877e-05
  13  60.386
  14  2.50006
  15  0.000121114
  16  1.56577e-06
  17  30.6654
  18  1.34635
  19  0.000229607
  20  5.53477e-05
  21  0.226922
  22  0.214176
Done.

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

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  4.277e-01  4.199e+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.994e-01  2.142e-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.733e-01  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/507572/likelihoodResults_458092801_458352001_4FGL_J0116.0-1136_daily_bin844.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) = 4635.14983785
delta logL = 0.0608750772208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4635.14221086
delta logL = 0.0685020677729

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68442       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0885       1.0000          .0000       10.000    
     3 'Normalizat'    .76080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0041       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=   4635.142     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68243        57.396        .12002E-01    .10554E-02
   2  Index         3.0902        6.5261        .21912        .54652E-04
   3  Normalizat    .76084        .35384E-01    .43097E-01    .15844E-04
   4  Prefactor     1.0041        .35322E-01    .44389E-01    .60053E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.682431
  Index      = 3.09016
  Normalizat = 0.760837
  Prefactor  = 1.00408
 **********
 **   18 **HESSE 
 **********

 FCN=   4635.142     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68243        4.4842        .14529E-03   -1.5543    
   2  Index         3.0902        2.4216        .12477E-01   -.39193    
   3  Normalizat    .76084        .21538        .27134E-03   -1.0154    
   4  Prefactor     1.0041        .21107        .23596E-03   -.92594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38054e-11
Minuit parameter uncertainties:
  1  3.49878
  2  2.54893
  3  0.215625
  4  0.211247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507572': 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) = 4635.14221045
delta logL = 0.0685024810864

Extracting fit parameters...

4FGL J0116.0-1136
   Spectrum: PowerLaw
282    Prefactor:  6.824e-01  3.499e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  3.090e+00  2.549e+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:  1.004e+00  2.112e-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.608e-01  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/507572/cmap_HighResolution_458092801_458352001_4FGL_J0116.0-1136_daily_bin844.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-08-13 21:19:34.403073', job_id='507572', GAL2='1.00', fit_tolerance='1e-08', EG2='0.76', EG='0.77', time_epoch_completed='1628914774.4', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='6.85e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='844' AND source_name='4FGL J0116.0-1136' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:19:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0179>
Subject: Job 507572: <4FGL_J0116.0-1136_daily_bin844> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0116.0-1136_daily_bin844 19.0006 -11.606 458092801 458352001 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 :                                   674.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            827 sec.

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

