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


Performing analysis on: 4FGL_J1127.0-1857_daily_bin138
RA = 171.763, Dec = -18.964
tmin = 275097601, tmax = 275356801
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='787714', job_status='RUN', time_executed='2021-09-03 20:46:23.477280', time_epoch_executed='1630727183.48' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/787714

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/787714/ft1_4FGL_J1127.0-1857_daily_bin138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/787714/ft2_4FGL_J1127.0-1857_daily_bin138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/787714/ft1_4FGL_J1127.0-1857_daily_bin138.fits outfile=/scratch/kocevski/787714/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin138.fits ra=171.763 dec=-18.964 rad=12.0 tmin=275097601.0 tmax=275356801.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.95
user 4.70
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/787714/ft1_filtered_4FGL_J1127.0-1857_daily_bin138.fits" evtable="EVENTS" scfile=/scratch/kocevski/787714/ft2_4FGL_J1127.0-1857_daily_bin138.fits sctable="SC_DATA" outfile=/scratch/kocevski/787714/ltcube_275097601_275356801_4FGL_J1127.0-1857_daily_bin138.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/787714/ft2_4FGL_J1127.0-1857_daily_bin138.fits
.....................!
real 17.04
user 16.64
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/787714/ft1_filtered_4FGL_J1127.0-1857_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/787714/ft2_4FGL_J1127.0-1857_daily_bin138.fits sctable="SC_DATA" expcube=/scratch/kocevski/787714/ltcube_275097601_275356801_4FGL_J1127.0-1857_daily_bin138.fits outfile=/scratch/kocevski/787714/expmap_275097601_275356801_4FGL_J1127.0-1857_daily_bin138.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/787714/ltcube_275097601_275356801_4FGL_J1127.0-1857_daily_bin138.fits
.....................!
real 191.17
user 186.50
sys 4.19

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/787714/ft1_filtered_4FGL_J1127.0-1857_daily_bin138.fits scfile=/scratch/kocevski/787714/ft2_4FGL_J1127.0-1857_daily_bin138.fits outfile=/scratch/kocevski/787714/cmap_275097601_275356801_4FGL_J1127.0-1857_daily_bin138.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.67
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/787714/ft1_filtered_4FGL_J1127.0-1857_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/787714/ft2_4FGL_J1127.0-1857_daily_bin138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/787714/Model_4FGL_J1127.0-1857_daily_bin138.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/787714/ft1_filtered_4FGL_J1127.0-1857_daily_bin138.fits.....................!
real 74.90
user 73.51
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.7333       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.581       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0394       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .84792       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.576       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15961E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2410       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.854       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.5564       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7364       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.2191       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3094       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86636       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=   8582.401     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2343 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1351        .15427E-06** at limit **
   2  norm          4.7325        4.9739       -.23830E-06   -.26517E-03
   3  Prefactor     14.580        15.613        .47858E-06    .48879E-05
   4  Prefactor     8.0392        83.893       -.89158E-06   -.47539E-05
   5  Prefactor     12.484        13.987        .22936E-05   -.30036E-04
   6  Prefactor     .10000E-03    80.181       -.11261E-05** at limit **
   7  Prefactor     .10000E-03    13.434       -.91941E-05** at limit **
   8  Prefactor     .10000E-03    3.0414       -.30277E-06** at limit **
   9  Prefactor     .10000E-03    8.5588       -.34161E-05** at limit **
  10  norm          .84754        .82126       -.15037E-06   -.13969E-02
  11  Prefactor     6.6036        10.128        .30057E-05   -.13023E-03
  12  Prefactor     28.571        29.508       -.31175E-05   -.10956E-04
  13  Prefactor     .10000E-03    1.9519        .69290E-08** at limit **
  14  Prefactor     4.2384        5.9821       -.43532E-06   -.38418E-03
  15  Prefactor     25.853        16.638        .94326E-07   -.13215E-04
  16  Prefactor     .10000E-03    7.8280        .17542E-06** at limit **
  17  Prefactor     .10000E-03    14.680        .78882E-05** at limit **
  18  norm          5.5571        3.2874        .46944E-07   -.96406E-03
  19  Prefactor     6.7350        5.8562        .15758E-05   -.30929E-03
  20  Prefactor     .10000E-03    11.200       -.29547E-06** at limit **
  21  Prefactor     .10000E-03    9.2740        .60042E-05** at limit **
  22  Prefactor     8.1996        31.912       -.32975E-04   -.64096E-04
  23  Normalizat    1.3097        .18845       -.61151E-06   -.31970E-04
  24  Prefactor     .86613        .11049        .40102E-06   -.18541E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.73247
  Prefactor  = 14.5797
  Prefactor  = 8.03924
  Prefactor  = 12.4845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.847542
  Prefactor  = 6.60358
  Prefactor  = 28.5714
  Prefactor  = 0.0001
  Prefactor  = 4.23835
  Prefactor  = 25.8534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.55713
  Prefactor  = 6.73498
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 8.19957
  Normalizat = 1.30975
  Prefactor  = 0.866125
 **********
 **   18 **HESSE 
 **********

 FCN=   8582.401     FROM HESSE     STATUS=OK           405 CALLS     2748 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1902        .26422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7325        4.9773        .18495E-03   -1.5273    
   3  Prefactor     14.580        15.581        .10489E-03   -1.4944    
   4  Prefactor     8.0392        83.460        .14141E-03   -1.5141    
   5  Prefactor     12.484        13.999        .11336E-03   -1.5001    
   6  Prefactor     .10000E-03    80.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0484        .15777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.5547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .84754        .78615        .79145E-03   -1.5524    
  11  Prefactor     6.6036        10.118        .15608E-03   -1.5194    
  12  Prefactor     28.571        29.471        .74946E-04   -1.4638    
  13  Prefactor     .10000E-03    8.7550        .25069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2384        5.9719        .19566E-03   -1.5296    
  15  Prefactor     25.853        16.599        .78785E-04   -1.4691    
  16  Prefactor     .10000E-03    7.8331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.5571        3.2715        .12412E-03   -1.5236    
  19  Prefactor     6.7350        5.8259        .15460E-03   -1.5189    
  20  Prefactor     .10000E-03    11.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.4540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.1996        32.110        .13984E-03   -1.5135    
  23  Normalizat    1.3097        .22550        .27873E-03   -.83276    
  24  Prefactor     .86613        .13197        .20395E-03   -.97335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34093e-10
Minuit parameter uncertainties:
  1  3.17576e-07
  2  4.97772
  3  15.5854
  4  51.8987
  5  14.0029
  6  0.000194943
  7  5.60578e-06
  8  1.08884e-06
  9  5.201e-07
  10  0.786162
  11  10.1208
  12  29.4856
  13  0.00010513
  14  5.97272
  15  16.6019
  16  4.41268e-06
  17  4.61701e-05
  18  3.27161
  19  5.82643
  20  3.52143e-05
  21  0.000248618
  22  32.178
  23  0.225669
  24  0.132023
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  8.475e-01  7.862e-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:  8.661e-01  1.320e-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.310e+00  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.73
Ra Dec: 171.763 -18.964
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.74e-08 +/- 2.54e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.14e-05

TS (Fixed Index): 1.73
Ra Dec: 171.763 -18.964
Photon Flux Upper Limit: 8.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/787714/likelihoodResults_275097601_275356801_4FGL_J1127.0-1857_daily_bin138.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) = 8582.39540825
delta logL = 0.00515858268227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8582.39523773
delta logL = 0.00532910458605

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85856       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0182       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86509       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8582.395     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      237 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85866        .79810        .79616E-03    .39296E-02
   2  alpha         2.0176        .70469        .20779E-01   -.79236E-05
   3  Normalizat    1.3120        .21408        .27852E-03   -.52000E-03
   4  Prefactor     .86508        .13088        .20406E-03   -.80114E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.858664
  alpha      = 2.01762
  Normalizat = 1.31205
  Prefactor  = 0.865076
 **********
 **   18 **HESSE 
 **********

 FCN=   8582.395     FROM HESSE     STATUS=OK            27 CALLS      264 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85866        .79384        .15923E-03   -1.5523    
   2  alpha         2.0176        .70137        .83115E-03   -.19417    
   3  Normalizat    1.3120        .21423        .55703E-04   -.83207    
   4  Prefactor     .86508        .13096        .40812E-04   -.97372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27644e-10
Minuit parameter uncertainties:
  1  0.793852
  2  0.7113
  3  0.214372
  4  0.131007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/787714': 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) = 8582.39523736
delta logL = 0.0053294699137

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  8.587e-01  7.939e-01  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.018e+00  7.113e-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:  8.651e-01  1.310e-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.312e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 171.763 -18.964
Photon Index (Free Index): 2.02 +/- 0.71
Photon Flux (Free Index): 2.62e-08 +/- 2.73e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.50e-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/787714/cmap_HighResolution_275097601_275356801_4FGL_J1127.0-1857_daily_bin138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-05', comment='SUCCESS', photon_flux='2.74e-08', energy_flux2='1.32e-05', photon_flux_error='2.54e-08', dlogl='5.33e-03', energy_flux='1.23e-05', photon_flux2='2.62e-08', job_status='DONE', time_completed='2021-09-03 21:01:10.319255', photon_index_error2='0.71', photon_index2='2.02', ts='1.73', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='8.49e-08', energy_flux_error2='1.50e-05', EG='1.31', time_epoch_completed='1630728070.32', return_code='0', job_id='787714', GAL2='0.87', EG2='1.31', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='2.73e-08', ts2='1.73', photon_index='2.09' WHERE bin_id='138' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:01:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 787714: <4FGL_J1127.0-1857_daily_bin138> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin138 171.763 -18.964 275097601 275356801 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 :                                   884.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            899 sec.

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

