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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1754
RA = 197.632, Dec = 32.3547
tmin = 693964801, tmax = 694224001
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='643436', job_status='RUN', time_executed='2023-01-01 01:14:10.570262', time_epoch_executed='1672564450.57' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/643436

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/643436/ft1_4FGL_J1310.5+3221_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/643436/ft2_4FGL_J1310.5+3221_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/643436/ft1_4FGL_J1310.5+3221_daily_bin1754.fits outfile=/scratch/kocevski/643436/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1754.fits ra=197.632 dec=32.3547 rad=12.0 tmin=693964801.0 tmax=694224001.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 4.04
user 3.79
sys 0.20

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

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

Number of photons that the gtmktime cut: 578

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/643436/ft1_filtered_4FGL_J1310.5+3221_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/643436/ft2_4FGL_J1310.5+3221_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/643436/ltcube_693964801_694224001_4FGL_J1310.5+3221_daily_bin1754.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/643436/ft2_4FGL_J1310.5+3221_daily_bin1754.fits
.....................!
real 14.26
user 13.67
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/643436/ft1_filtered_4FGL_J1310.5+3221_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/643436/ft2_4FGL_J1310.5+3221_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/643436/ltcube_693964801_694224001_4FGL_J1310.5+3221_daily_bin1754.fits outfile=/scratch/kocevski/643436/expmap_693964801_694224001_4FGL_J1310.5+3221_daily_bin1754.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/643436/ltcube_693964801_694224001_4FGL_J1310.5+3221_daily_bin1754.fits
.....................!
real 194.19
user 186.56
sys 4.47

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/643436/ft1_filtered_4FGL_J1310.5+3221_daily_bin1754.fits scfile=/scratch/kocevski/643436/ft2_4FGL_J1310.5+3221_daily_bin1754.fits outfile=/scratch/kocevski/643436/cmap_693964801_694224001_4FGL_J1310.5+3221_daily_bin1754.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.62
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/643436/ft1_filtered_4FGL_J1310.5+3221_daily_bin1754.fits scfile=/scratch/kocevski/643436/ft2_4FGL_J1310.5+3221_daily_bin1754.fits outfile=/scratch/kocevski/643436/cmap_HighResolution_693964801_694224001_4FGL_J1310.5+3221_daily_bin1754.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3214       1.0000          .0000       .10000E+07
     2 'Prefactor '    .41365E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .33545E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.8620       1.0000          .0000       .10000E+07
     5 'norm      '    2.7591       1.0000          .0000       .10000E+07
     6 'Prefactor '    .28914E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .21450E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .30107E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .34179E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .11838E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .19522       1.0000          .0000       .10000E+07
    12 'norm      '    .48758E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    10.501       1.0000          .0000       .10000E+07
    14 'norm      '    5.7212       1.0000          .0000       .10000E+07
    15 'norm      '    21.285       1.0000          .0000       .10000E+07
    16 'norm      '    19.783       1.0000          .0000       .10000E+07
    17 'norm      '    7.9756       1.0000          .0000       .10000E+07
    18 'norm      '    11.883       1.0000          .0000       .10000E+07
    19 'Prefactor '    .29769       1.0000          .0000       .10000E+07
    20 'Prefactor '    .25179E-05   1.0000          .0000       .10000E+07
    21 'norm      '    22.659       1.0000          .0000       .10000E+07
    22 'Prefactor '    .24432E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .70973E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    11.179       1.0000          .0000       .10000E+07
    25 'Prefactor '    .72004E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    3.1292       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.3614       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .49004       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=   6175.591     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     2016 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3212        2.8467       -.33667E-06    .51042E-03
   2  Prefactor      .0000        2.0206        .35939E-07** at limit **
   3  Prefactor      .0000        1.2832       -.40621E-07** at limit **
   4  Prefactor     1.8664        1.9381        .72567E-07    .11961E-02
   5  norm          2.7813        2.9666        .10580E-06    .80129E-03
   6  Prefactor      .0000        3.7895       -.24367E-06** at limit **
   7  Prefactor     .46074E-08    7.0512       -.58058E-06** at limit **
   8  Prefactor     .66613E-09    8.2933       -.61708E-06** at limit **
   9  Prefactor      .0000        1.9151        .12035E-06** at limit **
  10  norm          .55511E-10    2.2443        .29961E-06** at limit **
  11  Prefactor     .42487E-05    111.17       -.21324E-05** at limit **
  12  norm           .0000        1.0977        .46344E-07** at limit **
  13  Prefactor     10.500        3.4539        .38154E-07    .23226E-01
  14  norm          5.7257        4.8265       -.85459E-08   -.63564E-03
  15  norm          21.275        1.0243       -.61490E-08    .30733E-02
  16  norm          19.801        4.1623       -.29266E-07    .67694E-02
  17  norm          7.9644        2.6442        .29240E-07   -.64579E-02
  18  norm          11.894        1.7705       -.84630E-07    .10107E-01
  19  Prefactor     .29829        8.4002        .41069E-06   -.87055E-03
  20  Prefactor     .62659E-05    27.248       -.16279E-05** at limit **
  21  norm          22.748        7.2184       -.47572E-06   -.45486E-01
  22  Prefactor     .77041E-05    18.556       -.25825E-06** at limit **
  23  norm          .55733E-06    27.043       -.12046E-06** at limit **
  24  Prefactor     11.198        1.1322        .42817E-07   -.61312E-02
  25  Prefactor      .0000        5.3258        .43871E-07** at limit **
  26  Prefactor     3.1211        3.0724       -.25620E-07   -.46851E-03
  27  Normalizat    1.3613        .18871       -.26088E-06    .78892E-05
  28  Prefactor     .49006        .21884        .72501E-05    .25232E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32121
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.86636
  norm       = 2.78126
  Prefactor  = 0
  Prefactor  = 4.60743e-09
  Prefactor  = 6.66134e-10
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 4.24866e-06
  norm       = 0
  Prefactor  = 10.5003
  norm       = 5.72574
  norm       = 21.2755
  norm       = 19.8009
  norm       = 7.96437
  norm       = 11.8936
  Prefactor  = 0.298288
  Prefactor  = 6.26588e-06
  norm       = 22.7481
  Prefactor  = 7.70406e-06
  norm       = 5.57332e-07
  Prefactor  = 11.1979
  Prefactor  = 0
  Prefactor  = 3.12115
  Normalizat = 1.36133
  Prefactor  = 0.49006
 **********
 **   18 **HESSE 
 **********

 FCN=   6175.591     FROM HESSE     STATUS=OK           585 CALLS     2601 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3212        2.9014        .95672E-03   -1.5685    
   2  Prefactor      .0000        2.0250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.2844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8664        1.9549        .76331E-03   -1.5681    
   5  norm          2.7813        2.9632        .61254E-03   -1.5675    
   6  Prefactor      .0000        3.7796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .46074E-08    7.0899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .66613E-09    8.2898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.9214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    2.2432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .42487E-05    19.522        .11862E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.0958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.500        16.549        .30895E-03   -1.5643    
  14  norm          5.7257        5.0167        .41969E-03   -1.5660    
  15  norm          21.275        12.547        .21681E-03   -1.5616    
  16  norm          19.801        6.9293        .22490E-03   -1.5619    
  17  norm          7.9644        9.6592        .35480E-03   -1.5652    
  18  norm          11.894        12.414        .29035E-03   -1.5639    
  19  Prefactor     .29829        1.7835        .58980E-02   -1.5697    
  20  Prefactor     .62659E-05    41.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          22.748        7.3702        .21013E-03   -1.5613    
  22  Prefactor     .77041E-05    36.349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .55733E-06    27.937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.198        11.338        .29940E-03   -1.5641    
  25  Prefactor      .0000        5.3340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.1211        3.0790        .57287E-03   -1.5673    
  27  Normalizat    1.3613        .17613        .31788E-01   -.81754    
  28  Prefactor     .49006        .20262        .84641E-01   -1.1244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12723e-07
Minuit parameter uncertainties:
  1  2.90136
  2  4.80238e-06
  3  1.21656e-06
  4  1.95491
  5  2.96324
  6  5.17304e-06
  7  0.000361067
  8  0.000147371
  9  2.70719e-06
  10  1.85477e-05
  11  0.0182145
  12  3.92876e-07
  13  16.5488
  14  5.0167
  15  12.5472
  16  6.92934
  17  9.65927
  18  12.414
  19  1.45877
  20  0.0323365
  21  7.37025
  22  0.0334687
  23  0.00789178
  24  11.3383
  25  1.59351e-05
  26  3.07899
  27  0.176209
  28  0.202921
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.980e+01  6.929e+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:  4.901e-01  2.029e-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.361e+00  1.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.12
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.73e-07 +/- 6.07e-08
Energy Flux (Fixed Index): 6.21e-05 +/- 2.17e-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) = 6174.54471201
delta logL = 1.04671823561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6174.54243809
delta logL = 1.04899214814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.134       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0485       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45472       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=   6174.542     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      240 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.126        128.49        .17118E-03    .19670E-02
   2  alpha         2.0487        1.9520        .11880        .90685E-04
   3  Normalizat    1.4093        .15654        .44551E-01   -.42536E-05
   4  Prefactor     .45475        .11834        .87663E-01    .41944E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 34.126
  alpha      = 2.04865
  Normalizat = 1.40934
  Prefactor  = 0.454754
 **********
 **   18 **HESSE 
 **********

 FCN=   6174.542     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.126        13.722        .34237E-04   -1.5591    
   2  alpha         2.0487        .25629        .49918E-02   -.18153    
   3  Normalizat    1.4093        .18770        .19692E-03   -.80359    
   4  Prefactor     .45475        .21777        .38846E-03   -1.1410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4796e-09
Minuit parameter uncertainties:
  1  13.7222
  2  0.256761
  3  0.18779
  4  0.218168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/643436': 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) = 6174.5424379
delta logL = 1.04899234255

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  3.413e+01  1.372e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        alpha:  2.049e+00  2.568e-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:  4.548e-01  2.182e-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.409e+00  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.14
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.05 +/- 0.26
Photon Flux (Free Index): 1.33e-07 +/- 4.69e-08
Energy Flux (Free Index): 8.89e-05 +/- 3.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/643436/cmap_HighResolution_693964801_694224001_4FGL_J1310.5+3221_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-07', energy_flux2='8.89e-05', photon_flux_error='6.07e-08', dlogl='1.05e+00', energy_flux='6.21e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2023-01-01 01:24:42.759372', photon_index_error2='0.26', photon_index2='2.05', ts='29.12', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', energy_flux_error2='3.72e-05', EG='1.36', time_epoch_completed='1672565082.76', return_code='0', job_id='643436', GAL2='0.45', EG2='1.41', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='4.69e-08', ts2='32.14', photon_index='2.42' WHERE bin_id='1754' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:24:42 PST 2023


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

Job <4FGL_J1310.5+3221_daily_bin1754> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jan  1 01:10:16 2023
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:10:55 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:10:55 2023
Terminated at Sun Jan  1 01:24:43 2023
Results reported at Sun Jan  1 01:24:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1754 197.632 32.3547 693964801 694224001 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 :                                   626.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            867 sec.

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

