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


Performing analysis on: 4FGL_J1127.0-1857_daily_bin981
RA = 171.763, Dec = -18.964
tmin = 493603201, tmax = 493862401
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='792437', job_status='RUN', time_executed='2021-09-03 21:03:45.890275', time_epoch_executed='1630728225.89' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792437

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792437/ft1_4FGL_J1127.0-1857_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792437/ft2_4FGL_J1127.0-1857_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792437/ft1_4FGL_J1127.0-1857_daily_bin981.fits outfile=/scratch/kocevski/792437/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin981.fits ra=171.763 dec=-18.964 rad=12.0 tmin=493603201.0 tmax=493862401.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.68
user 3.42
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792437/ft1_filtered_4FGL_J1127.0-1857_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/792437/ft2_4FGL_J1127.0-1857_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/792437/ltcube_493603201_493862401_4FGL_J1127.0-1857_daily_bin981.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/792437/ft2_4FGL_J1127.0-1857_daily_bin981.fits
.....................!
real 18.37
user 17.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792437/ft1_filtered_4FGL_J1127.0-1857_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/792437/ft2_4FGL_J1127.0-1857_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/792437/ltcube_493603201_493862401_4FGL_J1127.0-1857_daily_bin981.fits outfile=/scratch/kocevski/792437/expmap_493603201_493862401_4FGL_J1127.0-1857_daily_bin981.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/792437/ltcube_493603201_493862401_4FGL_J1127.0-1857_daily_bin981.fits
.....................!
real 205.78
user 199.81
sys 5.09

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/792437/ft1_filtered_4FGL_J1127.0-1857_daily_bin981.fits scfile=/scratch/kocevski/792437/ft2_4FGL_J1127.0-1857_daily_bin981.fits outfile=/scratch/kocevski/792437/cmap_493603201_493862401_4FGL_J1127.0-1857_daily_bin981.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.61
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792437/ft1_filtered_4FGL_J1127.0-1857_daily_bin981.fits scfile=/scratch/kocevski/792437/ft2_4FGL_J1127.0-1857_daily_bin981.fits outfile=/scratch/kocevski/792437/cmap_HighResolution_493603201_493862401_4FGL_J1127.0-1857_daily_bin981.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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/792437/ft1_filtered_4FGL_J1127.0-1857_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/792437/ft2_4FGL_J1127.0-1857_daily_bin981.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/792437/Model_4FGL_J1127.0-1857_daily_bin981.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/792437/ft1_filtered_4FGL_J1127.0-1857_daily_bin981.fits.....................!
real 54.94
user 52.94
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/792437/ft1_filtered_4FGL_J1127.0-1857_daily_bin981.fits', '/scratch/kocevski/792437/ft2_4FGL_J1127.0-1857_daily_bin981.fits', expMap='/scratch/kocevski/792437/expmap_493603201_493862401_4FGL_J1127.0-1857_daily_bin981.fits', expCube='/scratch/kocevski/792437/ltcube_493603201_493862401_4FGL_J1127.0-1857_daily_bin981.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/792437/Model_4FGL_J1127.0-1857_daily_bin981.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/792437/ft1_filtered_4FGL_J1127.0-1857_daily_bin981.fits
Spacecraft file(s): /scratch/kocevski/792437/ft2_4FGL_J1127.0-1857_daily_bin981.fits
Exposure map: /scratch/kocevski/792437/expmap_493603201_493862401_4FGL_J1127.0-1857_daily_bin981.fits
Exposure cube: /scratch/kocevski/792437/ltcube_493603201_493862401_4FGL_J1127.0-1857_daily_bin981.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/792437/Model_4FGL_J1127.0-1857_daily_bin981.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) = 5019.46393993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0154       1.0000         .10000E-03   10000.    
     2 'norm      '    6.3347       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.058       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.909       1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3407       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5324       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .89791       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.030       1.0000         .10000E-03   10000.    
    18 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0467       1.0000         .10000E-03   10000.    
    20 'Prefactor '    99.985       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12809       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6497       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64654       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=   5019.458     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2727 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0141        8.7822        .15588E-05   -.16872E-05
   2  norm          6.3354        6.9180        .58709E-06    .81374E-04
   3  Prefactor     .10000E-03    72.945        .38599E-07** at limit **
   4  Prefactor     .10000E-03    35.197       -.70236E-06** at limit **
   5  Prefactor     21.063        23.580        .16311E-06   -.17819E-04
   6  Prefactor     .10000E-03    34.408       -.10210E-05** at limit **
   7  Prefactor     .10000E-03    52.519       -.15658E-05** at limit **
   8  Prefactor     .10000E-03    8.7168        .13286E-07** at limit **
   9  Prefactor     55.908        43.815        .49880E-07   -.12046E-04
  10  norm          .10000E-03    .39123       -.24916E-07** at limit **
  11  Prefactor     4.3414        8.1058        .50170E-05   -.40397E-03
  12  Prefactor     .10000E-03    38.691        .72143E-06** at limit **
  13  Prefactor     6.5320        7.5649        .27838E-06   -.15886E-05
  14  Prefactor     .89097        4.5812        .51929E-06   -.18488E-03
  15  Prefactor     .10000E-03    30.409        .40580E-06** at limit **
  16  Prefactor     .10000E-03    10.939       -.40461E-07** at limit **
  17  Prefactor     11.006        18.963       -.23780E-05   -.10193E-04
  18  norm          .10000E-03    8.2634        .66729E-08** at limit **
  19  Prefactor     6.0471        7.9048        .29372E-05   -.33627E-03
  20  Prefactor     100.06        65.841        .66159E-05    .42577E-03
  21  Prefactor     .10090E-03    14.752       -.82539E-06** at limit **
  22  Prefactor     .10000E-03    44.008        .21170E-05** at limit **
  23  Normalizat    1.6494        .26893       -.66156E-06   -.72422E-04
  24  Prefactor     .64662        .14571       -.18702E-05   -.59691E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.01413
  norm       = 6.3354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.9077
  norm       = 0.0001
  Prefactor  = 4.34141
  Prefactor  = 0.0001
  Prefactor  = 6.53197
  Prefactor  = 0.890975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0059
  norm       = 0.0001
  Prefactor  = 6.04706
  Prefactor  = 100.061
  Prefactor  = 0.000100904
  Prefactor  = 0.0001
  Normalizat = 1.64942
  Prefactor  = 0.646624
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.458     FROM HESSE     STATUS=OK           403 CALLS     3130 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0141        8.7981        .23372E-03   -1.5361    
   2  norm          6.3354        6.9211        .15948E-03   -1.5205    
   3  Prefactor     .10000E-03    74.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.063        23.711        .87283E-04   -1.4790    
   6  Prefactor     .10000E-03    34.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.7373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     55.908        43.816        .53648E-04   -1.4211    
  10  norm          .10000E-03    .39960        .43245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3414        8.2559        .96669E-03   -1.5291    
  12  Prefactor     .10000E-03    38.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5320        7.5571        .15702E-03   -1.5197    
  14  Prefactor     .89097        14.232        .28465E-02   -1.5519    
  15  Prefactor     .10000E-03    30.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.006        18.838        .12063E-03   -1.5044    
  18  norm          .10000E-03    8.4253        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.0471        7.9932        .81641E-03   -1.5216    
  20  Prefactor     100.06        71.592        .20102E-03   -1.3704    
  21  Prefactor     .10090E-03    20.816        .10150       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    44.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6494        .32523        .26993E-03   -.73662    
  24  Prefactor     .64662        .17380        .23015E-03   -1.0566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72342e-09
Minuit parameter uncertainties:
  1  8.80188
  2  6.922
  3  0.000115373
  4  8.00289e-05
  5  23.7218
  6  0.000114167
  7  0.000153121
  8  1.43049e-05
  9  43.8415
  10  4.97268e-07
  11  8.25806
  12  8.79189e-05
  13  7.55821
  14  7.12339
  15  7.34703e-05
  16  3.86091e-06
  17  18.8478
  18  6.44161e-05
  19  7.99463
  20  71.6543
  21  0.0086807
  22  7.08351e-05
  23  0.325647
  24  0.173946
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  1.000e-04  4.973e-07  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:  6.466e-01  1.739e-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.649e+00  3.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.763 -18.964
Photon Flux Upper Limit: 6.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/792437/likelihoodResults_493603201_493862401_4FGL_J1127.0-1857_daily_bin981.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) = 5019.45754853
delta logL = -8.27376607049e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5019.45754073
delta logL = -4.70917257189e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0833       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64672       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5019.458     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      233 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9204        .43296E-03** at limit **
   2  alpha         1.9526        2.8176        .50000       -.55570E-06
   3  Normalizat    1.6494        .29864        .26992E-03    .70389E-03
   4  Prefactor     .64662        .16929        .23015E-03    .83903E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.95264
  Normalizat = 1.64943
  Prefactor  = 0.646625
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.458     FROM HESSE     STATUS=OK            29 CALLS      262 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .41812        .86593E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9526        2.8732        .50000       -.22073    
   3  Normalizat    1.6494        .29890        .53985E-04   -.73662    
   4  Prefactor     .64662        .16943        .46030E-04   -1.0566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02206e-09
Minuit parameter uncertainties:
  1  1.75144e-06
  2  60.5744
  3  0.299222
  4  0.169568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792437': 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) = 5019.45753863
delta logL = 1.63438107847e-06

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  1.000e-04  1.751e-06  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  1.953e+00  6.057e+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:  6.466e-01  1.696e-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.649e+00  2.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.763 -18.964

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/792437/cmap_HighResolution_493603201_493862401_4FGL_J1127.0-1857_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-09-03 21:15:26.956680', job_id='792437', GAL2='0.65', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1630728926.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.63e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='981' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:15:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 792437: <4FGL_J1127.0-1857_daily_bin981> in cluster <slac> Done

Job <4FGL_J1127.0-1857_daily_bin981> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 21:01:04 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:01:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 21:01:09 2021
Terminated at Fri Sep  3 21:15:27 2021
Results reported at Fri Sep  3 21:15:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin981 171.763 -18.964 493603201 493862401 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 :                                   697.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            863 sec.

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

