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


Performing analysis on: 4FGL_J1127.0-1857_daily_bin194
RA = 171.763, Dec = -18.964
tmin = 289612801, tmax = 289872001
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='787808', job_status='RUN', time_executed='2021-09-03 20:46:37.612192', time_epoch_executed='1630727197.61' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/787808

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/787808/ft1_4FGL_J1127.0-1857_daily_bin194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/787808/ft2_4FGL_J1127.0-1857_daily_bin194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/787808/ft1_4FGL_J1127.0-1857_daily_bin194.fits outfile=/scratch/kocevski/787808/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin194.fits ra=171.763 dec=-18.964 rad=12.0 tmin=289612801.0 tmax=289872001.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.00
user 2.75
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/787808/ft2_4FGL_J1127.0-1857_daily_bin194.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/787808/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin194.fits evtable="EVENTS" outfile="/scratch/kocevski/787808/ft1_filtered_4FGL_J1127.0-1857_daily_bin194.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.45
user 0.31
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/787808/ft1_filtered_4FGL_J1127.0-1857_daily_bin194.fits" evtable="EVENTS" scfile=/scratch/kocevski/787808/ft2_4FGL_J1127.0-1857_daily_bin194.fits sctable="SC_DATA" outfile=/scratch/kocevski/787808/ltcube_289612801_289872001_4FGL_J1127.0-1857_daily_bin194.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/787808/ft2_4FGL_J1127.0-1857_daily_bin194.fits
.....................!
real 13.06
user 12.63
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/787808/ft1_filtered_4FGL_J1127.0-1857_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/787808/ft2_4FGL_J1127.0-1857_daily_bin194.fits sctable="SC_DATA" expcube=/scratch/kocevski/787808/ltcube_289612801_289872001_4FGL_J1127.0-1857_daily_bin194.fits outfile=/scratch/kocevski/787808/expmap_289612801_289872001_4FGL_J1127.0-1857_daily_bin194.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/787808/ltcube_289612801_289872001_4FGL_J1127.0-1857_daily_bin194.fits
.....................!
real 157.21
user 152.55
sys 3.25

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/787808/ft1_filtered_4FGL_J1127.0-1857_daily_bin194.fits scfile=/scratch/kocevski/787808/ft2_4FGL_J1127.0-1857_daily_bin194.fits outfile=/scratch/kocevski/787808/cmap_289612801_289872001_4FGL_J1127.0-1857_daily_bin194.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/787808/ft1_filtered_4FGL_J1127.0-1857_daily_bin194.fits scfile=/scratch/kocevski/787808/ft2_4FGL_J1127.0-1857_daily_bin194.fits outfile=/scratch/kocevski/787808/cmap_HighResolution_289612801_289872001_4FGL_J1127.0-1857_daily_bin194.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.50
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/787808/ft1_filtered_4FGL_J1127.0-1857_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/787808/ft2_4FGL_J1127.0-1857_daily_bin194.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/787808/Model_4FGL_J1127.0-1857_daily_bin194.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/787808/ft1_filtered_4FGL_J1127.0-1857_daily_bin194.fits.....................!
real 54.49
user 52.86
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .72242E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    64.221       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13096E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.492       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    70.730       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1145       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3544       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3680       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .81903       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .94712       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2773       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90207       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=   7176.564     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2695 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7635        .10092E-09** at limit **
   2  norm          .10000E-03    4.4890        .33352E-06** at limit **
   3  Prefactor     .10000E-03    11.539        .51748E-06** at limit **
   4  Prefactor     64.205        88.632        .21375E-05   -.26729E-05
   5  Prefactor     .10000E-03    21.638       -.88826E-06** at limit **
   6  Prefactor     44.451        54.835        .58245E-05    .76053E-05
   7  Prefactor     .10000E-03    6.9394        .16434E-06** at limit **
   8  Prefactor     .10000E-03    6.9438        .48472E-07** at limit **
   9  Prefactor     70.730        49.087        .29113E-07   -.35557E-05
  10  norm          2.1144        1.2293       -.21653E-07   -.55856E-04
  11  Prefactor     3.3545        8.7667        .34200E-05   -.70049E-05
  12  Prefactor     .10000E-03    15.616       -.46360E-06** at limit **
  13  Prefactor     .10000E-03    1.5803        .37187E-08** at limit **
  14  Prefactor     .10000E-03    2.1215       -.15626E-08** at limit **
  15  Prefactor     7.3673        15.103        .20003E-06   -.80773E-06
  16  Prefactor     .10000E-03    8.5209       -.48074E-06** at limit **
  17  Prefactor     .10000E-03    5.2563        .41014E-07** at limit **
  18  norm          .82036        3.3490        .64954E-06   -.59167E-05
  19  Prefactor     .94798        4.1013        .26448E-06   -.79617E-04
  20  Prefactor     .10000E-03    13.712        .16944E-06** at limit **
  21  Prefactor     .10000E-03    9.6550        .63455E-07** at limit **
  22  Prefactor     .10000E-03    14.541       -.15821E-06** at limit **
  23  Normalizat    1.2773        .20499       -.10644E-05    .31984E-05
  24  Prefactor     .90207        .11821       -.35934E-07   -.69599E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 64.2048
  Prefactor  = 0.0001
  Prefactor  = 44.4512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.7304
  norm       = 2.11444
  Prefactor  = 3.35446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.36732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.820361
  Prefactor  = 0.947981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2773
  Prefactor  = 0.902071
 **********
 **   18 **HESSE 
 **********

 FCN=   7176.564     FROM HESSE     STATUS=OK           391 CALLS     3086 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8244        .13746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    20.893        .34468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     64.205        88.622        .50076E-04   -1.4104    
   5  Prefactor     .10000E-03    22.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     44.451        54.864        .60106E-04   -1.4374    
   7  Prefactor     .10000E-03    6.9403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     70.730        49.061        .47732E-04   -1.4024    
  10  norm          2.1144        1.2247        .67284E-04   -1.5417    
  11  Prefactor     3.3545        8.7987        .11048E-02   -1.5342    
  12  Prefactor     .10000E-03    15.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5899        .10397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1367        .12047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3673        15.093        .14776E-03   -1.5165    
  16  Prefactor     .10000E-03    8.5239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .82036        3.4133        .29465E-03   -1.5527    
  19  Prefactor     .94798        7.9182        .32642E-02   -1.5513    
  20  Prefactor     .10000E-03    13.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.6995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2773        .24091        .28472E-03   -.84246    
  24  Prefactor     .90207        .14050        .19971E-03   -.96069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22854e-08
Minuit parameter uncertainties:
  1  2.43597e-06
  2  0.000318247
  3  8.75105e-06
  4  88.8048
  5  0.000179708
  6  54.9264
  7  1.04704e-06
  8  3.88017e-06
  9  49.0888
  10  1.22472
  11  8.80206
  12  6.84e-07
  13  5.71928e-07
  14  1.88206e-07
  15  15.1006
  16  1.2087e-06
  17  9.55924e-07
  18  3.34684
  19  5.48023
  20  6.88551e-07
  21  2.75733e-07
  22  5.90934e-07
  23  0.241122
  24  0.140552
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  2.114e+00  1.225e+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:  9.021e-01  1.406e-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.277e+00  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.63
Ra Dec: 171.763 -18.964
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 6.84e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 1.78e-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) = 7176.3918952
delta logL = 0.172252943044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7176.3848866
delta logL = 0.179261538253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1416       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4154       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91210       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=   7176.385     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      229 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1418        20.813        .70408E-02    .33829E-03
   2  alpha         2.4155        3.5309        .37562        .24712E-04
   3  Normalizat    1.2473        .10679        .64973E-01    .10700E-04
   4  Prefactor     .91223        .53473E-01    .45159E-01    .50319E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.14177
  alpha      = 2.41547
  Normalizat = 1.24732
  Prefactor  = 0.91223
 **********
 **   18 **HESSE 
 **********

 FCN=   7176.385     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .77E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1418        1.1463        .60766E-04   -1.5415    
   2  alpha         2.4155        .54093        .13755E-01   -.33817E-01
   3  Normalizat    1.2473        .23829        .28742E-03   -.85153    
   4  Prefactor     .91223        .14102        .19864E-03   -.95715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.74416e-13
Minuit parameter uncertainties:
  1  1.14631
  2  0.545247
  3  0.238502
  4  0.141074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/787808': 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) = 7176.38488572
delta logL = 0.179262418241

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  2.142e+00  1.146e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.415e+00  5.452e-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:  9.122e-01  1.411e-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.247e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.03
Ra Dec: 171.763 -18.964
Photon Index (Free Index): 2.42 +/- 0.55
Photon Flux (Free Index): 9.38e-08 +/- 6.14e-08
Energy Flux (Free Index): 2.86e-05 +/- 1.51e-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/787808/cmap_HighResolution_289612801_289872001_4FGL_J1127.0-1857_daily_bin194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.84e-08', energy_flux2='2.86e-05', photon_flux_error='3.96e-08', dlogl='1.79e-01', energy_flux='3.08e-05', photon_flux2='9.38e-08', job_status='DONE', time_completed='2021-09-03 20:56:35.714792', photon_index_error2='0.55', photon_index2='2.42', ts='8.63', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.28', time_epoch_completed='1630727795.71', return_code='0', job_id='787808', GAL2='0.91', EG2='1.25', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='6.14e-08', ts2='9.03', photon_index='2.09' WHERE bin_id='194' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:56:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 787808: <4FGL_J1127.0-1857_daily_bin194> in cluster <slac> Done

Job <4FGL_J1127.0-1857_daily_bin194> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:46:19 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:46:25 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:25 2021
Terminated at Fri Sep  3 20:56:37 2021
Results reported at Fri Sep  3 20:56:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin194 171.763 -18.964 289612801 289872001 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 :                                   586.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            618 sec.

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

