/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 2 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 = 7384
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1127.0-1857_daily_bin1128
RA = 171.763, Dec = -18.964
tmin = 531705601, tmax = 531964801
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='792649', job_status='RUN', time_executed='2021-09-03 21:02:53.896300', time_epoch_executed='1630728173.9' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792649/ft1_4FGL_J1127.0-1857_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792649/ft2_4FGL_J1127.0-1857_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792649/ft1_4FGL_J1127.0-1857_daily_bin1128.fits outfile=/scratch/kocevski/792649/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin1128.fits ra=171.763 dec=-18.964 rad=12.0 tmin=531705601.0 tmax=531964801.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.32
user 3.12
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792649/ft1_filtered_4FGL_J1127.0-1857_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/792649/ft2_4FGL_J1127.0-1857_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/792649/ltcube_531705601_531964801_4FGL_J1127.0-1857_daily_bin1128.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/792649/ft2_4FGL_J1127.0-1857_daily_bin1128.fits
.....................!
real 14.66
user 14.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792649/ft1_filtered_4FGL_J1127.0-1857_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/792649/ft2_4FGL_J1127.0-1857_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/792649/ltcube_531705601_531964801_4FGL_J1127.0-1857_daily_bin1128.fits outfile=/scratch/kocevski/792649/expmap_531705601_531964801_4FGL_J1127.0-1857_daily_bin1128.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/792649/ltcube_531705601_531964801_4FGL_J1127.0-1857_daily_bin1128.fits
.....................!
real 158.18
user 153.62
sys 4.22

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/792649/ft1_filtered_4FGL_J1127.0-1857_daily_bin1128.fits scfile=/scratch/kocevski/792649/ft2_4FGL_J1127.0-1857_daily_bin1128.fits outfile=/scratch/kocevski/792649/cmap_531705601_531964801_4FGL_J1127.0-1857_daily_bin1128.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.50
user 0.34
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792649/ft1_filtered_4FGL_J1127.0-1857_daily_bin1128.fits scfile=/scratch/kocevski/792649/ft2_4FGL_J1127.0-1857_daily_bin1128.fits outfile=/scratch/kocevski/792649/cmap_HighResolution_531705601_531964801_4FGL_J1127.0-1857_daily_bin1128.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.51
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/792649/ft1_filtered_4FGL_J1127.0-1857_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/792649/ft2_4FGL_J1127.0-1857_daily_bin1128.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/792649/Model_4FGL_J1127.0-1857_daily_bin1128.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/792649/ft1_filtered_4FGL_J1127.0-1857_daily_bin1128.fits.....................!
real 63.47
user 62.23
sys 1.04

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0097       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8062       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.170       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.764       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3254       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6953       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28704E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.2891       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4499       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0343       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4122       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73913       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=   9065.260     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2361 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0103        4.2598        .86383E-08   -.15780E-03
   2  norm          2.8062        4.7210       -.17927E-06   -.12371E-03
   3  Prefactor     12.172        21.115        .64807E-06   -.10214E-04
   4  Prefactor     .10000E-03    24.728        .64747E-05** at limit **
   5  Prefactor     19.764        14.343        .52059E-07   -.13130E-04
   6  Prefactor     .10000E-03    16.716        .30687E-05** at limit **
   7  Prefactor     .10000E-03    10.492       -.41282E-05** at limit **
   8  Prefactor     .10000E-03    8.7384        .87849E-06** at limit **
   9  Prefactor     .10000E-03    54.117       -.20210E-05** at limit **
  10  norm          1.3258        .73271       -.50472E-08   -.47265E-04
  11  Prefactor     3.6950        1.9480        .21732E-06   -.19883E-02
  12  Prefactor     .10000E-03    18.887       -.34851E-05** at limit **
  13  Prefactor     .10000E-03    1.9061        .14131E-06** at limit **
  14  Prefactor     .10000E-03    2.2546        .14002E-09** at limit **
  15  Prefactor     .10000E-03    22.538        .15340E-06** at limit **
  16  Prefactor     .10000E-03    18.607       -.30729E-05** at limit **
  17  Prefactor     .10000E-03    11.350        .35884E-05** at limit **
  18  norm          3.2899        2.5268       -.57029E-07   -.33461E-03
  19  Prefactor     1.4496        3.5122       -.35232E-07   -.21781E-03
  20  Prefactor     .10000E-03    19.826       -.44558E-05** at limit **
  21  Prefactor     9.0345        9.8297        .11123E-07   -.28975E-05
  22  Prefactor     .10000E-03    16.941        .22095E-05** at limit **
  23  Normalizat    1.4122        .17139       -.50157E-07   -.72460E-04
  24  Prefactor     .73912        .10163       -.48710E-07   -.73764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.01026
  norm       = 2.80616
  Prefactor  = 12.1721
  Prefactor  = 0.0001
  Prefactor  = 19.7638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32578
  Prefactor  = 3.69501
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.28994
  Prefactor  = 1.44959
  Prefactor  = 0.0001
  Prefactor  = 9.03447
  Prefactor  = 0.0001
  Normalizat = 1.41215
  Prefactor  = 0.739115
 **********
 **   18 **HESSE 
 **********

 FCN=   9065.260     FROM HESSE     STATUS=OK           399 CALLS     2760 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0103        4.2684        .22246E-03   -1.5361    
   2  norm          2.8062        4.7215        .24284E-03   -1.5373    
   3  Prefactor     12.172        21.099        .11483E-03   -1.5010    
   4  Prefactor     .10000E-03    24.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.764        14.375        .90093E-04   -1.4819    
   6  Prefactor     .10000E-03    16.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.9574        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    54.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3258        .73206        .58494E-04   -1.5478    
  11  Prefactor     3.6950        5.4960        .10505E-02   -1.5323    
  12  Prefactor     .10000E-03    18.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.139        .24918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1714        .27725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.545        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.2899        2.5210        .12805E-03   -1.5345    
  19  Prefactor     1.4496        3.4879        .26911E-03   -1.5467    
  20  Prefactor     .10000E-03    19.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.0345        9.8281        .13335E-03   -1.5107    
  22  Prefactor     .10000E-03    16.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4122        .20405        .25699E-03   -.80278    
  24  Prefactor     .73912        .12098        .20618E-03   -1.0201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33247e-09
Minuit parameter uncertainties:
  1  4.26883
  2  4.72209
  3  21.112
  4  5.90233e-05
  5  14.3776
  6  2.63628e-05
  7  2.60704e-05
  8  1.83092e-06
  9  2.19734e-05
  10  0.732065
  11  5.49675
  12  2.64806e-05
  13  0.000196592
  14  3.90472e-06
  15  3.70173e-06
  16  2.16187e-05
  17  4.77448e-06
  18  2.52104
  19  3.48842
  20  4.19408e-05
  21  9.82989
  22  1.95438e-05
  23  0.204163
  24  0.121024
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  1.326e+00  7.321e-01  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.092e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  8.161e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  5.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  7.391e-01  1.210e-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.412e+00  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.08
Ra Dec: 171.763 -18.964
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.29e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.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) = 9065.10820583
delta logL = 0.151326809395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9065.10168178
delta logL = 0.157850858106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2546       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8316       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73614       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=   9065.102     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2548        .88030        .99706E-02    .97253E-04
   2  alpha         1.8316        .45730        .37715       -.28423E-04
   3  Normalizat    1.4229        .16740        .57936E-01    .60383E-05
   4  Prefactor     .73586        .10109        .42880E-01    .20311E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.25477
  alpha      = 1.83158
  Normalizat = 1.42286
  Prefactor  = 0.735865
 **********
 **   18 **HESSE 
 **********

 FCN=   9065.102     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .76E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2548        .76430        .59346E-04   -1.5484    
   2  alpha         1.8316        .45678        .14435E-01   -.27066    
   3  Normalizat    1.4229        .19932        .25621E-03   -.79970    
   4  Prefactor     .73586        .12016        .20661E-03   -1.0214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61934e-13
Minuit parameter uncertainties:
  1  0.764304
  2  0.45956
  3  0.199432
  4  0.120205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792649': 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) = 9065.10167873
delta logL = 0.157853907385

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  1.255e+00  7.643e-01  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  1.832e+00  4.596e-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.359e-01  1.202e-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.423e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.39
Ra Dec: 171.763 -18.964
Photon Index (Free Index): 1.83 +/- 0.46
Photon Flux (Free Index): 3.35e-08 +/- 2.52e-08
Energy Flux (Free Index): 2.36e-05 +/- 1.69e-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/792649/cmap_HighResolution_531705601_531964801_4FGL_J1127.0-1857_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.29e-08', energy_flux2='2.36e-05', photon_flux_error='2.37e-08', dlogl='1.58e-01', energy_flux='1.93e-05', photon_flux2='3.35e-08', job_status='DONE', time_completed='2021-09-03 21:13:52.513454', photon_index_error2='0.46', photon_index2='1.83', ts='10.08', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='1.41', time_epoch_completed='1630728832.51', return_code='0', job_id='792649', GAL2='0.74', EG2='1.42', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='2.52e-08', ts2='10.39', photon_index='2.09' WHERE bin_id='1128' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:13:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 792649: <4FGL_J1127.0-1857_daily_bin1128> in cluster <slac> Done

Job <4FGL_J1127.0-1857_daily_bin1128> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 21:01:17 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:02:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 21:02:44 2021
Terminated at Fri Sep  3 21:13:52 2021
Results reported at Fri Sep  3 21:13:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin1128 171.763 -18.964 531705601 531964801 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 :                                   656.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            755 sec.

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

