aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 220 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 = 17017
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1127.4+5648_weekly_bin596
RA = 171.865, Dec = 56.8032
tmin = 599443201, tmax = 600048001
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='829734', job_status='RUN', time_executed='2021-07-18 16:57:04.701057', time_epoch_executed='1626652624.7' WHERE source_name='4FGL J1127.4+5648' and cadence='weekly' and bin_id='596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/829734

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/829734/ft1_4FGL_J1127.4+5648_weekly_bin596.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/829734/ft2_4FGL_J1127.4+5648_weekly_bin596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/829734/ft1_4FGL_J1127.4+5648_weekly_bin596.fits outfile=/scratch/kocevski/829734/ft1_filteredMKT_4FGL_J1127.4+5648_weekly_bin596.fits ra=171.865 dec=56.8032 rad=12.0 tmin=599443201.0 tmax=600048001.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 5.52
user 4.98
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/829734/ft2_4FGL_J1127.4+5648_weekly_bin596.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/829734/ft1_filteredMKT_4FGL_J1127.4+5648_weekly_bin596.fits evtable="EVENTS" outfile="/scratch/kocevski/829734/ft1_filtered_4FGL_J1127.4+5648_weekly_bin596.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.78
user 0.38
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/829734/ft1_filtered_4FGL_J1127.4+5648_weekly_bin596.fits" evtable="EVENTS" scfile=/scratch/kocevski/829734/ft2_4FGL_J1127.4+5648_weekly_bin596.fits sctable="SC_DATA" outfile=/scratch/kocevski/829734/ltcube_599443201_600048001_4FGL_J1127.4+5648_weekly_bin596.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/829734/ft2_4FGL_J1127.4+5648_weekly_bin596.fits
.....................!
real 35.09
user 34.38
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/829734/ft1_filtered_4FGL_J1127.4+5648_weekly_bin596.fits evtable="EVENTS" scfile=/scratch/kocevski/829734/ft2_4FGL_J1127.4+5648_weekly_bin596.fits sctable="SC_DATA" expcube=/scratch/kocevski/829734/ltcube_599443201_600048001_4FGL_J1127.4+5648_weekly_bin596.fits outfile=/scratch/kocevski/829734/expmap_599443201_600048001_4FGL_J1127.4+5648_weekly_bin596.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/829734/ltcube_599443201_600048001_4FGL_J1127.4+5648_weekly_bin596.fits
.....................!
real 192.36
user 187.38
sys 4.57

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/829734/ft1_filtered_4FGL_J1127.4+5648_weekly_bin596.fits scfile=/scratch/kocevski/829734/ft2_4FGL_J1127.4+5648_weekly_bin596.fits outfile=/scratch/kocevski/829734/cmap_599443201_600048001_4FGL_J1127.4+5648_weekly_bin596.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.81
user 0.41
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/829734/ft1_filtered_4FGL_J1127.4+5648_weekly_bin596.fits scfile=/scratch/kocevski/829734/ft2_4FGL_J1127.4+5648_weekly_bin596.fits outfile=/scratch/kocevski/829734/cmap_HighResolution_599443201_600048001_4FGL_J1127.4+5648_weekly_bin596.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.81
user 0.44
sys 0.37

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/829734/ft1_filtered_4FGL_J1127.4+5648_weekly_bin596.fits', '/scratch/kocevski/829734/ft2_4FGL_J1127.4+5648_weekly_bin596.fits', expMap='/scratch/kocevski/829734/expmap_599443201_600048001_4FGL_J1127.4+5648_weekly_bin596.fits', expCube='/scratch/kocevski/829734/ltcube_599443201_600048001_4FGL_J1127.4+5648_weekly_bin596.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/829734/Model_4FGL_J1127.4+5648_weekly_bin596.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/829734/ft1_filtered_4FGL_J1127.4+5648_weekly_bin596.fits
Spacecraft file(s): /scratch/kocevski/829734/ft2_4FGL_J1127.4+5648_weekly_bin596.fits
Exposure map: /scratch/kocevski/829734/expmap_599443201_600048001_4FGL_J1127.4+5648_weekly_bin596.fits
Exposure cube: /scratch/kocevski/829734/ltcube_599443201_600048001_4FGL_J1127.4+5648_weekly_bin596.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/829734/Model_4FGL_J1127.4+5648_weekly_bin596.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) = 17404.1859165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .92352E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3314       1.0000         .10000E-03   10000.    
     4 'norm      '    12.365       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2860       1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.962       1.0000         .10000E-03   10000.    
     7 'Prefactor '    76.312       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1514       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    30.300       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.256       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0101       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9946       1.0000         .10000E-03   10000.    
    19 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .71001       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1036       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .13597       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.762       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.794       1.0000         .10000E-03   10000.    
    26 'norm      '    1.8657       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.6862       1.0000         .10000E-03   10000.    
    28 'norm      '    5.9918       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.5085       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .76226       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=   17404.15     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     3454 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.178        .15507E-05** at limit **
   2  norm          .21360        4.2742        .11985E-06   -.10783E-03
   3  Prefactor     5.3264        18.559        .11468E-04   -.29045E-03
   4  norm          12.365        3.1986       -.84263E-06   -.38963E-03
   5  norm          4.2863        1.3211       -.53642E-07   -.19356E-03
   6  Prefactor     55.008        62.050        .70964E-05    .28641E-03
   7  Prefactor     76.338        56.462        .37460E-05    .24017E-03
   8  Prefactor     .10000E-03    25.624       -.32616E-05** at limit **
   9  norm          2.1517        1.1326        .85724E-08   -.41315E-04
  10  Prefactor     .10000E-03    10.074       -.33992E-06** at limit **
  11  Prefactor     .10000E-03    20.300        .39763E-06** at limit **
  12  Prefactor     .10000E-03    16.183        .73269E-06** at limit **
  13  norm          30.305        26.226        .57024E-06    .65593E-04
  14  Prefactor     .10000E-03    2.1912       -.54517E-07** at limit **
  15  Prefactor     25.262        16.170       -.24791E-06   -.17541E-03
  16  Prefactor     .10000E-03    10.903        .97016E-06** at limit **
  17  norm          3.0104        3.9860        .15076E-06   -.76063E-04
  18  Prefactor     2.9831        2.6265        .21303E-06    .46923E-03
  19  norm          .10000E-03    1.3176        .33238E-07** at limit **
  20  Prefactor     .94753        8.7981       -.99965E-06    .36047E-03
  21  Prefactor     7.1013        4.6562       -.54532E-07   -.42026E-04
  22  Prefactor     .10000E-03    13.688       -.13746E-05** at limit **
  23  norm          .13808        .46025        .15283E-06   -.55731E-03
  24  Prefactor     14.766        10.472        .67349E-07   -.44425E-04
  25  Prefactor     10.803        41.761        .37724E-05    .68328E-04
  26  norm          1.8657        2.1760        .10143E-06   -.12489E-04
  27  Prefactor     1.6872        3.4556        .14328E-05   -.37231E-03
  28  norm          5.9923        1.6604       -.79400E-07   -.41673E-03
  29  Normalizat    1.5083        .11771       -.94688E-06    .63051E-04
  30  Prefactor     .76222        .14026        .75755E-08   -.11686E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.213596
  Prefactor  = 5.32639
  norm       = 12.3648
  norm       = 4.28635
  Prefactor  = 55.0081
  Prefactor  = 76.3379
  Prefactor  = 0.000100003
  norm       = 2.15175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.3046
  Prefactor  = 0.0001
  Prefactor  = 25.2621
  Prefactor  = 0.0001
  norm       = 3.01039
  Prefactor  = 2.9831
  norm       = 0.0001
  Prefactor  = 0.947532
  Prefactor  = 7.10127
  Prefactor  = 0.000100001
  norm       = 0.138083
  Prefactor  = 14.7659
  Prefactor  = 10.8029
  norm       = 1.86574
  Prefactor  = 1.68717
  norm       = 5.9923
  Normalizat = 1.50831
  Prefactor  = 0.76222
 **********
 **   18 **HESSE 
 **********

 FCN=   17404.15     FROM HESSE     STATUS=OK           606 CALLS     4060 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .21360        6.1896        .10398       -1.5616    
   3  Prefactor     5.3264        19.326        .87029E-03   -1.5246    
   4  norm          12.365        3.2528        .86386E-04   -1.5005    
   5  norm          4.2863        1.3216        .81480E-04   -1.5294    
   6  Prefactor     55.008        64.372        .27053E-03   -1.4223    
   7  Prefactor     76.338        57.313        .22983E-03   -1.3958    
   8  Prefactor     .10000E-03    25.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1517        1.1323        .98958E-04   -1.5415    
  10  Prefactor     .10000E-03    10.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.079        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          30.305        26.253        .72788E-04   -1.4606    
  14  Prefactor     .10000E-03    2.2212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.262        16.192        .79710E-04   -1.4702    
  16  Prefactor     .10000E-03    11.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0104        3.9745        .23394E-03   -1.5361    
  18  Prefactor     2.9831        2.6906        .16247E-03   -1.5363    
  19  norm          .10000E-03    4.1977        .27971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .94753        66.697        .62714E-02   -1.5513    
  21  Prefactor     7.1013        4.4862        .15051E-03   -1.5175    
  22  Prefactor     .10000E-03    13.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .13808        2.1063        .15379E-02   -1.5634    
  24  Prefactor     14.766        10.476        .10425E-03   -1.4939    
  25  Prefactor     10.803        41.895        .12195E-03   -1.5050    
  26  norm          1.8657        2.1670        .20441E-03   -1.5435    
  27  Prefactor     1.6872        3.4440        .32144E-03   -1.5448    
  28  norm          5.9923        1.6475        .41070E-03   -1.5218    
  29  Normalizat    1.5083        .13933        .22284E-03   -.77545    
  30  Prefactor     .76222        .16455        .37105E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89855e-08
Minuit parameter uncertainties:
  1  0.00021012
  2  2.29934
  3  19.349
  4  3.25287
  5  1.32156
  6  64.4533
  7  57.3545
  8  0.000513832
  9  1.13234
  10  3.90342e-05
  11  8.88244e-05
  12  9.01246e-05
  13  26.2628
  14  7.37054e-06
  15  16.195
  16  0.000103729
  17  3.97486
  18  2.69069
  19  5.1894e-05
  20  15.9171
  21  4.4864
  22  0.000201314
  23  1.07826
  24  10.4772
  25  42.0096
  26  2.16705
  27  3.44442
  28  1.64754
  29  0.139365
  30  0.164657
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  7.371e-06  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:  7.622e-01  1.647e-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:  1.508e+00  1.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/829734/likelihoodResults_599443201_600048001_4FGL_J1127.4+5648_weekly_bin596.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) = 17404.1495706
delta logL = -0.00214455332753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17403.6341822
delta logL = 0.513243838257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19667E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.8606       1.0000          .0000       10.000    
     3 'Normalizat'    1.4704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79547       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   17403.63     FROM MIGRAD    STATUS=FAILED       129 CALLS      442 TOTAL
                     EDM=   .38E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18929E-03    .23129E-01    .20049E-04** at limit **
   2  Index         9.8846        9.9164        .10425       -.18615E-02
   3  Normalizat    1.4704        .15295        .22515E-03   -.71861E-04
   4  Prefactor     .79551        .16065        .36410E-03   -.43339E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   17403.63     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      535 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18929E-03    .23129E-01    .21804E-05** at limit **
   2  Index         9.8846        9.9164        .69409E-02   -.18615E-02
   3  Normalizat    1.4704        .15295        .47752E-04   -.71861E-04
   4  Prefactor     .79551        .16065        .40105E-04   -.43339E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17403.63     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      571 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18929E-03    .23097E-01    .40099E-05** at limit **
   2  Index         9.8846        9.8608        .20850E-01   -.31451E-05
   3  Normalizat    1.4704        .13109        .45031E-04   -.71700E-04
   4  Prefactor     .79551        .15666        .14564E-04   -.43090E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000189292
  Index      = 9.88461
  Normalizat = 1.47036
  Prefactor  = 0.795514
 **********
 **   18 **HESSE 
 **********

 FCN=   17403.63     FROM HESSE     STATUS=OK            27 CALLS      598 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18929E-03    .73234E-01    .80197E-06   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.8846        9.6647        .83399E-03    1.3555    
   3  Normalizat    1.4704        .13959        .90062E-05   -.78615    
   4  Prefactor     .79551        .16763        .29128E-05   -.99894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91508e-09
Minuit parameter uncertainties:
  1  0.00511436
  2  17.0542
  3  0.139627
  4  0.167733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/829734': 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) = 17403.6341736
delta logL = 0.513252433055

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.893e-04  5.114e-03  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  9.885e+00  1.705e+01  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:  7.955e-01  1.677e-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:  1.470e+00  1.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 171.865 56.803
Photon Index (Free Index): 9.88 +/- 17.05
Photon Flux (Free Index): 2.81e-08 +/- 3.43e-08
Energy Flux (Free Index): 3.14e-06 +/- 4.32e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/829734/cmap_HighResolution_599443201_600048001_4FGL_J1127.4+5648_weekly_bin596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-03', comment='SUCCESS', energy_flux2='3.14e-06', dlogl='5.13e-01', photon_flux2='2.81e-08', job_status='DONE', time_completed='2021-07-18 17:35:49.171976', photon_index_error2='17.05', photon_index2='9.88', ts='-0.00', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='3.94e-08', energy_flux_error2='4.32e-06', EG='1.51', time_epoch_completed='1626654949.17', return_code='0', job_id='829734', GAL2='0.80', EG2='1.47', return_code2='0', photon_flux_error2='3.43e-08', ts2='1.08', photon_index='2.72' WHERE bin_id='596' AND source_name='4FGL J1127.4+5648' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 18 17:35:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 829734: <4FGL_J1127.4+5648_weekly_bin596> in cluster <slac> Done

Job <4FGL_J1127.4+5648_weekly_bin596> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Jul 18 01:25:45 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 18 01:52:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 18 01:52:04 2021
Terminated at Sun Jul 18 17:35:50 2021
Results reported at Sun Jul 18 17:35:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_weekly_bin596 171.865 56.8032 599443201 600048001 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 :                                   2357.00 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             58.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   56626 sec.
    Turnaround time :                            58205 sec.

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

