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


Performing analysis on: 4FGL_J1127.0-1857_daily_bin324
RA = 171.763, Dec = -18.964
tmin = 323308801, tmax = 323568001
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='787994', job_status='RUN', time_executed='2021-09-03 20:49:35.456038', time_epoch_executed='1630727375.46' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/787994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/787994/ft1_4FGL_J1127.0-1857_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/787994/ft2_4FGL_J1127.0-1857_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/787994/ft1_4FGL_J1127.0-1857_daily_bin324.fits outfile=/scratch/kocevski/787994/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin324.fits ra=171.763 dec=-18.964 rad=12.0 tmin=323308801.0 tmax=323568001.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.45
user 3.17
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/787994/ft1_filtered_4FGL_J1127.0-1857_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/787994/ft2_4FGL_J1127.0-1857_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/787994/ltcube_323308801_323568001_4FGL_J1127.0-1857_daily_bin324.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/787994/ft2_4FGL_J1127.0-1857_daily_bin324.fits
.....................!
real 16.56
user 16.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/787994/ft1_filtered_4FGL_J1127.0-1857_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/787994/ft2_4FGL_J1127.0-1857_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/787994/ltcube_323308801_323568001_4FGL_J1127.0-1857_daily_bin324.fits outfile=/scratch/kocevski/787994/expmap_323308801_323568001_4FGL_J1127.0-1857_daily_bin324.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/787994/ltcube_323308801_323568001_4FGL_J1127.0-1857_daily_bin324.fits
.....................!
real 192.47
user 187.12
sys 4.67

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/787994/ft1_filtered_4FGL_J1127.0-1857_daily_bin324.fits scfile=/scratch/kocevski/787994/ft2_4FGL_J1127.0-1857_daily_bin324.fits outfile=/scratch/kocevski/787994/cmap_323308801_323568001_4FGL_J1127.0-1857_daily_bin324.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 1.11
user 0.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.5251       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.147       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .79998       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.668       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11921E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.382       1.0000         .10000E-03   10000.    
    18 'norm      '    .19537E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4695       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77237       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=   5109.685     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2775 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4350       -.13133E-06** at limit **
   2  norm          8.5255        6.9629       -.10888E-06   -.95187E-04
   3  Prefactor     50.817        34.268        .19626E-06    .16117E-04
   4  Prefactor     .10000E-03    40.121       -.30790E-06** at limit **
   5  Prefactor     .10000E-03    16.562        .34487E-06** at limit **
   6  Prefactor     .10000E-03    54.375        .18132E-05** at limit **
   7  Prefactor     .10000E-03    17.067        .13954E-07** at limit **
   8  Prefactor     16.146        13.397       -.23580E-07    .21049E-04
   9  Prefactor     .10000E-03    35.499       -.81698E-06** at limit **
  10  norm          .80041        1.5067       -.95519E-06   -.10761E-02
  11  Prefactor     .10019E-03    18.361       -.44179E-05** at limit **
  12  Prefactor     .10000E-03    18.595       -.70998E-06** at limit **
  13  Prefactor     16.666        9.1695       -.57768E-06    .27659E-04
  14  Prefactor     .10000E-03    2.3086       -.47794E-07** at limit **
  15  Prefactor     .10000E-03    11.553       -.81504E-07** at limit **
  16  Prefactor     .10002E-03    116.91       -.11847E-04** at limit **
  17  Prefactor     40.457        23.283        .18683E-05    .73934E-03
  18  norm          .10461E-03    67.707       -.13167E-04** at limit **
  19  Prefactor     .10000E-03    12.178       -.40837E-06** at limit **
  20  Prefactor     .10000E-03    20.724       -.12636E-06** at limit **
  21  Prefactor     .10000E-03    8.8518       -.33517E-07** at limit **
  22  Prefactor     .10000E-03    27.647        .39430E-07** at limit **
  23  Normalizat    1.4691        .26396       -.11748E-06   -.97223E-05
  24  Prefactor     .77260        .14597        .46873E-06    .87312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.52551
  Prefactor  = 50.8165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 16.1457
  Prefactor  = 0.0001
  norm       = 0.80041
  Prefactor  = 0.000100194
  Prefactor  = 0.0001
  Prefactor  = 16.6659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 40.4571
  norm       = 0.000104607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.46915
  Prefactor  = 0.772596
 **********
 **   18 **HESSE 
 **********

 FCN=   5109.685     FROM HESSE     STATUS=OK           397 CALLS     3172 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5573        .16268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.5255        6.9703        .13729E-03   -1.5124    
   3  Prefactor     50.817        34.281        .56254E-04   -1.4281    
   4  Prefactor     .10000E-03    40.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    54.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.146        13.395        .99674E-04   -1.4904    
   9  Prefactor     .10000E-03    35.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .80041        1.5203        .11512E-03   -1.5529    
  11  Prefactor     .10019E-03    23.518        .31056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.666        9.1492        .98102E-04   -1.4891    
  14  Prefactor     .10000E-03    2.3151        .10606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    118.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     40.457        32.290        .63078E-04   -1.4435    
  18  norm          .10461E-03    16.598        .48032E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.8551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4691        .31029        .28844E-03   -.78649    
  24  Prefactor     .77260        .17359        .21915E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.75723e-09
Minuit parameter uncertainties:
  1  9.12654e-06
  2  6.97094
  3  34.2942
  4  6.11784e-05
  5  4.3578e-05
  6  0.000580626
  7  4.76962e-06
  8  13.3978
  9  0.000125864
  10  1.52034
  11  0.00427901
  12  0.000134022
  13  9.14997
  14  3.21999e-06
  15  1.23038e-05
  16  0.00276472
  17  32.304
  18  0.0174939
  19  1.97919e-05
  20  9.27784e-06
  21  9.00698e-07
  22  2.46246e-05
  23  0.310691
  24  0.173715
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  8.004e-01  1.520e+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:  7.726e-01  1.737e-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.469e+00  3.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.32
Ra Dec: 171.763 -18.964
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/787994/likelihoodResults_323308801_323568001_4FGL_J1127.0-1857_daily_bin324.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5108.97467905
delta logL = 0.709830041926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5108.96975216
delta logL = 0.714756926589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1317       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9966       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79020       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=   5108.970     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      228 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1316        20.880        .10973E-01    .69208E-03
   2  alpha         2.9969        3.8892        .36870        .30878E-04
   3  Normalizat    1.4002        .79863E-01    .66447E-01    .52059E-05
   4  Prefactor     .79027        .47312E-01    .43590E-01    .90789E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13161
  alpha      = 2.99692
  Normalizat = 1.40016
  Prefactor  = 0.790265
 **********
 **   18 **HESSE 
 **********

 FCN=   5108.970     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1316        1.2640        .61606E-04   -1.5495    
   2  alpha         2.9969        .75913        .14792E-01    .20010    
   3  Normalizat    1.4002        .30939        .29394E-03   -.80624    
   4  Prefactor     .79027        .17425        .21668E-03   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90716e-12
Minuit parameter uncertainties:
  1  1.26406
  2  0.771834
  3  0.309802
  4  0.17437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/787994': 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) = 5108.96975193
delta logL = 0.714757161971

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  1.132e+00  1.264e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.997e+00  7.718e-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:  7.903e-01  1.744e-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.400e+00  3.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 171.763 -18.964
Photon Index (Free Index): 3.00 +/- 0.77
Photon Flux (Free Index): 9.59e-08 +/- 8.50e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.71e-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/787994/cmap_HighResolution_323308801_323568001_4FGL_J1127.0-1857_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-05', comment='SUCCESS', energy_flux2='1.97e-05', dlogl='7.15e-01', photon_flux2='9.59e-08', job_status='DONE', time_completed='2021-09-03 21:01:02.809261', photon_index_error2='0.77', photon_index2='3.00', ts='0.32', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.71e-05', EG='1.47', time_epoch_completed='1630728062.81', return_code='0', job_id='787994', GAL2='0.79', EG2='1.40', return_code2='0', photon_flux_error2='8.50e-08', ts2='1.79', photon_index='2.09' WHERE bin_id='324' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:01:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 787994: <4FGL_J1127.0-1857_daily_bin324> in cluster <slac> Done

Job <4FGL_J1127.0-1857_daily_bin324> 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) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:46:49 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:49 2021
Terminated at Fri Sep  3 21:01:03 2021
Results reported at Fri Sep  3 21:01:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin324 171.763 -18.964 323308801 323568001 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 :                                   671.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            873 sec.

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

