/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 238 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 = 7353
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1127.0-1857_daily_bin41
RA = 171.763, Dec = -18.964
tmin = 249955201, tmax = 250214401
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='786428', job_status='RUN', time_executed='2021-09-03 20:46:16.032823', time_epoch_executed='1630727176.03' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/786428

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/786428/ft1_4FGL_J1127.0-1857_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/786428/ft2_4FGL_J1127.0-1857_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/786428/ft1_4FGL_J1127.0-1857_daily_bin41.fits outfile=/scratch/kocevski/786428/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin41.fits ra=171.763 dec=-18.964 rad=12.0 tmin=249955201.0 tmax=250214401.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 1.46
user 1.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/786428/ft2_4FGL_J1127.0-1857_daily_bin41.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/786428/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin41.fits evtable="EVENTS" outfile="/scratch/kocevski/786428/ft1_filtered_4FGL_J1127.0-1857_daily_bin41.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/786428/ft1_filtered_4FGL_J1127.0-1857_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/786428/ft2_4FGL_J1127.0-1857_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/786428/ltcube_249955201_250214401_4FGL_J1127.0-1857_daily_bin41.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/786428/ft2_4FGL_J1127.0-1857_daily_bin41.fits
.....................!
real 17.88
user 17.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/786428/ft1_filtered_4FGL_J1127.0-1857_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/786428/ft2_4FGL_J1127.0-1857_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/786428/ltcube_249955201_250214401_4FGL_J1127.0-1857_daily_bin41.fits outfile=/scratch/kocevski/786428/expmap_249955201_250214401_4FGL_J1127.0-1857_daily_bin41.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/786428/ltcube_249955201_250214401_4FGL_J1127.0-1857_daily_bin41.fits
.....................!
real 191.53
user 186.68
sys 4.50

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/786428/ft1_filtered_4FGL_J1127.0-1857_daily_bin41.fits scfile=/scratch/kocevski/786428/ft2_4FGL_J1127.0-1857_daily_bin41.fits outfile=/scratch/kocevski/786428/cmap_249955201_250214401_4FGL_J1127.0-1857_daily_bin41.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.53
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/786428/ft1_filtered_4FGL_J1127.0-1857_daily_bin41.fits scfile=/scratch/kocevski/786428/ft2_4FGL_J1127.0-1857_daily_bin41.fits outfile=/scratch/kocevski/786428/cmap_HighResolution_249955201_250214401_4FGL_J1127.0-1857_daily_bin41.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/786428/ft1_filtered_4FGL_J1127.0-1857_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/786428/ft2_4FGL_J1127.0-1857_daily_bin41.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/786428/Model_4FGL_J1127.0-1857_daily_bin41.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/786428/ft1_filtered_4FGL_J1127.0-1857_daily_bin41.fits.....................!
real 69.60
user 68.25
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.9717       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.592       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27493E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.790       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.897       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8928       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.956       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4645       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .32787E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.8016       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.5636       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .79448       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0593       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=   7570.413     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2327 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7410       -.10339E-06** at limit **
   2  norm          5.9718        4.7653        .10135E-06    .23001E-05
   3  Prefactor     .10000E-03    5.9500        .59344E-07** at limit **
   4  Prefactor     36.619        39.706       -.22090E-05   -.44713E-04
   5  Prefactor     .10000E-03    14.467       -.96074E-06** at limit **
   6  Prefactor     .10000E-03    368.26        .90182E-05** at limit **
   7  Prefactor     .10000E-03    20.255        .57585E-06** at limit **
   8  Prefactor     15.788        13.747       -.14346E-06   -.30757E-04
   9  Prefactor     28.930        30.181       -.12131E-05   -.36287E-04
  10  norm          1.8928        .92752        .36844E-07    .71260E-04
  11  Prefactor     11.955        8.8098        .59837E-06    .23480E-03
  12  Prefactor     .10000E-03    13.846       -.21568E-06** at limit **
  13  Prefactor     4.4622        6.0464        .30941E-05    .72863E-03
  14  Prefactor     .10002E-03    4.2305       -.25950E-05** at limit **
  15  Prefactor     .10000E-03    6.7245       -.27818E-06** at limit **
  16  Prefactor     .10147E-03    22.441        .44763E-05** at limit **
  17  Prefactor     .10000E-03    9.2280        .18281E-07** at limit **
  18  norm          4.8006        3.9158        .44567E-06    .18104E-03
  19  Prefactor     .10000E-03    7.4858        .88067E-06** at limit **
  20  Prefactor     7.6094        64.275       -.11702E-04   -.53389E-04
  21  Prefactor     .10000E-03    9.4732        .35063E-06** at limit **
  22  Prefactor     .10000E-03    27.965        .74845E-06** at limit **
  23  Normalizat    .79437        .20084       -.12616E-05   -.20568E-04
  24  Prefactor     1.0594        .11791        .31652E-07   -.21635E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.97178
  Prefactor  = 0.0001
  Prefactor  = 36.6185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7877
  Prefactor  = 28.9301
  norm       = 1.89276
  Prefactor  = 11.9555
  Prefactor  = 0.0001
  Prefactor  = 4.46219
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.000101475
  Prefactor  = 0.0001
  norm       = 4.80065
  Prefactor  = 0.0001
  Prefactor  = 7.60941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.794367
  Prefactor  = 1.05942
 **********
 **   18 **HESSE 
 **********

 FCN=   7570.413     FROM HESSE     STATUS=OK           395 CALLS     2722 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7839        .14061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.9718        4.7664        .16432E-03   -1.5219    
   3  Prefactor     .10000E-03    5.9509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.619        39.732        .66252E-04   -1.4497    
   5  Prefactor     .10000E-03    14.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    373.15        .21426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.788        13.739        .10079E-03   -1.4913    
   9  Prefactor     28.930        30.187        .74530E-04   -1.4632    
  10  norm          1.8928        .92603        .56406E-04   -1.5433    
  11  Prefactor     11.955        8.8283        .57927E-03   -1.5016    
  12  Prefactor     .10000E-03    13.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4622        6.1999        .95285E-03   -1.5285    
  14  Prefactor     .10002E-03    11.066        .30114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.7575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10147E-03    137.46        .69850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.2390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.8006        3.9036        .14538E-03   -1.5270    
  19  Prefactor     .10000E-03    7.8061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6094        64.960        .14582E-03   -1.5156    
  21  Prefactor     .10000E-03    9.4833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .79437        .23110        .33564E-03   -1.0028    
  24  Prefactor     1.0594        .13769        .18070E-03   -.90774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23127e-08
Minuit parameter uncertainties:
  1  3.87125e-06
  2  4.76666
  3  4.71054e-06
  4  39.761
  5  5.50418e-05
  6  0.000296991
  7  1.66904e-05
  8  13.7419
  9  30.2027
  10  0.926032
  11  8.82924
  12  1.08215e-05
  13  6.20077
  14  0.000841691
  15  1.88884e-06
  16  0.0285406
  17  5.26817e-05
  18  3.90382
  19  2.46637e-05
  20  44.531
  21  0.000100633
  22  0.000226996
  23  0.231385
  24  0.137732
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  1.893e+00  9.260e-01  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:  1.059e+00  1.377e-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:  7.944e-01  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.97
Ra Dec: 171.763 -18.964
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 6.12e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 2.75e-05 +/- 1.35e-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) = 7569.81951413
delta logL = 0.593913362723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7569.79531195
delta logL = 0.618115538713

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5833       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6248       1.0000          .0000       5.0000    
     3 'Normalizat'    .81700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0534       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=   7569.795     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5831        .81624        .84361E-02   -.84219E-04
   2  alpha         1.6247        .32186        .28528       -.41499E-04
   3  Normalizat    .81700        .18968        .74896E-01    .28669E-04
   4  Prefactor     1.0534        .11676        .39715E-01   -.42663E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58306
  alpha      = 1.62471
  Normalizat = 0.817
  Prefactor  = 1.0534
 **********
 **   18 **HESSE 
 **********

 FCN=   7569.795     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5831        .96857        .54579E-04   -1.5456    
   2  alpha         1.6247        .41265        .11623E-01   -.35770    
   3  Normalizat    .81700        .22183        .33149E-03   -.99441    
   4  Prefactor     1.0534        .13682        .18120E-03   -.90970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64866e-10
Minuit parameter uncertainties:
  1  0.968581
  2  0.414818
  3  0.22208
  4  0.136862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/786428': 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) = 7569.79531192
delta logL = 0.618115573143

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  1.583e+00  9.686e-01  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  1.625e+00  4.148e-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:  1.053e+00  1.369e-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:  8.170e-01  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.23
Ra Dec: 171.763 -18.964
Photon Index (Free Index): 1.62 +/- 0.41
Photon Flux (Free Index): 3.81e-08 +/- 2.70e-08
Energy Flux (Free Index): 4.22e-05 +/- 3.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/786428/cmap_HighResolution_249955201_250214401_4FGL_J1127.0-1857_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.12e-08', energy_flux2='4.22e-05', photon_flux_error='3.00e-08', dlogl='6.18e-01', energy_flux='2.75e-05', photon_flux2='3.81e-08', job_status='DONE', time_completed='2021-09-03 20:57:44.614548', photon_index_error2='0.41', photon_index2='1.62', ts='11.97', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='3.01e-05', EG='0.79', time_epoch_completed='1630727864.61', return_code='0', job_id='786428', GAL2='1.05', EG2='0.82', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='2.70e-08', ts2='13.23', photon_index='2.09' WHERE bin_id='41' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:57:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 786428: <4FGL_J1127.0-1857_daily_bin41> in cluster <slac> Done

Job <4FGL_J1127.0-1857_daily_bin41> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:41:53 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:42: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 20:42:09 2021
Terminated at Fri Sep  3 20:57:45 2021
Results reported at Fri Sep  3 20:57:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin41 171.763 -18.964 249955201 250214401 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 :                                   688.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            952 sec.

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

