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 239 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_J1128.0+5924_daily_bin1774
RA = 172.003, Dec = 59.4015
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='681309', job_status='RUN', time_executed='2023-03-02 00:44:19.871538', time_epoch_executed='1677746659.87' WHERE source_name='4FGL J1128.0+5924' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681309

Creating custom pfile directory:
/scratch/kocevski/681309/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/681309/ft1_4FGL_J1128.0+5924_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/681309/ft2_4FGL_J1128.0+5924_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681309/ft1_4FGL_J1128.0+5924_daily_bin1774.fits outfile=/scratch/kocevski/681309/ft1_filteredMKT_4FGL_J1128.0+5924_daily_bin1774.fits ra=172.003 dec=59.4015 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.80
user 2.61
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/681309/ft2_4FGL_J1128.0+5924_daily_bin1774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681309/ft2_4FGL_J1128.0+5924_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/681309/ft1_filteredMKT_4FGL_J1128.0+5924_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/681309/ft1_filtered_4FGL_J1128.0+5924_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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 285

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681309/ft1_filtered_4FGL_J1128.0+5924_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/681309/ft2_4FGL_J1128.0+5924_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/681309/ltcube_699148801_699408001_4FGL_J1128.0+5924_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/681309/ft2_4FGL_J1128.0+5924_daily_bin1774.fits
.....................!
real 13.36
user 13.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681309/ft1_filtered_4FGL_J1128.0+5924_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681309/ft2_4FGL_J1128.0+5924_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/681309/ltcube_699148801_699408001_4FGL_J1128.0+5924_daily_bin1774.fits outfile=/scratch/kocevski/681309/expmap_699148801_699408001_4FGL_J1128.0+5924_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/681309/ltcube_699148801_699408001_4FGL_J1128.0+5924_daily_bin1774.fits
.....................!
real 191.04
user 186.13
sys 4.58

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 236 point sources and 0 extended sources

Setting source of interest to:
4FGL J1128.0+5924 @ 172.003 59.4015

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/681309/ft1_filtered_4FGL_J1128.0+5924_daily_bin1774.fits scfile=/scratch/kocevski/681309/ft2_4FGL_J1128.0+5924_daily_bin1774.fits outfile=/scratch/kocevski/681309/cmap_699148801_699408001_4FGL_J1128.0+5924_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=172.003 yref=59.4015 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681309/ft1_filtered_4FGL_J1128.0+5924_daily_bin1774.fits scfile=/scratch/kocevski/681309/ft2_4FGL_J1128.0+5924_daily_bin1774.fits outfile=/scratch/kocevski/681309/cmap_HighResolution_699148801_699408001_4FGL_J1128.0+5924_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=172.003 yref=59.4015 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/681309/ft1_filtered_4FGL_J1128.0+5924_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681309/ft2_4FGL_J1128.0+5924_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681309/Model_4FGL_J1128.0+5924_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/681309/ft1_filtered_4FGL_J1128.0+5924_daily_bin1774.fits.....................!
real 40.48
user 39.25
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/681309/ft1_filtered_4FGL_J1128.0+5924_daily_bin1774.fits', '/scratch/kocevski/681309/ft2_4FGL_J1128.0+5924_daily_bin1774.fits', expMap='/scratch/kocevski/681309/expmap_699148801_699408001_4FGL_J1128.0+5924_daily_bin1774.fits', expCube='/scratch/kocevski/681309/ltcube_699148801_699408001_4FGL_J1128.0+5924_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/681309/Model_4FGL_J1128.0+5924_daily_bin1774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1128.0+5924'

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  9.727e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
394        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
395        Scale:  8.136e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/681309/ft1_filtered_4FGL_J1128.0+5924_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/681309/ft2_4FGL_J1128.0+5924_daily_bin1774.fits
Exposure map: /scratch/kocevski/681309/expmap_699148801_699408001_4FGL_J1128.0+5924_daily_bin1774.fits
Exposure cube: /scratch/kocevski/681309/ltcube_699148801_699408001_4FGL_J1128.0+5924_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/681309/Model_4FGL_J1128.0+5924_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) = 3233.87339847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4371       1.0000          .0000       .10000E+07
     2 'Prefactor '    328.85       1.0000          .0000       .10000E+07
     3 'norm      '    .28097E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .44382       1.0000          .0000       .10000E+07
     5 'norm      '    9.2201       1.0000          .0000       .10000E+07
     6 'norm      '    .11956E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    64.433       1.0000          .0000       .10000E+07
     8 'norm      '    .24643E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .80524       1.0000          .0000       .10000E+07
    10 'norm      '    5.3644       1.0000          .0000       .10000E+07
    11 'Prefactor '    65.792       1.0000          .0000       .10000E+07
    12 'Prefactor '    .40947       1.0000          .0000       .10000E+07
    13 'Prefactor '    .81665       1.0000          .0000       .10000E+07
    14 'norm      '    .34759       1.0000          .0000       .10000E+07
    15 'Prefactor '    18.801       1.0000          .0000       .10000E+07
    16 'Prefactor '    133.07       1.0000          .0000       .10000E+07
    17 'Prefactor '    .75323E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .54005       1.0000          .0000       .10000E+07
    19 'norm      '    12.032       1.0000          .0000       .10000E+07
    20 'Prefactor '    .10783E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .29494E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    49.365       1.0000          .0000       .10000E+07
    23 'Prefactor '    .51243E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    15.398       1.0000          .0000       .10000E+07
    25 'norm      '    11.791       1.0000          .0000       .10000E+07
    26 'Prefactor '    1.9201       1.0000          .0000       .10000E+07
    27 'Prefactor '    4.7642       1.0000          .0000       .10000E+07
    28 'norm      '    1.4517       1.0000          .0000       .10000E+07
    29 'Prefactor '    46.657       1.0000          .0000       .10000E+07
    30 'Normalizat'    .68796       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3233.858     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     4323 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4380        1.7179       -.39158E-07    .18668E-04
   2  Prefactor     328.94        6.8937        .16022E-06   -.10422    
   3  norm          .29976E-08    34.299        .11296E-05** at limit **
   4  Prefactor     .31819E-06    99.593        .10621E-05** at limit **
   5  norm          9.2587        7.3225        .12452E-05    .32021E-03
   6  norm           .0000        2.8744       -.51716E-06** at limit **
   7  Prefactor     64.443        1.3848        .60875E-07   -.10103E-01
   8  norm           .0000        2.6865        .77905E-07** at limit **
   9  Prefactor     .12158E-03    213.62        .10486E-05** at limit **
  10  norm          5.4028        5.5126       -.15912E-06   -.27938E-03
  11  Prefactor     66.128        23.950        .11925E-05   -.13532    
  12  Prefactor     .26312E-06    86.040       -.86920E-05** at limit **
  13  Prefactor     .22059E-04    269.11       -.59694E-05** at limit **
  14  norm          .60224E-06    75.561        .96290E-05** at limit **
  15  Prefactor     18.803        4.9119        .57688E-07    .21456E-02
  16  Prefactor     133.94        46.200       -.10400E-05   -.59105E-01
  17  Prefactor     .65503E-08    16.082       -.16769E-06** at limit **
  18  Prefactor     .58119        7.8957       -.18484E-05    .10198E-03
  19  norm          12.063        2.1553        .24371E-07    .70208E-04
  20  Prefactor     .20983E-07    15.394       -.19011E-05** at limit **
  21  norm           .0000        3.7956        .13007E-06** at limit **
  22  Prefactor     49.537        12.410        .61126E-06   -.31840E-01
  23  Prefactor      .0000        6.4924        .11299E-05** at limit **
  24  Prefactor     15.266        1.8425       -.86376E-07    .23688E-03
  25  norm          11.792        5.3938       -.42601E-06    .11578E-02
  26  Prefactor     1.8246        5.5532       -.13159E-05   -.24463E-02
  27  Prefactor     4.7463        6.2563       -.20894E-06   -.31682E-03
  28  norm          1.4534        1.8120        .21928E-06    .56953E-04
  29  Prefactor     46.485        34.882        .12339E-05    .75883E-01
  30  Normalizat    .68770        .29460        .12448E-06   -.25573E-04
  31  Prefactor     1.1402        .34440       -.64460E-05   -.46621E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.43799
  Prefactor  = 328.937
  norm       = 2.9976e-09
  Prefactor  = 3.1819e-07
  norm       = 9.25872
  norm       = 0
  Prefactor  = 64.4431
  norm       = 0
  Prefactor  = 0.000121577
  norm       = 5.40278
  Prefactor  = 66.1277
  Prefactor  = 2.63123e-07
  Prefactor  = 2.2059e-05
  norm       = 6.0224e-07
  Prefactor  = 18.8027
  Prefactor  = 133.94
  Prefactor  = 6.55032e-09
  Prefactor  = 0.581186
  norm       = 12.0629
  Prefactor  = 2.09832e-08
  norm       = 0
  Prefactor  = 49.5366
  Prefactor  = 0
  Prefactor  = 15.2658
  norm       = 11.7925
  Prefactor  = 1.82458
  Prefactor  = 4.74626
  norm       = 1.45341
  Prefactor  = 46.4849
  Normalizat = 0.687702
  Prefactor  = 1.14017
 **********
 **   18 **HESSE 
 **********

 FCN=   3233.858     FROM HESSE     STATUS=OK           684 CALLS     5007 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4380        1.7238        .65516E-03   -1.5677    
   2  Prefactor     328.94        504.87        .55154E-04   -1.5345    
   3  norm          .29976E-08    34.370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .31819E-06    99.534        .84576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.2587        7.4794        .32982E-03   -1.5647    
   6  norm           .0000        2.8783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     64.443        152.33        .12459E-03   -1.5547    
   8  norm           .0000        2.6544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12158E-03    417.55        .52545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.4028        5.5753        .43366E-03   -1.5661    
  11  Prefactor     66.128        170.47        .12329E-03   -1.5545    
  12  Prefactor     .26312E-06    91.797        .88398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .22059E-04    454.83        .51702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .60224E-06    75.965        .95829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.803        20.000        .23071E-03   -1.5621    
  16  Prefactor     133.94        65.905        .86696E-04   -1.5476    
  17  Prefactor     .65503E-08    16.078        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .58119        8.1838        .74779E-03   -1.5693    
  19  norm          12.063        18.463        .28854E-03   -1.5638    
  20  Prefactor     .20983E-07    15.373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        3.7847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     49.537        93.851        .14234E-03   -1.5567    
  23  Prefactor      .0000        6.5012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.266        24.689        .25498E-03   -1.5630    
  25  norm          11.792        5.4619        .29148E-03   -1.5639    
  26  Prefactor     1.8246        66.468        .74962E-03   -1.5681    
  27  Prefactor     4.7463        6.2945        .46072E-03   -1.5664    
  28  norm          1.4534        1.8320        .89369E-03   -1.5684    
  29  Prefactor     46.485        60.014        .14641E-03   -1.5572    
  30  Normalizat    .68770        .26214        .65283E-01   -1.0438    
  31  Prefactor     1.1402        .29463        .61995E-01   -.88193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64115e-05
Minuit parameter uncertainties:
  1  1.72376
  2  504.932
  3  0.000639838
  4  0.0112556
  5  7.47937
  6  4.73676e-07
  7  152.336
  8  4.78428e-06
  9  0.450649
  10  5.57526
  11  170.479
  12  0.00982933
  13  0.200346
  14  0.0135276
  15  19.9997
  16  65.9049
  17  0.000648117
  18  4.36181
  19  18.463
  20  0.00113578
  21  8.52355e-06
  22  93.8536
  23  2.00029e-05
  24  24.6891
  25  5.46193
  26  22.0253
  27  6.29451
  28  1.83197
  29  60.0148
  30  0.262617
  31  0.295056
Done.

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

Extracting fit parameters...

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  1.339e+02  6.590e+01  0.000e+00  1.000e+06 ( 1.000e-13)
394        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
395        Scale:  8.136e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
750    Prefactor:  1.140e+00  2.951e-01  0.000e+00  1.000e+01 ( 1.000e+00)
751        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
752        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
749   Normalization:  6.877e-01  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.60
Ra Dec: 172.003 59.401
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 7.98e-08
Energy Flux (Fixed Index): 4.86e-05 +/- 2.39e-05

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) = 3232.8220015
delta logL = 1.03607129827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3232.76157454
delta logL = 1.09649826572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    154.77       1.0000          .0000       .10000E+07
     2 'Index     '    1.8419       1.0000          .0000       10.000    
     3 'Normalizat'    .76965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0780       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3232.762     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     154.79        85.913        .29932E-06   -.31514E-03
   2  Index         1.8421        .41387        .10774E-04   -.60563E-05
   3  Normalizat    .76958        .24193       -.22044E-05   -.11979E-03
   4  Prefactor     1.0782        .28430        .82763E-06   -.12623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 154.792
  Index      = 1.84209
  Normalizat = 0.769579
  Prefactor  = 1.07818
 **********
 **   18 **HESSE 
 **********

 FCN=   3232.762     FROM HESSE     STATUS=OK            29 CALLS      248 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     154.79        85.334        .16078E-04   -1.5459    
   2  Index         1.8421        .41130        .51585E-02   -.68359    
   3  Normalizat    .76958        .28720        .27486E-03   -1.0121    
   4  Prefactor     1.0782        .33947        .28106E-03   -.90167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23841e-11
Minuit parameter uncertainties:
  1  85.3348
  2  0.412074
  3  0.287765
  4  0.340147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681309': 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) = 3232.76157382
delta logL = 1.09649898531

Extracting fit parameters...

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  1.548e+02  8.533e+01  0.000e+00  1.000e+06 ( 1.000e-13)
394        Index:  1.842e+00  4.121e-01  0.000e+00  1.000e+01 (-1.000e+00)
395        Scale:  8.136e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
750    Prefactor:  1.078e+00  3.401e-01  0.000e+00  1.000e+01 ( 1.000e+00)
751        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
752        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
749   Normalization:  7.696e-01  2.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.79
Ra Dec: 172.003 59.401
Photon Index (Free Index): 1.84 +/- 0.41
Photon Flux (Free Index): 8.72e-08 +/- 6.66e-08
Energy Flux (Free Index): 9.21e-05 +/- 7.59e-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/681309/cmap_HighResolution_699148801_699408001_4FGL_J1128.0+5924_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='9.21e-05', photon_flux_error='7.98e-08', dlogl='1.10e+00', energy_flux='4.86e-05', photon_flux2='8.72e-08', job_status='DONE', time_completed='2023-03-02 00:55:08.137360', photon_index_error2='0.41', photon_index2='1.84', ts='11.60', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='7.59e-05', EG='0.69', time_epoch_completed='1677747308.14', return_code='0', job_id='681309', GAL2='1.08', EG2='0.77', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='6.66e-08', ts2='13.79', photon_index='2.47' WHERE bin_id='1774' AND source_name='4FGL J1128.0+5924' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:55:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 681309: <4FGL_J1128.0+5924_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1128.0+5924_daily_bin1774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar  2 00:40:11 2023
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:40:12 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:40:12 2023
Terminated at Thu Mar  2 00:55:08 2023
Results reported at Thu Mar  2 00:55:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1128.0+5924_daily_bin1774 172.003 59.4015 699148801 699408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1128.0+5924 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   651.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             222.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            897 sec.

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

