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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin507
RA = 171.964, Dec = 36.314
tmin = 370742401, tmax = 371001601
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='806892', job_status='RUN', time_executed='2021-09-03 21:46:50.588162', time_epoch_executed='1630730810.59' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806892

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806892/ft1_4FGL_J1127.8+3618_daily_bin507.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806892/ft2_4FGL_J1127.8+3618_daily_bin507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806892/ft1_4FGL_J1127.8+3618_daily_bin507.fits outfile=/scratch/kocevski/806892/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin507.fits ra=171.964 dec=36.314 rad=12.0 tmin=370742401.0 tmax=371001601.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 7.94
user 5.13
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806892/ft1_filtered_4FGL_J1127.8+3618_daily_bin507.fits" evtable="EVENTS" scfile=/scratch/kocevski/806892/ft2_4FGL_J1127.8+3618_daily_bin507.fits sctable="SC_DATA" outfile=/scratch/kocevski/806892/ltcube_370742401_371001601_4FGL_J1127.8+3618_daily_bin507.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/806892/ft2_4FGL_J1127.8+3618_daily_bin507.fits
.....................!
real 14.66
user 14.23
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806892/ft1_filtered_4FGL_J1127.8+3618_daily_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/806892/ft2_4FGL_J1127.8+3618_daily_bin507.fits sctable="SC_DATA" expcube=/scratch/kocevski/806892/ltcube_370742401_371001601_4FGL_J1127.8+3618_daily_bin507.fits outfile=/scratch/kocevski/806892/expmap_370742401_371001601_4FGL_J1127.8+3618_daily_bin507.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/806892/ltcube_370742401_371001601_4FGL_J1127.8+3618_daily_bin507.fits
.....................!
real 193.00
user 187.81
sys 4.63

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/806892/ft1_filtered_4FGL_J1127.8+3618_daily_bin507.fits scfile=/scratch/kocevski/806892/ft2_4FGL_J1127.8+3618_daily_bin507.fits outfile=/scratch/kocevski/806892/cmap_370742401_371001601_4FGL_J1127.8+3618_daily_bin507.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806892/ft1_filtered_4FGL_J1127.8+3618_daily_bin507.fits scfile=/scratch/kocevski/806892/ft2_4FGL_J1127.8+3618_daily_bin507.fits outfile=/scratch/kocevski/806892/cmap_HighResolution_370742401_371001601_4FGL_J1127.8+3618_daily_bin507.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.59
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.571       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6233       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.723       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2272       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0995       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7315       1.0000         .10000E-03   10000.    
    12 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.227       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4465       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8313       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2825       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    84.220       1.0000         .10000E-03   10000.    
    21 'norm      '    .11050E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    62.413       1.0000         .10000E-03   10000.    
    23 'norm      '    8.4108       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12231E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.7191       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .80082       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3242       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=   6130.504     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     3995 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.578        27.841        .19414E-06   -.35841E-04
   2  Prefactor     .10000E-03    1.0680       -.69423E-07** at limit **
   3  Prefactor     .10000E-03    5.7344       -.10706E-06** at limit **
   4  Prefactor     .10000E-03    8.4337       -.15898E-06** at limit **
   5  Prefactor     6.6282        33.626        .48329E-05   -.79757E-04
   6  Prefactor     .10000E-03    40.177       -.24611E-05** at limit **
   7  Prefactor     23.725        15.349        .11260E-06   -.91458E-05
   8  norm          1.2272        .34389        .93294E-08   -.30099E-03
   9  Prefactor     4.0984        3.3946        .33741E-07   -.81366E-04
  10  Prefactor     .10000E-03    10.800       -.50125E-06** at limit **
  11  Prefactor     5.7330        12.563        .12245E-06   -.25817E-04
  12  norm          .10000E-03    12.419        .59230E-06** at limit **
  13  norm          11.230        12.851       -.63868E-07   -.35566E-04
  14  Prefactor     5.4468        2.6473        .24028E-06   -.78744E-03
  15  Prefactor     .10001E-03    19.825        .51826E-05** at limit **
  16  Prefactor     3.8324        58.542        .91549E-05   -.26645E-03
  17  norm          .10000E-03    1.2957        .88642E-07** at limit **
  18  Prefactor     5.2819        31.617        .93524E-08   -.39405E-03
  19  Prefactor     .10000E-03    1.7941       -.47736E-07** at limit **
  20  Prefactor     84.245        49.095        .13900E-05    .25838E-03
  21  norm          .10000E-03    .67014        .23699E-06** at limit **
  22  Prefactor     62.412        30.309        .23633E-06    .18525E-04
  23  norm          8.4095        8.1674       -.14475E-06    .38233E-05
  24  Prefactor     .10000E-03    56.977        .24751E-05** at limit **
  25  Prefactor     .10000E-03    222.72       -.29641E-05** at limit **
  26  norm          1.7191        1.1263        .18742E-07   -.80968E-04
  27  Prefactor     .10001E-03    18.708       -.49036E-05** at limit **
  28  Prefactor     .10000E-03    8.7074        .23785E-06** at limit **
  29  Normalizat    .80071        .18462       -.26124E-05   -.32375E-04
  30  Prefactor     1.3244        .21071        .14979E-06   -.13454E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.62824
  Prefactor  = 0.000100002
  Prefactor  = 23.7253
  norm       = 1.22718
  Prefactor  = 4.09838
  Prefactor  = 0.0001
  Prefactor  = 5.73298
  norm       = 0.0001
  norm       = 11.2298
  Prefactor  = 5.44681
  Prefactor  = 0.000100008
  Prefactor  = 3.83236
  norm       = 0.0001
  Prefactor  = 5.28193
  Prefactor  = 0.0001
  Prefactor  = 84.2447
  norm       = 0.000100003
  Prefactor  = 62.4117
  norm       = 8.40951
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  norm       = 1.71907
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Normalizat = 0.800709
  Prefactor  = 1.32436
 **********
 **   18 **HESSE 
 **********

 FCN=   6130.504     FROM HESSE     STATUS=OK           586 CALLS     4581 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.578        27.410        .12323E-03   -1.5057    
   2  Prefactor     .10000E-03    1.0687        .79023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7631        .35964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6282        34.077        .77963E-03   -1.5193    
   6  Prefactor     .10000E-03    40.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.725        15.328        .82240E-04   -1.4733    
   8  norm          1.2272        .34534        .22868E-04   -1.5486    
   9  Prefactor     4.0984        3.3868        .11831E-03   -1.5303    
  10  Prefactor     .10000E-03    10.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7330        12.596        .16777E-03   -1.5229    
  12  norm          .10000E-03    12.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.230        12.844        .11957E-03   -1.5038    
  14  Prefactor     5.4468        2.6488        .42585E-03   -1.5241    
  15  Prefactor     .10001E-03    20.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8324        52.147        .10310E-02   -1.5316    
  17  norm          .10000E-03    1.3237        .17368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2819        26.228        .87438E-03   -1.5248    
  19  Prefactor     .10000E-03    1.8027        .10239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     84.245        47.257        .43772E-04   -1.3870    
  21  norm          .10000E-03    2.9980        .11381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     62.412        30.300        .50792E-04   -1.4126    
  23  norm          8.4095        8.1609        .13823E-03   -1.5128    
  24  Prefactor     .10000E-03    58.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    224.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.7191        1.1279        .64404E-04   -1.5446    
  27  Prefactor     .10001E-03    19.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.0735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .80071        .21731        .27879E-03   -1.0004    
  30  Prefactor     1.3244        .25077        .26990E-03   -.82586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92846e-09
Minuit parameter uncertainties:
  1  27.4428
  2  1.87945e-06
  3  2.91561e-05
  4  1.23431e-05
  5  30.0849
  6  0.000534759
  7  15.3304
  8  0.34534
  9  3.38691
  10  4.87361e-05
  11  12.6014
  12  7.76376e-05
  13  12.8467
  14  2.64884
  15  0.000821878
  16  28.3032
  17  3.59817e-06
  18  23.5563
  19  2.17036e-06
  20  47.2779
  21  0.000179621
  22  30.3073
  23  8.16196
  24  0.000714732
  25  0.00186962
  26  1.12796
  27  0.00073427
  28  3.62385e-05
  29  0.21755
  30  0.251001
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  5.447e+00  2.649e+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.324e+00  2.510e-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.007e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.25
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 7.75e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 1.28e-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) = 6130.40280895
delta logL = 0.101533094482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6130.40249243
delta logL = 0.101849608527

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2288       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1677       1.0000          .0000       10.000    
     3 'Normalizat'    .81573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3123       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=   6130.402     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      266 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2262        64.945        .40211E-02    .77075E-04
   2  Index         2.1672        6.0735        .16561        .57508E-04
   3  Normalizat    .81571        .12670        .43815E-01    .19379E-04
   4  Prefactor     1.3124        .10668        .61259E-01    .42904E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.22623
  Index      = 2.16722
  Normalizat = 0.815707
  Prefactor  = 1.31236
 **********
 **   18 **HESSE 
 **********

 FCN=   6130.402     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2262        3.3951        .93451E-04   -1.5209    
   2  Index         2.1672        .44552        .60795E-02   -.60232    
   3  Normalizat    .81571        .20744        .27628E-03   -.99489    
   4  Prefactor     1.3124        .24983        .27091E-03   -.82940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07254e-12
Minuit parameter uncertainties:
  1  3.39524
  2  0.446389
  3  0.20764
  4  0.250056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806892': 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) = 6130.40249071
delta logL = 0.101851333785

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  6.226e+00  3.395e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.167e+00  4.464e-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.312e+00  2.501e-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.157e-01  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.43
Ra Dec: 171.964 36.314
Photon Index (Free Index): 2.17 +/- 0.45
Photon Flux (Free Index): 6.61e-08 +/- 4.15e-08
Energy Flux (Free Index): 3.16e-05 +/- 2.19e-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/806892/cmap_HighResolution_370742401_371001601_4FGL_J1127.8+3618_daily_bin507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.75e-08', energy_flux2='3.16e-05', photon_flux_error='3.77e-08', dlogl='1.02e-01', energy_flux='2.64e-05', photon_flux2='6.61e-08', job_status='DONE', time_completed='2021-09-03 22:00:33.846904', photon_index_error2='0.45', photon_index2='2.17', ts='9.25', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='0.80', time_epoch_completed='1630731633.85', return_code='0', job_id='806892', GAL2='1.31', EG2='0.82', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='4.15e-08', ts2='9.43', photon_index='2.37' WHERE bin_id='507' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:00:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 806892: <4FGL_J1127.8+3618_daily_bin507> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin507> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep  3 21:46:28 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:46: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:46:36 2021
Terminated at Fri Sep  3 22:00:34 2021
Results reported at Fri Sep  3 22:00:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin507 171.964 36.314 370742401 371001601 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 :                                   817.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            846 sec.

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

