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


Performing analysis on: 4FGL_J1127.0-1857_daily_bin275
RA = 171.763, Dec = -18.964
tmin = 310608001, tmax = 310867201
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='787925', job_status='RUN', time_executed='2021-09-03 20:48:54.477673', time_epoch_executed='1630727334.48' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/787925

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/787925/ft1_4FGL_J1127.0-1857_daily_bin275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/787925/ft2_4FGL_J1127.0-1857_daily_bin275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/787925/ft1_4FGL_J1127.0-1857_daily_bin275.fits outfile=/scratch/kocevski/787925/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin275.fits ra=171.763 dec=-18.964 rad=12.0 tmin=310608001.0 tmax=310867201.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.55
user 3.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/787925/ft2_4FGL_J1127.0-1857_daily_bin275.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/787925/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin275.fits evtable="EVENTS" outfile="/scratch/kocevski/787925/ft1_filtered_4FGL_J1127.0-1857_daily_bin275.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/787925/ft1_filtered_4FGL_J1127.0-1857_daily_bin275.fits" evtable="EVENTS" scfile=/scratch/kocevski/787925/ft2_4FGL_J1127.0-1857_daily_bin275.fits sctable="SC_DATA" outfile=/scratch/kocevski/787925/ltcube_310608001_310867201_4FGL_J1127.0-1857_daily_bin275.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/787925/ft2_4FGL_J1127.0-1857_daily_bin275.fits
.....................!
real 16.35
user 15.90
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/787925/ft1_filtered_4FGL_J1127.0-1857_daily_bin275.fits evtable="EVENTS" scfile=/scratch/kocevski/787925/ft2_4FGL_J1127.0-1857_daily_bin275.fits sctable="SC_DATA" expcube=/scratch/kocevski/787925/ltcube_310608001_310867201_4FGL_J1127.0-1857_daily_bin275.fits outfile=/scratch/kocevski/787925/expmap_310608001_310867201_4FGL_J1127.0-1857_daily_bin275.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/787925/ltcube_310608001_310867201_4FGL_J1127.0-1857_daily_bin275.fits
.....................!
real 191.53
user 185.93
sys 4.59

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/787925/ft1_filtered_4FGL_J1127.0-1857_daily_bin275.fits scfile=/scratch/kocevski/787925/ft2_4FGL_J1127.0-1857_daily_bin275.fits outfile=/scratch/kocevski/787925/cmap_310608001_310867201_4FGL_J1127.0-1857_daily_bin275.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.60
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/787925/ft1_filtered_4FGL_J1127.0-1857_daily_bin275.fits scfile=/scratch/kocevski/787925/ft2_4FGL_J1127.0-1857_daily_bin275.fits outfile=/scratch/kocevski/787925/cmap_HighResolution_310608001_310867201_4FGL_J1127.0-1857_daily_bin275.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.60
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/787925/ft1_filtered_4FGL_J1127.0-1857_daily_bin275.fits evtable="EVENTS" scfile=/scratch/kocevski/787925/ft2_4FGL_J1127.0-1857_daily_bin275.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/787925/Model_4FGL_J1127.0-1857_daily_bin275.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/787925/ft1_filtered_4FGL_J1127.0-1857_daily_bin275.fits.....................!
real 62.39
user 60.33
sys 1.50

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2315       1.0000         .10000E-03   10000.    
     2 'norm      '    16.470       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    190.40       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.602       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.184       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.476       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.0394       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.713       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0029       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4518       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15318E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.960       1.0000         .10000E-03   10000.    
    18 'norm      '    5.9259       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0788       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85839       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=   6777.696     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2745 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2319        3.9132       -.69456E-06   -.10106E-02
   2  norm          16.471        8.4667       -.14301E-06   -.55509E-04
   3  Prefactor     .10000E-03    44.026        .59971E-06** at limit **
   4  Prefactor     190.39        112.46       -.10542E-04   -.11429E-04
   5  Prefactor     16.600        20.193       -.78538E-05   -.11916E-03
   6  Prefactor     10.235        58.812        .12198E-03    .11990E-04
   7  Prefactor     10.476        26.690        .12329E-05   -.13320E-04
   8  Prefactor     .10000E-03    4.2000        .68392E-07** at limit **
   9  Prefactor     .10000E-03    17.447        .55024E-05** at limit **
  10  norm          6.0396        1.5884        .15448E-06   -.15261E-03
  11  Prefactor     14.714        9.2041       -.25528E-06   -.15445E-03
  12  Prefactor     .10000E-03    30.050        .79409E-05** at limit **
  13  Prefactor     3.0032        4.5457       -.20430E-06   -.57625E-03
  14  Prefactor     3.4502        4.4410        .24708E-06   -.48812E-03
  15  Prefactor     .10007E-03    9.2210        .13611E-05** at limit **
  16  Prefactor     .10000E-03    10.834       -.87505E-06** at limit **
  17  Prefactor     20.961        16.098        .48834E-06    .12869E-04
  18  norm          5.9258        5.4729       -.12394E-06   -.23673E-03
  19  Prefactor     .10000E-03    3.2191        .39778E-07** at limit **
  20  Prefactor     .10000E-03    22.483       -.11588E-04** at limit **
  21  Prefactor     .10000E-03    8.8342        .32666E-06** at limit **
  22  Prefactor     .10000E-03    27.321       -.62084E-06** at limit **
  23  Normalizat    1.0786        .22101       -.86879E-06   -.15961E-03
  24  Prefactor     .85845        .12480       -.83194E-06   -.14042E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.23185
  norm       = 16.4709
  Prefactor  = 0.000100002
  Prefactor  = 190.387
  Prefactor  = 16.6003
  Prefactor  = 10.2351
  Prefactor  = 10.4763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.03956
  Prefactor  = 14.7136
  Prefactor  = 0.0001
  Prefactor  = 3.00322
  Prefactor  = 3.45019
  Prefactor  = 0.000100067
  Prefactor  = 0.0001
  Prefactor  = 20.9611
  norm       = 5.92585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07861
  Prefactor  = 0.858447
 **********
 **   18 **HESSE 
 **********

 FCN=   6777.696     FROM HESSE     STATUS=OK           401 CALLS     3146 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2319        3.8776        .27773E-03   -1.5486    
   2  norm          16.471        8.4738        .98690E-04   -1.4896    
   3  Prefactor     .10000E-03    44.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     190.39        112.50        .14634E-03   -1.2940    
   5  Prefactor     16.600        20.233        .98297E-04   -1.4893    
   6  Prefactor     10.235        58.313        .12556E-03   -1.5068    
   7  Prefactor     10.476        26.693        .12379E-03   -1.5061    
   8  Prefactor     .10000E-03    4.2115        .16474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.0396        1.5896        .50667E-04   -1.5216    
  11  Prefactor     14.714        9.2259        .10442E-03   -1.4941    
  12  Prefactor     .10000E-03    30.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0032        4.5323        .20559E-03   -1.5361    
  14  Prefactor     3.4502        4.3923        .18876E-03   -1.5336    
  15  Prefactor     .10007E-03    45.332        .47781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.961        16.102        .87488E-04   -1.4792    
  18  norm          5.9258        5.4687        .14628E-03   -1.5221    
  19  Prefactor     .10000E-03    3.2697        .14420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.8472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0786        .26380        .30958E-03   -.90442    
  24  Prefactor     .85845        .14946        .20205E-03   -.97609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16062e-09
Minuit parameter uncertainties:
  1  3.87843
  2  8.4744
  3  0.000591726
  4  112.628
  5  20.2411
  6  48.9332
  7  26.7238
  8  6.03533e-06
  9  1.92401e-05
  10  1.58963
  11  9.22683
  12  8.92976e-06
  13  4.53277
  14  4.39274
  15  0.00348899
  16  9.10223e-06
  17  16.1052
  18  5.46917
  19  8.16288e-06
  20  2.53331e-05
  21  8.02397e-06
  22  1.91232e-05
  23  0.264125
  24  0.149526
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  6.040e+00  1.590e+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:  8.584e-01  1.495e-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.079e+00  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 59.51
Ra Dec: 171.763 -18.964
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.95e-07 +/- 5.14e-08
Energy Flux (Fixed Index): 8.79e-05 +/- 2.31e-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) = 6777.56245706
delta logL = 0.133064883099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6777.54272091
delta logL = 0.152801030387

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9269       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9384       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84790       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=   6777.543     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9269        1.6228        .41236E-02   -.76933E-03
   2  alpha         1.9385        .26382        .19734       -.12735E-04
   3  Normalizat    1.1087        .21334        .69191E-01    .14954E-04
   4  Prefactor     .84791        .12434        .44337E-01    .88892E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.92692
  alpha      = 1.93847
  Normalizat = 1.10868
  Prefactor  = 0.847914
 **********
 **   18 **HESSE 
 **********

 FCN=   6777.543     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9269        1.6334        .51842E-04   -1.5221    
   2  alpha         1.9385        .27699        .83420E-02   -.22655    
   3  Normalizat    1.1087        .25651        .30614E-03   -.89474    
   4  Prefactor     .84791        .14910        .20325E-03   -.97986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61575e-11
Minuit parameter uncertainties:
  1  1.63341
  2  0.277591
  3  0.256802
  4  0.149168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/787925': 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) = 6777.54272085
delta logL = 0.152801093168

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  5.927e+00  1.633e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  1.938e+00  2.776e-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:  8.479e-01  1.492e-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.109e+00  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 59.79
Ra Dec: 171.763 -18.964
Photon Index (Free Index): 1.94 +/- 0.28
Photon Flux (Free Index): 1.70e-07 +/- 6.36e-08
Energy Flux (Free Index): 9.81e-05 +/- 3.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/787925/cmap_HighResolution_310608001_310867201_4FGL_J1127.0-1857_daily_bin275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.95e-07', energy_flux2='9.81e-05', photon_flux_error='5.14e-08', dlogl='1.53e-01', energy_flux='8.79e-05', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-03 21:00:43.014969', photon_index_error2='0.28', photon_index2='1.94', ts='59.51', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='3.47e-05', EG='1.08', time_epoch_completed='1630728043.02', return_code='0', job_id='787925', GAL2='0.85', EG2='1.11', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='6.36e-08', ts2='59.79', photon_index='2.09' WHERE bin_id='275' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:00:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 787925: <4FGL_J1127.0-1857_daily_bin275> in cluster <slac> Done

Job <4FGL_J1127.0-1857_daily_bin275> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:46:26 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:46:40 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:40 2021
Terminated at Fri Sep  3 21:00:43 2021
Results reported at Fri Sep  3 21:00:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin275 171.763 -18.964 310608001 310867201 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 :                                   698.30 sec.
    Max Memory :                                 1104 MB
    Average Memory :                             302.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            857 sec.

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

