/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 5 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 = 7471
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1127.4+5648_daily_bin128
RA = 171.865, Dec = 56.8032
tmin = 272505601, tmax = 272764801
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='795934', job_status='RUN', time_executed='2021-09-03 21:11:53.904855', time_epoch_executed='1630728713.9' WHERE source_name='4FGL J1127.4+5648' and cadence='daily' and bin_id='128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/795934

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/795934/ft1_4FGL_J1127.4+5648_daily_bin128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/795934/ft2_4FGL_J1127.4+5648_daily_bin128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/795934/ft1_4FGL_J1127.4+5648_daily_bin128.fits outfile=/scratch/kocevski/795934/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin128.fits ra=171.865 dec=56.8032 rad=12.0 tmin=272505601.0 tmax=272764801.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.80
user 1.59
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/795934/ft2_4FGL_J1127.4+5648_daily_bin128.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/795934/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin128.fits evtable="EVENTS" outfile="/scratch/kocevski/795934/ft1_filtered_4FGL_J1127.4+5648_daily_bin128.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.53
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/795934/ft1_filtered_4FGL_J1127.4+5648_daily_bin128.fits" evtable="EVENTS" scfile=/scratch/kocevski/795934/ft2_4FGL_J1127.4+5648_daily_bin128.fits sctable="SC_DATA" outfile=/scratch/kocevski/795934/ltcube_272505601_272764801_4FGL_J1127.4+5648_daily_bin128.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/795934/ft2_4FGL_J1127.4+5648_daily_bin128.fits
.....................!
real 17.16
user 16.75
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/795934/ft1_filtered_4FGL_J1127.4+5648_daily_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/795934/ft2_4FGL_J1127.4+5648_daily_bin128.fits sctable="SC_DATA" expcube=/scratch/kocevski/795934/ltcube_272505601_272764801_4FGL_J1127.4+5648_daily_bin128.fits outfile=/scratch/kocevski/795934/expmap_272505601_272764801_4FGL_J1127.4+5648_daily_bin128.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/795934/ltcube_272505601_272764801_4FGL_J1127.4+5648_daily_bin128.fits
.....................!
real 191.78
user 185.96
sys 5.46

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/795934/ft1_filtered_4FGL_J1127.4+5648_daily_bin128.fits scfile=/scratch/kocevski/795934/ft2_4FGL_J1127.4+5648_daily_bin128.fits outfile=/scratch/kocevski/795934/cmap_272505601_272764801_4FGL_J1127.4+5648_daily_bin128.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/795934/ft1_filtered_4FGL_J1127.4+5648_daily_bin128.fits scfile=/scratch/kocevski/795934/ft2_4FGL_J1127.4+5648_daily_bin128.fits outfile=/scratch/kocevski/795934/cmap_HighResolution_272505601_272764801_4FGL_J1127.4+5648_daily_bin128.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .91026       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2746       1.0000         .10000E-03   10000.    
     6 'Prefactor '    167.88       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18935E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.882       1.0000         .10000E-03   10000.    
     9 'norm      '    10.290       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.477       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1401       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21534E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.508       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.7558       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24852E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2166       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10922E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.5039       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.3847       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .27758       1.0000         .10000E-03   10000.    
    28 'norm      '    2.0807       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3003       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78196       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=   4886.602     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     3997 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8786       -.24740E-07** at limit **
   2  norm          .10000E-03    10.843       -.12675E-06** at limit **
   3  Prefactor     .10000E-03    5.9580       -.67650E-07** at limit **
   4  norm          .90995        1.3887       -.30131E-07   -.67258E-04
   5  norm          1.2745        1.2123        .60910E-08    .38834E-04
   6  Prefactor     166.86        268.50        .14467E-04    .93393E-04
   7  Prefactor     .10000E-03    66.817        .56679E-06** at limit **
   8  Prefactor     16.142        398.90       -.13569E-04   -.24186E-04
   9  norm          10.287        4.0055        .15353E-06    .57553E-04
  10  Prefactor     34.565        75.212       -.20861E-06   -.26632E-04
  11  Prefactor     3.1395        43.688        .17064E-05    .42843E-04
  12  Prefactor     .10000E-03    136.15       -.25370E-05** at limit **
  13  norm          .10000E-03    34.705       -.25914E-06** at limit **
  14  Prefactor     .10000E-03    8.8595        .14925E-06** at limit **
  15  Prefactor     27.493        36.549        .10093E-05    .64382E-04
  16  Prefactor     .10000E-03    20.352        .12448E-06** at limit **
  17  norm          9.7576        12.777       -.42659E-07    .29789E-04
  18  Prefactor     .48423E-02    3.1875       -.15141E-05    .13335E-02
  19  norm          3.2126        8.7468        .24744E-06    .24435E-03
  20  Prefactor     .10000E-03    14.120        .38453E-07** at limit **
  21  Prefactor     8.5067        11.710        .58530E-06    .17691E-03
  22  Prefactor     .10000E-03    15.660        .24115E-07** at limit **
  23  norm          4.3857        2.9918        .15805E-06    .37663E-03
  24  Prefactor     .10000E-03    17.499       -.39620E-07** at limit **
  25  Prefactor     .10000E-03    25.211        .28675E-07** at limit **
  26  norm          .10000E-03    3.3596       -.67397E-07** at limit **
  27  Prefactor     .28888        7.4636       -.62905E-06    .12135E-03
  28  norm          2.0805        1.9971        .64143E-07    .13915E-03
  29  Normalizat    1.3004        .21647       -.31450E-05    .44674E-03
  30  Prefactor     .78209        .25708        .51231E-05    .27213E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.909953
  norm       = 1.27454
  Prefactor  = 166.855
  Prefactor  = 0.0001
  Prefactor  = 16.1424
  norm       = 10.2871
  Prefactor  = 34.565
  Prefactor  = 3.13951
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.4931
  Prefactor  = 0.0001
  norm       = 9.75759
  Prefactor  = 0.00484226
  norm       = 3.21258
  Prefactor  = 0.0001
  Prefactor  = 8.50668
  Prefactor  = 0.0001
  norm       = 4.38571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.288881
  norm       = 2.08045
  Normalizat = 1.30042
  Prefactor  = 0.782092
 **********
 **   18 **HESSE 
 **********

 FCN=   4886.602     FROM HESSE     STATUS=OK           594 CALLS     4591 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9651        .16663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .90995        1.1942        .98960E-03   -1.5517    
   5  norm          1.2745        1.2265        .73065E-04   -1.5482    
   6  Prefactor     166.86        274.31        .15567E-03   -1.3117    
   7  Prefactor     .10000E-03    66.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.142        394.92        .10050E-03   -1.4904    
   9  norm          10.287        4.0010        .78040E-04   -1.5066    
  10  Prefactor     34.565        75.746        .68248E-04   -1.4531    
  11  Prefactor     3.1395        43.441        .11438E-02   -1.5354    
  12  Prefactor     .10000E-03    136.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    34.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.9927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.493        36.559        .76384E-04   -1.4659    
  16  Prefactor     .10000E-03    20.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.7576        12.776        .12830E-03   -1.5083    
  18  Prefactor     .48423E-02    4.8312        .33834E-01   -1.5694    
  19  norm          3.2126        8.8159        .11294E-02   -1.5349    
  20  Prefactor     .10000E-03    14.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.5067        11.713        .13746E-03   -1.5125    
  22  Prefactor     .10000E-03    15.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.3857        2.9876        .94501E-04   -1.5289    
  24  Prefactor     .10000E-03    17.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.3843        .12513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .28888        35.670        .35121E-02   -1.5600    
  28  norm          2.0805        2.0115        .91563E-04   -1.5419    
  29  Normalizat    1.3004        .23607        .21512E-03   -.83554    
  30  Prefactor     .78209        .27798        .33380E-03   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18717e-09
Minuit parameter uncertainties:
  1  4.09546e-07
  2  1.58915e-05
  3  4.52648e-06
  4  1.19422
  5  1.22648
  6  276.449
  7  0.000145537
  8  160.89
  9  4.00108
  10  75.9574
  11  23.377
  12  0.000811279
  13  4.41962e-05
  14  1.48691e-05
  15  36.5891
  16  6.57778e-07
  17  12.7791
  18  0.30275
  19  8.81942
  20  3.70733e-05
  21  11.7161
  22  7.41128e-06
  23  2.98771
  24  6.64727e-06
  25  6.41743e-07
  26  1.90939e-06
  27  6.42291
  28  2.01158
  29  0.236266
  30  0.278482
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  1.487e-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:  7.821e-01  2.785e-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.300e+00  2.363e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/795934/likelihoodResults_272505601_272764801_4FGL_J1127.4+5648_daily_bin128.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) = 4886.60299397
delta logL = -0.000529917980202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4886.60246448
delta logL = -4.27597115049e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7399       1.0000          .0000       10.000    
     3 'Normalizat'    1.3002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78236       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=   4886.602     FROM MIGRAD    STATUS=CONVERGED    139 CALLS      296 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    .75048E-01    .48516E-01** at limit **
   2  Index         4.1736        5.2406        .50000        .36198E-06
   3  Normalizat    1.3004        .12958E-02    .21513E-03   -.52770E-03
   4  Prefactor     .78210        .16084E-02    .33378E-03   -.67678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010004
  Index      = 4.17359
  Normalizat = 1.30041
  Prefactor  = 0.7821
 **********
 **   18 **HESSE 
 **********

 FCN=   4886.602     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      335 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    .40844        .22829E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1736        6.6660        .50000       -.16604    
   3  Normalizat    1.3004        .17338E-02    .43025E-04   -.83554    
   4  Prefactor     .78210        .21520E-02    .13351E-04   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.62621e-12
Minuit parameter uncertainties:
  1  0.000256534
  2  40.8139
  3  0.00173376
  4  0.00215199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/795934': 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): 102
logL (Free Index) = 4886.60245918
delta logL = 4.87480519951e-06

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  2.565e-04  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  4.174e+00  4.081e+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.821e-01  2.152e-03  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.300e+00  1.734e-03  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/795934/cmap_HighResolution_272505601_272764801_4FGL_J1127.4+5648_daily_bin128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.14e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-03 21:26:41.832022', job_id='795934', GAL2='0.78', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630729601.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='4.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='128' AND source_name='4FGL J1127.4+5648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:26:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 795934: <4FGL_J1127.4+5648_daily_bin128> in cluster <slac> Done

Job <4FGL_J1127.4+5648_daily_bin128> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 21:11:35 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:11:39 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:11:39 2021
Terminated at Fri Sep  3 21:26:42 2021
Results reported at Fri Sep  3 21:26:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_daily_bin128 171.865 56.8032 272505601 272764801 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 :                                   887.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            907 sec.

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

