/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 42 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1127.4+5648_daily_bin1
RA = 171.865, Dec = 56.8032
tmin = 239587201, tmax = 239846401
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='794422', job_status='RUN', time_executed='2021-09-03 21:08:02.610076', time_epoch_executed='1630728482.61' WHERE source_name='4FGL J1127.4+5648' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794422

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794422/ft1_4FGL_J1127.4+5648_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794422/ft2_4FGL_J1127.4+5648_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794422/ft1_4FGL_J1127.4+5648_daily_bin1.fits outfile=/scratch/kocevski/794422/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin1.fits ra=171.865 dec=56.8032 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.38
user 1.13
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/794422/ft2_4FGL_J1127.4+5648_daily_bin1.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/794422/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/794422/ft1_filtered_4FGL_J1127.4+5648_daily_bin1.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794422/ft1_filtered_4FGL_J1127.4+5648_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/794422/ft2_4FGL_J1127.4+5648_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/794422/ltcube_239587201_239846401_4FGL_J1127.4+5648_daily_bin1.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/794422/ft2_4FGL_J1127.4+5648_daily_bin1.fits
.....................!
real 17.92
user 17.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794422/ft1_filtered_4FGL_J1127.4+5648_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/794422/ft2_4FGL_J1127.4+5648_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/794422/ltcube_239587201_239846401_4FGL_J1127.4+5648_daily_bin1.fits outfile=/scratch/kocevski/794422/expmap_239587201_239846401_4FGL_J1127.4+5648_daily_bin1.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/794422/ltcube_239587201_239846401_4FGL_J1127.4+5648_daily_bin1.fits
.....................!
real 194.76
user 189.13
sys 5.02

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/794422/ft1_filtered_4FGL_J1127.4+5648_daily_bin1.fits scfile=/scratch/kocevski/794422/ft2_4FGL_J1127.4+5648_daily_bin1.fits outfile=/scratch/kocevski/794422/cmap_239587201_239846401_4FGL_J1127.4+5648_daily_bin1.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794422/ft1_filtered_4FGL_J1127.4+5648_daily_bin1.fits scfile=/scratch/kocevski/794422/ft2_4FGL_J1127.4+5648_daily_bin1.fits outfile=/scratch/kocevski/794422/cmap_HighResolution_239587201_239846401_4FGL_J1127.4+5648_daily_bin1.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19427E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1112       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9369       1.0000         .10000E-03   10000.    
     4 'norm      '    3.1766       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0694       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14676E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12249E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10893E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2692       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11956E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    36.967       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4333       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.785       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .39121E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .29701E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7310       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.919       1.0000         .10000E-03   10000.    
    23 'norm      '    6.7476       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12155E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.0107       1.0000         .10000E-03   10000.    
    26 'norm      '    3.3090       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10716E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    5.5343       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .57066       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87621       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=   3447.465     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     4002 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.408        .90314E-06** at limit **
   2  norm          1.1138        46.732        .31834E-04    .11474E-03
   3  Prefactor     7.9352        23.868       -.54317E-07   -.10580E-04
   4  norm          3.1768        3.1950       -.15157E-06   -.27044E-04
   5  norm          2.0692        1.7326        .20539E-07   -.68101E-04
   6  Prefactor     .10000E-03    64.237        .35641E-05** at limit **
   7  Prefactor     .10000E-03    45.214       -.24755E-05** at limit **
   8  Prefactor     .10000E-03    40.999       -.17429E-05** at limit **
   9  norm          2.2692        2.1598       -.17757E-08   -.13704E-03
  10  Prefactor     .10000E-03    49.661       -.13302E-05** at limit **
  11  Prefactor     .10000E-03    28.690        .11797E-05** at limit **
  12  Prefactor     .10000E-03    33.866        .26620E-05** at limit **
  13  norm          37.029        36.985        .61803E-05   -.15403E-04
  14  Prefactor     .10000E-03    6.3120       -.16730E-06** at limit **
  15  Prefactor     1.4320        59.317        .17450E-05   -.85173E-05
  16  Prefactor     18.790        19.601        .10373E-06   -.47829E-05
  17  norm          .10000E-03    25.420       -.11780E-05** at limit **
  18  Prefactor     .10028E-03    3.0067        .22903E-05** at limit **
  19  norm          .10000E-03    4.8713        .88157E-06** at limit **
  20  Prefactor     .10000E-03    15.395        .46525E-07** at limit **
  21  Prefactor     9.7433        14.465       -.23477E-05   -.48541E-03
  22  Prefactor     23.976        24.857        .35955E-06   -.31067E-03
  23  norm          6.7477        3.7772        .11679E-06   -.38457E-03
  24  Prefactor     .10000E-03    9.1410       -.26685E-06** at limit **
  25  Prefactor     1.7397        742.88        .48392E-04   -.35210E-04
  26  norm          3.3103        9.0375        .54078E-06   -.66533E-04
  27  Prefactor     .10000E-03    8.1006       -.19710E-05** at limit **
  28  norm          5.5329        3.2868        .27054E-08    .49068E-03
  29  Normalizat    .57073        .17415       -.16459E-06   -.30018E-03
  30  Prefactor     .87608        .21276       -.91819E-06   -.19499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.11376
  Prefactor  = 7.93518
  norm       = 3.17677
  norm       = 2.06918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.26915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.0289
  Prefactor  = 0.0001
  Prefactor  = 1.43198
  Prefactor  = 18.7905
  norm       = 0.0001
  Prefactor  = 0.000100282
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.74332
  Prefactor  = 23.976
  norm       = 6.74766
  Prefactor  = 0.0001
  Prefactor  = 1.73969
  norm       = 3.31033
  Prefactor  = 0.000100002
  norm       = 5.53291
  Normalizat = 0.570735
  Prefactor  = 0.876083
 **********
 **   18 **HESSE 
 **********

 FCN=   3447.465     FROM HESSE     STATUS=OK           588 CALLS     4590 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1138        46.657        .22395E-02   -1.5497    
   3  Prefactor     7.9352        23.998        .14232E-03   -1.5145    
   4  norm          3.1768        3.2130        .77775E-04   -1.5351    
   5  norm          2.0692        1.7208        .67972E-04   -1.5420    
   6  Prefactor     .10000E-03    64.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    45.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    41.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2692        2.1449        .81191E-04   -1.5407    
  10  Prefactor     .10000E-03    49.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          37.029        37.118        .65917E-04   -1.4490    
  14  Prefactor     .10000E-03    6.5557        .28765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4320        58.818        .36071E-03   -1.5469    
  16  Prefactor     18.790        19.596        .92409E-04   -1.4841    
  17  norm          .10000E-03    26.405        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10028E-03    23.285        .17917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    27.277        .21080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.7433        12.672        .12846E-03   -1.5084    
  22  Prefactor     23.976        24.736        .40952E-03   -1.4728    
  23  norm          6.7477        3.7756        .78155E-04   -1.5188    
  24  Prefactor     .10000E-03    9.1538        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.7397        756.46        .29196E-02   -1.5444    
  26  norm          3.3103        9.0015        .22255E-03   -1.5344    
  27  Prefactor     .10000E-03    19.743        .30890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          5.5329        3.1626        .76634E-04   -1.5237    
  29  Normalizat    .57073        .19808        .22203E-03   -1.0924    
  30  Prefactor     .87608        .24692        .23505E-03   -.96982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29613e-08
Minuit parameter uncertainties:
  1  6.65208e-05
  2  14.4288
  3  24.0273
  4  3.21322
  5  1.72081
  6  2.13229e-05
  7  1.29526e-06
  8  3.68161e-06
  9  2.14493
  10  2.69219e-05
  11  7.38564e-05
  12  2.50858e-05
  13  37.1407
  14  2.32703e-05
  15  18.3737
  16  19.603
  17  0.000227381
  18  0.00512702
  19  0.000231173
  20  4.36802e-05
  21  12.6758
  22  24.7463
  23  3.77576
  24  3.2105e-05
  25  73.5059
  26  9.00516
  27  0.00043816
  28  3.16271
  29  0.198327
  30  0.24723
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  2.327e-05  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:  8.761e-01  2.472e-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:  5.707e-01  1.983e-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: 6.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/794422/likelihoodResults_239587201_239846401_4FGL_J1127.4+5648_daily_bin1.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) = 3447.46536097
delta logL = -0.000728375714061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3447.46463253
delta logL = 7.15926944395e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7416       1.0000          .0000       10.000    
     3 'Normalizat'    .57068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87618       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=   3447.454     FROM MIGRAD    STATUS=FAILED       165 CALLS      318 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74117E-01    29.939        .29393E-02   -.26112E-02
   2  Index         4.8588        7.3943        .50000        .68267E-05
   3  Normalizat    .56238        .25752E-01    .22203E-03    .22017E-05
   4  Prefactor     .88280        .33000E-01    .23505E-03    .32164E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3447.454     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      403 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74117E-01    29.939        .20017E-03   -.26112E-02
   2  Index         4.8588        7.3943        .63695E-02    .68267E-05
   3  Normalizat    .56238        .25752E-01    .10023E-03    .22017E-05
   4  Prefactor     .88280        .33000E-01    .33050E-04    .32164E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3447.454     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      439 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74117E-01    5.1869        .10301E-03   -.10413E-03
   2  Index         4.8588        7.0253        .12932E-01    .27490E-04
   3  Normalizat    .56238        .19525        .88813E-05    .21761E-05
   4  Prefactor     .88280        .24754        .94020E-05    .32648E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0741174
  Index      = 4.85875
  Normalizat = 0.562379
  Prefactor  = 0.882802
 **********
 **   18 **HESSE 
 **********

 FCN=   3447.454     FROM HESSE     STATUS=OK            27 CALLS      466 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74117E-01    3.0374        .20601E-04   -1.5762    
   2  Index         4.8588        7.4223        .25863E-02   -.28253E-01
   3  Normalizat    .56238        .19536        .17763E-05   -1.0961    
   4  Prefactor     .88280        .24761        .18804E-05   -.96745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8993e-12
Minuit parameter uncertainties:
  1  0.948359
  2  8.08637
  3  0.1956
  4  0.247927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794422': 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) = 3447.45410696
delta logL = 0.0105256372281

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  7.412e-02  9.484e-01  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  4.859e+00  8.086e+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:  8.828e-01  2.479e-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:  5.624e-01  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/794422/cmap_HighResolution_239587201_239846401_4FGL_J1127.4+5648_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.40e-03', job_status='DONE', photon_flux_upper_limit='6.85e-08', time_completed='2021-09-03 21:20:11.206114', job_id='794422', GAL2='0.88', fit_tolerance='1e-08', EG2='0.56', EG='0.57', time_epoch_completed='1630729211.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.05e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1' AND source_name='4FGL J1127.4+5648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:20:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 794422: <4FGL_J1127.4+5648_daily_bin1> in cluster <slac> Done

Job <4FGL_J1127.4+5648_daily_bin1> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 21:06:42 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:07:08 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:07:08 2021
Terminated at Fri Sep  3 21:20:12 2021
Results reported at Fri Sep  3 21:20:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_daily_bin1 171.865 56.8032 239587201 239846401 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 :                                   728.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            810 sec.

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

