/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 100 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 = 7475
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1127.0-1857_daily_bin51
RA = 171.763, Dec = -18.964
tmin = 252547201, tmax = 252806401
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='786438', job_status='RUN', time_executed='2021-09-03 20:44:12.811291', time_epoch_executed='1630727052.81' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='51'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/786438

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/786438/ft1_4FGL_J1127.0-1857_daily_bin51.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/786438/ft2_4FGL_J1127.0-1857_daily_bin51.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/786438/ft1_4FGL_J1127.0-1857_daily_bin51.fits outfile=/scratch/kocevski/786438/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin51.fits ra=171.763 dec=-18.964 rad=12.0 tmin=252547201.0 tmax=252806401.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.29
user 1.27
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/786438/ft1_filtered_4FGL_J1127.0-1857_daily_bin51.fits" evtable="EVENTS" scfile=/scratch/kocevski/786438/ft2_4FGL_J1127.0-1857_daily_bin51.fits sctable="SC_DATA" outfile=/scratch/kocevski/786438/ltcube_252547201_252806401_4FGL_J1127.0-1857_daily_bin51.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/786438/ft2_4FGL_J1127.0-1857_daily_bin51.fits
.....................!
real 20.21
user 19.54
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/786438/ft1_filtered_4FGL_J1127.0-1857_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/786438/ft2_4FGL_J1127.0-1857_daily_bin51.fits sctable="SC_DATA" expcube=/scratch/kocevski/786438/ltcube_252547201_252806401_4FGL_J1127.0-1857_daily_bin51.fits outfile=/scratch/kocevski/786438/expmap_252547201_252806401_4FGL_J1127.0-1857_daily_bin51.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/786438/ltcube_252547201_252806401_4FGL_J1127.0-1857_daily_bin51.fits
.....................!
real 194.78
user 187.42
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/786438/ft1_filtered_4FGL_J1127.0-1857_daily_bin51.fits scfile=/scratch/kocevski/786438/ft2_4FGL_J1127.0-1857_daily_bin51.fits outfile=/scratch/kocevski/786438/cmap_252547201_252806401_4FGL_J1127.0-1857_daily_bin51.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/786438/ft1_filtered_4FGL_J1127.0-1857_daily_bin51.fits scfile=/scratch/kocevski/786438/ft2_4FGL_J1127.0-1857_daily_bin51.fits outfile=/scratch/kocevski/786438/cmap_HighResolution_252547201_252806401_4FGL_J1127.0-1857_daily_bin51.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.62
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/786438/ft1_filtered_4FGL_J1127.0-1857_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/786438/ft2_4FGL_J1127.0-1857_daily_bin51.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/786438/Model_4FGL_J1127.0-1857_daily_bin51.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/786438/ft1_filtered_4FGL_J1127.0-1857_daily_bin51.fits.....................!
real 81.53
user 79.10
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.4593       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.978       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.858       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10656E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29075E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10773E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.270       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2635       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.448       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.168       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2878       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .34013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.1771       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5669       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11797E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .85233       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.526       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1509       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95166       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8964.204     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     2353 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6372        .41491E-07** at limit **
   2  norm          8.4561        5.8992        .38293E-05    .27537E-02
   3  Prefactor     11.958        2.1503        .50868E-06   -.89685E-03
   4  Prefactor     .11711E-03    55.379       -.97520E-05** at limit **
   5  Prefactor     14.867        12.790       -.24812E-05   -.60386E-02
   6  Prefactor     .11569E-03    77.542        .11058E-04** at limit **
   7  Prefactor     .10478E-03    69.949        .18507E-05** at limit **
   8  Prefactor     .10000E-03    5.2149       -.34448E-06** at limit **
   9  Prefactor     11.279        1.2093        .52512E-07   -.92773E-04
  10  norm          1.2634        .83009        .14378E-06    .29648E-03
  11  Prefactor     22.451        2.6775       -.19186E-05    .41694E-02
  12  Prefactor     20.211        3.5905        .44708E-06   -.17134E-02
  13  Prefactor     .10000E-03    3.3007       -.34472E-06** at limit **
  14  Prefactor     1.2899        4.4766        .11253E-05    .18598E-03
  15  Prefactor     .11232E-03    6.1496        .32594E-05** at limit **
  16  Prefactor     .10000E-03    10.637       -.87819E-06** at limit **
  17  Prefactor     .10000E-03    7.2554       -.35466E-06** at limit **
  18  norm          2.1773        2.6862       -.41806E-06    .22428E-03
  19  Prefactor     7.5640        5.7746        .94381E-05    .62725E-02
  20  Prefactor     .10000E-03    11.803        .16392E-05** at limit **
  21  Prefactor     .73950        113.22       -.27906E-04    .35183E-03
  22  Prefactor     24.779        56.921        .18227E-04   -.10702E-02
  23  Normalizat    1.1510        .22300       -.22685E-06    .13895E-03
  24  Prefactor     .95168        .13517       -.11770E-05    .28084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.45614
  Prefactor  = 11.9582
  Prefactor  = 0.000117109
  Prefactor  = 14.8668
  Prefactor  = 0.000115694
  Prefactor  = 0.000104775
  Prefactor  = 0.0001
  Prefactor  = 11.279
  norm       = 1.26341
  Prefactor  = 22.4507
  Prefactor  = 20.211
  Prefactor  = 0.0001
  Prefactor  = 1.28986
  Prefactor  = 0.000112321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17733
  Prefactor  = 7.56405
  Prefactor  = 0.0001
  Prefactor  = 0.739504
  Prefactor  = 24.7788
  Normalizat = 1.15097
  Prefactor  = 0.951678
 **********
 **   18 **HESSE 
 **********

 FCN=   8964.204     FROM HESSE     STATUS=OK           455 CALLS     2808 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.4561        5.9649        .34457E-02   -1.5126    
   3  Prefactor     11.958        25.233        .28937E-02   -1.5016    
   4  Prefactor     .11711E-03    93.220        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.867        13.588        .25977E-02   -1.4937    
   6  Prefactor     .11569E-03    113.32        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10478E-03    76.462        .99310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.1580        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.279        21.948        .29834E-02   -1.5036    
  10  norm          1.2634        .84022        .99127E-02   -1.5483    
  11  Prefactor     22.451        9.4828        .21135E-02   -1.4760    
  12  Prefactor     20.211        21.331        .22297E-02   -1.4809    
  13  Prefactor     .10000E-03    3.2207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2899        4.7883        .97617E-02   -1.5481    
  15  Prefactor     .11232E-03    11.085        .10668       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.628        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.1942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1773        2.7095        .69759E-02   -1.5413    
  19  Prefactor     7.5640        6.0281        .36447E-02   -1.5158    
  20  Prefactor     .10000E-03    11.810        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .73950        10.307        .12634       -1.5536    
  22  Prefactor     24.779        39.831        .20221E-02   -1.4712    
  23  Normalizat    1.1510        .19165        .67798E-01   -.88132    
  24  Prefactor     .95168        .11187        .45660E-01   -.94358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88657e-07
Minuit parameter uncertainties:
  1  1.88456e-05
  2  5.9653
  3  25.2552
  4  0.0799974
  5  13.591
  6  0.0845031
  7  0.0382655
  8  4.60993e-05
  9  21.9639
  10  0.840233
  11  9.48346
  12  21.3388
  13  7.583e-07
  14  4.7897
  15  0.0233779
  16  8.14401e-05
  17  3.64571e-05
  18  2.7096
  19  6.02856
  20  4.06382e-05
  21  5.52251
  22  39.8741
  23  0.191766
  24  0.111897
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  1.263e+00  8.402e-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:  9.517e-01  1.119e-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.151e+00  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.40
Ra Dec: 171.763 -18.964
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.09e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.22e-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) = 8964.19562116
delta logL = 0.00856012843178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8964.19540106
delta logL = 0.00878022593133

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2701       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1743       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1468       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95311       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=   8964.195     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      227 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2696        23.034        .98712E-02    .33138E-03
   2  alpha         2.1739        2.8101        .41602        .44203E-05
   3  Normalizat    1.1470        .98823E-01    .67897E-01    .18072E-04
   4  Prefactor     .95306        .58244E-01    .45678E-01    .75835E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26961
  alpha      = 2.17393
  Normalizat = 1.14702
  Prefactor  = 0.953064
 **********
 **   18 **HESSE 
 **********

 FCN=   8964.195     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2696        .82343        .67067E-04   -1.5483    
   2  alpha         2.1739        .61120        .18289E-01   -.13080    
   3  Normalizat    1.1470        .22114        .30040E-03   -.88256    
   4  Prefactor     .95306        .13421        .19848E-03   -.94311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97815e-11
Minuit parameter uncertainties:
  1  0.823436
  2  0.617575
  3  0.221319
  4  0.134261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/786438': 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) = 8964.19539929
delta logL = 0.00878199899853

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  1.270e+00  8.234e-01  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.174e+00  6.176e-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:  9.531e-01  1.343e-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.147e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.41
Ra Dec: 171.763 -18.964
Photon Index (Free Index): 2.17 +/- 0.62
Photon Flux (Free Index): 4.41e-08 +/- 3.66e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.26e-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/786438/cmap_HighResolution_252547201_252806401_4FGL_J1127.0-1857_daily_bin51.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.09e-08', energy_flux2='1.77e-05', photon_flux_error='2.72e-08', dlogl='8.78e-03', energy_flux='1.84e-05', photon_flux2='4.41e-08', job_status='DONE', time_completed='2021-09-03 20:57:25.846872', photon_index_error2='0.62', photon_index2='2.17', ts='5.40', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='1.15', time_epoch_completed='1630727845.85', return_code='0', job_id='786438', GAL2='0.95', EG2='1.15', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='3.66e-08', ts2='5.41', photon_index='2.09' WHERE bin_id='51' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:57:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 786438: <4FGL_J1127.0-1857_daily_bin51> in cluster <slac> Done

Job <4FGL_J1127.0-1857_daily_bin51> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:41:55 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:42:09 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:42:09 2021
Terminated at Fri Sep  3 20:57:26 2021
Results reported at Fri Sep  3 20:57:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin51 171.763 -18.964 252547201 252806401 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 :                                   784.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            931 sec.

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

