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


Performing analysis on: 4FGL_J1127.4+5648_daily_bin1772
RA = 171.865, Dec = 56.8032
tmin = 698630401, tmax = 698889601
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='629711', job_status='RUN', time_executed='2023-02-24 01:26:17.266076', time_epoch_executed='1677230777.27' WHERE source_name='4FGL J1127.4+5648' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/629711

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/629711/ft1_4FGL_J1127.4+5648_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/629711/ft2_4FGL_J1127.4+5648_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/629711/ft1_4FGL_J1127.4+5648_daily_bin1772.fits outfile=/scratch/kocevski/629711/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin1772.fits ra=171.865 dec=56.8032 rad=12.0 tmin=698630401.0 tmax=698889601.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 3.04
user 2.79
sys 0.18

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

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

Number of photons that the gtmktime cut: 163

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/629711/ft1_filtered_4FGL_J1127.4+5648_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/629711/ft2_4FGL_J1127.4+5648_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/629711/ltcube_698630401_698889601_4FGL_J1127.4+5648_daily_bin1772.fits outfile=/scratch/kocevski/629711/expmap_698630401_698889601_4FGL_J1127.4+5648_daily_bin1772.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/629711/ltcube_698630401_698889601_4FGL_J1127.4+5648_daily_bin1772.fits
.....................!
real 190.21
user 184.83
sys 5.05

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/629711/ft1_filtered_4FGL_J1127.4+5648_daily_bin1772.fits scfile=/scratch/kocevski/629711/ft2_4FGL_J1127.4+5648_daily_bin1772.fits outfile=/scratch/kocevski/629711/cmap_698630401_698889601_4FGL_J1127.4+5648_daily_bin1772.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.53
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43901       1.0000          .0000       .10000E+07
     2 'norm      '    .29824E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .37051E-01   1.0000          .0000       .10000E+07
     4 'norm      '    6.3379       1.0000          .0000       .10000E+07
     5 'norm      '    .96229E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .18689       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     8 'norm      '    60132.       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.2368       1.0000          .0000       .10000E+07
    10 'Prefactor '    .89333       1.0000          .0000       .10000E+07
    11 'Prefactor '    .94415       1.0000          .0000       .10000E+07
    12 'norm      '    .83757       1.0000          .0000       .10000E+07
    13 'Prefactor '    .18629E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .46985E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.4650       1.0000          .0000       .10000E+07
    16 'norm      '    .11138E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .22906E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .39677E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    53.403       1.0000          .0000       .10000E+07
    20 'Prefactor '    .37067E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23772E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .26485       1.0000          .0000       .10000E+07
    23 'Prefactor '    .11896E-04   1.0000          .0000       .10000E+07
    24 'norm      '    .22753E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    9.1220       1.0000          .0000       .10000E+07
    26 'norm      '    4.8103       1.0000          .0000       .10000E+07
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .22730       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=   1644.821     FROM MIGRAD    STATUS=CONVERGED    219 CALLS     3146 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10210E-03    15.008       -.12552E-05** at limit **
   2  norm          .16653E-08    12.889        .36975E-05** at limit **
   3  Prefactor     .16653E-09    38.129        .11486E-05** at limit **
   4  norm          6.3444        8.1667       -.30806E-07   -.38244E-04
   5  norm          .66613E-09    24.012       -.37944E-06** at limit **
   6  Prefactor     .55511E-10    63.216       -.92171E-06** at limit **
   7  Prefactor     .10000E+07    25.006        .27773E-05** at limit **
   8  norm          60132.        2.2521        .24036E-08   -.19416    
   9  Prefactor     .79331        130.07       -.64872E-05    .80049E-02
  10  Prefactor     .14716E-02    1308.4       -.19361E-04** at limit **
  11  Prefactor     .56418        127.54       -.64285E-05    .43260E-01
  12  norm          .25473E-04    676.61        .68922E-05** at limit **
  13  Prefactor     .13323E-08    24.947        .31768E-06** at limit **
  14  Prefactor     .28917E-05    26.740       -.91878E-06** at limit **
  15  Prefactor     2.4696        14.386       -.33383E-06   -.60334E-04
  16  norm          .55511E-10    6.5302       -.49649E-06** at limit **
  17  Prefactor      .0000        3.5797       -.16437E-06** at limit **
  18  norm          .55511E-10    1.4661       -.71252E-06** at limit **
  19  Prefactor     53.591        68.448       -.17665E-07    .12999E-01
  20  Prefactor      .0000        2.4810        .29749E-06** at limit **
  21  Prefactor     .55511E-10    7.4548        .50146E-06** at limit **
  22  norm          .26396        4.6574        .19086E-05   -.33188E-02
  23  Prefactor     .55511E-10    3.7059       -.70651E-06** at limit **
  24  norm          .33307E-09    6.2678       -.16411E-05** at limit **
  25  Prefactor     9.1237        6.4541       -.12568E-06    .78030E-03
  26  norm          4.8148        2.7461       -.27322E-06    .35739E-02
  27  Normalizat    .10000E-01    .19560E-01    .10135E-04** at limit **
  28  Prefactor     .22710        .11433        .18444E-04   -.12139E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102096
  norm       = 1.66533e-09
  Prefactor  = 1.66533e-10
  norm       = 6.3444
  norm       = 6.66134e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 1e+06
  norm       = 60132.4
  Prefactor  = 0.793306
  Prefactor  = 0.00147165
  Prefactor  = 0.564175
  norm       = 2.54732e-05
  Prefactor  = 1.33227e-09
  Prefactor  = 2.89174e-06
  Prefactor  = 2.46963
  norm       = 5.55112e-11
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 53.5908
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 0.263958
  Prefactor  = 5.55112e-11
  norm       = 3.33067e-10
  Prefactor  = 9.12367
  norm       = 4.81481
  Normalizat = 0.01
  Prefactor  = 0.2271
 **********
 **   18 **HESSE 
 **********

 FCN=   1644.821     FROM HESSE     STATUS=OK           565 CALLS     3711 TOTAL
                     EDM=   .11E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10210E-03    121.43        .85099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .16653E-08    12.890        .16460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16653E-09    38.102        .16099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.3444        8.1681        .39847E-03   -1.5658    
   5  norm          .66613E-09    24.012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    63.168        .12014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E+07    31850.        .16939E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          60132.        7001.8        .51275E-05   -1.0753    
   9  Prefactor     .79331        54609.        .10089E-02   -1.5690    
  10  Prefactor     .14716E-02    1339.3        .46223E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .56418        8656.3        .42754E-03   -1.5693    
  12  norm          .25473E-04    678.55        .50176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .13323E-08    24.947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .28917E-05    29.707        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4696        14.452        .65108E-03   -1.5677    
  16  norm          .55511E-10    6.5327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        3.5802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .55511E-10    1.4677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.591        69.019        .13685E-03   -1.5562    
  20  Prefactor      .0000        2.4819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-10    7.4530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .26396        2.9357        .26698E-02   -1.5698    
  23  Prefactor     .55511E-10    3.7053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .33307E-09    6.2649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.1237        6.4548        .33160E-03   -1.5648    
  26  norm          4.8148        2.7408        .45846E-03   -1.5664    
  27  Normalizat    .10000E-01    .19504E-01    .79266E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .22710        .11571        .61217E-01   -1.2682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000114622
Minuit parameter uncertainties:
  1  0.222696
  2  0.000293328
  3  0.000157975
  4  8.16808
  5  0.000254496
  6  0.000134559
  7  12.8685
  8  7002.81
  9  420.163
  10  2.80851
  11  139.969
  12  0.262972
  13  0.000361649
  14  0.018537
  15  11.9485
  16  2.70783e-05
  17  6.62127e-06
  18  1.89976e-05
  19  69.0205
  20  1.04415e-05
  21  2.93749e-05
  22  1.76058
  23  2.98754e-05
  24  8.96016e-05
  25  6.45479
  26  2.74083
  27  9.79804e-08
  28  0.115822
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.332e-09  3.616e-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:  2.271e-01  1.158e-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.000e-02  9.798e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.865 56.803
Photon Flux Upper Limit: 7.80e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/629711/likelihoodResults_698630401_698889601_4FGL_J1127.4+5648_daily_bin1772.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) = 1644.83973636
delta logL = -0.0190962557481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1644.82064018
delta logL = -7.91876573203e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21551E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.0810       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .22711       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=   1644.821     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      218 TOTAL
                     EDM=   .28E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        21.979        .42118E-03** at limit **
   2  Index         2.8959        1.6974       -.11854E-03     .0000    
   3  Normalizat    .10000E-01    .25505       -.97716E-05** at limit **
   4  Prefactor     .22710        .52051        .56596E-05   -.13188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.8959
  Normalizat = 0.01
  Prefactor  = 0.227101
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1644.821     FROM HESSE     STATUS=FAILED         9 CALLS      227 TOTAL
                     EDM=   .28E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        21.979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .94942        2.0994       -.11854E-03   -.43435    
   3  Normalizat    .10000E-01    .25505       -.97716E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22710        .52051        .56596E-05   -1.2682    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.82972e-12
Minuit parameter uncertainties:
  1  3.97113e-05
  2  1.73971
  3  2.41532e-07
  4  0.531726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/629711': 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) = 1644.8206401
delta logL = 6.07087713433e-11

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  0.000e+00  3.971e-05  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.896e+00  1.740e+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:  2.271e-01  5.317e-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.000e-02  2.415e-07  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/629711/cmap_HighResolution_698630401_698889601_4FGL_J1127.4+5648_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-02', job_status='DONE', photon_flux_upper_limit='7.80e-07', time_completed='2023-02-24 01:34:28.318720', job_id='629711', GAL2='0.23', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677231268.32', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.23', dlogl='6.07e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1772' AND source_name='4FGL J1127.4+5648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:34:28 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 629711: <4FGL_J1127.4+5648_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1127.4+5648_daily_bin1772> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Feb 24 01:25:18 2023
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:25:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:25:19 2023
Terminated at Fri Feb 24 01:34:29 2023
Results reported at Fri Feb 24 01:34:29 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_daily_bin1772 171.865 56.8032 698630401 698889601 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 :                                   492.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            551 sec.

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

