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


Performing analysis on: 4FGL_J1310.5+3221_weekly_bin759
RA = 197.632, Dec = 32.3547
tmin = 698025601, tmax = 698630401
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='590991', job_status='RUN', time_executed='2023-02-21 03:39:01.380378', time_epoch_executed='1676979541.38' WHERE source_name='4FGL J1310.5+3221' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590991

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590991/ft1_4FGL_J1310.5+3221_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590991/ft2_4FGL_J1310.5+3221_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590991/ft1_4FGL_J1310.5+3221_weekly_bin759.fits outfile=/scratch/kocevski/590991/ft1_filteredMKT_4FGL_J1310.5+3221_weekly_bin759.fits ra=197.632 dec=32.3547 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.69
user 8.25
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590991/ft2_4FGL_J1310.5+3221_weekly_bin759.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/590991/ft1_filteredMKT_4FGL_J1310.5+3221_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/590991/ft1_filtered_4FGL_J1310.5+3221_weekly_bin759.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.59
user 0.39
sys 0.14

Number of photons that the gtmktime cut: 841

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590991/ft1_filtered_4FGL_J1310.5+3221_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/590991/ft2_4FGL_J1310.5+3221_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/590991/ltcube_698025601_698630401_4FGL_J1310.5+3221_weekly_bin759.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/590991/ft2_4FGL_J1310.5+3221_weekly_bin759.fits
.....................!
real 27.34
user 26.87
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590991/ft1_filtered_4FGL_J1310.5+3221_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/590991/ft2_4FGL_J1310.5+3221_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/590991/ltcube_698025601_698630401_4FGL_J1310.5+3221_weekly_bin759.fits outfile=/scratch/kocevski/590991/expmap_698025601_698630401_4FGL_J1310.5+3221_weekly_bin759.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/590991/ltcube_698025601_698630401_4FGL_J1310.5+3221_weekly_bin759.fits
.....................!
real 190.19
user 185.35
sys 4.41

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/590991/ft1_filtered_4FGL_J1310.5+3221_weekly_bin759.fits scfile=/scratch/kocevski/590991/ft2_4FGL_J1310.5+3221_weekly_bin759.fits outfile=/scratch/kocevski/590991/cmap_698025601_698630401_4FGL_J1310.5+3221_weekly_bin759.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590991/ft1_filtered_4FGL_J1310.5+3221_weekly_bin759.fits scfile=/scratch/kocevski/590991/ft2_4FGL_J1310.5+3221_weekly_bin759.fits outfile=/scratch/kocevski/590991/cmap_HighResolution_698025601_698630401_4FGL_J1310.5+3221_weekly_bin759.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13300E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .88100E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6659       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.7186       1.0000          .0000       .10000E+07
     5 'norm      '    11.601       1.0000          .0000       .10000E+07
     6 'Prefactor '    11.597       1.0000          .0000       .10000E+07
     7 'Prefactor '    .18336E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .18882E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .43954E-06   1.0000          .0000       .10000E+07
    10 'norm      '    .12675E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .14394E-06   1.0000          .0000       .10000E+07
    12 'norm      '    1.0664       1.0000          .0000       .10000E+07
    13 'Prefactor '    .54217E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .13467E-06   1.0000          .0000       .10000E+07
    15 'norm      '    8.0712       1.0000          .0000       .10000E+07
    16 'norm      '    38.725       1.0000          .0000       .10000E+07
    17 'norm      '    6.4254       1.0000          .0000       .10000E+07
    18 'norm      '    13.919       1.0000          .0000       .10000E+07
    19 'Prefactor '    .22039E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .34243E-02   1.0000          .0000       .10000E+07
    21 'norm      '    42.144       1.0000          .0000       .10000E+07
    22 'Prefactor '    .43669E-03   1.0000          .0000       .10000E+07
    23 'norm      '    2.0904       1.0000          .0000       .10000E+07
    24 'Prefactor '    .82920E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    3.1786       1.0000          .0000       .10000E+07
    26 'Prefactor '    8.0787       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0825       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92312       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=   9160.075     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1962 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.5792        .47942E-07** at limit **
   2  Prefactor      .0000        5.0852        .34934E-07** at limit **
   3  Prefactor     1.6656        1.6536        .21662E-07   -.58016E-03
   4  Prefactor     1.7193        1.7244       -.23722E-07    .19982E-03
   5  norm          11.565        5.3706        .46030E-08   -.14580E-02
   6  Prefactor     11.594        7.8080        .12944E-07    .63407E-02
   7  Prefactor      .0000        16.416       -.17978E-06** at limit **
   8  Prefactor     .22204E-09    3.9371       -.62055E-07** at limit **
   9  Prefactor     .94369E-09    49.683       -.36281E-06** at limit **
  10  norm           .0000        1.8102       -.11054E-07** at limit **
  11  Prefactor     .55511E-10    6.5798        .17276E-06** at limit **
  12  norm          1.0670        1.9858       -.52633E-08    .25752E-04
  13  Prefactor     .11102E-09    3.5448       -.46722E-07** at limit **
  14  norm           .0000        1.7911        .71223E-08** at limit **
  15  norm          8.0733        1.4754       -.18733E-08   -.90535E-02
  16  norm          38.779        4.4051       -.14790E-07   -.48489E-03
  17  norm          6.4769        3.1169       -.13488E-07   -.26066E-03
  18  norm          13.938        1.4888        .59216E-08   -.92044E-02
  19  Prefactor      .0000        1.1347       -.57608E-07** at limit **
  20  Prefactor      .0000        6.1689        .10870E-07** at limit **
  21  norm          42.128        2.8745       -.87432E-08   -.41655E-01
  22  Prefactor     .27756E-09    20.716       -.58910E-07** at limit **
  23  norm          2.0120        4.8189       -.95588E-07    .24683E-02
  24  Prefactor     .11102E-09    17.354        .89041E-07** at limit **
  25  Prefactor     3.1526        2.7837        .37243E-07   -.87843E-02
  26  Prefactor     8.0807        3.6574       -.45209E-07    .42404E-03
  27  Normalizat    1.0822        .17375        .24235E-05   -.49746E-04
  28  Prefactor     .92342        .20650       -.91846E-06   -.28192E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.66562
  Prefactor  = 1.71934
  norm       = 11.5653
  Prefactor  = 11.5938
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 9.4369e-10
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 1.06698
  Prefactor  = 1.11022e-10
  norm       = 0
  norm       = 8.07328
  norm       = 38.7786
  norm       = 6.47693
  norm       = 13.9381
  Prefactor  = 0
  Prefactor  = 0
  norm       = 42.1283
  Prefactor  = 2.77556e-10
  norm       = 2.01198
  Prefactor  = 1.11022e-10
  Prefactor  = 3.1526
  Prefactor  = 8.08068
  Normalizat = 1.08224
  Prefactor  = 0.923417
 **********
 **   18 **HESSE 
 **********

 FCN=   9160.075     FROM HESSE     STATUS=OK           585 CALLS     2547 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.5755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        5.1269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6656        1.6463        .81674E-03   -1.5682    
   4  Prefactor     1.7193        1.7432        .80112E-03   -1.5682    
   5  norm          11.565        5.3788        .29387E-03   -1.5640    
   6  Prefactor     11.594        7.9533        .29393E-03   -1.5640    
   7  Prefactor      .0000        16.102        .17149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22204E-09    3.9859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .94369E-09    3.1537        .60468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.8077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    6.7586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0670        2.3374        .41757E-02   -1.5687    
  13  Prefactor     .11102E-09    3.5774        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.7858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.0733        8.7578        .35267E-03   -1.5651    
  16  norm          38.779        7.1061        .16071E-03   -1.5583    
  17  norm          6.4769        9.0725        .39571E-03   -1.5657    
  18  norm          13.938        14.154        .26822E-03   -1.5633    
  19  Prefactor      .0000        1.1317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        6.4090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          42.128        8.7869        .15405E-03   -1.5578    
  22  Prefactor     .27756E-09    20.764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.0120        5.2815        .71373E-03   -1.5680    
  24  Prefactor     .11102E-09    17.284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.1526        19.057        .56816E-03   -1.5672    
  26  Prefactor     8.0807        3.6638        .35251E-03   -1.5651    
  27  Normalizat    1.0822        .15014        .38762E-01   -.90324    
  28  Prefactor     .92342        .17679        .71191E-01   -.95328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9814e-08
Minuit parameter uncertainties:
  1  2.36773e-06
  2  2.29754e-05
  3  1.64634
  4  1.74322
  5  5.37883
  6  7.95327
  7  1.99815e-05
  8  5.60822e-05
  9  0.000109127
  10  4.51473e-07
  11  2.92175e-05
  12  2.33736
  13  3.88865e-05
  14  1.62538e-06
  15  8.7578
  16  7.10605
  17  9.07248
  18  14.1542
  19  1.63419e-06
  20  6.2551e-06
  21  8.78685
  22  0.000158761
  23  5.28147
  24  7.76308e-05
  25  15.5023
  26  3.66381
  27  0.150199
  28  0.176897
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  3.878e+01  7.106e+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.234e-01  1.769e-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.082e+00  1.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 110.44
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.40e-07 +/- 6.22e-08
Energy Flux (Fixed Index): 1.22e-04 +/- 2.23e-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) = 9159.72857195
delta logL = 0.346788918418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9159.66861263
delta logL = 0.406748237825

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    48.904       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2838       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89787       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=   9159.669     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      241 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          48.915        103.92        .14301E-03    .12474E-02
   2  alpha         2.2839        1.0860        .67368E-01    .13146E-03
   3  Normalizat    1.1137        .14610        .54368E-01   -.32609E-04
   4  Prefactor     .89782        .13169        .72088E-01   -.85430E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 48.9146
  alpha      = 2.28391
  Normalizat = 1.11369
  Prefactor  = 0.897821
 **********
 **   18 **HESSE 
 **********

 FCN=   9159.669     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          48.915        14.000        .28602E-04   -1.5568    
   2  alpha         2.2839        .15467        .29488E-03   -.86545E-01
   3  Normalizat    1.1137        .17528        .24039E-03   -.89314    
   4  Prefactor     .89782        .20742        .31897E-03   -.96217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74974e-11
Minuit parameter uncertainties:
  1  13.9997
  2  0.154768
  3  0.175373
  4  0.207607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590991': 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) = 9159.66861029
delta logL = 0.406750578692

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  4.891e+01  1.400e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        alpha:  2.284e+00  1.548e-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:  8.978e-01  2.076e-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.114e+00  1.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 113.62
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.28 +/- 0.15
Photon Flux (Free Index): 3.13e-07 +/- 5.72e-08
Energy Flux (Free Index): 1.36e-04 +/- 2.86e-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/590991/cmap_HighResolution_698025601_698630401_4FGL_J1310.5+3221_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.40e-07', energy_flux2='1.36e-04', photon_flux_error='6.22e-08', dlogl='4.07e-01', energy_flux='1.22e-04', photon_flux2='3.13e-07', job_status='DONE', time_completed='2023-02-21 03:51:49.623279', photon_index_error2='0.15', photon_index2='2.28', ts='110.44', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.86e-05', EG='1.08', time_epoch_completed='1676980309.62', return_code='0', job_id='590991', GAL2='0.90', EG2='1.11', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='5.72e-08', ts2='113.62', photon_index='2.42' WHERE bin_id='759' AND source_name='4FGL J1310.5+3221' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:51:49 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0039>
Subject: Job 590991: <4FGL_J1310.5+3221_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1310.5+3221_weekly_bin759> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 03:35:21 2023
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:35:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:35:22 2023
Terminated at Tue Feb 21 03:51:49 2023
Results reported at Tue Feb 21 03:51:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_weekly_bin759 197.632 32.3547 698025601 698630401 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 :                                   768.49 sec.
    Max Memory :                                 633 MB
    Average Memory :                             250.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2934 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            988 sec.

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

