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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin959
RA = 171.964, Dec = 36.314
tmin = 487900801, tmax = 488160001
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='809612', job_status='RUN', time_executed='2021-09-03 21:57:10.017245', time_epoch_executed='1630731430.02' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809612

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809612/ft1_4FGL_J1127.8+3618_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809612/ft2_4FGL_J1127.8+3618_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809612/ft1_4FGL_J1127.8+3618_daily_bin959.fits outfile=/scratch/kocevski/809612/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin959.fits ra=171.964 dec=36.314 rad=12.0 tmin=487900801.0 tmax=488160001.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.11
user 5.82
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809612/ft2_4FGL_J1127.8+3618_daily_bin959.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/809612/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/809612/ft1_filtered_4FGL_J1127.8+3618_daily_bin959.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/809612/ft1_filtered_4FGL_J1127.8+3618_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/809612/ft2_4FGL_J1127.8+3618_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/809612/ltcube_487900801_488160001_4FGL_J1127.8+3618_daily_bin959.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/809612/ft2_4FGL_J1127.8+3618_daily_bin959.fits
.....................!
real 15.49
user 15.10
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809612/ft1_filtered_4FGL_J1127.8+3618_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/809612/ft2_4FGL_J1127.8+3618_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/809612/ltcube_487900801_488160001_4FGL_J1127.8+3618_daily_bin959.fits outfile=/scratch/kocevski/809612/expmap_487900801_488160001_4FGL_J1127.8+3618_daily_bin959.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/809612/ltcube_487900801_488160001_4FGL_J1127.8+3618_daily_bin959.fits
.....................!
real 192.46
user 186.87
sys 3.77

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/809612/ft1_filtered_4FGL_J1127.8+3618_daily_bin959.fits scfile=/scratch/kocevski/809612/ft2_4FGL_J1127.8+3618_daily_bin959.fits outfile=/scratch/kocevski/809612/cmap_487900801_488160001_4FGL_J1127.8+3618_daily_bin959.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809612/ft1_filtered_4FGL_J1127.8+3618_daily_bin959.fits scfile=/scratch/kocevski/809612/ft2_4FGL_J1127.8+3618_daily_bin959.fits outfile=/scratch/kocevski/809612/cmap_HighResolution_487900801_488160001_4FGL_J1127.8+3618_daily_bin959.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8072       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4053       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.619       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.639       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6557       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3869       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4215       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.508       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    18.765       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.059       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9546       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7941       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12251E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .26247E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.758       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.547       1.0000         .10000E-03   10000.    
    26 'norm      '    10.847       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1029       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .64909       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=   4996.826     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     4044 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.822       -.46046E-07** at limit **
   2  Prefactor     6.8071        5.0413        .97056E-07   -.21949E-05
   3  Prefactor     6.4056        5.6339       -.24208E-07   -.25594E-04
   4  Prefactor     27.617        32.821       -.47907E-06    .11342E-05
   5  Prefactor     15.625        26.971        .21556E-05   -.56739E-05
   6  Prefactor     .10000E-03    199.55       -.79069E-07** at limit **
   7  Prefactor     .10000E-03    4.1742       -.13730E-07** at limit **
   8  norm          1.6557        .37399       -.86751E-08   -.73695E-04
   9  Prefactor     3.3868        2.7723       -.89040E-07   -.45896E-04
  10  Prefactor     9.4206        11.675       -.25670E-06   -.19046E-04
  11  Prefactor     12.508        11.864        .10480E-07   -.54167E-05
  12  norm          .10000E-03    6.3760       -.20797E-07** at limit **
  13  norm          18.764        12.156       -.21458E-06    .39320E-05
  14  Prefactor     .10000E-03    1.6640        .20580E-07** at limit **
  15  Prefactor     36.054        36.570       -.57324E-06   -.39313E-04
  16  Prefactor     2.9512        12.797        .37505E-05   -.54223E-03
  17  norm          .10000E-03    1.0021        .31448E-08** at limit **
  18  Prefactor     5.7963        13.490       -.19395E-05   -.26274E-04
  19  Prefactor     .10000E-03    3.6631       -.28642E-07** at limit **
  20  Prefactor     .10000E-03    25.995        .70149E-07** at limit **
  21  norm          .10000E-03    .53122        .58303E-06** at limit **
  22  Prefactor     .10000E-03    13.994        .58636E-07** at limit **
  23  norm          .10000E-03    4.6178        .74338E-07** at limit **
  24  Prefactor     17.760        28.291       -.11164E-05   -.18154E-04
  25  Prefactor     10.527        72.833       -.23374E-04   -.89416E-04
  26  norm          10.847        2.3455       -.74507E-08    .51495E-06
  27  Prefactor     .10000E-03    49.781       -.62941E-07** at limit **
  28  Prefactor     .10000E-03    2.7373        .74152E-11** at limit **
  29  Normalizat    1.1029        .19173        .13499E-05   -.32858E-03
  30  Prefactor     .64906        .21413       -.57493E-06   -.13350E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.80709
  Prefactor  = 6.40561
  Prefactor  = 27.6167
  Prefactor  = 15.6252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.65573
  Prefactor  = 3.38685
  Prefactor  = 9.42057
  Prefactor  = 12.5082
  norm       = 0.0001
  norm       = 18.7639
  Prefactor  = 0.0001
  Prefactor  = 36.0544
  Prefactor  = 2.95118
  norm       = 0.0001
  Prefactor  = 5.79629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.7596
  Prefactor  = 10.5271
  norm       = 10.8469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10294
  Prefactor  = 0.649057
 **********
 **   18 **HESSE 
 **********

 FCN=   4996.826     FROM HESSE     STATUS=OK           590 CALLS     4634 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.8071        5.0412        .13014E-03   -1.5186    
   3  Prefactor     6.4056        5.6369        .15016E-03   -1.5202    
   4  Prefactor     27.617        32.787        .76231E-04   -1.4656    
   5  Prefactor     15.625        26.955        .10128E-03   -1.4917    
   6  Prefactor     .10000E-03    200.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1793        .14103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6557        .37528        .19519E-04   -1.5451    
   9  Prefactor     3.3868        2.7666        .10244E-03   -1.5340    
  10  Prefactor     9.4206        11.676        .13056E-03   -1.5094    
  11  Prefactor     12.508        11.882        .11326E-03   -1.5000    
  12  norm          .10000E-03    6.3930        .17430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          18.764        12.160        .92459E-04   -1.4841    
  14  Prefactor     .10000E-03    2.5770        .16346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.054        33.970        .66739E-04   -1.4506    
  16  Prefactor     2.9512        43.233        .11813E-02   -1.5364    
  17  norm          .10000E-03    1.0248        .13783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7963        16.242        .16685E-03   -1.5226    
  19  Prefactor     .10000E-03    8.4306        .25775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.6118        .95440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.6270        .14838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.760        28.244        .95044E-04   -1.4865    
  25  Prefactor     10.527        76.049        .12337E-03   -1.5059    
  26  norm          10.847        2.3458        .48084E-04   -1.5049    
  27  Prefactor     .10000E-03    50.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.7410        .11422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1029        .22286        .21782E-03   -.89658    
  30  Prefactor     .64906        .24673        .32673E-03   -1.0556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40881e-09
Minuit parameter uncertainties:
  1  4.53807e-06
  2  5.04148
  3  5.63741
  4  32.8081
  5  26.9758
  6  0.000267096
  7  2.85603e-06
  8  0.375281
  9  2.76668
  10  11.6787
  11  11.8846
  12  6.42163e-06
  13  12.1616
  14  1.04356e-05
  15  33.9883
  16  22.6104
  17  1.27948e-06
  18  16.2539
  19  1.35117e-05
  20  3.04426e-05
  21  0.000250642
  22  4.94884e-06
  23  2.7858e-05
  24  28.2655
  25  56.6906
  26  2.34584
  27  1.64225e-05
  28  5.77288e-07
  29  0.223046
  30  0.247147
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.044e-05  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:  6.491e-01  2.471e-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.103e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 7.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809612/likelihoodResults_487900801_488160001_4FGL_J1127.8+3618_daily_bin959.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): 102
logL (Free Index) = 4996.82769534
delta logL = -0.0018529817271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4996.82584254
delta logL = -1.8949231162e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3808       1.0000          .0000       10.000    
     3 'Normalizat'    1.1030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64910       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4996.826     FROM MIGRAD    STATUS=FAILED        96 CALLS      263 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10095E-03    57.619        .16288E-02** at limit **
   2  Index         2.4896        5.9431        .50000       -.16168E-04
   3  Normalizat    1.1029        .20942E-01    .21782E-03   -.51670E-05
   4  Prefactor     .64906        .24753E-01    .32673E-03    .14266E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4996.826     FROM SIMPLEX   STATUS=PROGRESS     132 CALLS      395 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    57.619        .21113E-03** at limit **
   2  Index         2.4886        5.9431        .32783E-03   -.16168E-04
   3  Normalizat    1.1029        .20942E-01    .24666E-05   -.51670E-05
   4  Prefactor     .64905        .24753E-01    .44979E-05    .14266E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4996.687     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      495 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .72686E-02    .32576E-03** at limit **
   2  Index         7.4653        3.6142        .20000        .87049E-04
   3  Normalizat    1.0681        .35544E-01    .87129E-05    .16180E-04
   4  Prefactor     .67722        .41498E-01    .13069E-04    .29924E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.46535
  Normalizat = 1.0681
  Prefactor  = 0.677218
 **********
 **   18 **HESSE 
 **********

 FCN=   4996.687     FROM HESSE     STATUS=OK            29 CALLS      524 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .96222E-03    .15797E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.4653        .88569        .90826E-02    .51561    
   3  Normalizat    1.0681        .21495        .17426E-05   -.90783    
   4  Prefactor     .67722        .24938        .26139E-05   -1.0443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76648e-11
Minuit parameter uncertainties:
  1  1.50049e-10
  2  0.89193
  3  0.215124
  4  0.249792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809612': 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) = 4996.68715528
delta logL = 0.138687079662

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.500e-10  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  7.465e+00  8.919e-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:  6.772e-01  2.498e-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.068e+00  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.964 36.314

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/809612/cmap_HighResolution_487900801_488160001_4FGL_J1127.8+3618_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-09-03 22:11:46.630095', job_id='809612', GAL2='0.68', fit_tolerance='1e-08', EG2='1.07', EG='1.10', time_epoch_completed='1630732306.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.39e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='959' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:11:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 809612: <4FGL_J1127.8+3618_daily_bin959> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin959> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep  3 21:56:14 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:56:36 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:56:36 2021
Terminated at Fri Sep  3 22:11:47 2021
Results reported at Fri Sep  3 22:11:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin959 171.964 36.314 487900801 488160001 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 :                                   870.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            933 sec.

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

