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


Performing analysis on: 4FGL_J1127.0-1857_daily_bin755
RA = 171.763, Dec = -18.964
tmin = 435024001, tmax = 435283201
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='790945', job_status='RUN', time_executed='2021-09-03 20:58:27.792355', time_epoch_executed='1630727907.79' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790945

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790945/ft1_4FGL_J1127.0-1857_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790945/ft2_4FGL_J1127.0-1857_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790945/ft1_4FGL_J1127.0-1857_daily_bin755.fits outfile=/scratch/kocevski/790945/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin755.fits ra=171.763 dec=-18.964 rad=12.0 tmin=435024001.0 tmax=435283201.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 5.11
user 4.87
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790945/ft1_filtered_4FGL_J1127.0-1857_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/790945/ft2_4FGL_J1127.0-1857_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/790945/ltcube_435024001_435283201_4FGL_J1127.0-1857_daily_bin755.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/790945/ft2_4FGL_J1127.0-1857_daily_bin755.fits
.....................!
real 15.38
user 14.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790945/ft1_filtered_4FGL_J1127.0-1857_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/790945/ft2_4FGL_J1127.0-1857_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/790945/ltcube_435024001_435283201_4FGL_J1127.0-1857_daily_bin755.fits outfile=/scratch/kocevski/790945/expmap_435024001_435283201_4FGL_J1127.0-1857_daily_bin755.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/790945/ltcube_435024001_435283201_4FGL_J1127.0-1857_daily_bin755.fits
.....................!
real 192.96
user 186.96
sys 5.46

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/790945/ft1_filtered_4FGL_J1127.0-1857_daily_bin755.fits scfile=/scratch/kocevski/790945/ft2_4FGL_J1127.0-1857_daily_bin755.fits outfile=/scratch/kocevski/790945/cmap_435024001_435283201_4FGL_J1127.0-1857_daily_bin755.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.55
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/790945/ft1_filtered_4FGL_J1127.0-1857_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/790945/ft2_4FGL_J1127.0-1857_daily_bin755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790945/Model_4FGL_J1127.0-1857_daily_bin755.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/790945/ft1_filtered_4FGL_J1127.0-1857_daily_bin755.fits.....................!
real 54.41
user 52.97
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5230       1.0000         .10000E-03   10000.    
     2 'norm      '    10.125       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .58877       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14764E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.913       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.136       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.4677       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1239       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.881       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2492       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8714       1.0000         .10000E-03   10000.    
    18 'norm      '    .10417E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.343       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.090       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97929       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0060       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=   5986.483     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2695 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5220        4.9536        .32849E-05    .41284E-03
   2  norm          10.125        7.4294        .10757E-06    .24974E-03
   3  Prefactor     .68073        35.103       -.10764E-04    .14090E-03
   4  Prefactor     .10000E-03    171.43       -.35976E-06** at limit **
   5  Prefactor     12.915        18.286        .19245E-06   -.65889E-04
   6  Prefactor     .10000E-03    30.725        .28854E-08** at limit **
   7  Prefactor     .10000E-03    29.856        .22179E-07** at limit **
   8  Prefactor     10.137        9.3119        .46906E-07    .38345E-04
   9  Prefactor     .10001E-03    26.372        .97671E-08** at limit **
  10  norm          3.4672        1.4106        .67672E-07    .48681E-03
  11  Prefactor     4.1233        8.5183        .34487E-06   -.34476E-04
  12  Prefactor     33.885        34.566        .13722E-06    .18953E-05
  13  Prefactor     3.2486        4.6397        .23153E-06    .27830E-04
  14  Prefactor     .10000E-03    3.1812       -.52644E-07** at limit **
  15  Prefactor     .10000E-03    23.243       -.47258E-06** at limit **
  16  Prefactor     .10000E-03    10.779       -.57325E-08** at limit **
  17  Prefactor     5.8704        12.950        .45968E-06   -.62950E-06
  18  norm          .10000E-03    2.4873       -.89183E-07** at limit **
  19  Prefactor     .10000E-03    1.7562       -.11122E-07** at limit **
  20  Prefactor     20.341        32.897        .80500E-07   -.38293E-06
  21  Prefactor     .10000E-03    14.843       -.17230E-06** at limit **
  22  Prefactor     19.084        33.955        .15087E-06   -.84740E-05
  23  Normalizat    .97936        .22250       -.17615E-05   -.43881E-04
  24  Prefactor     1.0059        .13017        .95016E-07   -.10368E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.52202
  norm       = 10.1248
  Prefactor  = 0.680726
  Prefactor  = 0.000100002
  Prefactor  = 12.915
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 10.1375
  Prefactor  = 0.000100008
  norm       = 3.46717
  Prefactor  = 4.12331
  Prefactor  = 33.885
  Prefactor  = 3.24859
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.8704
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.3406
  Prefactor  = 0.0001
  Prefactor  = 19.0843
  Normalizat = 0.979364
  Prefactor  = 1.00587
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.483     FROM HESSE     STATUS=OK           401 CALLS     3096 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5220        5.3275        .10381E-02   -1.5333    
   2  norm          10.125        7.4497        .12593E-03   -1.5071    
   3  Prefactor     .68073        111.70        .63877E-02   -1.5543    
   4  Prefactor     .10000E-03    172.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.915        18.349        .11147E-03   -1.4989    
   6  Prefactor     .10000E-03    31.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.137        9.3148        .12586E-03   -1.5071    
   9  Prefactor     .10001E-03    27.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4672        1.4108        .55875E-04   -1.5336    
  11  Prefactor     4.1233        8.5203        .19850E-03   -1.5302    
  12  Prefactor     33.885        34.569        .68844E-04   -1.4543    
  13  Prefactor     3.2486        4.6334        .19059E-03   -1.5347    
  14  Prefactor     .10000E-03    3.2066        .13474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8704        12.883        .16573E-03   -1.5223    
  18  norm          .10000E-03    2.5129        .11859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.7651        .10013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.341        32.876        .88803E-04   -1.4806    
  21  Prefactor     .10000E-03    14.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.084        33.906        .91669E-04   -1.4834    
  23  Normalizat    .97936        .26021        .31126E-03   -.93725    
  24  Prefactor     1.0059        .15343        .18921E-03   -.92534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27581e-09
Minuit parameter uncertainties:
  1  5.32819
  2  7.45038
  3  17.4721
  4  0.00121671
  5  18.3574
  6  0.000650971
  7  3.59104e-05
  8  9.31612
  9  0.000904537
  10  1.41085
  11  8.52281
  12  34.5896
  13  4.63391
  14  5.50564e-06
  15  0.000474925
  16  1.25614e-06
  17  12.889
  18  9.70068e-06
  19  9.12019e-07
  20  32.9048
  21  4.19143e-05
  22  33.9402
  23  0.260545
  24  0.153492
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  3.467e+00  1.411e+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.006e+00  1.535e-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:  9.794e-01  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.97
Ra Dec: 171.763 -18.964
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 4.56e-08
Energy Flux (Fixed Index): 5.05e-05 +/- 2.05e-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) = 5986.00403276
delta logL = 0.478745083687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5985.97150924
delta logL = 0.511268598227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1524       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5978       1.0000          .0000       5.0000    
     3 'Normalizat'    .89835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0373       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=   5985.972     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      230 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1525        15.363        .57073E-02    .27466E-02
   2  alpha         2.5978        3.7832        .26094        .46026E-04
   3  Normalizat    .89835        .15621        .73004E-01    .21197E-04
   4  Prefactor     1.0374        .63313E-01    .40716E-01   -.51192E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 3.15245
  alpha      = 2.59782
  Normalizat = 0.898348
  Prefactor  = 1.03735
 **********
 **   18 **HESSE 
 **********

 FCN=   5985.972     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1525        1.4274        .46389E-04   -1.5353    
   2  alpha         2.5978        .52436        .10345E-01    .39138E-01
   3  Normalizat    .89835        .26141        .32305E-03   -.96518    
   4  Prefactor     1.0374        .15591        .18655E-03   -.91495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02662e-09
Minuit parameter uncertainties:
  1  1.42744
  2  0.528291
  3  0.261779
  4  0.155977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790945': 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) = 5985.97150923
delta logL = 0.511268613002

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  3.152e+00  1.427e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.598e+00  5.283e-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.037e+00  1.560e-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:  8.983e-01  2.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.14
Ra Dec: 171.763 -18.964
Photon Index (Free Index): 2.60 +/- 0.53
Photon Flux (Free Index): 1.68e-07 +/- 7.83e-08
Energy Flux (Free Index): 4.37e-05 +/- 1.62e-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/790945/cmap_HighResolution_435024001_435283201_4FGL_J1127.0-1857_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='4.37e-05', photon_flux_error='4.56e-08', dlogl='5.11e-01', energy_flux='5.05e-05', photon_flux2='1.68e-07', job_status='DONE', time_completed='2021-09-03 21:09:33.846556', photon_index_error2='0.53', photon_index2='2.60', ts='18.97', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='0.98', time_epoch_completed='1630728573.85', return_code='0', job_id='790945', GAL2='1.04', EG2='0.90', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='7.83e-08', ts2='20.14', photon_index='2.09' WHERE bin_id='755' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:09:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 790945: <4FGL_J1127.0-1857_daily_bin755> in cluster <slac> Done

Job <4FGL_J1127.0-1857_daily_bin755> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:56:11 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:56:20 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:56:20 2021
Terminated at Fri Sep  3 21:09:34 2021
Results reported at Fri Sep  3 21:09:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin755 171.763 -18.964 435024001 435283201 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 :                                   664.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            803 sec.

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

