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


Performing analysis on: 4FGL_J1127.4+5648_daily_bin650
RA = 171.865, Dec = 56.8032
tmin = 407808001, tmax = 408067201
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='798961', job_status='RUN', time_executed='2021-09-03 21:23:09.694729', time_epoch_executed='1630729389.69' WHERE source_name='4FGL J1127.4+5648' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/798961

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/798961/ft1_4FGL_J1127.4+5648_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/798961/ft2_4FGL_J1127.4+5648_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/798961/ft1_4FGL_J1127.4+5648_daily_bin650.fits outfile=/scratch/kocevski/798961/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin650.fits ra=171.865 dec=56.8032 rad=12.0 tmin=407808001.0 tmax=408067201.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.23
user 3.95
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/798961/ft2_4FGL_J1127.4+5648_daily_bin650.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/798961/ft2_4FGL_J1127.4+5648_daily_bin650.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/798961/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/798961/ft1_filtered_4FGL_J1127.4+5648_daily_bin650.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/798961/ft1_filtered_4FGL_J1127.4+5648_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/798961/ft2_4FGL_J1127.4+5648_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/798961/ltcube_407808001_408067201_4FGL_J1127.4+5648_daily_bin650.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/798961/ft2_4FGL_J1127.4+5648_daily_bin650.fits
.....................!
real 16.70
user 16.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/798961/ft1_filtered_4FGL_J1127.4+5648_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/798961/ft2_4FGL_J1127.4+5648_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/798961/ltcube_407808001_408067201_4FGL_J1127.4+5648_daily_bin650.fits outfile=/scratch/kocevski/798961/expmap_407808001_408067201_4FGL_J1127.4+5648_daily_bin650.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/798961/ltcube_407808001_408067201_4FGL_J1127.4+5648_daily_bin650.fits
.....................!
real 191.81
user 187.19
sys 4.05

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

Setting source of interest to:
4FGL J1127.4+5648 @ 171.865 56.8032

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/798961/ft1_filtered_4FGL_J1127.4+5648_daily_bin650.fits scfile=/scratch/kocevski/798961/ft2_4FGL_J1127.4+5648_daily_bin650.fits outfile=/scratch/kocevski/798961/cmap_407808001_408067201_4FGL_J1127.4+5648_daily_bin650.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.865 yref=56.8032 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.58
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/798961/ft1_filtered_4FGL_J1127.4+5648_daily_bin650.fits scfile=/scratch/kocevski/798961/ft2_4FGL_J1127.4+5648_daily_bin650.fits outfile=/scratch/kocevski/798961/cmap_HighResolution_407808001_408067201_4FGL_J1127.4+5648_daily_bin650.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.865 yref=56.8032 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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/798961/ft1_filtered_4FGL_J1127.4+5648_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/798961/ft2_4FGL_J1127.4+5648_daily_bin650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/798961/Model_4FGL_J1127.4+5648_daily_bin650.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/798961/ft1_filtered_4FGL_J1127.4+5648_daily_bin650.fits......................!
real 40.56
user 39.16
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/798961/ft1_filtered_4FGL_J1127.4+5648_daily_bin650.fits', '/scratch/kocevski/798961/ft2_4FGL_J1127.4+5648_daily_bin650.fits', expMap='/scratch/kocevski/798961/expmap_407808001_408067201_4FGL_J1127.4+5648_daily_bin650.fits', expCube='/scratch/kocevski/798961/ltcube_407808001_408067201_4FGL_J1127.4+5648_daily_bin650.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/798961/Model_4FGL_J1127.4+5648_daily_bin650.xml', optimizer='MINUIT')

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

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.906e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/798961/ft1_filtered_4FGL_J1127.4+5648_daily_bin650.fits
Spacecraft file(s): /scratch/kocevski/798961/ft2_4FGL_J1127.4+5648_daily_bin650.fits
Exposure map: /scratch/kocevski/798961/expmap_407808001_408067201_4FGL_J1127.4+5648_daily_bin650.fits
Exposure cube: /scratch/kocevski/798961/ltcube_407808001_408067201_4FGL_J1127.4+5648_daily_bin650.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/798961/Model_4FGL_J1127.4+5648_daily_bin650.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) = 3893.45233581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .25534       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3569       1.0000         .10000E-03   10000.    
     6 'Prefactor '    160.52       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20867E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3421       1.0000         .10000E-03   10000.    
    10 'Prefactor '    113.15       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2063       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.143       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7971       1.0000         .10000E-03   10000.    
    19 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1824       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.130       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.1281       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97950       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98930       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3893.432     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3870 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.04        .10938E-04** at limit **
   2  norm          .10000E-03    48.870       -.10200E-04** at limit **
   3  Prefactor     .10000E-03    13.330       -.40397E-06** at limit **
   4  norm          .25147        2.2032       -.30882E-05    .46220E-03
   5  norm          2.3570        1.9906       -.16347E-09    .58851E-03
   6  Prefactor     160.54        213.38        .16063E-04    .59990E-05
   7  Prefactor     .10001E-03    205.09       -.12089E-03** at limit **
   8  Prefactor     .10000E-03    112.81       -.28734E-04** at limit **
   9  norm          4.3425        2.9794        .82568E-06    .68827E-03
  10  Prefactor     113.07        89.247       -.69480E-04    .12367E-03
  11  Prefactor     .10000E-03    51.221       -.56274E-05** at limit **
  12  Prefactor     .10000E-03    41.338       -.25179E-04** at limit **
  13  norm          .10000E-03    59.002        .20300E-04** at limit **
  14  Prefactor     1.2104        6.9510       -.40180E-05   -.49978E-03
  15  Prefactor     .10000E-03    50.363       -.91931E-05** at limit **
  16  Prefactor     18.144        30.429       -.12760E-05   -.17645E-04
  17  norm          .10000E-03    7.3039       -.22162E-06** at limit **
  18  Prefactor     5.7978        4.2571       -.81585E-06    .86299E-04
  19  norm          .10000E-03    2.0826       -.51215E-08** at limit **
  20  Prefactor     4.1846        15.940       -.14568E-05   -.45834E-04
  21  Prefactor     13.133        9.4062       -.19937E-05   -.73851E-04
  22  Prefactor     .10000E-03    9.3814        .30535E-06** at limit **
  23  norm          5.1295        3.5153       -.85132E-06   -.10409E-05
  24  Prefactor     .10002E-03    77.539        .49658E-04** at limit **
  25  Prefactor     .10000E-03    33.923        .16510E-04** at limit **
  26  norm          .10000E-03    3.4537        .46915E-07** at limit **
  27  Prefactor     .10000E-03    4.2438       -.20011E-06** at limit **
  28  norm          .10000E-03    2.2889       -.23201E-06** at limit **
  29  Normalizat    .97935        .20606        .11825E-04   -.35851E-04
  30  Prefactor     .98926        .25703       -.20104E-05    .48545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.251471
  norm       = 2.35702
  Prefactor  = 160.541
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  norm       = 4.34255
  Prefactor  = 113.066
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.21039
  Prefactor  = 0.0001
  Prefactor  = 18.1443
  norm       = 0.0001
  Prefactor  = 5.7978
  norm       = 0.0001
  Prefactor  = 4.18457
  Prefactor  = 13.1326
  Prefactor  = 0.0001
  norm       = 5.12946
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.979346
  Prefactor  = 0.989257
 **********
 **   18 **HESSE 
 **********

 FCN=   3893.432     FROM HESSE     STATUS=OK           576 CALLS     4446 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    101.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    50.520        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .25147        4.3241        .17514E-02   -1.5608    
   5  norm          2.3570        1.9943        .77929E-04   -1.5401    
   6  Prefactor     160.54        213.38        .15914E-03   -1.3167    
   7  Prefactor     .10001E-03    205.42        .20190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    112.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3425        2.9802        .85777E-04   -1.5291    
  10  Prefactor     113.07        89.278        .18909E-03   -1.3577    
  11  Prefactor     .10000E-03    51.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    59.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2104        6.9341        .31443E-03   -1.5488    
  15  Prefactor     .10000E-03    50.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.144        30.449        .94030E-04   -1.4856    
  17  norm          .10000E-03    7.3109        .16471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7978        4.2463        .10333E-03   -1.5226    
  19  norm          .10000E-03    2.0912        .87896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.1846        15.887        .19707E-03   -1.5299    
  21  Prefactor     13.133        9.4040        .11054E-03   -1.4983    
  22  Prefactor     .10000E-03    9.3835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.1295        3.5138        .91180E-04   -1.5255    
  24  Prefactor     .10002E-03    78.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    33.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.4715        .11325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.2659        .12552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.3584        .18429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .97935        .24006        .22336E-03   -.93726    
  30  Prefactor     .98926        .30092        .28566E-03   -.93088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48246e-09
Minuit parameter uncertainties:
  1  0.000584579
  2  8.42824e-07
  3  5.96968e-05
  4  2.08532
  5  1.99433
  6  214.42
  7  0.00307493
  8  0.000668802
  9  2.98033
  10  89.3844
  11  0.000499038
  12  6.34382e-05
  13  8.37379e-05
  14  5.79494
  15  4.38549e-05
  16  30.4754
  17  1.08348e-05
  18  4.24648
  19  3.55539e-06
  20  15.903
  21  9.40503
  22  4.43677e-06
  23  3.51397
  24  0.00234785
  25  7.49239e-05
  26  1.18325e-05
  27  3.70432e-05
  28  3.59806e-05
  29  0.24032
  30  0.301432
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.210e+00  5.795e+00  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  9.893e-01  3.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  9.793e-01  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 171.865 56.803
Photon Flux Upper Limit: 9.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/798961/likelihoodResults_407808001_408067201_4FGL_J1127.4+5648_daily_bin650.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3893.42936118
delta logL = 0.00274813041005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3893.42877936
delta logL = 0.00332994716655

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3893.429     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      252 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4151        7.8840        .32200E-03    .10046E-03
   2  Index         2.5482        1.9587        .14022E-01    .23775E-04
   3  Normalizat    .97973        .23009        .22332E-03   -.79340E-04
   4  Prefactor     .98866        .29556        .28574E-03   -.53892E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41511
  Index      = 2.54824
  Normalizat = 0.97973
  Prefactor  = 0.988657
 **********
 **   18 **HESSE 
 **********

 FCN=   3893.429     FROM HESSE     STATUS=OK            23 CALLS      275 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4151        7.5212        .12880E-04   -1.5470    
   2  Index         2.5482        1.9172        .56089E-03   -.51249    
   3  Normalizat    .97973        .23039        .89327E-05   -.93713    
   4  Prefactor     .98866        .29589        .11429E-04   -.93109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29657e-10
Minuit parameter uncertainties:
  1  6.52585
  2  1.98519
  3  0.230623
  4  0.296377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/798961': 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) = 3893.42877935
delta logL = 0.00332995841518

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.415e+00  6.526e+00  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.548e+00  1.985e+00  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  9.887e-01  2.964e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  9.797e-01  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 171.865 56.803

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/798961/cmap_HighResolution_407808001_408067201_4FGL_J1127.4+5648_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.51e-03', job_status='DONE', photon_flux_upper_limit='9.53e-08', time_completed='2021-09-03 21:36:19.386384', job_id='798961', GAL2='0.99', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630730179.39', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.33e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='650' AND source_name='4FGL J1127.4+5648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:36:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 798961: <4FGL_J1127.4+5648_daily_bin650> in cluster <slac> Done

Job <4FGL_J1127.4+5648_daily_bin650> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 21:21:08 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:21:09 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:21:09 2021
Terminated at Fri Sep  3 21:36:20 2021
Results reported at Fri Sep  3 21:36:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_daily_bin650 171.865 56.8032 407808001 408067201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1127.4+5648 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   783.56 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

