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


Performing analysis on: 4FGL_J1127.0-1857_daily_bin359
RA = 171.763, Dec = -18.964
tmin = 332380801, tmax = 332640001
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='788044', job_status='RUN', time_executed='2021-09-03 20:47:08.708691', time_epoch_executed='1630727228.71' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788044

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788044/ft1_4FGL_J1127.0-1857_daily_bin359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788044/ft2_4FGL_J1127.0-1857_daily_bin359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788044/ft1_4FGL_J1127.0-1857_daily_bin359.fits outfile=/scratch/kocevski/788044/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin359.fits ra=171.763 dec=-18.964 rad=12.0 tmin=332380801.0 tmax=332640001.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.30
user 3.07
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/788044/ft2_4FGL_J1127.0-1857_daily_bin359.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/788044/ft2_4FGL_J1127.0-1857_daily_bin359.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/788044/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin359.fits evtable="EVENTS" outfile="/scratch/kocevski/788044/ft1_filtered_4FGL_J1127.0-1857_daily_bin359.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 0.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788044/ft1_filtered_4FGL_J1127.0-1857_daily_bin359.fits" evtable="EVENTS" scfile=/scratch/kocevski/788044/ft2_4FGL_J1127.0-1857_daily_bin359.fits sctable="SC_DATA" outfile=/scratch/kocevski/788044/ltcube_332380801_332640001_4FGL_J1127.0-1857_daily_bin359.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/788044/ft2_4FGL_J1127.0-1857_daily_bin359.fits
.....................!
real 15.27
user 14.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788044/ft1_filtered_4FGL_J1127.0-1857_daily_bin359.fits evtable="EVENTS" scfile=/scratch/kocevski/788044/ft2_4FGL_J1127.0-1857_daily_bin359.fits sctable="SC_DATA" expcube=/scratch/kocevski/788044/ltcube_332380801_332640001_4FGL_J1127.0-1857_daily_bin359.fits outfile=/scratch/kocevski/788044/expmap_332380801_332640001_4FGL_J1127.0-1857_daily_bin359.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/788044/ltcube_332380801_332640001_4FGL_J1127.0-1857_daily_bin359.fits
.....................!
real 191.14
user 186.04
sys 4.67

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 194 point sources and 0 extended sources

Setting source of interest to:
4FGL J1127.0-1857 @ 171.763 -18.964

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/788044/ft1_filtered_4FGL_J1127.0-1857_daily_bin359.fits scfile=/scratch/kocevski/788044/ft2_4FGL_J1127.0-1857_daily_bin359.fits outfile=/scratch/kocevski/788044/cmap_332380801_332640001_4FGL_J1127.0-1857_daily_bin359.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=171.763 yref=-18.964 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 0.56
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788044/ft1_filtered_4FGL_J1127.0-1857_daily_bin359.fits scfile=/scratch/kocevski/788044/ft2_4FGL_J1127.0-1857_daily_bin359.fits outfile=/scratch/kocevski/788044/cmap_HighResolution_332380801_332640001_4FGL_J1127.0-1857_daily_bin359.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=171.763 yref=-18.964 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 0.58
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/788044/ft1_filtered_4FGL_J1127.0-1857_daily_bin359.fits evtable="EVENTS" scfile=/scratch/kocevski/788044/ft2_4FGL_J1127.0-1857_daily_bin359.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/788044/Model_4FGL_J1127.0-1857_daily_bin359.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/788044/ft1_filtered_4FGL_J1127.0-1857_daily_bin359.fits.....................!
real 52.09
user 50.76
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/788044/ft1_filtered_4FGL_J1127.0-1857_daily_bin359.fits', '/scratch/kocevski/788044/ft2_4FGL_J1127.0-1857_daily_bin359.fits', expMap='/scratch/kocevski/788044/expmap_332380801_332640001_4FGL_J1127.0-1857_daily_bin359.fits', expCube='/scratch/kocevski/788044/ltcube_332380801_332640001_4FGL_J1127.0-1857_daily_bin359.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/788044/Model_4FGL_J1127.0-1857_daily_bin359.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1127.0-1857'

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  2.807e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.092e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  8.161e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  5.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/788044/ft1_filtered_4FGL_J1127.0-1857_daily_bin359.fits
Spacecraft file(s): /scratch/kocevski/788044/ft2_4FGL_J1127.0-1857_daily_bin359.fits
Exposure map: /scratch/kocevski/788044/expmap_332380801_332640001_4FGL_J1127.0-1857_daily_bin359.fits
Exposure cube: /scratch/kocevski/788044/ltcube_332380801_332640001_4FGL_J1127.0-1857_daily_bin359.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/788044/Model_4FGL_J1127.0-1857_daily_bin359.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) = 5334.0463979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.9813       1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.567       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.207       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10722E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0565       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13882E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2081       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8936       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.421       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6105       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10593E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.031       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6561       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76870       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5333.990     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2693 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4907        .93671E-07** at limit **
   2  norm          4.9811        4.7694       -.96254E-06    .67803E-04
   3  Prefactor     51.567        36.945        .93538E-07   -.10895E-04
   4  Prefactor     .10000E-03    41.713        .10595E-05** at limit **
   5  Prefactor     35.201        22.267        .36786E-06    .24504E-04
   6  Prefactor     .10001E-03    177.77        .59808E-05** at limit **
   7  Prefactor     8.1416        42.044        .59369E-05    .79199E-04
   8  Prefactor     .10047E-03    14.494        .27757E-05** at limit **
   9  Prefactor     .10000E-03    21.995        .35238E-06** at limit **
  10  norm          3.2081        1.6066       -.57402E-07   -.21113E-03
  11  Prefactor     6.8892        14.105        .44895E-05   -.53553E-04
  12  Prefactor     .10000E-03    23.024       -.23566E-05** at limit **
  13  Prefactor     24.422        10.104        .92558E-07   -.11411E-03
  14  Prefactor     5.6089        7.9378       -.52796E-07   -.10854E-03
  15  Prefactor     .10000E-03    11.873       -.86573E-07** at limit **
  16  Prefactor     .10000E-03    21.632        .12211E-05** at limit **
  17  Prefactor     .10000E-03    27.912        .52999E-06** at limit **
  18  norm          .10000E-03    3.9763       -.86345E-07** at limit **
  19  Prefactor     .10000E-03    2.5945       -.17364E-07** at limit **
  20  Prefactor     15.013        54.647       -.31483E-05   -.64763E-04
  21  Prefactor     .10000E-03    16.709       -.26655E-06** at limit **
  22  Prefactor     .10000E-03    54.950       -.40976E-05** at limit **
  23  Normalizat    1.6562        .27530       -.83070E-06   -.19463E-03
  24  Prefactor     .76880        .15109       -.93760E-06   -.26041E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.98112
  Prefactor  = 51.5665
  Prefactor  = 0.0001
  Prefactor  = 35.2011
  Prefactor  = 0.000100008
  Prefactor  = 8.14157
  Prefactor  = 0.00010047
  Prefactor  = 0.0001
  norm       = 3.20812
  Prefactor  = 6.88922
  Prefactor  = 0.000100001
  Prefactor  = 24.4222
  Prefactor  = 5.60887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0127
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.65623
  Prefactor  = 0.768799
 **********
 **   18 **HESSE 
 **********

 FCN=   5333.990     FROM HESSE     STATUS=OK           389 CALLS     3082 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5681        .16708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9811        4.8159        .76703E-03   -1.5262    
   3  Prefactor     51.567        36.956        .55849E-04   -1.4271    
   4  Prefactor     .10000E-03    41.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.201        22.324        .67539E-04   -1.4521    
   6  Prefactor     .10001E-03    179.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.1416        44.028        .14126E-03   -1.5137    
   8  Prefactor     .10047E-03    65.724        .49816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2081        1.6049        .62723E-04   -1.5350    
  11  Prefactor     6.8892        14.659        .76403E-03   -1.5183    
  12  Prefactor     .10000E-03    23.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.422        10.106        .81058E-04   -1.4719    
  14  Prefactor     5.6089        7.9907        .16960E-03   -1.5234    
  15  Prefactor     .10000E-03    11.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.0398        .14205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5987        .11488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.013        54.973        .10331E-03   -1.4933    
  21  Prefactor     .10000E-03    16.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    55.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6562        .32774        .29476E-03   -.73478    
  24  Prefactor     .76880        .17905        .23364E-03   -1.0089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50494e-09
Minuit parameter uncertainties:
  1  1.13247e-05
  2  4.8163
  3  36.9727
  4  0.000212176
  5  22.3297
  6  0.00241955
  7  37.9089
  8  0.0111318
  9  5.224e-05
  10  1.60488
  11  14.6663
  12  0.000359207
  13  10.1067
  14  7.99221
  15  3.98314e-06
  16  0.000185114
  17  0.000237103
  18  1.6144e-05
  19  1.68838e-06
  20  55.1599
  21  1.96639e-05
  22  0.000812905
  23  0.328172
  24  0.179181
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  3.208e+00  1.605e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.092e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  8.161e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  5.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  7.688e-01  1.792e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  1.656e+00  3.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.52
Ra Dec: 171.763 -18.964
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 5.19e-08
Energy Flux (Fixed Index): 4.67e-05 +/- 2.34e-05

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) = 5333.08590613
delta logL = 0.903830200448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5332.99756165
delta logL = 0.992174677604

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3812       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5050       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75956       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5332.998     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3800        1.3944        .66366E-02    .14324E-03
   2  alpha         1.5050        .31899        .22284       -.42483E-04
   3  Normalizat    1.6983        .26072        .66023E-01   -.30195E-05
   4  Prefactor     .75957        .14863        .43189E-01    .38259E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.38004
  alpha      = 1.505
  Normalizat = 1.6983
  Prefactor  = 0.75957
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.998     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3800        1.7289        .60384E-04   -1.5399    
   2  alpha         1.5050        .41537        .93815E-02   -.40934    
   3  Normalizat    1.6983        .30531        .29202E-03   -.72349    
   4  Prefactor     .75957        .17407        .23511E-03   -1.0124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80377e-12
Minuit parameter uncertainties:
  1  1.72891
  2  0.417674
  3  0.305652
  4  0.174197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788044': 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) = 5332.99756126
delta logL = 0.992175066845

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  2.380e+00  1.729e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  1.505e+00  4.177e-01  0.000e+00  5.000e+00 ( 1.000e+00)
311         beta:  8.161e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  5.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  7.596e-01  1.742e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  1.698e+00  3.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.50
Ra Dec: 171.763 -18.964
Photon Index (Free Index): 1.50 +/- 0.42
Photon Flux (Free Index): 5.53e-08 +/- 4.34e-08
Energy Flux (Free Index): 8.23e-05 +/- 6.18e-05

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/788044/cmap_HighResolution_332380801_332640001_4FGL_J1127.0-1857_daily_bin359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='8.23e-05', photon_flux_error='5.19e-08', dlogl='9.92e-01', energy_flux='4.67e-05', photon_flux2='5.53e-08', job_status='DONE', time_completed='2021-09-03 20:57:20.108824', photon_index_error2='0.42', photon_index2='1.50', ts='11.52', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='6.18e-05', EG='1.66', time_epoch_completed='1630727840.11', return_code='0', job_id='788044', GAL2='0.76', EG2='1.70', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='4.34e-08', ts2='13.50', photon_index='2.09' WHERE bin_id='359' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:57:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 788044: <4FGL_J1127.0-1857_daily_bin359> in cluster <slac> Done

Job <4FGL_J1127.0-1857_daily_bin359> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:46:33 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:46:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 20:46:55 2021
Terminated at Fri Sep  3 20:57:20 2021
Results reported at Fri Sep  3 20:57:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin359 171.763 -18.964 332380801 332640001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1127.0-1857 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   606.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            647 sec.

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

