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


Performing analysis on: 4FGL_J1127.0-1857_daily_bin184
RA = 171.763, Dec = -18.964
tmin = 287020801, tmax = 287280001
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='787794', job_status='RUN', time_executed='2021-09-03 20:50:14.659871', time_epoch_executed='1630727414.66' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/787794

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/787794/ft1_4FGL_J1127.0-1857_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/787794/ft2_4FGL_J1127.0-1857_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/787794/ft1_4FGL_J1127.0-1857_daily_bin184.fits outfile=/scratch/kocevski/787794/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin184.fits ra=171.763 dec=-18.964 rad=12.0 tmin=287020801.0 tmax=287280001.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 4.64
user 4.37
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/787794/ft1_filtered_4FGL_J1127.0-1857_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/787794/ft2_4FGL_J1127.0-1857_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/787794/ltcube_287020801_287280001_4FGL_J1127.0-1857_daily_bin184.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/787794/ft2_4FGL_J1127.0-1857_daily_bin184.fits
.....................!
real 16.01
user 15.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/787794/ft1_filtered_4FGL_J1127.0-1857_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/787794/ft2_4FGL_J1127.0-1857_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/787794/ltcube_287020801_287280001_4FGL_J1127.0-1857_daily_bin184.fits outfile=/scratch/kocevski/787794/expmap_287020801_287280001_4FGL_J1127.0-1857_daily_bin184.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/787794/ltcube_287020801_287280001_4FGL_J1127.0-1857_daily_bin184.fits
.....................!
real 191.32
user 186.64
sys 4.00

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/787794/ft1_filtered_4FGL_J1127.0-1857_daily_bin184.fits scfile=/scratch/kocevski/787794/ft2_4FGL_J1127.0-1857_daily_bin184.fits outfile=/scratch/kocevski/787794/cmap_287020801_287280001_4FGL_J1127.0-1857_daily_bin184.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.89
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/787794/ft1_filtered_4FGL_J1127.0-1857_daily_bin184.fits scfile=/scratch/kocevski/787794/ft2_4FGL_J1127.0-1857_daily_bin184.fits outfile=/scratch/kocevski/787794/cmap_HighResolution_287020801_287280001_4FGL_J1127.0-1857_daily_bin184.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.84
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/787794/ft1_filtered_4FGL_J1127.0-1857_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/787794/ft2_4FGL_J1127.0-1857_daily_bin184.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/787794/Model_4FGL_J1127.0-1857_daily_bin184.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/787794/ft1_filtered_4FGL_J1127.0-1857_daily_bin184.fits.....................!
real 54.91
user 51.37
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5248       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    95.000       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.598       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.237       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.812       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.870       1.0000         .10000E-03   10000.    
    10 'norm      '    .44830       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.710       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7777       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1384       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11561E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.341       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.418       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85446       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2211       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=   5233.898     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2723 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5248        8.3192       -.25636E-05   -.11469E-03
   2  norm          .10000E-03    3.1139        .28021E-08** at limit **
   3  Prefactor     .10000E-03    15.592       -.65274E-06** at limit **
   4  Prefactor     94.963        91.368       -.31566E-04   -.30377E-04
   5  Prefactor     31.587        26.918       -.12407E-05   -.70090E-06
   6  Prefactor     .10000E-03    139.39       -.85695E-06** at limit **
   7  Prefactor     16.201        64.501       -.56392E-04   -.39149E-04
   8  Prefactor     10.804        25.832        .17636E-04    .14706E-04
   9  Prefactor     21.839        48.963       -.32965E-04   -.55095E-04
  10  norm          .45029        1.4508        .17835E-05   -.27813E-03
  11  Prefactor     .10000E-03    3.9331        .34762E-07** at limit **
  12  Prefactor     18.701        37.720       -.74849E-05   -.58463E-05
  13  Prefactor     1.7767        8.8007        .11052E-04   -.59764E-03
  14  Prefactor     1.1391        4.9290       -.20385E-05   -.92888E-03
  15  Prefactor     .10000E-03    31.201       -.10324E-05** at limit **
  16  Prefactor     .10001E-03    82.185        .20225E-05** at limit **
  17  Prefactor     13.342        11.211       -.94870E-06   -.66304E-04
  18  norm          .10000E-03    1.6959       -.25939E-07** at limit **
  19  Prefactor     .10000E-03    2.6624       -.14416E-06** at limit **
  20  Prefactor     19.420        36.219       -.11688E-06   -.82593E-05
  21  Prefactor     .10000E-03    6.7495        .24201E-07** at limit **
  22  Prefactor     .10000E-03    17.825        .13270E-05** at limit **
  23  Normalizat    .85432        .28424        .63131E-06   -.15727E-03
  24  Prefactor     1.2212        .16533        .13840E-05   -.36431E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.52481
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.9635
  Prefactor  = 31.5872
  Prefactor  = 0.0001
  Prefactor  = 16.2013
  Prefactor  = 10.8036
  Prefactor  = 21.8389
  norm       = 0.450288
  Prefactor  = 0.0001
  Prefactor  = 18.701
  Prefactor  = 1.77667
  Prefactor  = 1.13913
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 13.3422
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.854324
  Prefactor  = 1.22122
 **********
 **   18 **HESSE 
 **********

 FCN=   5233.898     FROM HESSE     STATUS=OK           395 CALLS     3118 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5248        8.3186        .13730E-03   -1.5124    
   2  norm          .10000E-03    3.1235        .12467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     94.963        91.263        .20618E-03   -1.3756    
   5  Prefactor     31.587        27.007        .71281E-04   -1.4583    
   6  Prefactor     .10000E-03    139.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.201        64.251        .99395E-04   -1.4903    
   8  Prefactor     10.804        25.631        .12185E-03   -1.5050    
   9  Prefactor     21.839        48.565        .85649E-04   -1.4773    
  10  norm          .45029        1.4233        .14096E-03   -1.5574    
  11  Prefactor     .10000E-03    3.9432        .14010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.701        37.751        .92594E-04   -1.4843    
  13  Prefactor     1.7767        8.4239        .31395E-03   -1.5441    
  14  Prefactor     1.1391        4.9658        .31194E-03   -1.5495    
  15  Prefactor     .10000E-03    31.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    82.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.342        11.200        .10966E-03   -1.4977    
  18  norm          .10000E-03    1.7045        .91916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.6729        .11527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.420        36.224        .90891E-04   -1.4826    
  21  Prefactor     .10000E-03    6.7506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .85432        .32548        .37084E-03   -.98084    
  24  Prefactor     1.2212        .19199        .18973E-03   -.85681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08814e-09
Minuit parameter uncertainties:
  1  8.31968
  2  4.29102e-07
  3  9.48825e-05
  4  91.3983
  5  27.0173
  6  8.17622e-05
  7  64.5271
  8  25.6575
  9  48.6531
  10  1.42345
  11  7.23571e-06
  12  37.799
  13  7.73885
  14  4.75723
  15  6.33367e-05
  16  0.00162816
  17  11.2019
  18  2.29414e-06
  19  2.28013e-05
  20  36.2647
  21  3.70027e-06
  22  8.24671e-06
  23  0.326224
  24  0.192098
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  4.503e-01  1.423e+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.221e+00  1.921e-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.543e-01  3.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/787794/likelihoodResults_287020801_287280001_4FGL_J1127.0-1857_daily_bin184.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) = 5233.74020678
delta logL = 0.157419325989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5233.72609837
delta logL = 0.171527740301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61777       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7609       1.0000          .0000       5.0000    
     3 'Normalizat'    .82974       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2274       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=   5233.726     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      206 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61789        32.393        .11743E-01    .13553E-02
   2  alpha         2.7606        2.7194        .41438        .30942E-04
   3  Normalizat    .82969        .68144E-01    .84856E-01    .17637E-03
   4  Prefactor     1.2275        .42622E-01    .34012E-01    .22291E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.617888
  alpha      = 2.76061
  Normalizat = 0.829689
  Prefactor  = 1.22748
 **********
 **   18 **HESSE 
 **********

 FCN=   5233.726     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61789        1.2162        .87617E-04   -1.5551    
   2  alpha         2.7606        1.1829        .24450E-01    .10443    
   3  Normalizat    .82969        .31572        .37575E-03   -.98977    
   4  Prefactor     1.2275        .18894        .18926E-03   -.85490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82859e-11
Minuit parameter uncertainties:
  1  1.21625
  2  1.23279
  3  0.316421
  4  0.18904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/787794': 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) = 5233.72609831
delta logL = 0.171527800411

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  6.179e-01  1.216e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.761e+00  1.233e+00  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.227e+00  1.890e-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.297e-01  3.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 171.763 -18.964

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/787794/cmap_HighResolution_287020801_287280001_4FGL_J1127.0-1857_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-05', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-03 21:01:37.997745', job_id='787794', GAL2='1.23', fit_tolerance='1e-08', EG2='0.83', EG='0.85', time_epoch_completed='1630728098.0', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.72e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='184' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:01:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 787794: <4FGL_J1127.0-1857_daily_bin184> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin184 171.763 -18.964 287020801 287280001 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 :                                   676.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            920 sec.

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

