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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1751
RA = 197.632, Dec = 32.3547
tmin = 693187201, tmax = 693446401
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='79013', job_status='RUN', time_executed='2022-12-23 00:48:49.087959', time_epoch_executed='1671785329.09' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/79013

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/79013/ft1_4FGL_J1310.5+3221_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/79013/ft2_4FGL_J1310.5+3221_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/79013/ft1_4FGL_J1310.5+3221_daily_bin1751.fits outfile=/scratch/kocevski/79013/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1751.fits ra=197.632 dec=32.3547 rad=12.0 tmin=693187201.0 tmax=693446401.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.69
user 3.44
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/79013/ft1_filtered_4FGL_J1310.5+3221_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/79013/ft2_4FGL_J1310.5+3221_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/79013/ltcube_693187201_693446401_4FGL_J1310.5+3221_daily_bin1751.fits outfile=/scratch/kocevski/79013/expmap_693187201_693446401_4FGL_J1310.5+3221_daily_bin1751.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/79013/ltcube_693187201_693446401_4FGL_J1310.5+3221_daily_bin1751.fits
.....................!
real 190.99
user 185.71
sys 4.96

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/79013/ft1_filtered_4FGL_J1310.5+3221_daily_bin1751.fits scfile=/scratch/kocevski/79013/ft2_4FGL_J1310.5+3221_daily_bin1751.fits outfile=/scratch/kocevski/79013/cmap_693187201_693446401_4FGL_J1310.5+3221_daily_bin1751.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/79013/ft1_filtered_4FGL_J1310.5+3221_daily_bin1751.fits scfile=/scratch/kocevski/79013/ft2_4FGL_J1310.5+3221_daily_bin1751.fits outfile=/scratch/kocevski/79013/cmap_HighResolution_693187201_693446401_4FGL_J1310.5+3221_daily_bin1751.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9917       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.4034       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.0567       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.4830       1.0000          .0000       .10000E+07
     5 'norm      '    13.903       1.0000          .0000       .10000E+07
     6 'Prefactor '    9.4885       1.0000          .0000       .10000E+07
     7 'Prefactor '    .26846E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .64292E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .59843E-05   1.0000          .0000       .10000E+07
    10 'norm      '    4.0621       1.0000          .0000       .10000E+07
    11 'Prefactor '    42.847       1.0000          .0000       .10000E+07
    12 'norm      '    1.2722       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.8620       1.0000          .0000       .10000E+07
    14 'norm      '    .27889E-04   1.0000          .0000       .10000E+07
    15 'norm      '    2.1352       1.0000          .0000       .10000E+07
    16 'norm      '    29.913       1.0000          .0000       .10000E+07
    17 'norm      '    17.463       1.0000          .0000       .10000E+07
    18 'norm      '    48.660       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.8762       1.0000          .0000       .10000E+07
    20 'Prefactor '    .16997E-03   1.0000          .0000       .10000E+07
    21 'norm      '    37.321       1.0000          .0000       .10000E+07
    22 'Prefactor '    .29067E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .15833E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    11.375       1.0000          .0000       .10000E+07
    25 'Prefactor '    24.968       1.0000          .0000       .10000E+07
    26 'Prefactor '    6.0317       1.0000          .0000       .10000E+07
    27 'Normalizat'    .89316       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91015       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=   6727.735     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     2617 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9915        2.8165       -.28191E-07   -.10854E-02
   2  Prefactor     7.4068        2.5739       -.73405E-08   -.71797E-01
   3  Prefactor     1.0564        1.6676        .16542E-07    .23216E-03
   4  Prefactor     2.4827        1.6179       -.30586E-07   -.29604E-02
   5  norm          13.883        5.3266        .23824E-07   -.19351E-02
   6  Prefactor     9.5048        7.3944       -.63743E-08    .20495E-01
   7  Prefactor     .19984E-08    5.6996        .15239E-06** at limit **
   8  Prefactor     .13489E-07    3.9690       -.11290E-06** at limit **
   9  Prefactor     .13323E-08    2.7318        .59756E-07** at limit **
  10  norm          4.0728        4.4026        .91436E-07    .47884E-03
  11  Prefactor     42.758        2.0422       -.90337E-08    .78064E-01
  12  norm          1.2721        2.0622        .62325E-08    .49936E-03
  13  Prefactor     2.6233        18.378       -.31174E-06    .69703E-02
  14  norm          .45003E-06    2.0338       -.20236E-07** at limit **
  15  norm          2.1239        1.1442        .40421E-08    .30953E-02
  16  norm          29.906        5.3669       -.29607E-07   -.12501E-01
  17  norm          17.436        2.9644       -.18352E-07    .60736E-02
  18  norm          48.674        1.0238       -.25000E-09    .13294E-02
  19  Prefactor     1.8841        2.9081        .18016E-06    .46271E-02
  20  Prefactor     .81601E-08    2.0482        .54559E-07** at limit **
  21  norm          37.315        2.5617       -.95535E-08   -.64417E-01
  22  Prefactor      .0000        30.365        .81207E-07** at limit **
  23  norm          .36637E-07    2.1966        .41251E-07** at limit **
  24  Prefactor     11.349        1.2457       -.19898E-08   -.29858E-02
  25  Prefactor     24.987        1.1297        .15525E-08    .29294E-01
  26  Prefactor     6.0279        3.9826        .10554E-07   -.94719E-03
  27  Normalizat    .89387        .19771       -.90592E-06    .12810E-03
  28  Prefactor     .90977        .23377        .28733E-05    .13351E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99145
  Prefactor  = 7.40677
  Prefactor  = 1.05638
  Prefactor  = 2.48268
  norm       = 13.8833
  Prefactor  = 9.50481
  Prefactor  = 1.9984e-09
  Prefactor  = 1.34892e-08
  Prefactor  = 1.33227e-09
  norm       = 4.07275
  Prefactor  = 42.7575
  norm       = 1.27207
  Prefactor  = 2.62332
  norm       = 4.50029e-07
  norm       = 2.12389
  norm       = 29.9063
  norm       = 17.4357
  norm       = 48.6743
  Prefactor  = 1.88411
  Prefactor  = 8.16014e-09
  norm       = 37.315
  Prefactor  = 0
  norm       = 3.66374e-08
  Prefactor  = 11.3488
  Prefactor  = 24.9868
  Prefactor  = 6.02791
  Normalizat = 0.893869
  Prefactor  = 0.909775
 **********
 **   18 **HESSE 
 **********

 FCN=   6727.735     FROM HESSE     STATUS=OK           591 CALLS     3208 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9915        2.8568        .50456E-03   -1.5668    
   2  Prefactor     7.4068        8.3695        .36837E-03   -1.5654    
   3  Prefactor     1.0564        1.9985        .27100E-02   -1.5687    
   4  Prefactor     2.4827        1.6185        .64850E-03   -1.5676    
   5  norm          13.883        5.3335        .26837E-03   -1.5633    
   6  Prefactor     9.5048        7.5195        .32509E-03   -1.5646    
   7  Prefactor     .19984E-08    6.0778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .13489E-07    4.1053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .13323E-08    2.7945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.0728        4.6672        .50003E-03   -1.5668    
  11  Prefactor     42.758        30.565        .15278E-03   -1.5577    
  12  norm          1.2721        2.1062        .98566E-03   -1.5685    
  13  Prefactor     2.6233        19.867        .60065E-03   -1.5676    
  14  norm          .45003E-06    7.4507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1239        13.384        .70520E-03   -1.5679    
  16  norm          29.906        9.0703        .18287E-03   -1.5599    
  17  norm          17.436        13.913        .23940E-03   -1.5624    
  18  norm          48.674        25.902        .14337E-03   -1.5568    
  19  Prefactor     1.8841        2.9536        .75989E-03   -1.5681    
  20  Prefactor     .81601E-08    5.3395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          37.315        9.9801        .16371E-03   -1.5586    
  22  Prefactor      .0000        30.440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .36637E-07    5.3115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.349        10.280        .29679E-03   -1.5641    
  25  Prefactor     24.987        17.075        .20017E-03   -1.5608    
  26  Prefactor     6.0279        3.9886        .40859E-03   -1.5659    
  27  Normalizat    .89387        .16846        .44814E-01   -.96676    
  28  Prefactor     .90977        .19879        .68622E-01   -.95800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8339e-07
Minuit parameter uncertainties:
  1  2.85684
  2  8.36951
  3  1.99849
  4  1.61855
  5  5.33349
  6  7.51946
  7  0.000221312
  8  0.000470711
  9  0.000121966
  10  4.66719
  11  30.5649
  12  2.10621
  13  14.4386
  14  0.00366216
  15  10.6634
  16  9.07032
  17  13.9127
  18  25.9021
  19  2.95364
  20  0.000417268
  21  9.9801
  22  1.666e-05
  23  0.000882393
  24  10.2802
  25  17.0749
  26  3.98859
  27  0.168555
  28  0.198947
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.991e+01  9.070e+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.098e-01  1.989e-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:  8.939e-01  1.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.43
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 2.62e-07 +/- 7.94e-08
Energy Flux (Fixed Index): 9.38e-05 +/- 2.84e-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) = 6727.73000448
delta logL = 0.00538304602196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6727.70990723
delta logL = 0.0254802991522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.747       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3725       1.0000          .0000       5.0000    
     3 'Normalizat'    .90252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90251       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=   6727.710     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      249 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.753        15.722        .69909E-05    .12685E-03
   2  alpha         2.3724        .24632        .33409E-02    .47648E-03
   3  Normalizat    .90249        .19557        .24850E-03   -.23126E-03
   4  Prefactor     .90255        .23520        .30465E-03   -.54856E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 32.7531
  alpha      = 2.37242
  Normalizat = 0.902491
  Prefactor  = 0.902551
 **********
 **   18 **HESSE 
 **********

 FCN=   6727.710     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.753        14.783        .27963E-06   -1.5594    
   2  alpha         2.3724        .23157        .66818E-03   -.51052E-01
   3  Normalizat    .90249        .19538        .99399E-05   -.96373    
   4  Prefactor     .90255        .23519        .12186E-04   -.96052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35472e-10
Minuit parameter uncertainties:
  1  14.7834
  2  0.2319
  3  0.195538
  4  0.235455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/79013': 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) = 6727.70990711
delta logL = 0.0254804189763

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  3.275e+01  1.478e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        alpha:  2.372e+00  2.319e-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.026e-01  2.355e-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:  9.025e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.17
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.37 +/- 0.23
Photon Flux (Free Index): 2.55e-07 +/- 6.41e-08
Energy Flux (Free Index): 9.77e-05 +/- 2.83e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/79013/cmap_HighResolution_693187201_693446401_4FGL_J1310.5+3221_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.62e-07', energy_flux2='9.77e-05', photon_flux_error='7.94e-08', dlogl='2.55e-02', energy_flux='9.38e-05', photon_flux2='2.55e-07', job_status='DONE', time_completed='2022-12-23 01:00:01.534322', photon_index_error2='0.23', photon_index2='2.37', ts='37.43', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.83e-05', EG='0.89', time_epoch_completed='1671786001.53', return_code='0', job_id='79013', GAL2='0.90', EG2='0.90', return_code2='0', energy_flux_error='2.84e-05', photon_flux_error2='6.41e-08', ts2='40.17', photon_index='2.42' WHERE bin_id='1751' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:00:01 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 79013: <4FGL_J1310.5+3221_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1751> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 23 00:45:20 2022
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:45:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:45:21 2022
Terminated at Fri Dec 23 01:00:02 2022
Results reported at Fri Dec 23 01:00:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1751 197.632 32.3547 693187201 693446401 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 :                                   675.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             268.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

