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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin1774
RA = 197.363, Dec = 43.085
tmin = 699148801, tmax = 699408001
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='682664', job_status='RUN', time_executed='2023-03-02 00:46:01.503570', time_epoch_executed='1677746761.5' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682664

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682664/ft1_4FGL_J1309.4+4305_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682664/ft2_4FGL_J1309.4+4305_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682664/ft1_4FGL_J1309.4+4305_daily_bin1774.fits outfile=/scratch/kocevski/682664/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1774.fits ra=197.363 dec=43.085 rad=12.0 tmin=699148801.0 tmax=699408001.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.16
user 1.97
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/682664/ft2_4FGL_J1309.4+4305_daily_bin1774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/682664/ft2_4FGL_J1309.4+4305_daily_bin1774.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/682664/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/682664/ft1_filtered_4FGL_J1309.4+4305_daily_bin1774.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.41
user 0.25
sys 0.15

Number of photons that the gtmktime cut: 324

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682664/ft1_filtered_4FGL_J1309.4+4305_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/682664/ft2_4FGL_J1309.4+4305_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/682664/ltcube_699148801_699408001_4FGL_J1309.4+4305_daily_bin1774.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/682664/ft2_4FGL_J1309.4+4305_daily_bin1774.fits
.....................!
real 9.94
user 9.66
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682664/ft1_filtered_4FGL_J1309.4+4305_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/682664/ft2_4FGL_J1309.4+4305_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/682664/ltcube_699148801_699408001_4FGL_J1309.4+4305_daily_bin1774.fits outfile=/scratch/kocevski/682664/expmap_699148801_699408001_4FGL_J1309.4+4305_daily_bin1774.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/682664/ltcube_699148801_699408001_4FGL_J1309.4+4305_daily_bin1774.fits
.....................!
real 146.13
user 142.02
sys 3.87

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 208 point sources and 0 extended sources

Setting source of interest to:
4FGL J1309.4+4305 @ 197.363 43.085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/682664/ft1_filtered_4FGL_J1309.4+4305_daily_bin1774.fits scfile=/scratch/kocevski/682664/ft2_4FGL_J1309.4+4305_daily_bin1774.fits outfile=/scratch/kocevski/682664/cmap_699148801_699408001_4FGL_J1309.4+4305_daily_bin1774.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.363 yref=43.085 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.44
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682664/ft1_filtered_4FGL_J1309.4+4305_daily_bin1774.fits scfile=/scratch/kocevski/682664/ft2_4FGL_J1309.4+4305_daily_bin1774.fits outfile=/scratch/kocevski/682664/cmap_HighResolution_699148801_699408001_4FGL_J1309.4+4305_daily_bin1774.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.363 yref=43.085 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.45
user 0.28
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682664/ft1_filtered_4FGL_J1309.4+4305_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/682664/ft2_4FGL_J1309.4+4305_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682664/Model_4FGL_J1309.4+4305_daily_bin1774.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/682664/ft1_filtered_4FGL_J1309.4+4305_daily_bin1774.fits.....................!
real 27.58
user 26.54
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/682664/ft1_filtered_4FGL_J1309.4+4305_daily_bin1774.fits', '/scratch/kocevski/682664/ft2_4FGL_J1309.4+4305_daily_bin1774.fits', expMap='/scratch/kocevski/682664/expmap_699148801_699408001_4FGL_J1309.4+4305_daily_bin1774.fits', expCube='/scratch/kocevski/682664/ltcube_699148801_699408001_4FGL_J1309.4+4305_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/682664/Model_4FGL_J1309.4+4305_daily_bin1774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1309.4+4305'

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.179e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/682664/ft1_filtered_4FGL_J1309.4+4305_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/682664/ft2_4FGL_J1309.4+4305_daily_bin1774.fits
Exposure map: /scratch/kocevski/682664/expmap_699148801_699408001_4FGL_J1309.4+4305_daily_bin1774.fits
Exposure cube: /scratch/kocevski/682664/ltcube_699148801_699408001_4FGL_J1309.4+4305_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/682664/Model_4FGL_J1309.4+4305_daily_bin1774.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) = 3669.7376181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48376E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .27751E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    24.831       1.0000          .0000       .10000E+07
     4 'Prefactor '    37.696       1.0000          .0000       .10000E+07
     5 'norm      '    1.8065       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.7855       1.0000          .0000       .10000E+07
     7 'norm      '    .37149E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .84463E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    5.9205       1.0000          .0000       .10000E+07
    10 'norm      '    .27031E-03   1.0000          .0000       .10000E+07
    11 'norm      '    38.508       1.0000          .0000       .10000E+07
    12 'norm      '    13.245       1.0000          .0000       .10000E+07
    13 'norm      '    6.9111       1.0000          .0000       .10000E+07
    14 'norm      '    4.6311       1.0000          .0000       .10000E+07
    15 'Prefactor '    .27106E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .32688E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .11364E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .17904E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .21648       1.0000          .0000       .10000E+07
    20 'norm      '    6.2338       1.0000          .0000       .10000E+07
    21 'norm      '    .42237       1.0000          .0000       .10000E+07
    22 'norm      '    20.929       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1754       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80176       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3669.671     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1972 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        8.6510       -.25657E-07** at limit **
   2  Prefactor     .23315E-08    18.691        .10796E-06** at limit **
   3  Prefactor     26.051        18.717        .40815E-06    .56338E-01
   4  Prefactor     39.348        30.470       -.14925E-08    .37445E-01
   5  norm          1.8047        2.0597       -.43541E-08    .46756E-03
   6  Prefactor     4.3847        10.889       -.10690E-06   -.73298E-02
   7  norm           .0000        2.0917        .23594E-07** at limit **
   8  Prefactor     .77716E-09    10.298        .44703E-07** at limit **
   9  Prefactor     6.7395        19.151        .79003E-06    .39706E-01
  10  norm           .0000        2.3864       -.70996E-08** at limit **
  11  norm          38.514        1.8444       -.20484E-07   -.21296E-01
  12  norm          13.322        5.9070       -.25374E-07    .26611E-02
  13  norm          6.8555        4.9494        .28294E-08   -.23320E-02
  14  norm          4.6823        4.9586        .11297E-06    .14261E-02
  15  Prefactor      .0000        1.6878        .76604E-08** at limit **
  16  Prefactor      .0000        7.5602       -.59555E-07** at limit **
  17  Prefactor     .10617E-04    39.977       -.44280E-06** at limit **
  18  Prefactor     .67557E-05    47.790        .86107E-06** at limit **
  19  Prefactor     .33524E-02    371.30       -.17723E-05** at limit **
  20  norm          6.2087        5.5881        .11693E-06    .26744E-02
  21  norm          .42362        .95382        .79302E-07    .19405E-02
  22  norm          21.205        16.287        .68777E-07    .13485    
  23  Normalizat    1.1733        .25857        .87978E-05    .18604E-03
  24  Prefactor     .80170        .30571       -.65206E-05    .94368E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 2.33147e-09
  Prefactor  = 26.0508
  Prefactor  = 39.3476
  norm       = 1.80469
  Prefactor  = 4.38469
  norm       = 0
  Prefactor  = 7.77156e-10
  Prefactor  = 6.73946
  norm       = 0
  norm       = 38.5142
  norm       = 13.3225
  norm       = 6.85548
  norm       = 4.68233
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.06165e-05
  Prefactor  = 6.75565e-06
  Prefactor  = 0.00335242
  norm       = 6.20873
  norm       = 0.42362
  norm       = 21.2051
  Normalizat = 1.17328
  Prefactor  = 0.801702
 **********
 **   18 **HESSE 
 **********

 FCN=   3669.671     FROM HESSE     STATUS=OK           457 CALLS     2429 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        8.6378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .23315E-08    18.740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.051        29.631        .20072E-03   -1.5606    
   4  Prefactor     39.348        44.384        .16289E-03   -1.5583    
   5  norm          1.8047        2.0722        .77720E-03   -1.5681    
   6  Prefactor     4.3847        12.213        .45967E-03   -1.5666    
   7  norm           .0000        2.0914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .77716E-09    10.291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.7395        31.902        .41247E-03   -1.5656    
  10  norm           .0000        2.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          38.514        26.363        .16117E-03   -1.5584    
  12  norm          13.322        10.764        .27497E-03   -1.5635    
  13  norm          6.8555        17.058        .38139E-03   -1.5656    
  14  norm          4.6823        4.9936        .46745E-03   -1.5665    
  15  Prefactor      .0000        1.6860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        7.5691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10617E-04    49.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .67557E-05    63.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .33524E-02    47.648        .13038E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.2087        5.6249        .40182E-03   -1.5658    
  21  norm          .42362        1.1212        .20171E-02   -1.5695    
  22  norm          21.205        17.758        .21865E-03   -1.5616    
  23  Normalizat    1.1733        .22935        .35525E-01   -.87433    
  24  Prefactor     .80170        .26620        .71270E-01   -.99666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12876e-06
Minuit parameter uncertainties:
  1  6.31365e-06
  2  0.000419229
  3  29.6311
  4  44.384
  5  2.07219
  6  12.2131
  7  7.75608e-07
  8  0.000180178
  9  29.3261
  10  8.83468e-07
  11  26.363
  12  10.7638
  13  17.0581
  14  4.99362
  15  3.53804e-09
  16  2.4756e-05
  17  0.0457494
  18  0.0415053
  19  0.799343
  20  5.62487
  21  1.12115
  22  17.7579
  23  0.229546
  24  0.266628
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.851e+01  2.636e+01  0.000e+00  1.000e+06 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  8.017e-01  2.666e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.173e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.84
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 4.43e-05 +/- 3.03e-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) = 3669.02286217
delta logL = 0.648405881353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3669.01554213
delta logL = 0.655725916217

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    30.757       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3300       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80829       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3669.016     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      261 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          30.714        443.04        .18034E-03    .30862E-03
   2  alpha         2.3286        3.6062        .19452        .57580E-04
   3  Normalizat    1.1461        .14871        .36375E-01   -.36400E-03
   4  Prefactor     .80857        .13893        .70877E-01   -.25277E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 30.7136
  alpha      = 2.32859
  Normalizat = 1.14607
  Prefactor  = 0.808571
 **********
 **   18 **HESSE 
 **********

 FCN=   3669.016     FROM HESSE     STATUS=OK            29 CALLS      290 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          30.714        23.772        .72136E-05   -1.5597    
   2  alpha         2.3286        .49713        .79083E-02   -.68619E-01
   3  Normalizat    1.1461        .25329        .22241E-03   -.88286    
   4  Prefactor     .80857        .30426        .31362E-03   -.99413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51419e-10
Minuit parameter uncertainties:
  1  23.7717
  2  0.500478
  3  0.253555
  4  0.304894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682664': 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) = 3669.01552576
delta logL = 0.6557422911

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.071e+01  2.377e+01  0.000e+00  1.000e+06 ( 1.000e-13)
350        alpha:  2.329e+00  5.005e-01  0.000e+00  5.000e+00 ( 1.000e+00)
351         beta:  8.354e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  8.086e-01  3.049e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.146e+00  2.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.11
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.33 +/- 0.50
Photon Flux (Free Index): 7.62e-08 +/- 5.20e-08
Energy Flux (Free Index): 3.01e-05 +/- 1.94e-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/682664/cmap_HighResolution_699148801_699408001_4FGL_J1309.4+4305_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='3.01e-05', photon_flux_error='2.76e-08', dlogl='6.56e-01', energy_flux='4.43e-05', photon_flux2='7.62e-08', job_status='DONE', time_completed='2023-03-02 00:52:08.133488', photon_index_error2='0.50', photon_index2='2.33', ts='4.84', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.94e-05', EG='1.17', time_epoch_completed='1677747128.13', return_code='0', job_id='682664', GAL2='0.81', EG2='1.15', return_code2='0', energy_flux_error='3.03e-05', photon_flux_error2='5.20e-08', ts2='6.11', photon_index='1.77' WHERE bin_id='1774' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:52:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0168>
Subject: Job 682664: <4FGL_J1309.4+4305_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin1774> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Mar  2 00:45:18 2023
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:45:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:45:19 2023
Terminated at Thu Mar  2 00:52:08 2023
Results reported at Thu Mar  2 00:52:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin1774 197.363 43.085 699148801 699408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1309.4+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   368.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   409 sec.
    Turnaround time :                            410 sec.

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

