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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1748
RA = 197.632, Dec = 32.3547
tmin = 692409601, tmax = 692668801
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='886378', job_status='RUN', time_executed='2022-12-14 00:41:33.851841', time_epoch_executed='1671007293.85' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/886378

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/886378/ft1_4FGL_J1310.5+3221_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/886378/ft2_4FGL_J1310.5+3221_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/886378/ft1_4FGL_J1310.5+3221_daily_bin1748.fits outfile=/scratch/kocevski/886378/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1748.fits ra=197.632 dec=32.3547 rad=12.0 tmin=692409601.0 tmax=692668801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.55
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/886378/ft2_4FGL_J1310.5+3221_daily_bin1748.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/886378/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/886378/ft1_filtered_4FGL_J1310.5+3221_daily_bin1748.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: 679

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/886378/ft1_filtered_4FGL_J1310.5+3221_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/886378/ft2_4FGL_J1310.5+3221_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/886378/ltcube_692409601_692668801_4FGL_J1310.5+3221_daily_bin1748.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/886378/ft2_4FGL_J1310.5+3221_daily_bin1748.fits
.....................!
real 12.26
user 11.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/886378/ft1_filtered_4FGL_J1310.5+3221_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/886378/ft2_4FGL_J1310.5+3221_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/886378/ltcube_692409601_692668801_4FGL_J1310.5+3221_daily_bin1748.fits outfile=/scratch/kocevski/886378/expmap_692409601_692668801_4FGL_J1310.5+3221_daily_bin1748.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/886378/ltcube_692409601_692668801_4FGL_J1310.5+3221_daily_bin1748.fits
.....................!
real 190.66
user 185.66
sys 4.68

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/886378/ft1_filtered_4FGL_J1310.5+3221_daily_bin1748.fits scfile=/scratch/kocevski/886378/ft2_4FGL_J1310.5+3221_daily_bin1748.fits outfile=/scratch/kocevski/886378/cmap_692409601_692668801_4FGL_J1310.5+3221_daily_bin1748.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/886378/ft1_filtered_4FGL_J1310.5+3221_daily_bin1748.fits scfile=/scratch/kocevski/886378/ft2_4FGL_J1310.5+3221_daily_bin1748.fits outfile=/scratch/kocevski/886378/cmap_HighResolution_692409601_692668801_4FGL_J1310.5+3221_daily_bin1748.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.54
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/886378/ft1_filtered_4FGL_J1310.5+3221_daily_bin1748.fits', '/scratch/kocevski/886378/ft2_4FGL_J1310.5+3221_daily_bin1748.fits', expMap='/scratch/kocevski/886378/expmap_692409601_692668801_4FGL_J1310.5+3221_daily_bin1748.fits', expCube='/scratch/kocevski/886378/ltcube_692409601_692668801_4FGL_J1310.5+3221_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/886378/Model_4FGL_J1310.5+3221_daily_bin1748.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/886378/ft1_filtered_4FGL_J1310.5+3221_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/886378/ft2_4FGL_J1310.5+3221_daily_bin1748.fits
Exposure map: /scratch/kocevski/886378/expmap_692409601_692668801_4FGL_J1310.5+3221_daily_bin1748.fits
Exposure cube: /scratch/kocevski/886378/ltcube_692409601_692668801_4FGL_J1310.5+3221_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/886378/Model_4FGL_J1310.5+3221_daily_bin1748.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) = 7454.20634872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1810       1.0000          .0000       .10000E+07
     2 'Prefactor '    14.583       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.5282       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.0755       1.0000          .0000       .10000E+07
     5 'norm      '    6.2045       1.0000          .0000       .10000E+07
     6 'Prefactor '    22.611       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.1570       1.0000          .0000       .10000E+07
     8 'Prefactor '    .30077E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14589E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .79074E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    16.006       1.0000          .0000       .10000E+07
    12 'norm      '    .44333E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .10817E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .12125E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .17764E-08   1.0000          .0000       .10000E+07
    16 'norm      '    31.591       1.0000          .0000       .10000E+07
    17 'norm      '    .13463E-03   1.0000          .0000       .10000E+07
    18 'norm      '    6.8794       1.0000          .0000       .10000E+07
    19 'Prefactor '    .33862E-08   1.0000          .0000       .10000E+07
    20 'Prefactor '    14.728       1.0000          .0000       .10000E+07
    21 'norm      '    30.579       1.0000          .0000       .10000E+07
    22 'Prefactor '    .21680E-02   1.0000          .0000       .10000E+07
    23 'norm      '    11.312       1.0000          .0000       .10000E+07
    24 'Prefactor '    .10572E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    9.4363       1.0000          .0000       .10000E+07
    26 'Prefactor '    1.4928       1.0000          .0000       .10000E+07
    27 'Normalizat'    .72461       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3115       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=   7454.152     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1945 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1686        2.6831       -.29947E-06   -.43246E-03
   2  Prefactor     14.598        3.6536        .37249E-06    .14860    
   3  Prefactor     5.5470        2.8562       -.49848E-06   -.42687E-02
   4  Prefactor     1.0747        1.6212        .31704E-07    .18575E-02
   5  norm          6.2448        4.1587       -.36780E-06   -.20302E-02
   6  Prefactor     22.609        1.0751        .57256E-07    .30170E-02
   7  Prefactor     4.1702        1.9611       -.12023E-05    .81222E-02
   8  Prefactor     .55511E-10    2.4016       -.88321E-06** at limit **
   9  Prefactor      .0000        1.8963        .77278E-07** at limit **
  10  norm          .81879E-06    3.2546       -.14045E-05** at limit **
  11  Prefactor     16.244        24.273        .53004E-05   -.16459E-01
  12  norm          .47439E-01    .77840       -.80199E-06** at limit **
  13  Prefactor     .40412E-07    7.2736       -.49536E-05** at limit **
  14  norm           .0000        1.5399        .24860E-06** at limit **
  15  norm          .13378E-07    3.1496       -.37322E-05** at limit **
  16  norm          31.585        5.8698       -.55797E-07    .18349E-01
  17  norm          .26590E-07    7.8270        .85763E-06** at limit **
  18  norm          6.8059        1.2887        .46446E-06   -.66016E-03
  19  Prefactor     .55511E-10    1.3306        .58356E-06** at limit **
  20  Prefactor     14.775        1.4872        .14525E-06   -.97158E-02
  21  norm          30.585        1.3050        .22649E-06    .95093E-01
  22  Prefactor     .92704E-07    12.602        .64714E-05** at limit **
  23  norm          11.320        1.3290        .34830E-06    .46687E-01
  24  Prefactor     .89373E-08    3.0666        .10799E-05** at limit **
  25  Prefactor     9.4241        1.1508        .16031E-06    .19181E-01
  26  Prefactor     1.4934        2.8107       -.28747E-06   -.70909E-03
  27  Normalizat    .72419        .19084       -.18372E-04   -.40505E-04
  28  Prefactor     1.3116        .23599        .12203E-04   -.19563E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.16865
  Prefactor  = 14.5985
  Prefactor  = 5.54695
  Prefactor  = 1.07471
  norm       = 6.24481
  Prefactor  = 22.6091
  Prefactor  = 4.1702
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 8.18789e-07
  Prefactor  = 16.244
  norm       = 0.0474393
  Prefactor  = 4.04121e-08
  norm       = 0
  norm       = 1.33782e-08
  norm       = 31.5852
  norm       = 2.65898e-08
  norm       = 6.80591
  Prefactor  = 5.55112e-11
  Prefactor  = 14.7754
  norm       = 30.5851
  Prefactor  = 9.27036e-08
  norm       = 11.3198
  Prefactor  = 8.9373e-09
  Prefactor  = 9.42413
  Prefactor  = 1.49344
  Normalizat = 0.724192
  Prefactor  = 1.31162
 **********
 **   18 **HESSE 
 **********

 FCN=   7454.152     FROM HESSE     STATUS=OK           593 CALLS     2538 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1686        2.7030        .69679E-03   -1.5679    
   2  Prefactor     14.598        10.111        .26202E-03   -1.5632    
   3  Prefactor     5.5470        2.8660        .42708E-03   -1.5661    
   4  Prefactor     1.0747        1.9584        .30430E-02   -1.5687    
   5  norm          6.2448        4.1768        .40278E-03   -1.5658    
   6  Prefactor     22.609        12.245        .21035E-03   -1.5613    
   7  Prefactor     4.1702        20.127        .49411E-03   -1.5667    
   8  Prefactor     .55511E-10    2.4005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.8960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .81879E-06    11.750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.244        24.679        .25008E-03   -1.5627    
  12  norm          .47439E-01    1.4584        .63443E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .40412E-07    9.7338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.5411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .13378E-07    3.2628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          31.585        6.2011        .17794E-03   -1.5596    
  17  norm          .26590E-07    7.9480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.8059        17.841        .38228E-03   -1.5656    
  19  Prefactor     .55511E-10    1.3301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.775        15.138        .26073E-03   -1.5631    
  21  norm          30.585        9.4682        .18086E-03   -1.5597    
  22  Prefactor     .92704E-07    13.177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.320        9.0096        .29761E-03   -1.5641    
  24  Prefactor     .89373E-08    3.1904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.4241        10.014        .32600E-03   -1.5647    
  26  Prefactor     1.4934        2.8507        .87688E-03   -1.5684    
  27  Normalizat    .72419        .16114        .64119E-01   -1.0295    
  28  Prefactor     1.3116        .19658        .61632E-01   -.82962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0566e-07
Minuit parameter uncertainties:
  1  2.70301
  2  10.1114
  3  2.86603
  4  1.95836
  5  4.17675
  6  12.2454
  7  18.3233
  8  1.8396e-05
  9  8.57174e-06
  10  0.00620349
  11  24.6788
  12  0.526069
  13  0.00125438
  14  1.16738e-05
  15  0.000417828
  16  6.2011
  17  0.000919419
  18  17.8414
  19  1.32047e-05
  20  15.1377
  21  9.46818
  22  0.00221025
  23  9.00959
  24  0.000337262
  25  10.0138
  26  2.85068
  27  0.16125
  28  0.196694
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  3.159e+01  6.201e+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:  1.312e+00  1.967e-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:  7.242e-01  1.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 104.13
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 2.77e-07 +/- 5.43e-08
Energy Flux (Fixed Index): 9.90e-05 +/- 1.94e-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) = 7453.88729787
delta logL = 0.264969572775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7453.8414105
delta logL = 0.310856946243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.897       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2772       1.0000          .0000       5.0000    
     3 'Normalizat'    .75392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2875       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.

 FCN=   7453.841     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      244 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.888        102.60        .15833E-03    .34076E-02
   2  alpha         2.2773        1.3221        .76125E-01    .22764E-03
   3  Normalizat    .75384        .15687        .63034E-01   -.14819E-03
   4  Prefactor     1.2876        .13908        .62138E-01   -.10272E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 39.8883
  alpha      = 2.27728
  Normalizat = 0.75384
  Prefactor  = 1.28763
 **********
 **   18 **HESSE 
 **********

 FCN=   7453.841     FROM HESSE     STATUS=OK            27 CALLS      271 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.888        13.314        .63334E-05   -1.5582    
   2  alpha         2.2773        .18584        .33137E-03   -.89205E-01
   3  Normalizat    .75384        .19164        .27884E-03   -1.0180    
   4  Prefactor     1.2876        .23638        .27481E-03   -.83676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63609e-11
Minuit parameter uncertainties:
  1  13.3137
  2  0.186015
  3  0.191812
  4  0.236581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/886378': 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) = 7453.84141014
delta logL = 0.310857302861

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  3.989e+01  1.331e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        alpha:  2.277e+00  1.860e-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:  1.288e+00  2.366e-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:  7.538e-01  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 104.54
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.28 +/- 0.19
Photon Flux (Free Index): 2.51e-07 +/- 5.75e-08
Energy Flux (Free Index): 1.11e-04 +/- 2.73e-05

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/886378/cmap_HighResolution_692409601_692668801_4FGL_J1310.5+3221_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.77e-07', energy_flux2='1.11e-04', photon_flux_error='5.43e-08', dlogl='3.11e-01', energy_flux='9.90e-05', photon_flux2='2.51e-07', job_status='DONE', time_completed='2022-12-14 00:52:10.851681', photon_index_error2='0.19', photon_index2='2.28', ts='104.13', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', energy_flux_error2='2.73e-05', EG='0.72', time_epoch_completed='1671007930.85', return_code='0', job_id='886378', GAL2='1.29', EG2='0.75', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='5.75e-08', ts2='104.54', photon_index='2.42' WHERE bin_id='1748' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:52:10 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 886378: <4FGL_J1310.5+3221_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:40:20 2022
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:40:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:40:21 2022
Terminated at Wed Dec 14 00:52:11 2022
Results reported at Wed Dec 14 00:52:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1748 197.632 32.3547 692409601 692668801 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 :                                   639.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            711 sec.

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

