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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1756
RA = 197.632, Dec = 32.3547
tmin = 694483201, tmax = 694742401
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='13132', job_status='RUN', time_executed='2023-01-07 00:51:42.673338', time_epoch_executed='1673081502.67' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13132

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13132/ft1_4FGL_J1310.5+3221_daily_bin1756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13132/ft2_4FGL_J1310.5+3221_daily_bin1756.fits


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

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

Done.
real 2.97
user 2.74
sys 0.20

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

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

Number of photons that the gtmktime cut: 1029

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13132/ft1_filtered_4FGL_J1310.5+3221_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/13132/ft2_4FGL_J1310.5+3221_daily_bin1756.fits sctable="SC_DATA" expcube=/scratch/kocevski/13132/ltcube_694483201_694742401_4FGL_J1310.5+3221_daily_bin1756.fits outfile=/scratch/kocevski/13132/expmap_694483201_694742401_4FGL_J1310.5+3221_daily_bin1756.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/13132/ltcube_694483201_694742401_4FGL_J1310.5+3221_daily_bin1756.fits
.....................!
real 191.93
user 186.34
sys 5.07

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/13132/ft1_filtered_4FGL_J1310.5+3221_daily_bin1756.fits scfile=/scratch/kocevski/13132/ft2_4FGL_J1310.5+3221_daily_bin1756.fits outfile=/scratch/kocevski/13132/cmap_694483201_694742401_4FGL_J1310.5+3221_daily_bin1756.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.41
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2021       1.0000          .0000       .10000E+07
     2 'Prefactor '    .58957E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.2307       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.3437       1.0000          .0000       .10000E+07
     5 'norm      '    9.1215       1.0000          .0000       .10000E+07
     6 'Prefactor '    .30084E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .46495E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .75118E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .99663E-04   1.0000          .0000       .10000E+07
    10 'norm      '    13.468       1.0000          .0000       .10000E+07
    11 'Prefactor '    .74230E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .20803E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .52253E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .22263E-05   1.0000          .0000       .10000E+07
    15 'norm      '    2.6904       1.0000          .0000       .10000E+07
    16 'norm      '    77.700       1.0000          .0000       .10000E+07
    17 'norm      '    7.4134       1.0000          .0000       .10000E+07
    18 'norm      '    19.541       1.0000          .0000       .10000E+07
    19 'Prefactor '    .20739E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .66802E-06   1.0000          .0000       .10000E+07
    21 'norm      '    41.588       1.0000          .0000       .10000E+07
    22 'Prefactor '    .98037E-03   1.0000          .0000       .10000E+07
    23 'norm      '    1.2044       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.0244       1.0000          .0000       .10000E+07
    25 'Prefactor '    13.730       1.0000          .0000       .10000E+07
    26 'Prefactor '    .26904E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .92893       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2156       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=   10705.11     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1947 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1994        3.6199       -.71746E-07   -.38894E-02
   2  Prefactor     .61673E-07    2.0938       -.10516E-05** at limit **
   3  Prefactor     1.2325        2.3333       -.10477E-06    .75094E-02
   4  Prefactor     7.3432        3.0680       -.80394E-09   -.93749E-02
   5  norm          9.1050        5.0437        .24690E-07    .65034E-02
   6  Prefactor     .21350E-06    4.3372        .23107E-05** at limit **
   7  Prefactor     .25535E-08    2.7282       -.67510E-06** at limit **
   8  Prefactor      .0000        2.3460       -.76427E-07** at limit **
   9  Prefactor     .24869E-07    3.6454        .13595E-05** at limit **
  10  norm          13.431        5.4143        .23321E-07   -.10174E-04
  11  Prefactor     .33346E-06    17.971       -.22638E-05** at limit **
  12  norm          .49960E-09    1.7263       -.21881E-07** at limit **
  13  Prefactor     .12679E-05    10.456        .43807E-05** at limit **
  14  norm          .55511E-10    1.0392       -.18456E-06** at limit **
  15  norm          2.6823        1.4713        .25893E-06    .22313E-01
  16  norm          77.702        5.5055        .59731E-08    .13682E-01
  17  norm          7.4194        4.1846       -.44604E-06   -.96789E-02
  18  norm          19.524        1.0017        .33181E-08   -.37059E-03
  19  Prefactor     .17208E-08    .84099        .17680E-06** at limit **
  20  Prefactor     .30270E-06    5.2362       -.17686E-05** at limit **
  21  norm          41.567        1.1811       -.80729E-08   -.52803E-02
  22  Prefactor     .41900E-06    9.8426       -.12078E-05** at limit **
  23  norm          1.1485        4.2401        .54699E-08    .44496E-03
  24  Prefactor     2.0281        1.1405        .25806E-07   -.18710E-03
  25  Prefactor     13.767        1.0567       -.16020E-07   -.13988E-02
  26  Prefactor     .16653E-09    2.9085       -.54380E-06** at limit **
  27  Normalizat    .92894        .17275        .84154E-06    .20207E-04
  28  Prefactor     1.2158        .21375       -.16000E-05    .13702E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.19942
  Prefactor  = 6.16729e-08
  Prefactor  = 1.23252
  Prefactor  = 7.34323
  norm       = 9.10505
  Prefactor  = 2.13496e-07
  Prefactor  = 2.55351e-09
  Prefactor  = 0
  Prefactor  = 2.4869e-08
  norm       = 13.4315
  Prefactor  = 3.33455e-07
  norm       = 4.996e-10
  Prefactor  = 1.26787e-06
  norm       = 5.55112e-11
  norm       = 2.68232
  norm       = 77.7021
  norm       = 7.4194
  norm       = 19.5235
  Prefactor  = 1.72085e-09
  Prefactor  = 3.02702e-07
  norm       = 41.5669
  Prefactor  = 4.18998e-07
  norm       = 1.14845
  Prefactor  = 2.02807
  Prefactor  = 13.7671
  Prefactor  = 1.66533e-10
  Normalizat = 0.92894
  Prefactor  = 1.21583
 **********
 **   18 **HESSE 
 **********

 FCN=   10705.11     FROM HESSE     STATUS=OK           577 CALLS     2524 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1994        3.6666        .49137E-03   -1.5667    
   2  Prefactor     .61673E-07    4.2950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2325        2.4146        .10132E-02   -1.5686    
   4  Prefactor     7.3432        3.0812        .36988E-03   -1.5654    
   5  norm          9.1050        5.0689        .33161E-03   -1.5648    
   6  Prefactor     .21350E-06    6.0631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .25535E-08    4.6023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.3481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .24869E-07    3.9024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.431        5.5319        .27268E-03   -1.5635    
  11  Prefactor     .33346E-06    19.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .49960E-09    1.7231        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12679E-05    16.132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    1.0462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6823        5.2905        .62088E-03   -1.5675    
  16  norm          77.702        8.8668        .11345E-03   -1.5532    
  17  norm          7.4194        10.765        .36812E-03   -1.5653    
  18  norm          19.524        15.422        .22630E-03   -1.5620    
  19  Prefactor     .17208E-08    7.5134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .30270E-06    7.1024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          41.567        8.9163        .15508E-03   -1.5579    
  22  Prefactor     .41900E-06    11.602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1485        4.5490        .10326E-02   -1.5687    
  24  Prefactor     2.0281        18.260        .72695E-03   -1.5679    
  25  Prefactor     13.767        12.942        .27005E-03   -1.5634    
  26  Prefactor     .16653E-09    2.8916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .92894        .14718        .45270E-01   -.95451    
  28  Prefactor     1.2158        .18006        .69811E-01   -.85846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62113e-07
Minuit parameter uncertainties:
  1  3.66664
  2  0.00102914
  3  2.41457
  4  3.08119
  5  5.06894
  6  0.00227542
  7  0.000217597
  8  1.10564e-05
  9  0.000623036
  10  5.53187
  11  0.00505564
  12  5.86557e-05
  13  0.00904499
  14  1.37164e-05
  15  5.29055
  16  8.86682
  17  10.7652
  18  15.4225
  19  0.000229193
  20  0.00293239
  21  8.91628
  22  0.00440957
  23  4.54901
  24  12.1708
  25  12.9416
  26  4.05997e-05
  27  0.147239
  28  0.180152
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  7.770e+01  8.867e+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.216e+00  1.802e-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.289e-01  1.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 310.59
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 6.81e-07 +/- 7.76e-08
Energy Flux (Fixed Index): 2.44e-04 +/- 2.78e-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) = 10704.2625783
delta logL = 0.848237286302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10704.1164701
delta logL = 0.99434551444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    99.802       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2822       1.0000          .0000       5.0000    
     3 'Normalizat'    .98065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1700       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=   10704.12     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      267 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          99.807        19.144        .20021E-04   -.21578E-04
   2  alpha         2.2822        .99441E-01    .19233E-03   -.12649E-04
   3  Normalizat    .98041        .17698        .27364E-03   -.55839E-04
   4  Prefactor     1.1702        .21536        .31393E-03   -.10285E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 99.8073
  alpha      = 2.28222
  Normalizat = 0.980408
  Prefactor  = 1.17024
 **********
 **   18 **HESSE 
 **********

 FCN=   10704.12     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          99.807        19.029        .80084E-06   -1.5508    
   2  alpha         2.2822        .98844E-01    .76933E-05   -.87221E-01
   3  Normalizat    .98041        .17717        .10945E-04   -.93690    
   4  Prefactor     1.1702        .21560        .12557E-04   -.87252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24297e-12
Minuit parameter uncertainties:
  1  19.0286
  2  0.0988703
  3  0.177276
  4  0.215758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13132': 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) = 10704.1164689
delta logL = 0.99434666653

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  9.981e+01  1.903e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        alpha:  2.282e+00  9.887e-02  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.170e+00  2.158e-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.804e-01  1.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 327.56
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.28 +/- 0.10
Photon Flux (Free Index): 6.36e-07 +/- 6.97e-08
Energy Flux (Free Index): 2.78e-04 +/- 3.89e-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/13132/cmap_HighResolution_694483201_694742401_4FGL_J1310.5+3221_daily_bin1756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.81e-07', energy_flux2='2.78e-04', photon_flux_error='7.76e-08', dlogl='9.94e-01', energy_flux='2.44e-04', photon_flux2='6.36e-07', job_status='DONE', time_completed='2023-01-07 01:05:23.108646', photon_index_error2='0.10', photon_index2='2.28', ts='310.59', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='3.89e-05', EG='0.93', time_epoch_completed='1673082323.11', return_code='0', job_id='13132', GAL2='1.17', EG2='0.98', return_code2='0', energy_flux_error='2.78e-05', photon_flux_error2='6.97e-08', ts2='327.56', photon_index='2.42' WHERE bin_id='1756' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan  7 01:05:23 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 13132: <4FGL_J1310.5+3221_daily_bin1756> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1756> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jan  7 00:50:16 2023
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan  7 00:50:56 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan  7 00:50:56 2023
Terminated at Sat Jan  7 01:05:23 2023
Results reported at Sat Jan  7 01:05:23 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1756 197.632 32.3547 694483201 694742401 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 :                                   822.05 sec.
    Max Memory :                                 632 MB
    Average Memory :                             312.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            907 sec.

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

