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


Performing analysis on: 4FGL_J1127.0-1857_daily_bin325
RA = 171.763, Dec = -18.964
tmin = 323568001, tmax = 323827201
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='787995', job_status='RUN', time_executed='2021-09-03 20:49:27.231665', time_epoch_executed='1630727367.23' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/787995

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/787995/ft1_4FGL_J1127.0-1857_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/787995/ft2_4FGL_J1127.0-1857_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/787995/ft1_4FGL_J1127.0-1857_daily_bin325.fits outfile=/scratch/kocevski/787995/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin325.fits ra=171.763 dec=-18.964 rad=12.0 tmin=323568001.0 tmax=323827201.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.34
user 3.11
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/787995/ft2_4FGL_J1127.0-1857_daily_bin325.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/787995/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin325.fits evtable="EVENTS" outfile="/scratch/kocevski/787995/ft1_filtered_4FGL_J1127.0-1857_daily_bin325.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/787995/ft1_filtered_4FGL_J1127.0-1857_daily_bin325.fits" evtable="EVENTS" scfile=/scratch/kocevski/787995/ft2_4FGL_J1127.0-1857_daily_bin325.fits sctable="SC_DATA" outfile=/scratch/kocevski/787995/ltcube_323568001_323827201_4FGL_J1127.0-1857_daily_bin325.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/787995/ft2_4FGL_J1127.0-1857_daily_bin325.fits
.....................!
real 16.65
user 16.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/787995/ft1_filtered_4FGL_J1127.0-1857_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/787995/ft2_4FGL_J1127.0-1857_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/787995/ltcube_323568001_323827201_4FGL_J1127.0-1857_daily_bin325.fits outfile=/scratch/kocevski/787995/expmap_323568001_323827201_4FGL_J1127.0-1857_daily_bin325.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/787995/ltcube_323568001_323827201_4FGL_J1127.0-1857_daily_bin325.fits
.....................!
real 192.24
user 186.92
sys 4.70

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/787995/ft1_filtered_4FGL_J1127.0-1857_daily_bin325.fits scfile=/scratch/kocevski/787995/ft2_4FGL_J1127.0-1857_daily_bin325.fits outfile=/scratch/kocevski/787995/cmap_323568001_323827201_4FGL_J1127.0-1857_daily_bin325.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.64
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/787995/ft1_filtered_4FGL_J1127.0-1857_daily_bin325.fits scfile=/scratch/kocevski/787995/ft2_4FGL_J1127.0-1857_daily_bin325.fits outfile=/scratch/kocevski/787995/cmap_HighResolution_323568001_323827201_4FGL_J1127.0-1857_daily_bin325.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.78
user 0.39
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.2067       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12186E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.119       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39025E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10120E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4861       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.575       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5415       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .99919       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11300E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.747       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.0145       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    111.03       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3453       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0264       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=   5657.886     FROM MIGRAD    STATUS=CONVERGED    980 CALLS     3549 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5889        .92536E-03** at limit **
   2  norm          7.2070        6.5971        .14942E-03   -.47402E-04
   3  Prefactor     .10000E-03    23.914        .18142E-02** at limit **
   4  Prefactor     .10000E-03    47.546        .18142E-02** at limit **
   5  Prefactor     20.104        20.136        .89296E-04   -.36219E-03
   6  Prefactor     .10001E-03    474.56        .19525E-02** at limit **
   7  Prefactor     .10000E-03    62.660        .15796    ** at limit **
   8  Prefactor     7.4700        21.484        .14658E-03    .11200E-03
   9  Prefactor     19.520        54.216        .90527E-04    .59024E-05
  10  norm          2.5419        1.4246        .64181E-04    .41627E-04
  11  Prefactor     .10000E-03    3.8311        .14360E-02** at limit **
  12  Prefactor     .10000E-03    16.014        .18142E-02** at limit **
  13  Prefactor     .10000E-03    4.4570        .15445E-02** at limit **
  14  Prefactor     1.0083        9.9155        .44050E-02    .41809E-03
  15  Prefactor     .10000E-03    106.37        .36285E-03** at limit **
  16  Prefactor     56.792        44.055        .53253E-04    .20110E-04
  17  Prefactor     .10000E-03    8.2489        .18142E-02** at limit **
  18  norm          7.0101        5.6057        .75736E-03   -.28407E-03
  19  Prefactor     .10000E-03    5.5512        .17242E-02** at limit **
  20  Prefactor     .10000E-03    16.826        .18142E-02** at limit **
  21  Prefactor     .10000E-03    13.253        .18142E-02** at limit **
  22  Prefactor     111.04        73.593        .19087E-03    .69091E-05
  23  Normalizat    1.3453        .32295        .32279E-03   -.83471E-05
  24  Prefactor     1.0264        .18643        .21302E-03    .13886E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.20704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1041
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 7.46996
  Prefactor  = 19.5197
  norm       = 2.54188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00831
  Prefactor  = 0.000100004
  Prefactor  = 56.7919
  Prefactor  = 0.0001
  norm       = 7.01014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 111.043
  Normalizat = 1.34532
  Prefactor  = 1.02636
 **********
 **   18 **HESSE 
 **********

 FCN=   5657.886     FROM HESSE     STATUS=OK           385 CALLS     3934 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5889        .18507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.2070        6.5967        .59767E-05   -1.5171    
   3  Prefactor     .10000E-03    23.916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    47.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.104        20.135        .17859E-04   -1.4811    
   6  Prefactor     .10001E-03    474.81        .39050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    64.025        .15560       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4700        21.491        .58632E-05   -1.5161    
   9  Prefactor     19.520        54.250        .36211E-05   -1.4824    
  10  norm          2.5419        1.4245        .25672E-05   -1.5389    
  11  Prefactor     .10000E-03    3.8314        .28721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.4578        .30891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0083        9.8896        .17620E-03   -1.5507    
  15  Prefactor     .10000E-03    106.38        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     56.792        44.052        .10651E-04   -1.4199    
  17  Prefactor     .10000E-03    8.2492        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.0101        5.6044        .30294E-04   -1.5178    
  19  Prefactor     .10000E-03    5.5526        .34484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.826        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     111.04        73.591        .76349E-05   -1.3597    
  23  Normalizat    1.3453        .32263        .12912E-04   -.82224    
  24  Prefactor     1.0264        .18659        .42604E-04   -.91856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55333e-10
Minuit parameter uncertainties:
  1  2.11972e-06
  2  6.59738
  3  1.68699e-05
  4  2.35149e-05
  5  20.1416
  6  0.00396706
  7  4.26728e-06
  8  21.5136
  9  54.3879
  10  1.42454
  11  4.42782e-06
  12  3.5846e-06
  13  5.17944e-05
  14  6.31668
  15  0.00129215
  16  44.0774
  17  1.43567e-05
  18  5.60483
  19  2.33273e-05
  20  1.02562e-05
  21  4.86843e-05
  22  73.6519
  23  0.323113
  24  0.186711
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  2.542e+00  1.425e+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:  1.026e+00  1.867e-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.345e+00  3.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.70
Ra Dec: 171.763 -18.964
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 8.22e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 3.70e-05 +/- 2.07e-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) = 5657.1440292
delta logL = 0.742424928018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5657.08856592
delta logL = 0.797888206841

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9873       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4907       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0084       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=   5657.089     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9871        1.1419        .73484E-02   -.36848E-04
   2  alpha         1.4906        .33703        .25424       -.42123E-04
   3  Normalizat    1.3943        .25997        .71845E-01    .75244E-05
   4  Prefactor     1.0084        .15309        .43573E-01    .54266E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.98706
  alpha      = 1.49063
  Normalizat = 1.3943
  Prefactor  = 1.0084
 **********
 **   18 **HESSE 
 **********

 FCN=   5657.089     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9871        1.3288        .57300E-04   -1.5426    
   2  alpha         1.4906        .42023        .10489E-01   -.41561    
   3  Normalizat    1.3943        .31111        .31790E-03   -.80794    
   4  Prefactor     1.0084        .18338        .21461E-03   -.92450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57295e-12
Minuit parameter uncertainties:
  1  1.32882
  2  0.422631
  3  0.311531
  4  0.183498
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/787995': 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) = 5657.08856589
delta logL = 0.797888233843

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  1.987e+00  1.329e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  1.491e+00  4.226e-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.008e+00  1.835e-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.394e+00  3.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.33
Ra Dec: 171.763 -18.964
Photon Index (Free Index): 1.49 +/- 0.42
Photon Flux (Free Index): 4.60e-08 +/- 3.29e-08
Energy Flux (Free Index): 7.11e-05 +/- 6.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/787995/cmap_HighResolution_323568001_323827201_4FGL_J1127.0-1857_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.22e-08', energy_flux2='7.11e-05', photon_flux_error='4.61e-08', dlogl='7.98e-01', energy_flux='3.70e-05', photon_flux2='4.60e-08', job_status='DONE', time_completed='2021-09-03 21:01:04.513055', photon_index_error2='0.42', photon_index2='1.49', ts='8.70', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='6.01e-05', EG='1.35', time_epoch_completed='1630728064.51', return_code='0', job_id='787995', GAL2='1.01', EG2='1.39', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='3.29e-08', ts2='10.33', photon_index='2.09' WHERE bin_id='325' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:01:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 787995: <4FGL_J1127.0-1857_daily_bin325> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin325 171.763 -18.964 323568001 323827201 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 :                                   690.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            875 sec.

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

