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


Performing analysis on: 4FGL_J1127.4+5648_daily_bin2
RA = 171.865, Dec = 56.8032
tmin = 239846401, tmax = 240105601
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='794423', job_status='RUN', time_executed='2021-09-03 21:08:57.897380', time_epoch_executed='1630728537.9' WHERE source_name='4FGL J1127.4+5648' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794423/ft1_4FGL_J1127.4+5648_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794423/ft2_4FGL_J1127.4+5648_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794423/ft1_4FGL_J1127.4+5648_daily_bin2.fits outfile=/scratch/kocevski/794423/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin2.fits ra=171.865 dec=56.8032 rad=12.0 tmin=239846401.0 tmax=240105601.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.53
user 1.33
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794423/ft1_filtered_4FGL_J1127.4+5648_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/794423/ft2_4FGL_J1127.4+5648_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/794423/ltcube_239846401_240105601_4FGL_J1127.4+5648_daily_bin2.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/794423/ft2_4FGL_J1127.4+5648_daily_bin2.fits
.....................!
real 19.52
user 18.97
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794423/ft1_filtered_4FGL_J1127.4+5648_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/794423/ft2_4FGL_J1127.4+5648_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/794423/ltcube_239846401_240105601_4FGL_J1127.4+5648_daily_bin2.fits outfile=/scratch/kocevski/794423/expmap_239846401_240105601_4FGL_J1127.4+5648_daily_bin2.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/794423/ltcube_239846401_240105601_4FGL_J1127.4+5648_daily_bin2.fits
.....................!
real 191.78
user 186.49
sys 4.68

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/794423/ft1_filtered_4FGL_J1127.4+5648_daily_bin2.fits scfile=/scratch/kocevski/794423/ft2_4FGL_J1127.4+5648_daily_bin2.fits outfile=/scratch/kocevski/794423/cmap_239846401_240105601_4FGL_J1127.4+5648_daily_bin2.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.57
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794423/ft1_filtered_4FGL_J1127.4+5648_daily_bin2.fits scfile=/scratch/kocevski/794423/ft2_4FGL_J1127.4+5648_daily_bin2.fits outfile=/scratch/kocevski/794423/cmap_HighResolution_239846401_240105601_4FGL_J1127.4+5648_daily_bin2.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.629       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16438E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4669       1.0000         .10000E-03   10000.    
     5 'norm      '    .81372       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    127.41       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5516       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.741       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5577       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8464       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2159       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.446       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.5172       1.0000         .10000E-03   10000.    
    25 'Prefactor '    44.480       1.0000         .10000E-03   10000.    
    26 'norm      '    3.4474       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    2.5695       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2969       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .49842       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=   4638.757     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     4059 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.632        34.793       -.73228E-06   -.41675E-04
   2  norm          .10000E-03    8.9359        .63147E-08** at limit **
   3  Prefactor     .10000E-03    14.183        .30403E-07** at limit **
   4  norm          1.4685        2.0007        .38328E-07   -.85381E-04
   5  norm          .81387        1.4349        .46005E-07   -.16543E-03
   6  Prefactor     .10000E-03    78.964       -.27584E-06** at limit **
   7  Prefactor     127.39        97.936       -.66155E-05   -.94056E-04
   8  Prefactor     5.5625        683.74        .24681E-04    .15648E-04
   9  norm          .10000E-03    1.4663       -.20902E-06** at limit **
  10  Prefactor     .10000E-03    33.316       -.66596E-07** at limit **
  11  Prefactor     .10000E-03    12.163       -.10369E-07** at limit **
  12  Prefactor     .10000E-03    27.113        .19656E-06** at limit **
  13  norm          11.739        34.756        .13294E-05    .10500E-04
  14  Prefactor     .10000E-03    2.2670       -.35517E-09** at limit **
  15  Prefactor     .10000E-03    18.668        .29749E-05** at limit **
  16  Prefactor     .10000E-03    8.7843        .27285E-08** at limit **
  17  norm          .10000E-03    7.8060       -.65316E-08** at limit **
  18  Prefactor     2.5577        2.3754        .14899E-07    .39827E-04
  19  norm          1.8457        9.1580       -.49660E-06   -.20486E-03
  20  Prefactor     .10000E-03    18.676       -.30418E-05** at limit **
  21  Prefactor     8.2171        10.650       -.44924E-06   -.11883E-04
  22  Prefactor     26.443        32.479        .53741E-06    .48378E-04
  23  norm          .10000E-03    1.3762       -.13828E-07** at limit **
  24  Prefactor     8.5085        23.578        .51193E-05    .87307E-04
  25  Prefactor     44.487        79.007        .39617E-05    .41204E-04
  26  norm          3.4468        4.7738        .13285E-05   -.14109E-02
  27  Prefactor     .10000E-03    4.7044        .80593E-08** at limit **
  28  norm          2.5695        2.1616       -.79885E-08    .15829E-05
  29  Normalizat    1.2968        .19045        .10029E-06    .23483E-04
  30  Prefactor     .49846        .22919       -.10433E-05    .19438E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.6324
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 1.4685
  norm       = 0.813867
  Prefactor  = 0.0001
  Prefactor  = 127.389
  Prefactor  = 5.56247
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.55766
  norm       = 1.84574
  Prefactor  = 0.0001
  Prefactor  = 8.21708
  Prefactor  = 26.4426
  norm       = 0.0001
  Prefactor  = 8.50849
  Prefactor  = 44.4868
  norm       = 3.44676
  Prefactor  = 0.0001
  norm       = 2.56954
  Normalizat = 1.29684
  Prefactor  = 0.498464
 **********
 **   18 **HESSE 
 **********

 FCN=   4638.757     FROM HESSE     STATUS=OK           596 CALLS     4655 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.632        34.865        .50308E-04   -1.4111    
   2  norm          .10000E-03    8.9504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.600        .69606E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4685        2.0779        .94853E-04   -1.5466    
   5  norm          .81387        1.2748        .10421E-02   -1.5528    
   6  Prefactor     .10000E-03    78.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     127.39        98.639        .17833E-03   -1.3446    
   8  Prefactor     5.5625        641.19        .17051E-03   -1.5236    
   9  norm          .10000E-03    2.3980        .15387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.739        34.765        .11691E-03   -1.5023    
  14  Prefactor     .10000E-03    2.2711        .10013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.7887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.8154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5577        2.3687        .98123E-04   -1.5388    
  19  norm          1.8457        8.9340        .30689E-03   -1.5436    
  20  Prefactor     .10000E-03    18.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.2171        10.456        .13987E-03   -1.5135    
  22  Prefactor     26.443        32.323        .77899E-04   -1.4679    
  23  norm          .10000E-03    1.3954        .77950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.5085        23.559        .13736E-03   -1.5124    
  25  Prefactor     44.487        78.949        .60114E-04   -1.4373    
  26  norm          3.4468        8.1511        .10891E-02   -1.5337    
  27  Prefactor     .10000E-03    4.7515        .14422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.5695        2.1590        .89499E-04   -1.5387    
  29  Normalizat    1.2968        .21230        .19264E-03   -.83661    
  30  Prefactor     .49846        .25203        .36240E-03   -1.1205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78808e-09
Minuit parameter uncertainties:
  1  34.8758
  2  1.2032e-06
  3  0.0006373
  4  2.078
  5  1.27488
  6  2.54707e-05
  7  98.7669
  8  120.79
  9  6.22696e-05
  10  1.80992e-05
  11  4.99653e-06
  12  1.56698e-05
  13  34.8252
  14  2.12307e-08
  15  0.000137819
  16  1.48314e-06
  17  4.02039e-06
  18  2.36882
  19  8.12326
  20  0.000114266
  21  10.4582
  22  32.3444
  23  1.37313e-08
  24  23.5847
  25  79.135
  26  8.15371
  27  1.05009e-06
  28  2.15906
  29  0.212442
  30  0.252599
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  2.123e-08  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:  4.985e-01  2.526e-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.297e+00  2.124e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/794423/likelihoodResults_239846401_240105601_4FGL_J1127.4+5648_daily_bin2.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) = 4638.75875301
delta logL = -0.00205696944067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4638.75669603
delta logL = 1.03609636426e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7111       1.0000          .0000       10.000    
     3 'Normalizat'    1.2969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49843       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=   4638.757     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      248 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.093        .10032E-01** at limit **
   2  Index         2.3657        8.6887        .50000       -.19804E-07
   3  Normalizat    1.2968        .15034E-01    .19264E-03   -.65318E-04
   4  Prefactor     .49846        .18340E-01    .36240E-03   -.22430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36567
  Normalizat = 1.29684
  Prefactor  = 0.498464
 **********
 **   18 **HESSE 
 **********

 FCN=   4638.757     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    252.65        .10284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3657        5.6445        .50000       -.55491    
   3  Normalizat    1.2968        .51830E-01    .38528E-04   -.83661    
   4  Prefactor     .49846        .63221E-01    .14496E-04   -1.1205    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.51055e-11
Minuit parameter uncertainties:
  1  2.46608e-07
  2  1262.15
  3  0.0518322
  4  0.0632301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794423': 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) = 4638.75669491
delta logL = 1.1223482943e-06

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  2.466e-07  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.366e+00  1.262e+03  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:  4.985e-01  6.323e-02  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.297e+00  5.183e-02  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/794423/cmap_HighResolution_239846401_240105601_4FGL_J1127.4+5648_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-03 21:23:20.377743', job_id='794423', GAL2='0.50', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630729400.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='1.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='2' AND source_name='4FGL J1127.4+5648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:23:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 794423: <4FGL_J1127.4+5648_daily_bin2> in cluster <slac> Done

Job <4FGL_J1127.4+5648_daily_bin2> 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) <bullet0143>, 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:23:21 2021
Results reported at Fri Sep  3 21:23:21 2021

Your job looked like:

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

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

