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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1745
RA = 197.632, Dec = 32.3547
tmin = 691632001, tmax = 691891201
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='646584', job_status='RUN', time_executed='2022-12-05 00:41:37.303163', time_epoch_executed='1670229697.3' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646584/ft1_4FGL_J1310.5+3221_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646584/ft2_4FGL_J1310.5+3221_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646584/ft1_4FGL_J1310.5+3221_daily_bin1745.fits outfile=/scratch/kocevski/646584/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1745.fits ra=197.632 dec=32.3547 rad=12.0 tmin=691632001.0 tmax=691891201.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.35
user 2.15
sys 0.19

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

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

Number of photons that the gtmktime cut: 818

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646584/ft1_filtered_4FGL_J1310.5+3221_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/646584/ft2_4FGL_J1310.5+3221_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/646584/ltcube_691632001_691891201_4FGL_J1310.5+3221_daily_bin1745.fits outfile=/scratch/kocevski/646584/expmap_691632001_691891201_4FGL_J1310.5+3221_daily_bin1745.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/646584/ltcube_691632001_691891201_4FGL_J1310.5+3221_daily_bin1745.fits
.....................!
real 192.01
user 186.62
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/646584/ft1_filtered_4FGL_J1310.5+3221_daily_bin1745.fits scfile=/scratch/kocevski/646584/ft2_4FGL_J1310.5+3221_daily_bin1745.fits outfile=/scratch/kocevski/646584/cmap_691632001_691891201_4FGL_J1310.5+3221_daily_bin1745.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646584/ft1_filtered_4FGL_J1310.5+3221_daily_bin1745.fits scfile=/scratch/kocevski/646584/ft2_4FGL_J1310.5+3221_daily_bin1745.fits outfile=/scratch/kocevski/646584/cmap_HighResolution_691632001_691891201_4FGL_J1310.5+3221_daily_bin1745.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3929       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.8995       1.0000          .0000       .10000E+07
     3 'Prefactor '    .78483       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.2233       1.0000          .0000       .10000E+07
     5 'norm      '    25.688       1.0000          .0000       .10000E+07
     6 'Prefactor '    .71297E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .20239E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .42842E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.7730       1.0000          .0000       .10000E+07
    10 'norm      '    .24654       1.0000          .0000       .10000E+07
    11 'Prefactor '    .47936E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .30361E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.1410       1.0000          .0000       .10000E+07
    14 'norm      '    .52844E-05   1.0000          .0000       .10000E+07
    15 'norm      '    2.3506       1.0000          .0000       .10000E+07
    16 'norm      '    37.462       1.0000          .0000       .10000E+07
    17 'norm      '    .16905E-03   1.0000          .0000       .10000E+07
    18 'norm      '    20.791       1.0000          .0000       .10000E+07
    19 'Prefactor '    .92236E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .93308E-05   1.0000          .0000       .10000E+07
    21 'norm      '    7.7925       1.0000          .0000       .10000E+07
    22 'Prefactor '    .64673E-02   1.0000          .0000       .10000E+07
    23 'norm      '    9.6287       1.0000          .0000       .10000E+07
    24 'Prefactor '    .16873E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    5.2911       1.0000          .0000       .10000E+07
    26 'Prefactor '    1.6974       1.0000          .0000       .10000E+07
    27 'Normalizat'    .94603       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1084       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=   8868.771     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     2019 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3889        2.7493       -.28561E-07    .93238E-03
   2  Prefactor     3.9176        6.1610        .18853E-07   -.67699E-03
   3  Prefactor     .78533        .96983       -.83898E-07    .26361E-02
   4  Prefactor     1.2232        1.3162       -.64971E-07    .21147E-02
   5  norm          25.696        6.1777       -.46893E-07    .44056E-03
   6  Prefactor     .55511E-10    8.1411       -.27091E-06** at limit **
   7  Prefactor     .10714E-07    6.2534       -.59820E-06** at limit **
   8  Prefactor     .27756E-09    6.1947       -.48717E-06** at limit **
   9  Prefactor     2.7745        2.7916       -.20392E-06    .29064E-02
  10  norm          .27038        14.341        .31538E-06   -.10326E-02
  11  Prefactor     .55511E-10    97.601       -.87078E-06** at limit **
  12  norm           .0000        .98692       -.76144E-07** at limit **
  13  Prefactor     5.0699        5.6871       -.11113E-06   -.12036E-01
  14  norm           .0000        1.4413        .15801E-06** at limit **
  15  norm          2.2967        8.4023        .24181E-06   -.10390E-02
  16  norm          37.393        5.8158        .30980E-08    .13659E-02
  17  norm          .48850E-08    11.278        .44579E-07** at limit **
  18  norm          20.797        1.0573        .67424E-08    .21971E-02
  19  Prefactor     .55511E-10    2.1004        .21940E-06** at limit **
  20  Prefactor     .31863E-07    4.1747       -.43944E-06** at limit **
  21  norm          7.7969        5.2211        .51686E-07    .68099E-02
  22  Prefactor     .55511E-09    14.884       -.46486E-06** at limit **
  23  norm          9.6084        5.3815        .75185E-07   -.16664E-01
  24  Prefactor     .61062E-09    28.980        .56269E-06** at limit **
  25  Prefactor     5.3025        1.4318       -.44222E-07   -.14535E-01
  26  Prefactor     1.6962        3.2349        .78190E-07   -.10531E-02
  27  Normalizat    .94644        .17707       -.80044E-06   -.48792E-04
  28  Prefactor     1.1082        .21569        .28883E-05   -.77750E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.38888
  Prefactor  = 3.91763
  Prefactor  = 0.785332
  Prefactor  = 1.22322
  norm       = 25.6964
  Prefactor  = 5.55112e-11
  Prefactor  = 1.07137e-08
  Prefactor  = 2.77556e-10
  Prefactor  = 2.77448
  norm       = 0.27038
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 5.06993
  norm       = 0
  norm       = 2.2967
  norm       = 37.3925
  norm       = 4.88498e-09
  norm       = 20.7972
  Prefactor  = 5.55112e-11
  Prefactor  = 3.18634e-08
  norm       = 7.79692
  Prefactor  = 5.55112e-10
  norm       = 9.60844
  Prefactor  = 6.10623e-10
  Prefactor  = 5.30254
  Prefactor  = 1.69618
  Normalizat = 0.946439
  Prefactor  = 1.10819
 **********
 **   18 **HESSE 
 **********

 FCN=   8868.771     FROM HESSE     STATUS=OK           585 CALLS     2604 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3889        2.7487        .36863E-03   -1.5654    
   2  Prefactor     3.9176        6.1793        .51069E-03   -1.5668    
   3  Prefactor     .78533        .97378        .54072E-03   -1.5690    
   4  Prefactor     1.2232        1.3314        .10185E-02   -1.5686    
   5  norm          25.696        6.1872        .19734E-03   -1.5607    
   6  Prefactor     .55511E-10    8.1284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10714E-07    9.8379        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .27756E-09    6.1586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7745        2.7827        .61088E-03   -1.5675    
  10  norm          .27038        1.9873        .75661E-02   -1.5698    
  11  Prefactor     .55511E-10    97.032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .98361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0699        7.8837        .44316E-03   -1.5663    
  14  norm           .0000        1.4419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2967        8.4459        .66831E-03   -1.5678    
  16  norm          37.393        5.8561        .16340E-03   -1.5586    
  17  norm          .48850E-08    11.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.797        14.401        .21938E-03   -1.5617    
  19  Prefactor     .55511E-10    2.0913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .31863E-07    10.247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.7969        5.8748        .35897E-03   -1.5652    
  22  Prefactor     .55511E-09    14.929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.6084        7.2741        .32271E-03   -1.5646    
  24  Prefactor     .61062E-09    28.872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.3025        11.151        .43671E-03   -1.5662    
  26  Prefactor     1.6962        3.2675        .80727E-03   -1.5682    
  27  Normalizat    .94644        .14797        .45487E-01   -.94847    
  28  Prefactor     1.1082        .17934        .65463E-01   -.89205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13698e-07
Minuit parameter uncertainties:
  1  2.7487
  2  6.17928
  3  0.973776
  4  1.33139
  5  6.1872
  6  4.63488e-05
  7  0.000648497
  8  8.54232e-05
  9  2.78265
  10  1.46606
  11  0.000166764
  12  3.85035e-06
  13  7.88372
  14  9.26651e-06
  15  8.44593
  16  5.85609
  17  0.000478258
  18  14.4015
  19  1.60886e-05
  20  0.00114309
  21  5.8748
  22  0.000178407
  23  7.27406
  24  0.000265863
  25  11.1514
  26  3.2675
  27  0.148033
  28  0.17944
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  3.739e+01  5.856e+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.108e+00  1.794e-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.464e-01  1.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 136.55
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.28e-07 +/- 5.13e-08
Energy Flux (Fixed Index): 1.17e-04 +/- 1.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) = 8868.28906428
delta logL = 0.481449347713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8868.15154228
delta logL = 0.618971352842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    49.310       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2581       1.0000          .0000       5.0000    
     3 'Normalizat'    .98354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0758       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=   8868.152     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      242 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          49.327        105.28        .14242E-03    .50514E-03
   2  alpha         2.2579        1.0819        .66161E-01    .16194E-03
   3  Normalizat    .98381        .14841        .45960E-01    .16466E-03
   4  Prefactor     1.0756        .14296        .66321E-01    .12850E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 49.3274
  alpha      = 2.25793
  Normalizat = 0.983811
  Prefactor  = 1.07563
 **********
 **   18 **HESSE 
 **********

 FCN=   8868.152     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          49.327        13.622        .56967E-05   -1.5567    
   2  alpha         2.2579        .14764        .28977E-03   -.96979E-01
   3  Normalizat    .98381        .17704        .24679E-03   -.93575    
   4  Prefactor     1.0756        .21574        .29338E-03   -.90249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61406e-11
Minuit parameter uncertainties:
  1  13.622
  2  0.147726
  3  0.177143
  4  0.215911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646584': 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) = 8868.1515399
delta logL = 0.618973730567

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  4.933e+01  1.362e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        alpha:  2.258e+00  1.477e-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.076e+00  2.159e-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.838e-01  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 136.33
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.26 +/- 0.15
Photon Flux (Free Index): 2.98e-07 +/- 5.40e-08
Energy Flux (Free Index): 1.35e-04 +/- 2.87e-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/646584/cmap_HighResolution_691632001_691891201_4FGL_J1310.5+3221_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.28e-07', energy_flux2='1.35e-04', photon_flux_error='5.13e-08', dlogl='6.19e-01', energy_flux='1.17e-04', photon_flux2='2.98e-07', job_status='DONE', time_completed='2022-12-05 00:53:23.584404', photon_index_error2='0.15', photon_index2='2.26', ts='136.55', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.87e-05', EG='0.95', time_epoch_completed='1670230403.58', return_code='0', job_id='646584', GAL2='1.08', EG2='0.98', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='5.40e-08', ts2='136.33', photon_index='2.42' WHERE bin_id='1745' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:53:23 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 646584: <4FGL_J1310.5+3221_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec  5 00:40:15 2022
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:40:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:40:15 2022
Terminated at Mon Dec  5 00:53:24 2022
Results reported at Mon Dec  5 00:53:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1745 197.632 32.3547 691632001 691891201 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 :                                   709.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            789 sec.

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

