aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 59 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7474
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1127.4+5648_daily_bin1744
RA = 171.865, Dec = 56.8032
tmin = 691372801, tmax = 691632001
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='576613', job_status='RUN', time_executed='2022-12-02 00:46:33.712381', time_epoch_executed='1669970793.71' WHERE source_name='4FGL J1127.4+5648' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576613

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576613/ft1_4FGL_J1127.4+5648_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576613/ft2_4FGL_J1127.4+5648_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576613/ft1_4FGL_J1127.4+5648_daily_bin1744.fits outfile=/scratch/kocevski/576613/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin1744.fits ra=171.865 dec=56.8032 rad=12.0 tmin=691372801.0 tmax=691632001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.05
user 2.33
sys 0.19

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

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

Number of photons that the gtmktime cut: 707

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/576613/ft1_filtered_4FGL_J1127.4+5648_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/576613/ft2_4FGL_J1127.4+5648_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/576613/ltcube_691372801_691632001_4FGL_J1127.4+5648_daily_bin1744.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/576613/ft2_4FGL_J1127.4+5648_daily_bin1744.fits
.....................!
real 13.13
user 12.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576613/ft1_filtered_4FGL_J1127.4+5648_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/576613/ft2_4FGL_J1127.4+5648_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/576613/ltcube_691372801_691632001_4FGL_J1127.4+5648_daily_bin1744.fits outfile=/scratch/kocevski/576613/expmap_691372801_691632001_4FGL_J1127.4+5648_daily_bin1744.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/576613/ltcube_691372801_691632001_4FGL_J1127.4+5648_daily_bin1744.fits
.....................!
real 192.46
user 187.11
sys 4.95

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/576613/ft1_filtered_4FGL_J1127.4+5648_daily_bin1744.fits scfile=/scratch/kocevski/576613/ft2_4FGL_J1127.4+5648_daily_bin1744.fits outfile=/scratch/kocevski/576613/cmap_691372801_691632001_4FGL_J1127.4+5648_daily_bin1744.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576613/ft1_filtered_4FGL_J1127.4+5648_daily_bin1744.fits scfile=/scratch/kocevski/576613/ft2_4FGL_J1127.4+5648_daily_bin1744.fits outfile=/scratch/kocevski/576613/cmap_HighResolution_691372801_691632001_4FGL_J1127.4+5648_daily_bin1744.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/576613/ft1_filtered_4FGL_J1127.4+5648_daily_bin1744.fits', '/scratch/kocevski/576613/ft2_4FGL_J1127.4+5648_daily_bin1744.fits', expMap='/scratch/kocevski/576613/expmap_691372801_691632001_4FGL_J1127.4+5648_daily_bin1744.fits', expCube='/scratch/kocevski/576613/ltcube_691372801_691632001_4FGL_J1127.4+5648_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/576613/Model_4FGL_J1127.4+5648_daily_bin1744.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  0.000e+00  1.000e+06 ( 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/576613/ft1_filtered_4FGL_J1127.4+5648_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/576613/ft2_4FGL_J1127.4+5648_daily_bin1744.fits
Exposure map: /scratch/kocevski/576613/expmap_691372801_691632001_4FGL_J1127.4+5648_daily_bin1744.fits
Exposure cube: /scratch/kocevski/576613/ltcube_691372801_691632001_4FGL_J1127.4+5648_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/576613/Model_4FGL_J1127.4+5648_daily_bin1744.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) = 7819.92899609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.308       1.0000          .0000       .10000E+07
     2 'norm      '    12.611       1.0000          .0000       .10000E+07
     3 'Prefactor '    18.005       1.0000          .0000       .10000E+07
     4 'norm      '    5.9766       1.0000          .0000       .10000E+07
     5 'norm      '    1.0922       1.0000          .0000       .10000E+07
     6 'Prefactor '    .34952       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11557       1.0000          .0000       .10000E+07
     8 'norm      '    2.3632       1.0000          .0000       .10000E+07
     9 'Prefactor '    22.954       1.0000          .0000       .10000E+07
    10 'Prefactor '    .51479       1.0000          .0000       .10000E+07
    11 'Prefactor '    .43921E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .16957E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .73083E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    31.541       1.0000          .0000       .10000E+07
    15 'Prefactor '    28.946       1.0000          .0000       .10000E+07
    16 'norm      '    .13584E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .20151E-07   1.0000          .0000       .10000E+07
    18 'norm      '    .96541E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    27.761       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.9674       1.0000          .0000       .10000E+07
    21 'Prefactor '    .45591E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .64453       1.0000          .0000       .10000E+07
    23 'Prefactor '    .10147E-06   1.0000          .0000       .10000E+07
    24 'norm      '    .26440E-06   1.0000          .0000       .10000E+07
    25 'Prefactor '    .18271E-02   1.0000          .0000       .10000E+07
    26 'norm      '    4.4380       1.0000          .0000       .10000E+07
    27 'Normalizat'    .76123       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0184       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7819.906     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     1997 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.165        3.5664       -.24208E-07    .54370E-01
   2  norm          12.624        1.3940        .28559E-08    .63018E-04
   3  Prefactor     17.984        1.3834       -.11599E-07    .12040E-01
   4  norm          5.9828        2.4958       -.64516E-07   -.11634E-01
   5  norm          1.0923        .80585        .21158E-07    .58213E-02
   6  Prefactor     .66080E-05    53.309        .43327E-06** at limit **
   7  Prefactor     .30975E-07    37.169        .65307E-06** at limit **
   8  norm          2.3779        1.6875        .42621E-07    .57368E-02
   9  Prefactor     24.205        32.831       -.23774E-06    .57022E-01
  10  Prefactor     .81443E-01    95.469        .58473E-06** at limit **
  11  Prefactor     .31086E-08    19.076       -.10481E-06** at limit **
  12  norm           .0000        13.964       -.32472E-07** at limit **
  13  Prefactor     .12768E-08    3.2930        .10442E-06** at limit **
  14  Prefactor     31.529        2.5835       -.13992E-07   -.52435E-02
  15  Prefactor     28.897        2.1702       -.99363E-09    .52709E-01
  16  norm          .26090E-08    4.3435       -.40239E-07** at limit **
  17  Prefactor      .0000        1.0639       -.62612E-07** at limit **
  18  norm          .38858E-09    3.9399       -.90444E-07** at limit **
  19  Prefactor     27.917        8.6296       -.13848E-07   -.19182    
  20  Prefactor     3.9789        4.6612        .68548E-07    .23049E-02
  21  Prefactor     .14272E-06    45.233        .51182E-06** at limit **
  22  norm          .64536        1.0226       -.47361E-07   -.43122E-02
  23  Prefactor     .14544E-07    7.6513       -.64036E-07** at limit **
  24  norm          .75773E-07    5.8521       -.16931E-06** at limit **
  25  Prefactor     .34139E-07    5.7358       -.10997E-06** at limit **
  26  norm          4.4389        1.9014        .41367E-08    .60150E-03
  27  Normalizat    .76124        .14845       -.11480E-05    .35234E-04
  28  Prefactor     1.0182        .19322        .21133E-05    .11242E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1651
  norm       = 12.6237
  Prefactor  = 17.9835
  norm       = 5.98282
  norm       = 1.09228
  Prefactor  = 6.60799e-06
  Prefactor  = 3.09752e-08
  norm       = 2.37787
  Prefactor  = 24.2049
  Prefactor  = 0.0814432
  Prefactor  = 3.10862e-09
  norm       = 0
  Prefactor  = 1.27676e-09
  Prefactor  = 31.5287
  Prefactor  = 28.8966
  norm       = 2.60902e-09
  Prefactor  = 0
  norm       = 3.88578e-10
  Prefactor  = 27.917
  Prefactor  = 3.97894
  Prefactor  = 1.42719e-07
  norm       = 0.645357
  Prefactor  = 1.45439e-08
  norm       = 7.57727e-08
  Prefactor  = 3.41394e-08
  norm       = 4.43891
  Normalizat = 0.76124
  Prefactor  = 1.0182
 **********
 **   18 **HESSE 
 **********

 FCN=   7819.906     FROM HESSE     STATUS=OK           583 CALLS     2580 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.165        22.951        .25573E-03   -1.5630    
   2  norm          12.624        11.642        .28182E-03   -1.5637    
   3  Prefactor     17.984        20.737        .23576E-03   -1.5623    
   4  norm          5.9828        3.4158        .41050E-03   -1.5659    
   5  norm          1.0923        .79354        .11429E-02   -1.5687    
   6  Prefactor     .66080E-05    69.023        .95585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .30975E-07    37.154        .13529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3779        1.7453        .66634E-03   -1.5677    
   9  Prefactor     24.205        38.518        .20877E-03   -1.5610    
  10  Prefactor     .81443E-01    11.125        .96355E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .31086E-08    19.257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        13.980        .17246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12768E-08    3.2857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.529        24.565        .17808E-03   -1.5596    
  15  Prefactor     28.897        16.031        .18590E-03   -1.5600    
  16  norm          .26090E-08    4.3549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        1.0641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .38858E-09    3.9139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.917        15.942        .18983E-03   -1.5602    
  20  Prefactor     3.9789        4.6878        .50616E-03   -1.5668    
  21  Prefactor     .14272E-06    45.392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .64536        1.0412        .65330E-03   -1.5692    
  23  Prefactor     .14544E-07    7.6868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .75773E-07    5.8211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .34139E-07    5.7701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.4389        1.9069        .47777E-03   -1.5666    
  27  Normalizat    .76124        .13213        .43102E-01   -1.0152    
  28  Prefactor     1.0182        .16710        .42301E-01   -.92125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97107e-07
Minuit parameter uncertainties:
  1  22.9513
  2  11.6417
  3  20.7369
  4  3.41582
  5  0.793539
  6  0.0427137
  7  0.00214514
  8  1.74529
  9  38.5182
  10  1.90378
  11  0.000490184
  12  1.53749e-05
  13  0.00013081
  14  24.5654
  15  16.0305
  16  0.00021357
  17  3.37986e-06
  18  7.53624e-05
  19  15.9424
  20  4.68777
  21  0.00509098
  22  1.04121
  23  0.000669324
  24  0.00132806
  25  0.000887343
  26  1.90695
  27  0.132185
  28  0.167185
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.277e-09  1.308e-04  0.000e+00  1.000e+06 ( 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:  1.018e+00  1.672e-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:  7.612e-01  1.322e-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: 4.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/576613/likelihoodResults_691372801_691632001_4FGL_J1127.4+5648_daily_bin1744.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7819.90803153
delta logL = -0.00166996712505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7819.90636158
delta logL = -1.85518729268e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69389E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.6470       1.0000          .0000       10.000    
     3 'Normalizat'    .76126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0182       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7819.906     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      241 TOTAL
                     EDM=   .82E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.9171        .42118E-03** at limit **
   2  Index         3.5692        1.3388        .18459E-04     .0000    
   3  Normalizat    .76124        1.1007       -.17369E-05    .93339E-05
   4  Prefactor     1.0182        1.2422        .20524E-05   -.49709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.56921
  Normalizat = 0.761241
  Prefactor  = 1.0182
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7819.906     FROM HESSE     STATUS=FAILED         9 CALLS      250 TOTAL
                     EDM=   .82E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.9171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4125        2.2137        .18459E-04   -.29021    
   3  Normalizat    .76124        1.1007       -.17369E-05   -1.0152    
   4  Prefactor     1.0182        1.2422        .20524E-05   -.92125    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.15246e-12
Minuit parameter uncertainties:
  1  4.24657e-06
  2  1.35692
  3  1.13553
  4  1.28005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576613': 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): 101
logL (Free Index) = 7819.90636156
delta logL = 2.01907823794e-10

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  0.000e+00  4.247e-06  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  3.569e+00  1.357e+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:  1.018e+00  1.280e+00  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:  7.612e-01  1.136e+00  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/576613/cmap_HighResolution_691372801_691632001_4FGL_J1127.4+5648_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2022-12-02 01:00:30.631993', job_id='576613', GAL2='1.02', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1669971630.63', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.02e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1744' AND source_name='4FGL J1127.4+5648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 01:00:30 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 576613: <4FGL_J1127.4+5648_daily_bin1744> in cluster <slac> Done

Job <4FGL_J1127.4+5648_daily_bin1744> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec  2 00:45:25 2022
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:45:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:45:26 2022
Terminated at Fri Dec  2 01:00:31 2022
Results reported at Fri Dec  2 01:00:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_daily_bin1744 171.865 56.8032 691372801 691632001 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 :                                   837.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

