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


Performing analysis on: 4FGL_J1128.0+5924_daily_bin1769
RA = 172.003, Dec = 59.4015
tmin = 697852801, tmax = 698112001
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='432247', job_status='RUN', time_executed='2023-02-15 00:36:04.769168', time_epoch_executed='1676450164.77' WHERE source_name='4FGL J1128.0+5924' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432247

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432247/ft1_4FGL_J1128.0+5924_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432247/ft2_4FGL_J1128.0+5924_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432247/ft1_4FGL_J1128.0+5924_daily_bin1769.fits outfile=/scratch/kocevski/432247/ft1_filteredMKT_4FGL_J1128.0+5924_daily_bin1769.fits ra=172.003 dec=59.4015 rad=12.0 tmin=697852801.0 tmax=698112001.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.37
user 4.17
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/432247/ft2_4FGL_J1128.0+5924_daily_bin1769.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/432247/ft1_filteredMKT_4FGL_J1128.0+5924_daily_bin1769.fits evtable="EVENTS" outfile="/scratch/kocevski/432247/ft1_filtered_4FGL_J1128.0+5924_daily_bin1769.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.13

Number of photons that the gtmktime cut: 644

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432247/ft1_filtered_4FGL_J1128.0+5924_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/432247/ft2_4FGL_J1128.0+5924_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/432247/ltcube_697852801_698112001_4FGL_J1128.0+5924_daily_bin1769.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/432247/ft2_4FGL_J1128.0+5924_daily_bin1769.fits
.....................!
real 11.72
user 11.40
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432247/ft1_filtered_4FGL_J1128.0+5924_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/432247/ft2_4FGL_J1128.0+5924_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/432247/ltcube_697852801_698112001_4FGL_J1128.0+5924_daily_bin1769.fits outfile=/scratch/kocevski/432247/expmap_697852801_698112001_4FGL_J1128.0+5924_daily_bin1769.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/432247/ltcube_697852801_698112001_4FGL_J1128.0+5924_daily_bin1769.fits
.....................!
real 191.75
user 187.04
sys 4.36

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/432247/ft1_filtered_4FGL_J1128.0+5924_daily_bin1769.fits scfile=/scratch/kocevski/432247/ft2_4FGL_J1128.0+5924_daily_bin1769.fits outfile=/scratch/kocevski/432247/cmap_697852801_698112001_4FGL_J1128.0+5924_daily_bin1769.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432247/ft1_filtered_4FGL_J1128.0+5924_daily_bin1769.fits scfile=/scratch/kocevski/432247/ft2_4FGL_J1128.0+5924_daily_bin1769.fits outfile=/scratch/kocevski/432247/cmap_HighResolution_697852801_698112001_4FGL_J1128.0+5924_daily_bin1769.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/432247/ft1_filtered_4FGL_J1128.0+5924_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/432247/ft2_4FGL_J1128.0+5924_daily_bin1769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/432247/Model_4FGL_J1128.0+5924_daily_bin1769.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/432247/ft1_filtered_4FGL_J1128.0+5924_daily_bin1769.fits.....................!
real 65.12
user 63.83
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/432247/ft1_filtered_4FGL_J1128.0+5924_daily_bin1769.fits', '/scratch/kocevski/432247/ft2_4FGL_J1128.0+5924_daily_bin1769.fits', expMap='/scratch/kocevski/432247/expmap_697852801_698112001_4FGL_J1128.0+5924_daily_bin1769.fits', expCube='/scratch/kocevski/432247/ltcube_697852801_698112001_4FGL_J1128.0+5924_daily_bin1769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/432247/Model_4FGL_J1128.0+5924_daily_bin1769.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/432247/ft1_filtered_4FGL_J1128.0+5924_daily_bin1769.fits
Spacecraft file(s): /scratch/kocevski/432247/ft2_4FGL_J1128.0+5924_daily_bin1769.fits
Exposure map: /scratch/kocevski/432247/expmap_697852801_698112001_4FGL_J1128.0+5924_daily_bin1769.fits
Exposure cube: /scratch/kocevski/432247/ltcube_697852801_698112001_4FGL_J1128.0+5924_daily_bin1769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/432247/Model_4FGL_J1128.0+5924_daily_bin1769.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) = 6861.67128682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92989       1.0000          .0000       .10000E+07
     2 'Prefactor '    .19036E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .33330E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    34.672       1.0000          .0000       .10000E+07
     5 'norm      '    1.7498       1.0000          .0000       .10000E+07
     6 'norm      '    1.5300       1.0000          .0000       .10000E+07
     7 'Prefactor '    .46001E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .81674E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .29759E-02   1.0000          .0000       .10000E+07
    10 'norm      '    4.1849       1.0000          .0000       .10000E+07
    11 'Prefactor '    27.226       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.7001       1.0000          .0000       .10000E+07
    13 'Prefactor '    .17630E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .76791E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.3026       1.0000          .0000       .10000E+07
    16 'Prefactor '    25.497       1.0000          .0000       .10000E+07
    17 'Prefactor '    44.589       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.9465       1.0000          .0000       .10000E+07
    19 'norm      '    .80502E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .17009E-06   1.0000          .0000       .10000E+07
    21 'norm      '    1.7630       1.0000          .0000       .10000E+07
    22 'Prefactor '    14.600       1.0000          .0000       .10000E+07
    23 'Prefactor '    3.0397       1.0000          .0000       .10000E+07
    24 'Prefactor '    .65946E-03   1.0000          .0000       .10000E+07
    25 'norm      '    .17969E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    .17296E-02   1.0000          .0000       .10000E+07
    27 'Prefactor '    .11975E-02   1.0000          .0000       .10000E+07
    28 'norm      '    3.7732       1.0000          .0000       .10000E+07
    29 'Prefactor '    .42641E-03   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1582       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .65638       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=   6861.587     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     2921 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92923        .62617       -.11912E-06   -.12542E-02
   2  Prefactor     .14327E-06    4.6750        .22213E-05** at limit **
   3  norm          .37304E-05    64.258        .41507E-05** at limit **
   4  Prefactor     34.430        6.8176       -.84471E-06   -.16672    
   5  norm          1.7595        1.6656        .39331E-06    .59607E-02
   6  norm          1.5294        1.0221       -.11139E-06    .64073E-03
   7  Prefactor     .85321E-06    168.78        .76378E-05** at limit **
   8  norm           .0000        .82572        .33598E-06** at limit **
   9  Prefactor     .14280E-05    16.034       -.30846E-05** at limit **
  10  norm          4.1871        1.9057        .42547E-06    .69919E-02
  11  Prefactor     25.038        29.830       -.73562E-05    .65644E-01
  12  Prefactor     3.7089        3.1722       -.14376E-05   -.43109E-01
  13  Prefactor     .14272E-06    19.834        .13740E-05** at limit **
  14  norm          .13556E-06    8.2496        .15470E-05** at limit **
  15  Prefactor     3.3353        4.9908        .47742E-06    .18219E-02
  16  Prefactor     25.528        1.4190       -.14655E-07    .46985E-02
  17  Prefactor     44.478        1.2558        .60824E-08    .20194E-01
  18  Prefactor     1.9437        2.0572       -.54050E-07   -.99965E-03
  19  norm           .0000        3.8903        .75395E-07** at limit **
  20  Prefactor      .0000        1.1053       -.93534E-06** at limit **
  21  norm          1.7637        3.7644       -.56394E-07   -.34682E-03
  22  Prefactor     14.587        8.4223        .15561E-05    .13912    
  23  Prefactor     3.0212        4.0622       -.77954E-06   -.86206E-03
  24  Prefactor      .0000        4.3591        .39670E-06** at limit **
  25  norm          .30531E-08    11.175        .70565E-06** at limit **
  26  Prefactor     .77194E-06    11.946        .12437E-05** at limit **
  27  Prefactor     .83267E-09    8.0370        .15289E-05** at limit **
  28  norm          3.7701        2.1586       -.59795E-06   -.14946E-02
  29  Prefactor     .41755E-06    10.427        .22678E-05** at limit **
  30  Normalizat    1.1592        .17065        .26788E-04   -.16994E-03
  31  Prefactor     .65619        .20549       -.20398E-04   -.12593E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.929229
  Prefactor  = 1.43274e-07
  norm       = 3.7304e-06
  Prefactor  = 34.4303
  norm       = 1.75951
  norm       = 1.52937
  Prefactor  = 8.53206e-07
  norm       = 0
  Prefactor  = 1.42797e-06
  norm       = 4.1871
  Prefactor  = 25.0379
  Prefactor  = 3.70891
  Prefactor  = 1.42719e-07
  norm       = 1.35558e-07
  Prefactor  = 3.33535
  Prefactor  = 25.5277
  Prefactor  = 44.4779
  Prefactor  = 1.94374
  norm       = 0
  Prefactor  = 0
  norm       = 1.76367
  Prefactor  = 14.5873
  Prefactor  = 3.0212
  Prefactor  = 0
  norm       = 3.05311e-09
  Prefactor  = 7.71938e-07
  Prefactor  = 8.32667e-10
  norm       = 3.77008
  Prefactor  = 4.17555e-07
  Normalizat = 1.15923
  Prefactor  = 0.65619
 **********
 **   18 **HESSE 
 **********

 FCN=   6861.587     FROM HESSE     STATUS=OK           688 CALLS     3609 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92923        .62594        .43715E-03   -1.5689    
   2  Prefactor     .14327E-06    13.274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .37304E-05    67.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.430        18.775        .16985E-03   -1.5591    
   5  norm          1.7595        1.8793        .79235E-03   -1.5681    
   6  norm          1.5294        1.0098        .86261E-03   -1.5683    
   7  Prefactor     .85321E-06    169.57        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .82055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14280E-05    26.773        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1871        1.9245        .49241E-03   -1.5667    
  11  Prefactor     25.038        32.702        .19168E-03   -1.5608    
  12  Prefactor     3.7089        16.433        .52477E-03   -1.5669    
  13  Prefactor     .14272E-06    20.191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .13556E-06    13.128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3353        5.1146        .55684E-03   -1.5671    
  16  Prefactor     25.528        20.347        .19808E-03   -1.5607    
  17  Prefactor     44.478        21.156        .14977E-03   -1.5575    
  18  Prefactor     1.9437        2.0470        .74366E-03   -1.5680    
  19  norm           .0000        3.8807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        1.1041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7637        3.8237        .78874E-03   -1.5681    
  22  Prefactor     14.587        16.157        .26186E-03   -1.5632    
  23  Prefactor     3.0212        4.0941        .58172E-03   -1.5673    
  24  Prefactor      .0000        4.3676        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .30531E-08    .88884        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .77194E-06    26.380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .83267E-09    7.9554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.7701        2.1583        .51948E-03   -1.5669    
  29  Prefactor     .41755E-06    13.544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1592        .15216        .36008E-01   -.87872    
  31  Prefactor     .65619        .18011        .72468E-01   -1.0527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12335e-06
Minuit parameter uncertainties:
  1  0.625938
  2  0.00275826
  3  0.0317577
  4  18.7754
  5  1.87932
  6  1.00982
  7  0.0240571
  8  5.41349e-07
  9  0.0123663
  10  1.92448
  11  32.7018
  12  15.6142
  13  0.00339507
  14  0.00266797
  15  5.11462
  16  20.3473
  17  21.1565
  18  2.047
  19  6.24447e-06
  20  6.17878e-06
  21  3.82371
  22  16.1573
  23  4.09413
  24  5.03662e-06
  25  0.000104415
  26  0.00902528
  27  0.000160551
  28  2.15826
  29  0.00475607
  30  0.152221
  31  0.180265
Done.

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

Extracting fit parameters...

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  2.553e+01  2.035e+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:  6.562e-01  1.803e-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:  1.159e+00  1.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.69
Ra Dec: 172.003 59.401
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.09e-08 +/- 2.46e-08
Energy Flux (Fixed Index): 9.26e-06 +/- 7.38e-06

TS (Fixed Index): 3.69
Ra Dec: 172.003 59.401
Photon Flux Upper Limit: 8.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432247/likelihoodResults_697852801_698112001_4FGL_J1128.0+5924_daily_bin1769.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) = 6861.56116329
delta logL = 0.0258828992801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6861.55562007
delta logL = 0.0314261230942

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6861.556     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      238 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.767        23.510        .75918E-05    .11749E-01
   2  Index         2.2981        .69470        .86899E-02    .42931E-03
   3  Normalizat    1.1652        .16832        .20071E-03   -.56314E-03
   4  Prefactor     .65157        .20557        .32180E-03   -.37222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.7668
  Index      = 2.29811
  Normalizat = 1.16521
  Prefactor  = 0.651569
 **********
 **   18 **HESSE 
 **********

 FCN=   6861.556     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.767        23.231        .15184E-05   -1.5603    
   2  Index         2.2981        .68610        .34759E-03   -.57089    
   3  Normalizat    1.1652        .16838        .40141E-04   -.87685    
   4  Prefactor     .65157        .20568        .12872E-04   -1.0546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.17871e-09
Minuit parameter uncertainties:
  1  23.2312
  2  0.689175
  3  0.168457
  4  0.205919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432247': 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) = 6861.55562002
delta logL = 0.031426168217

Extracting fit parameters...

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  2.777e+01  2.323e+01  0.000e+00  1.000e+06 ( 1.000e-13)
394        Index:  2.298e+00  6.892e-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:  6.516e-01  2.059e-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:  1.165e+00  1.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.75
Ra Dec: 172.003 59.401
Photon Index (Free Index): 2.30 +/- 0.69
Photon Flux (Free Index): 2.65e-08 +/- 2.81e-08
Energy Flux (Free Index): 1.00e-05 +/- 9.02e-06

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/432247/cmap_HighResolution_697852801_698112001_4FGL_J1128.0+5924_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', comment='SUCCESS', photon_flux='3.09e-08', energy_flux2='1.00e-05', photon_flux_error='2.46e-08', dlogl='3.14e-02', energy_flux='9.26e-06', photon_flux2='2.65e-08', job_status='DONE', time_completed='2023-02-15 00:52:05.550503', photon_index_error2='0.69', photon_index2='2.30', ts='3.69', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='8.71e-08', energy_flux_error2='9.02e-06', EG='1.16', time_epoch_completed='1676451125.55', return_code='0', job_id='432247', GAL2='0.65', EG2='1.17', return_code2='0', energy_flux_error='7.38e-06', photon_flux_error2='2.81e-08', ts2='3.75', photon_index='2.47' WHERE bin_id='1769' AND source_name='4FGL J1128.0+5924' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 00:52:05 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 432247: <4FGL_J1128.0+5924_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1128.0+5924_daily_bin1769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Feb 15 00:35:30 2023
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 00:35:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 00:35:31 2023
Terminated at Wed Feb 15 00:52:06 2023
Results reported at Wed Feb 15 00:52:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1128.0+5924_daily_bin1769 172.003 59.4015 697852801 698112001 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 :                                   962.10 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             320.49 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            996 sec.

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

