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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin376
RA = 171.964, Dec = 36.314
tmin = 336787201, tmax = 337046401
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='805354', job_status='RUN', time_executed='2021-09-03 21:43:03.598186', time_epoch_executed='1630730583.6' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805354

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805354/ft1_4FGL_J1127.8+3618_daily_bin376.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805354/ft2_4FGL_J1127.8+3618_daily_bin376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805354/ft1_4FGL_J1127.8+3618_daily_bin376.fits outfile=/scratch/kocevski/805354/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin376.fits ra=171.964 dec=36.314 rad=12.0 tmin=336787201.0 tmax=337046401.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 6.80
user 6.53
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/805354/ft2_4FGL_J1127.8+3618_daily_bin376.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805354/ft2_4FGL_J1127.8+3618_daily_bin376.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/805354/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin376.fits evtable="EVENTS" outfile="/scratch/kocevski/805354/ft1_filtered_4FGL_J1127.8+3618_daily_bin376.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805354/ft1_filtered_4FGL_J1127.8+3618_daily_bin376.fits" evtable="EVENTS" scfile=/scratch/kocevski/805354/ft2_4FGL_J1127.8+3618_daily_bin376.fits sctable="SC_DATA" outfile=/scratch/kocevski/805354/ltcube_336787201_337046401_4FGL_J1127.8+3618_daily_bin376.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/805354/ft2_4FGL_J1127.8+3618_daily_bin376.fits
.....................!
real 14.40
user 14.01
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805354/ft1_filtered_4FGL_J1127.8+3618_daily_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/805354/ft2_4FGL_J1127.8+3618_daily_bin376.fits sctable="SC_DATA" expcube=/scratch/kocevski/805354/ltcube_336787201_337046401_4FGL_J1127.8+3618_daily_bin376.fits outfile=/scratch/kocevski/805354/expmap_336787201_337046401_4FGL_J1127.8+3618_daily_bin376.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/805354/ltcube_336787201_337046401_4FGL_J1127.8+3618_daily_bin376.fits
.....................!
real 197.38
user 186.22
sys 4.94

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 202 point sources and 0 extended sources

Setting source of interest to:
4FGL J1127.8+3618 @ 171.964 36.314

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/805354/ft1_filtered_4FGL_J1127.8+3618_daily_bin376.fits scfile=/scratch/kocevski/805354/ft2_4FGL_J1127.8+3618_daily_bin376.fits outfile=/scratch/kocevski/805354/cmap_336787201_337046401_4FGL_J1127.8+3618_daily_bin376.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.964 yref=36.314 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805354/ft1_filtered_4FGL_J1127.8+3618_daily_bin376.fits scfile=/scratch/kocevski/805354/ft2_4FGL_J1127.8+3618_daily_bin376.fits outfile=/scratch/kocevski/805354/cmap_HighResolution_336787201_337046401_4FGL_J1127.8+3618_daily_bin376.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.964 yref=36.314 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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805354/ft1_filtered_4FGL_J1127.8+3618_daily_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/805354/ft2_4FGL_J1127.8+3618_daily_bin376.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805354/Model_4FGL_J1127.8+3618_daily_bin376.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/805354/ft1_filtered_4FGL_J1127.8+3618_daily_bin376.fits.....................!
real 47.94
user 46.55
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/805354/ft1_filtered_4FGL_J1127.8+3618_daily_bin376.fits', '/scratch/kocevski/805354/ft2_4FGL_J1127.8+3618_daily_bin376.fits', expMap='/scratch/kocevski/805354/expmap_336787201_337046401_4FGL_J1127.8+3618_daily_bin376.fits', expCube='/scratch/kocevski/805354/ltcube_336787201_337046401_4FGL_J1127.8+3618_daily_bin376.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/805354/Model_4FGL_J1127.8+3618_daily_bin376.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1127.8+3618'

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/805354/ft1_filtered_4FGL_J1127.8+3618_daily_bin376.fits
Spacecraft file(s): /scratch/kocevski/805354/ft2_4FGL_J1127.8+3618_daily_bin376.fits
Exposure map: /scratch/kocevski/805354/expmap_336787201_337046401_4FGL_J1127.8+3618_daily_bin376.fits
Exposure cube: /scratch/kocevski/805354/ltcube_336787201_337046401_4FGL_J1127.8+3618_daily_bin376.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/805354/Model_4FGL_J1127.8+3618_daily_bin376.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) = 5034.10903732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.471       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.708       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.502       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1723       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43377E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43027E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.752       1.0000         .10000E-03   10000.    
    13 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.751       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8038       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.797       1.0000         .10000E-03   10000.    
    21 'norm      '    2.7302       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0650       1.0000         .10000E-03   10000.    
    23 'norm      '    14.997       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.467       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10753E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.6428       1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.180       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0173       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .92131       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5034.091     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     3850 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6.8306        .96789E-07** at limit **
   2  Prefactor     .10000E-03    3.2513       -.43258E-07** at limit **
   3  Prefactor     .10000E-03    1.5357        .48478E-07** at limit **
   4  Prefactor     29.449        3.0182        .60458E-06   -.14796E-02
   5  Prefactor     23.697        4.4296        .38912E-05   -.35309E-02
   6  Prefactor     20.565        8.2212        .50924E-05   -.43228E-02
   7  Prefactor     .10000E-03    3.9135        .15634E-06** at limit **
   8  norm          2.1719        .45567        .67120E-08    .64710E-02
   9  Prefactor     .10000E-03    7.4596        .64253E-05** at limit **
  10  Prefactor     .10129E-03    592.01       -.34996E-04** at limit **
  11  Prefactor     .10000E-03    8.6401        .35493E-05** at limit **
  12  norm          14.748        14.904        .94862E-05    .37708E-02
  13  norm          .10000E-03    3.8223        .27181E-06** at limit **
  14  Prefactor     11.749        3.9749       -.63321E-06    .88259E-03
  15  Prefactor     .10002E-03    23.972       -.31046E-04** at limit **
  16  Prefactor     .10000E-03    5.9971       -.49684E-06** at limit **
  17  norm          .10000E-03    1.1397        .12161E-06** at limit **
  18  Prefactor     .10000E-03    4.6047       -.74391E-06** at limit **
  19  Prefactor     9.8024        1.3668        .97770E-06    .88182E-03
  20  Prefactor     32.804        1.5276       -.55950E-06    .92173E-03
  21  norm          2.7299        1.2264        .11721E-06    .13923E-03
  22  Prefactor     2.0618        3.1828        .80520E-05   -.63345E-04
  23  norm          15.001        2.2941       -.24834E-05   -.77680E-03
  24  Prefactor     12.477        6.4082       -.77671E-05    .27128E-02
  25  Prefactor     .10002E-03    23.470        .29971E-04** at limit **
  26  norm          2.6426        1.4918        .75373E-07    .93174E-05
  27  Prefactor     11.187        3.5515       -.43798E-05    .15030E-02
  28  Prefactor     .10002E-03    3.6949       -.43625E-05** at limit **
  29  Normalizat    1.0177        .22632       -.13048E-05    .43894E-03
  30  Prefactor     .92090        .26358        .90826E-06    .27965E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.4487
  Prefactor  = 23.6972
  Prefactor  = 20.5647
  Prefactor  = 0.0001
  norm       = 2.17194
  Prefactor  = 0.000100003
  Prefactor  = 0.000101293
  Prefactor  = 0.000100003
  norm       = 14.7479
  norm       = 0.0001
  Prefactor  = 11.7488
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.80236
  Prefactor  = 32.8044
  norm       = 2.72992
  Prefactor  = 2.06177
  norm       = 15.0014
  Prefactor  = 12.4773
  Prefactor  = 0.000100019
  norm       = 2.64259
  Prefactor  = 11.1866
  Prefactor  = 0.00010002
  Normalizat = 1.01767
  Prefactor  = 0.920896
 **********
 **   18 **HESSE 
 **********

 FCN=   5034.091     FROM HESSE     STATUS=OK           662 CALLS     4512 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    9.5958        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.2345        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5343        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.449        42.845        .18450E-02   -1.4622    
   5  Prefactor     23.697        27.838        .20567E-02   -1.4734    
   6  Prefactor     20.565        77.337        .22115E-02   -1.4801    
   7  Prefactor     .10000E-03    3.9160        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1719        .47280        .47821E-02   -1.5413    
   9  Prefactor     .10000E-03    1.5642        .47200E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10129E-03    22.352        .10150       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.1860        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.748        16.913        .26070E-02   -1.4940    
  13  norm          .10000E-03    3.8202        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.749        4.2077        .29215E-02   -1.5022    
  15  Prefactor     .10002E-03    25.131        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9940        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1222        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6002        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.8024        7.6489        .31995E-02   -1.5082    
  20  Prefactor     32.804        39.424        .17492E-02   -1.4562    
  21  norm          2.7299        1.2722        .61609E-02   -1.5378    
  22  Prefactor     2.0618        33.788        .71881E-02   -1.5421    
  23  norm          15.001        10.413        .25856E-02   -1.4933    
  24  Prefactor     12.477        23.309        .28362E-02   -1.5001    
  25  Prefactor     .10002E-03    24.654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.6426        1.5108        .62699E-02   -1.5383    
  27  Prefactor     11.187        28.252        .29954E-02   -1.5039    
  28  Prefactor     .10002E-03    9.2802        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0177        .20228        .43778E-01   -.92441    
  30  Prefactor     .92090        .22798        .69688E-01   -.95415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41424e-07
Minuit parameter uncertainties:
  1  0.000479839
  2  7.17927e-06
  3  1.06165e-06
  4  42.8897
  5  27.8536
  6  77.7181
  7  4.4413e-05
  8  0.472803
  9  0.000126288
  10  0.0107552
  11  0.000311919
  12  16.9184
  13  5.56971e-05
  14  4.20776
  15  0.0015213
  16  6.44927e-06
  17  3.92783e-06
  18  2.61444e-05
  19  7.6497
  20  39.455
  21  1.27221
  22  16.7036
  23  10.4142
  24  23.3258
  25  0.00135791
  26  1.51086
  27  28.2859
  28  0.00087151
  29  0.202436
  30  0.228213
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.175e+01  4.208e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  9.209e-01  2.282e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.018e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.54
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.67e-07 +/- 5.98e-08
Energy Flux (Fixed Index): 5.70e-05 +/- 2.04e-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) = 5032.2902884
delta logL = 1.80048870695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5032.28522199
delta logL = 1.8055551191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2631       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2140       1.0000          .0000       10.000    
     3 'Normalizat'    .92383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0035       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5032.285     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      253 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2610        16.326        .48785E-02    .11540E-03
   2  Index         3.2142        2.1592        .58010E-01    .13209E-03
   3  Normalizat    .92381        .10560        .45205E-01    .10965E-04
   4  Prefactor     1.0035        .11713        .67051E-01    .93579E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26099
  Index      = 3.21422
  Normalizat = 0.923811
  Prefactor  = 1.00355
 **********
 **   18 **HESSE 
 **********

 FCN=   5032.285     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2610        4.2074        .41262E-04   -1.5295    
   2  Index         3.2142        .59897        .24954E-02   -.36522    
   3  Normalizat    .92381        .22800        .25683E-03   -.95628    
   4  Prefactor     1.0035        .26914        .29658E-03   -.92611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62757e-09
Minuit parameter uncertainties:
  1  4.20765
  2  0.600629
  3  0.228242
  4  0.269501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805354': 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) = 5032.28522169
delta logL = 1.80555541359

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  4.261e+00  4.208e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  3.214e+00  6.006e-01  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.004e+00  2.695e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  9.238e-01  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.60
Ra Dec: 171.964 36.314
Photon Index (Free Index): 3.21 +/- 0.60
Photon Flux (Free Index): 2.45e-07 +/- 7.88e-08
Energy Flux (Free Index): 4.46e-05 +/- 1.40e-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/805354/cmap_HighResolution_336787201_337046401_4FGL_J1127.8+3618_daily_bin376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.67e-07', energy_flux2='4.46e-05', photon_flux_error='5.98e-08', dlogl='1.81e+00', energy_flux='5.70e-05', photon_flux2='2.45e-07', job_status='DONE', time_completed='2021-09-03 21:55:45.064076', photon_index_error2='0.60', photon_index2='3.21', ts='17.54', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='1.02', time_epoch_completed='1630731345.06', return_code='0', job_id='805354', GAL2='1.00', EG2='0.92', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='7.88e-08', ts2='21.60', photon_index='2.37' WHERE bin_id='376' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:55:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 805354: <4FGL_J1127.8+3618_daily_bin376> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin376> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 21:41:48 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:42:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 21:42:45 2021
Terminated at Fri Sep  3 21:55:45 2021
Results reported at Fri Sep  3 21:55:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin376 171.964 36.314 336787201 337046401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1127.8+3618 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   750.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            837 sec.

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

