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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1753
RA = 197.632, Dec = 32.3547
tmin = 693705601, tmax = 693964801
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='455128', job_status='RUN', time_executed='2022-12-29 01:00:15.313840', time_epoch_executed='1672304415.31' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455128

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455128/ft1_4FGL_J1310.5+3221_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455128/ft2_4FGL_J1310.5+3221_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455128/ft1_4FGL_J1310.5+3221_daily_bin1753.fits outfile=/scratch/kocevski/455128/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1753.fits ra=197.632 dec=32.3547 rad=12.0 tmin=693705601.0 tmax=693964801.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.63
user 4.36
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/455128/ft2_4FGL_J1310.5+3221_daily_bin1753.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455128/ft2_4FGL_J1310.5+3221_daily_bin1753.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/455128/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/455128/ft1_filtered_4FGL_J1310.5+3221_daily_bin1753.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.53
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 575

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455128/ft1_filtered_4FGL_J1310.5+3221_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/455128/ft2_4FGL_J1310.5+3221_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/455128/ltcube_693705601_693964801_4FGL_J1310.5+3221_daily_bin1753.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/455128/ft2_4FGL_J1310.5+3221_daily_bin1753.fits
.....................!
real 14.87
user 14.47
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455128/ft1_filtered_4FGL_J1310.5+3221_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/455128/ft2_4FGL_J1310.5+3221_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/455128/ltcube_693705601_693964801_4FGL_J1310.5+3221_daily_bin1753.fits outfile=/scratch/kocevski/455128/expmap_693705601_693964801_4FGL_J1310.5+3221_daily_bin1753.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/455128/ltcube_693705601_693964801_4FGL_J1310.5+3221_daily_bin1753.fits
.....................!
real 193.81
user 187.41
sys 5.99

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

Setting source of interest to:
4FGL J1310.5+3221 @ 197.632 32.3547

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/455128/ft1_filtered_4FGL_J1310.5+3221_daily_bin1753.fits scfile=/scratch/kocevski/455128/ft2_4FGL_J1310.5+3221_daily_bin1753.fits outfile=/scratch/kocevski/455128/cmap_693705601_693964801_4FGL_J1310.5+3221_daily_bin1753.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=197.632 yref=32.3547 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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455128/ft1_filtered_4FGL_J1310.5+3221_daily_bin1753.fits scfile=/scratch/kocevski/455128/ft2_4FGL_J1310.5+3221_daily_bin1753.fits outfile=/scratch/kocevski/455128/cmap_HighResolution_693705601_693964801_4FGL_J1310.5+3221_daily_bin1753.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=197.632 yref=32.3547 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.57
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/455128/ft1_filtered_4FGL_J1310.5+3221_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/455128/ft2_4FGL_J1310.5+3221_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/455128/Model_4FGL_J1310.5+3221_daily_bin1753.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/455128/ft1_filtered_4FGL_J1310.5+3221_daily_bin1753.fits.....................!
real 51.65
user 50.27
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455128/ft1_filtered_4FGL_J1310.5+3221_daily_bin1753.fits', '/scratch/kocevski/455128/ft2_4FGL_J1310.5+3221_daily_bin1753.fits', expMap='/scratch/kocevski/455128/expmap_693705601_693964801_4FGL_J1310.5+3221_daily_bin1753.fits', expCube='/scratch/kocevski/455128/ltcube_693705601_693964801_4FGL_J1310.5+3221_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455128/Model_4FGL_J1310.5+3221_daily_bin1753.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1310.5+3221'

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  5.555e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        alpha:  2.425e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
333         beta:  5.326e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/455128/ft1_filtered_4FGL_J1310.5+3221_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/455128/ft2_4FGL_J1310.5+3221_daily_bin1753.fits
Exposure map: /scratch/kocevski/455128/expmap_693705601_693964801_4FGL_J1310.5+3221_daily_bin1753.fits
Exposure cube: /scratch/kocevski/455128/ltcube_693705601_693964801_4FGL_J1310.5+3221_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455128/Model_4FGL_J1310.5+3221_daily_bin1753.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) = 6171.5003238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8525       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.8068       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.0896       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5111       1.0000          .0000       .10000E+07
     5 'norm      '    8.2765       1.0000          .0000       .10000E+07
     6 'Prefactor '    .51905E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23885E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .77441E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .42637E-03   1.0000          .0000       .10000E+07
    10 'norm      '    6.5927       1.0000          .0000       .10000E+07
    11 'Prefactor '    .25112E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .34604E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.9615       1.0000          .0000       .10000E+07
    14 'norm      '    .39768E-06   1.0000          .0000       .10000E+07
    15 'norm      '    .14357E-04   1.0000          .0000       .10000E+07
    16 'norm      '    18.987       1.0000          .0000       .10000E+07
    17 'norm      '    11.125       1.0000          .0000       .10000E+07
    18 'norm      '    9.6625       1.0000          .0000       .10000E+07
    19 'Prefactor '    .67862E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .26894E-03   1.0000          .0000       .10000E+07
    21 'norm      '    34.673       1.0000          .0000       .10000E+07
    22 'Prefactor '    15.408       1.0000          .0000       .10000E+07
    23 'norm      '    10.195       1.0000          .0000       .10000E+07
    24 'Prefactor '    .80550E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .11707E-06   1.0000          .0000       .10000E+07
    26 'Prefactor '    .50760       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.1051       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99025       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6171.408     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1956 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8525        2.3079        .12572E-06    .85707E-03
   2  Prefactor     1.8538        6.3131        .10840E-06   -.30861E-03
   3  Prefactor     1.0898        1.1572       -.10183E-06   -.46083E-03
   4  Prefactor     1.5106        1.4998        .10212E-06   -.52742E-03
   5  norm          8.2754        4.2620       -.42495E-07   -.12974E-02
   6  Prefactor     .38858E-09    2.6176        .96691E-06** at limit **
   7  Prefactor     .62178E-06    5.0619        .11586E-05** at limit **
   8  Prefactor     .77716E-07    3.7740        .30624E-06** at limit **
   9  Prefactor     .13312E-06    2.5669       -.84643E-06** at limit **
  10  norm          6.6072        5.8663       -.25382E-06   -.24261E-02
  11  Prefactor     .94924E-08    26.871       -.25857E-05** at limit **
  12  norm          .91038E-07    1.9501       -.41290E-06** at limit **
  13  Prefactor     2.0466        2.9832       -.38253E-06   -.37964E-02
  14  norm          .55511E-10    1.5368        .14825E-06** at limit **
  15  norm          .10991E-06    5.5708        .32806E-06** at limit **
  16  norm          18.943        4.6072        .19047E-06   -.13957E-02
  17  norm          11.105        2.8266        .14064E-06    .37683E-02
  18  norm          9.6730        1.0460       -.13695E-07   -.47621E-02
  19  Prefactor      .0000        .97415        .82128E-07** at limit **
  20  Prefactor     .15199E-06    3.9230        .10373E-05** at limit **
  21  norm          34.669        1.5299       -.36185E-07   -.50430E-01
  22  Prefactor     15.136        3.5568       -.30815E-06    .65977E-01
  23  norm          10.201        2.4918        .12458E-06   -.49359E-01
  24  Prefactor     .50293E-07    14.261        .12686E-05** at limit **
  25  Prefactor     .26396E-06    4.9289       -.31495E-06** at limit **
  26  Prefactor     .53408        8.9894        .13629E-05   -.35002E-04
  27  Normalizat    1.1049        .21206       -.33705E-05    .25716E-04
  28  Prefactor     .99027        .25424        .93437E-06    .23677E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.85246
  Prefactor  = 1.8538
  Prefactor  = 1.08982
  Prefactor  = 1.51056
  norm       = 8.27539
  Prefactor  = 3.88578e-10
  Prefactor  = 6.2178e-07
  Prefactor  = 7.77156e-08
  Prefactor  = 1.33116e-07
  norm       = 6.60722
  Prefactor  = 9.49241e-09
  norm       = 9.10383e-08
  Prefactor  = 2.04656
  norm       = 5.55112e-11
  norm       = 1.09912e-07
  norm       = 18.943
  norm       = 11.1051
  norm       = 9.673
  Prefactor  = 0
  Prefactor  = 1.5199e-07
  norm       = 34.6693
  Prefactor  = 15.1357
  norm       = 10.2012
  Prefactor  = 5.02931e-08
  Prefactor  = 2.63956e-07
  Prefactor  = 0.534078
  Normalizat = 1.10489
  Prefactor  = 0.990272
 **********
 **   18 **HESSE 
 **********

 FCN=   6171.408     FROM HESSE     STATUS=OK           581 CALLS     2537 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8525        2.3061        .51390E-03   -1.5669    
   2  Prefactor     1.8538        6.3391        .77713E-03   -1.5681    
   3  Prefactor     1.0898        1.1448        .11462E-02   -1.5687    
   4  Prefactor     1.5106        1.4960        .86973E-03   -1.5683    
   5  norm          8.2754        4.2641        .34824E-03   -1.5650    
   6  Prefactor     .38858E-09    2.6267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .62178E-06    8.0048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .77716E-07    10.510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .13312E-06    5.2665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.6072        5.9420        .39060E-03   -1.5657    
  11  Prefactor     .94924E-08    27.085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .91038E-07    5.3496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0466        19.210        .74035E-03   -1.5679    
  14  norm          .55511E-10    1.5352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10991E-06    10.224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.943        8.1233        .22957E-03   -1.5621    
  17  norm          11.105        12.508        .30012E-03   -1.5641    
  18  norm          9.6730        11.148        .32214E-03   -1.5646    
  19  Prefactor      .0000        .97406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .15199E-06    4.7074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          34.669        10.262        .16985E-03   -1.5590    
  22  Prefactor     15.136        29.081        .25490E-03   -1.5630    
  23  norm          10.201        8.1092        .31358E-03   -1.5644    
  24  Prefactor     .50293E-07    14.833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .26396E-06    6.2775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .53408        3.7772        .47297E-02   -1.5693    
  27  Normalizat    1.1049        .18182        .37797E-01   -.89595    
  28  Prefactor     .99027        .21456        .68271E-01   -.93054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0652e-06
Minuit parameter uncertainties:
  1  2.30609
  2  6.33917
  3  1.14481
  4  1.49604
  5  4.26411
  6  6.48531e-05
  7  0.00446186
  8  0.00180733
  9  0.00167467
  10  5.94198
  11  0.00101544
  12  0.00139556
  13  12.5402
  14  2.19629e-05
  15  0.00212008
  16  8.12329
  17  12.508
  18  11.1479
  19  4.70074e-06
  20  0.00169176
  21  10.2621
  22  29.0818
  23  8.10921
  24  0.00172708
  25  0.00257458
  26  2.84066
  27  0.181922
  28  0.214744
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.894e+01  8.123e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        alpha:  2.425e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
333         beta:  5.326e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.903e-01  2.147e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.105e+00  1.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.14
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.66e-07 +/- 7.11e-08
Energy Flux (Fixed Index): 5.94e-05 +/- 2.55e-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) = 6171.13468324
delta logL = 0.273129827526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6171.09524915
delta logL = 0.312563918141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.761       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1784       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96447       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+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=   6171.095     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      284 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.768        14.777        .75931E-05    .12427E-02
   2  alpha         2.1784        .31499        .51055E-02    .34902E-04
   3  Normalizat    1.1368        .21081        .23055E-03   -.20316E-04
   4  Prefactor     .96435        .25516        .30556E-03    .93126E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 27.7675
  alpha      = 2.17837
  Normalizat = 1.13679
  Prefactor  = 0.964348
 **********
 **   18 **HESSE 
 **********

 FCN=   6171.095     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.768        13.982        .30373E-06   -1.5603    
   2  alpha         2.1784        .29788        .20422E-03   -.12901    
   3  Normalizat    1.1368        .21063        .92219E-05   -.88579    
   4  Prefactor     .96435        .25521        .12223E-04   -.93928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.1937e-11
Minuit parameter uncertainties:
  1  13.9819
  2  0.2986
  3  0.210788
  4  0.255531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455128': 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) = 6171.09524873
delta logL = 0.312564333571

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.777e+01  1.398e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        alpha:  2.178e+00  2.986e-01  0.000e+00  5.000e+00 ( 1.000e+00)
333         beta:  5.326e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.643e-01  2.555e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.137e+00  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.47
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.18 +/- 0.30
Photon Flux (Free Index): 1.42e-07 +/- 5.52e-08
Energy Flux (Free Index): 7.35e-05 +/- 3.16e-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/455128/cmap_HighResolution_693705601_693964801_4FGL_J1310.5+3221_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.66e-07', energy_flux2='7.35e-05', photon_flux_error='7.11e-08', dlogl='3.13e-01', energy_flux='5.94e-05', photon_flux2='1.42e-07', job_status='DONE', time_completed='2022-12-29 01:10:25.553278', photon_index_error2='0.30', photon_index2='2.18', ts='20.14', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='3.16e-05', EG='1.10', time_epoch_completed='1672305025.55', return_code='0', job_id='455128', GAL2='0.96', EG2='1.14', return_code2='0', energy_flux_error='2.55e-05', photon_flux_error2='5.52e-08', ts2='21.47', photon_index='2.42' WHERE bin_id='1753' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:10:25 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 455128: <4FGL_J1310.5+3221_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1753> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Dec 29 00:55:16 2022
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 00:59:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 00:59:10 2022
Terminated at Thu Dec 29 01:10:26 2022
Results reported at Thu Dec 29 01:10:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1753 197.632 32.3547 693705601 693964801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1310.5+3221 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   612.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            910 sec.

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

