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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin1033
RA = 171.964, Dec = 36.314
tmin = 507081601, tmax = 507340801
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='811104', job_status='RUN', time_executed='2021-09-03 22:01:56.447361', time_epoch_executed='1630731716.45' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811104

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811104/ft1_4FGL_J1127.8+3618_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811104/ft2_4FGL_J1127.8+3618_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811104/ft1_4FGL_J1127.8+3618_daily_bin1033.fits outfile=/scratch/kocevski/811104/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin1033.fits ra=171.964 dec=36.314 rad=12.0 tmin=507081601.0 tmax=507340801.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.68
user 4.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811104/ft1_filtered_4FGL_J1127.8+3618_daily_bin1033.fits" evtable="EVENTS" scfile=/scratch/kocevski/811104/ft2_4FGL_J1127.8+3618_daily_bin1033.fits sctable="SC_DATA" outfile=/scratch/kocevski/811104/ltcube_507081601_507340801_4FGL_J1127.8+3618_daily_bin1033.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/811104/ft2_4FGL_J1127.8+3618_daily_bin1033.fits
.....................!
real 15.10
user 14.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811104/ft1_filtered_4FGL_J1127.8+3618_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/811104/ft2_4FGL_J1127.8+3618_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/811104/ltcube_507081601_507340801_4FGL_J1127.8+3618_daily_bin1033.fits outfile=/scratch/kocevski/811104/expmap_507081601_507340801_4FGL_J1127.8+3618_daily_bin1033.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/811104/ltcube_507081601_507340801_4FGL_J1127.8+3618_daily_bin1033.fits
.....................!
real 191.13
user 186.41
sys 4.20

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/811104/ft1_filtered_4FGL_J1127.8+3618_daily_bin1033.fits scfile=/scratch/kocevski/811104/ft2_4FGL_J1127.8+3618_daily_bin1033.fits outfile=/scratch/kocevski/811104/cmap_507081601_507340801_4FGL_J1127.8+3618_daily_bin1033.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.63
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811104/ft1_filtered_4FGL_J1127.8+3618_daily_bin1033.fits scfile=/scratch/kocevski/811104/ft2_4FGL_J1127.8+3618_daily_bin1033.fits outfile=/scratch/kocevski/811104/cmap_HighResolution_507081601_507340801_4FGL_J1127.8+3618_daily_bin1033.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.63
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/811104/ft1_filtered_4FGL_J1127.8+3618_daily_bin1033.fits', '/scratch/kocevski/811104/ft2_4FGL_J1127.8+3618_daily_bin1033.fits', expMap='/scratch/kocevski/811104/expmap_507081601_507340801_4FGL_J1127.8+3618_daily_bin1033.fits', expCube='/scratch/kocevski/811104/ltcube_507081601_507340801_4FGL_J1127.8+3618_daily_bin1033.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/811104/Model_4FGL_J1127.8+3618_daily_bin1033.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/811104/ft1_filtered_4FGL_J1127.8+3618_daily_bin1033.fits
Spacecraft file(s): /scratch/kocevski/811104/ft2_4FGL_J1127.8+3618_daily_bin1033.fits
Exposure map: /scratch/kocevski/811104/expmap_507081601_507340801_4FGL_J1127.8+3618_daily_bin1033.fits
Exposure cube: /scratch/kocevski/811104/ltcube_507081601_507340801_4FGL_J1127.8+3618_daily_bin1033.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/811104/Model_4FGL_J1127.8+3618_daily_bin1033.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) = 5731.4147974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8320       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14794E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.372       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9574       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .74943       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.271       1.0000         .10000E-03   10000.    
    12 'norm      '    8.0978       1.0000         .10000E-03   10000.    
    13 'norm      '    3.4561       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5190       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.387       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2579       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6829       1.0000         .10000E-03   10000.    
    21 'norm      '    .45012       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.2094       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.0928       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.902       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.2084       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .81861       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1772       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5731.386     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     3941 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8279        19.486        .57480E-06   -.40015E-04
   2  Prefactor     .10000E-03    2.2878        .14075E-07** at limit **
   3  Prefactor     .10000E-03    3.9449       -.22937E-07** at limit **
   4  Prefactor     .10000E-03    52.912       -.13167E-06** at limit **
   5  Prefactor     .10000E-03    11.337       -.15487E-06** at limit **
   6  Prefactor     .10000E-03    943.65       -.56750E-05** at limit **
   7  Prefactor     19.378        15.934        .85433E-06    .55227E-04
   8  norm          1.9574        .42616       -.39723E-08    .26930E-03
   9  Prefactor     .74787        2.5917       -.12016E-05   -.11250E-02
  10  Prefactor     .10000E-03    8.5472       -.12412E-06** at limit **
  11  Prefactor     12.271        18.070        .22490E-06   -.27984E-04
  12  norm          8.0983        14.751       -.15934E-06   -.20201E-04
  13  norm          3.4559        8.4409       -.54053E-06   -.13537E-03
  14  Prefactor     3.5190        2.3533       -.23706E-06    .10871E-03
  15  Prefactor     12.384        30.600        .10077E-04   -.24992E-03
  16  Prefactor     .10000E-03    23.033        .12182E-07** at limit **
  17  norm          1.2588        2.3324       -.10803E-05   -.88908E-03
  18  Prefactor     .10000E-03    10.118        .14272E-05** at limit **
  19  Prefactor     .10000E-03    3.0432       -.26755E-07** at limit **
  20  Prefactor     2.6815        200.11        .10896E-04   -.94690E-05
  21  norm          .45001        .82817       -.33190E-06   -.20143E-02
  22  Prefactor     .10000E-03    9.8284       -.20469E-05** at limit **
  23  norm          5.2092        5.8236        .44122E-06   -.59367E-04
  24  Prefactor     .10000E-03    9.2942        .86198E-06** at limit **
  25  Prefactor     .10000E-03    44.832        .61040E-07** at limit **
  26  norm          3.0928        1.2282        .69796E-08    .39966E-04
  27  Prefactor     15.903        18.139       -.30589E-06    .28959E-04
  28  Prefactor     7.2086        7.1090        .65911E-07   -.35091E-04
  29  Normalizat    .81854        .17746       -.13210E-06    .87412E-04
  30  Prefactor     1.1773        .20732       -.18972E-07    .56131E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.8279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 19.3783
  norm       = 1.95739
  Prefactor  = 0.747875
  Prefactor  = 0.0001
  Prefactor  = 12.2709
  norm       = 8.09829
  norm       = 3.45594
  Prefactor  = 3.519
  Prefactor  = 12.3838
  Prefactor  = 0.0001
  norm       = 1.25878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.68148
  norm       = 0.450014
  Prefactor  = 0.0001
  norm       = 5.20924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.09283
  Prefactor  = 15.9026
  Prefactor  = 7.2086
  Normalizat = 0.818536
  Prefactor  = 1.17734
 **********
 **   18 **HESSE 
 **********

 FCN=   5731.386     FROM HESSE     STATUS=OK           592 CALLS     4533 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8279        19.283        .15350E-03   -1.5185    
   2  Prefactor     .10000E-03    2.2995        .11181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9846        .29096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    53.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    963.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.378        15.686        .91000E-04   -1.4827    
   8  norm          1.9574        .42944        .21247E-04   -1.5428    
   9  Prefactor     .74787        2.7345        .21262E-03   -1.5535    
  10  Prefactor     .10000E-03    8.5690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.271        18.173        .11435E-03   -1.5007    
  12  norm          8.0983        14.735        .14089E-03   -1.5139    
  13  norm          3.4559        8.4550        .21754E-03   -1.5336    
  14  Prefactor     3.5190        2.3262        .86610E-04   -1.5333    
  15  Prefactor     12.384        29.036        .11381E-03   -1.5004    
  16  Prefactor     .10000E-03    23.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2588        2.3102        .14127E-03   -1.5484    
  18  Prefactor     .10000E-03    10.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9059        .25295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6815        176.37        .24877E-03   -1.5380    
  21  norm          .45001        .69165        .81074E-03   -1.5574    
  22  Prefactor     .10000E-03    9.7975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.2092        5.8220        .17612E-03   -1.5251    
  24  Prefactor     .10000E-03    9.2934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    45.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.0928        1.2288        .51072E-04   -1.5356    
  27  Prefactor     15.903        18.137        .10044E-03   -1.4910    
  28  Prefactor     7.2086        7.1080        .14940E-03   -1.5171    
  29  Normalizat    .81854        .20762        .25439E-03   -.99385    
  30  Prefactor     1.1773        .24528        .26633E-03   -.87032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47884e-09
Minuit parameter uncertainties:
  1  19.3005
  2  3.52766e-07
  3  8.28176e-06
  4  1.17634e-05
  5  1.08241e-05
  6  0.00389786
  7  15.6888
  8  0.429438
  9  2.735
  10  6.22754e-06
  11  18.1811
  12  14.7415
  13  8.45795
  14  2.32628
  15  29.0687
  16  1.44928e-05
  17  2.31038
  18  8.172e-05
  19  1.31608e-05
  20  43.6279
  21  0.691666
  22  0.000127998
  23  5.82259
  24  4.81855e-05
  25  6.55061e-06
  26  1.22881
  27  18.1436
  28  7.10888
  29  0.20782
  30  0.245518
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  3.519e+00  2.326e+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:  1.177e+00  2.455e-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:  8.185e-01  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.21
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.01e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.13e-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) = 5730.11239687
delta logL = 1.27326121246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5730.0277017
delta logL = 1.35795637872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4336       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3846       1.0000          .0000       10.000    
     3 'Normalizat'    .85714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1562       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=   5730.028     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4324        1.8833        .65577E-02   -.21021E-03
   2  Index         1.3844        .37187        .18594       -.61182E-04
   3  Normalizat    .85720        .16630        .44351E-01    .13935E-04
   4  Prefactor     1.1561        .20567        .60754E-01    .23289E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.43239
  Index      = 1.38442
  Normalizat = 0.857202
  Prefactor  = 1.15611
 **********
 **   18 **HESSE 
 **********

 FCN=   5730.028     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4324        2.4133        .84865E-04   -1.5396    
   2  Index         1.3844        .51489        .75774E-02   -.80830    
   3  Normalizat    .85720        .19654        .24938E-03   -.97981    
   4  Prefactor     1.1561        .24304        .26869E-03   -.87693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31867e-12
Minuit parameter uncertainties:
  1  2.41339
  2  0.516814
  3  0.1967
  4  0.243271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811104': 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) = 5730.0277015
delta logL = 1.35795657866

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  2.432e+00  2.413e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.384e+00  5.168e-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.156e+00  2.433e-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:  8.572e-01  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.92
Ra Dec: 171.964 36.314
Photon Index (Free Index): 1.38 +/- 0.52
Photon Flux (Free Index): 1.28e-08 +/- 1.33e-08
Energy Flux (Free Index): 5.95e-05 +/- 7.26e-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/811104/cmap_HighResolution_507081601_507340801_4FGL_J1127.8+3618_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.01e-08', energy_flux2='5.95e-05', photon_flux_error='3.31e-08', dlogl='1.36e+00', energy_flux='1.71e-05', photon_flux2='1.28e-08', job_status='DONE', time_completed='2021-09-03 22:14:57.761128', photon_index_error2='0.52', photon_index2='1.38', ts='10.21', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='7.26e-05', EG='0.82', time_epoch_completed='1630732497.76', return_code='0', job_id='811104', GAL2='1.16', EG2='0.86', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='1.33e-08', ts2='12.92', photon_index='2.37' WHERE bin_id='1033' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:14:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 811104: <4FGL_J1127.8+3618_daily_bin1033> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin1033> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 22:01:07 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:01:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 22:01:38 2021
Terminated at Fri Sep  3 22:14:58 2021
Results reported at Fri Sep  3 22:14:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin1033 171.964 36.314 507081601 507340801 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 :                                   776.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            831 sec.

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

