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


Performing analysis on: 4FGL_J1127.4+5648_daily_bin1774
RA = 171.865, Dec = 56.8032
tmin = 699148801, tmax = 699408001
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='680142', job_status='RUN', time_executed='2023-03-02 00:39:11.695886', time_epoch_executed='1677746351.7' WHERE source_name='4FGL J1127.4+5648' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680142

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680142/ft1_4FGL_J1127.4+5648_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680142/ft2_4FGL_J1127.4+5648_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680142/ft1_4FGL_J1127.4+5648_daily_bin1774.fits outfile=/scratch/kocevski/680142/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin1774.fits ra=171.865 dec=56.8032 rad=12.0 tmin=699148801.0 tmax=699408001.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 2.78
user 2.61
sys 0.16

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

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

Number of photons that the gtmktime cut: 234

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680142/ft1_filtered_4FGL_J1127.4+5648_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/680142/ft2_4FGL_J1127.4+5648_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/680142/ltcube_699148801_699408001_4FGL_J1127.4+5648_daily_bin1774.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/680142/ft2_4FGL_J1127.4+5648_daily_bin1774.fits
.....................!
real 12.34
user 12.02
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680142/ft1_filtered_4FGL_J1127.4+5648_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/680142/ft2_4FGL_J1127.4+5648_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/680142/ltcube_699148801_699408001_4FGL_J1127.4+5648_daily_bin1774.fits outfile=/scratch/kocevski/680142/expmap_699148801_699408001_4FGL_J1127.4+5648_daily_bin1774.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/680142/ltcube_699148801_699408001_4FGL_J1127.4+5648_daily_bin1774.fits
.....................!
real 197.27
user 192.79
sys 4.16

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/680142/ft1_filtered_4FGL_J1127.4+5648_daily_bin1774.fits scfile=/scratch/kocevski/680142/ft2_4FGL_J1127.4+5648_daily_bin1774.fits outfile=/scratch/kocevski/680142/cmap_699148801_699408001_4FGL_J1127.4+5648_daily_bin1774.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/680142/ft1_filtered_4FGL_J1127.4+5648_daily_bin1774.fits scfile=/scratch/kocevski/680142/ft2_4FGL_J1127.4+5648_daily_bin1774.fits outfile=/scratch/kocevski/680142/cmap_HighResolution_699148801_699408001_4FGL_J1127.4+5648_daily_bin1774.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    231.13       1.0000          .0000       .10000E+07
     2 'norm      '    .11135E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11162E-01   1.0000          .0000       .10000E+07
     4 'norm      '    8.5076       1.0000          .0000       .10000E+07
     5 'norm      '    .34774E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .24794E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .38815E-01   1.0000          .0000       .10000E+07
     8 'norm      '    5.2460       1.0000          .0000       .10000E+07
     9 'Prefactor '    69.787       1.0000          .0000       .10000E+07
    10 'Prefactor '    .14665E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .88428E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .25962E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    17.447       1.0000          .0000       .10000E+07
    14 'Prefactor '    127.19       1.0000          .0000       .10000E+07
    15 'Prefactor '    .48810E-02   1.0000          .0000       .10000E+07
    16 'norm      '    10.895       1.0000          .0000       .10000E+07
    17 'Prefactor '    .89608E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .29567E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .21495E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .35002E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    12.135       1.0000          .0000       .10000E+07
    22 'norm      '    11.561       1.0000          .0000       .10000E+07
    23 'Prefactor '    .58027E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .24560E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    4.9451       1.0000          .0000       .10000E+07
    26 'norm      '    1.5808       1.0000          .0000       .10000E+07
    27 'Normalizat'    .73302       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2024       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=   2685.010     FROM MIGRAD    STATUS=CONVERGED    213 CALLS     3600 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     231.27        5.8520        .10102E-07   -.88222E-01
   2  norm          .10281E-06    24.658       -.93819E-07** at limit **
   3  Prefactor     .17718E-05    84.714        .10485E-05** at limit **
   4  norm          8.5126        7.1251       -.12338E-06    .12042E-02
   5  norm           .0000        2.9241       -.14444E-06** at limit **
   6  Prefactor      .0000        95.084        .33475E-06** at limit **
   7  Prefactor     .29100E-05    85.534        .20819E-06** at limit **
   8  norm          5.2053        5.4693        .25510E-06   -.11198E-02
   9  Prefactor     68.276        45.080       -.34244E-07    .19565    
  10  Prefactor     .55761E-06    27.411       -.24957E-06** at limit **
  11  Prefactor     .76739E-03    679.02        .97653E-06** at limit **
  12  norm          .11047E-07    29.040       -.33669E-06** at limit **
  13  Prefactor     17.459        18.913        .49227E-07    .45988E-02
  14  Prefactor     127.41        9.0580       -.51435E-07    .92433E-01
  15  Prefactor     .27756E-09    9.6727       -.13990E-06** at limit **
  16  norm          10.762        17.808        .34982E-06   -.62537E-02
  17  Prefactor     .41284E-06    42.140        .94783E-07** at limit **
  18  norm           .0000        3.4635        .91273E-07** at limit **
  19  Prefactor     .12216E-04    32.540       -.43049E-06** at limit **
  20  Prefactor      .0000        5.9739        .58157E-07** at limit **
  21  Prefactor     12.636        20.322        .13119E-06    .63375E-01
  22  norm          11.612        5.4999        .15161E-06   -.55419E-03
  23  Prefactor     .41880E-05    50.601        .38198E-06** at limit **
  24  norm          .79381E-08    20.130       -.34081E-07** at limit **
  25  Prefactor     4.8985        6.5427       -.13275E-06    .95565E-03
  26  norm          1.5862        1.9537       -.40990E-07    .10861E-02
  27  Normalizat    .73263        .33234        .64820E-05    .36239E-04
  28  Prefactor     1.2020        .38955       -.15183E-04    .61686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 231.269
  norm       = 1.02807e-07
  Prefactor  = 1.7718e-06
  norm       = 8.51264
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.91001e-06
  norm       = 5.20531
  Prefactor  = 68.2758
  Prefactor  = 5.5761e-07
  Prefactor  = 0.000767388
  norm       = 1.10467e-08
  Prefactor  = 17.4595
  Prefactor  = 127.414
  Prefactor  = 2.77556e-10
  norm       = 10.7618
  Prefactor  = 4.12836e-07
  norm       = 0
  Prefactor  = 1.22159e-05
  Prefactor  = 0
  Prefactor  = 12.636
  norm       = 11.6116
  Prefactor  = 4.18804e-06
  norm       = 7.93809e-09
  Prefactor  = 4.89846
  norm       = 1.58615
  Normalizat = 0.732633
  Prefactor  = 1.20196
 **********
 **   18 **HESSE 
 **********

 FCN=   2685.010     FROM HESSE     STATUS=OK           567 CALLS     4167 TOTAL
                     EDM=   .27E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     231.27        434.95        .65784E-04   -1.5404    
   2  norm          .10281E-06    24.912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .17718E-05    94.091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.5126        7.2252        .34344E-03   -1.5650    
   5  norm           .0000        2.9219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        95.069        .16740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .29100E-05    405.05        .16018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.2053        5.5007        .43862E-03   -1.5662    
   9  Prefactor     68.276        174.39        .11971E-03   -1.5543    
  10  Prefactor     .55761E-06    80.209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .76739E-03    725.15        .42118E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .11047E-07    78.289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.459        19.627        .23951E-03   -1.5624    
  14  Prefactor     127.41        64.136        .88677E-04   -1.5482    
  15  Prefactor     .27756E-09    9.6784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.762        17.849        .30328E-03   -1.5642    
  17  Prefactor     .41284E-06    41.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        3.4647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12216E-04    67.900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        5.9897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.636        23.340        .28731E-03   -1.5637    
  22  norm          11.612        5.4824        .29439E-03   -1.5640    
  23  Prefactor     .41880E-05    54.115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .79381E-08    20.012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.8985        6.5841        .45203E-03   -1.5664    
  26  norm          1.5862        1.9729        .84438E-03   -1.5683    
  27  Normalizat    .73263        .27702        .63871E-01   -1.0262    
  28  Prefactor     1.2020        .32127        .62295E-01   -.86271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6619e-05
Minuit parameter uncertainties:
  1  435.014
  2  0.00320069
  3  0.0258237
  4  7.22519
  5  5.44395e-06
  6  6.89218e-05
  7  0.0686692
  8  5.50066
  9  174.406
  10  0.0133755
  11  1.49212
  12  0.00186019
  13  19.627
  14  64.1366
  15  0.000100701
  16  17.8495
  17  0.0082905
  18  1.84981e-05
  19  0.0576014
  20  3.22125e-06
  21  23.34
  22  5.48243
  23  0.0301092
  24  0.000797394
  25  6.58414
  26  1.97295
  27  0.277553
  28  0.321798
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.746e+01  1.963e+01  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.202e+00  3.218e-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.326e-01  2.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 171.865 56.803
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 9.15e-08 +/- 1.03e-07
Energy Flux (Fixed Index): 2.17e-05 +/- 2.44e-05

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

Saving results to:
/scratch/kocevski/680142/likelihoodResults_699148801_699408001_4FGL_J1127.4+5648_daily_bin1774.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) = 2684.25900978
delta logL = 0.75120445152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2684.23772288
delta logL = 0.77249134787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6098       1.0000          .0000       .10000E+07
     2 'Index     '    4.1126       1.0000          .0000       10.000    
     3 'Normalizat'    .65009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2735       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.

 FCN=   2684.238     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      274 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5992        122.23        .39009E-03   -.39197E-02
   2  Index         4.1137        7.0037        .12042       -.31028E-04
   3  Normalizat    .65035        .10694        .67225E-01   -.32271E-03
   4  Prefactor     1.2732        .13055        .60746E-01   -.27318E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.59923
  Index      = 4.11371
  Normalizat = 0.650347
  Prefactor  = 1.27324
 **********
 **   18 **HESSE 
 **********

 FCN=   2684.238     FROM HESSE     STATUS=OK            29 CALLS      303 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5992        18.270        .91262E-05   -1.5657    
   2  Index         4.1137        1.9781        .48927E-02   -.17820    
   3  Normalizat    .65035        .32454        .29749E-03   -1.0589    
   4  Prefactor     1.2732        .39008        .26863E-03   -.84106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30633e-10
Minuit parameter uncertainties:
  1  18.2703
  2  2.03561
  3  0.325495
  4  0.390976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680142': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2684.2377222
delta logL = 0.772492026271

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  6.599e+00  1.827e+01  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  4.114e+00  2.036e+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.273e+00  3.910e-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:  6.503e-01  3.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 171.865 56.803
Photon Index (Free Index): 4.11 +/- 2.04
Photon Flux (Free Index): 1.93e-07 +/- 1.43e-07
Energy Flux (Free Index): 2.84e-05 +/- 2.23e-05

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/680142/cmap_HighResolution_699148801_699408001_4FGL_J1127.4+5648_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-02', comment='SUCCESS', photon_flux='9.15e-08', energy_flux2='2.84e-05', photon_flux_error='1.03e-07', dlogl='7.72e-01', energy_flux='2.17e-05', photon_flux2='1.93e-07', job_status='DONE', time_completed='2023-03-02 00:49:04.967984', photon_index_error2='2.04', photon_index2='4.11', ts='1.22', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='3.11e-07', energy_flux_error2='2.23e-05', EG='0.73', time_epoch_completed='1677746944.97', return_code='0', job_id='680142', GAL2='1.27', EG2='0.65', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='1.43e-07', ts2='2.96', photon_index='2.72' WHERE bin_id='1774' AND source_name='4FGL J1127.4+5648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:49:04 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 680142: <4FGL_J1127.4+5648_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1127.4+5648_daily_bin1774> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Mar  2 00:35:22 2023
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:35:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:35:23 2023
Terminated at Thu Mar  2 00:49:05 2023
Results reported at Thu Mar  2 00:49:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_daily_bin1774 171.865 56.8032 699148801 699408001 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 :                                   595.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             224.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

