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 0 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_J1308.5+3547_daily_bin1758
RA = 197.129, Dec = 35.7918
tmin = 695001601, tmax = 695260801
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='366402', job_status='RUN', time_executed='2023-01-13 00:46:51.808395', time_epoch_executed='1673599611.81' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366402

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366402/ft1_4FGL_J1308.5+3547_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366402/ft2_4FGL_J1308.5+3547_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366402/ft1_4FGL_J1308.5+3547_daily_bin1758.fits outfile=/scratch/kocevski/366402/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1758.fits ra=197.129 dec=35.7918 rad=12.0 tmin=695001601.0 tmax=695260801.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.77
user 2.56
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/366402/ft2_4FGL_J1308.5+3547_daily_bin1758.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/366402/ft2_4FGL_J1308.5+3547_daily_bin1758.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/366402/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/366402/ft1_filtered_4FGL_J1308.5+3547_daily_bin1758.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 834

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/366402/ft1_filtered_4FGL_J1308.5+3547_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/366402/ft2_4FGL_J1308.5+3547_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/366402/ltcube_695001601_695260801_4FGL_J1308.5+3547_daily_bin1758.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/366402/ft2_4FGL_J1308.5+3547_daily_bin1758.fits
.....................!
real 16.04
user 15.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366402/ft1_filtered_4FGL_J1308.5+3547_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/366402/ft2_4FGL_J1308.5+3547_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/366402/ltcube_695001601_695260801_4FGL_J1308.5+3547_daily_bin1758.fits outfile=/scratch/kocevski/366402/expmap_695001601_695260801_4FGL_J1308.5+3547_daily_bin1758.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/366402/ltcube_695001601_695260801_4FGL_J1308.5+3547_daily_bin1758.fits
.....................!
real 191.77
user 186.74
sys 4.52

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 J1308.5+3547 @ 197.129 35.7918

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/366402/ft1_filtered_4FGL_J1308.5+3547_daily_bin1758.fits scfile=/scratch/kocevski/366402/ft2_4FGL_J1308.5+3547_daily_bin1758.fits outfile=/scratch/kocevski/366402/cmap_695001601_695260801_4FGL_J1308.5+3547_daily_bin1758.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.129 yref=35.7918 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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/366402/ft1_filtered_4FGL_J1308.5+3547_daily_bin1758.fits scfile=/scratch/kocevski/366402/ft2_4FGL_J1308.5+3547_daily_bin1758.fits outfile=/scratch/kocevski/366402/cmap_HighResolution_695001601_695260801_4FGL_J1308.5+3547_daily_bin1758.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.129 yref=35.7918 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/366402/ft1_filtered_4FGL_J1308.5+3547_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/366402/ft2_4FGL_J1308.5+3547_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/366402/Model_4FGL_J1308.5+3547_daily_bin1758.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/366402/ft1_filtered_4FGL_J1308.5+3547_daily_bin1758.fits.....................!
real 67.45
user 66.05
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/366402/ft1_filtered_4FGL_J1308.5+3547_daily_bin1758.fits', '/scratch/kocevski/366402/ft2_4FGL_J1308.5+3547_daily_bin1758.fits', expMap='/scratch/kocevski/366402/expmap_695001601_695260801_4FGL_J1308.5+3547_daily_bin1758.fits', expCube='/scratch/kocevski/366402/ltcube_695001601_695260801_4FGL_J1308.5+3547_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/366402/Model_4FGL_J1308.5+3547_daily_bin1758.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1308.5+3547'

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.918e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
318        alpha:  2.182e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  2.294e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/366402/ft1_filtered_4FGL_J1308.5+3547_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/366402/ft2_4FGL_J1308.5+3547_daily_bin1758.fits
Exposure map: /scratch/kocevski/366402/expmap_695001601_695260801_4FGL_J1308.5+3547_daily_bin1758.fits
Exposure cube: /scratch/kocevski/366402/ltcube_695001601_695260801_4FGL_J1308.5+3547_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/366402/Model_4FGL_J1308.5+3547_daily_bin1758.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) = 8841.63857078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.128       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.7829       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.246       1.0000          .0000       .10000E+07
     4 'Prefactor '    .17339E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.7222       1.0000          .0000       .10000E+07
     6 'norm      '    5.3553       1.0000          .0000       .10000E+07
     7 'Prefactor '    .45716E-05   1.0000          .0000       .10000E+07
     8 'norm      '    .21544E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .66511E-04   1.0000          .0000       .10000E+07
    10 'norm      '    3.2187       1.0000          .0000       .10000E+07
    11 'norm      '    .35838E-06   1.0000          .0000       .10000E+07
    12 'norm      '    69.246       1.0000          .0000       .10000E+07
    13 'norm      '    .17591E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10680E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17855E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .95507E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .18910E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    41.130       1.0000          .0000       .10000E+07
    19 'norm      '    1.0917       1.0000          .0000       .10000E+07
    20 'Prefactor '    .43854E-07   1.0000          .0000       .10000E+07
    21 'norm      '    .22623E-05   1.0000          .0000       .10000E+07
    22 'Normalizat'    .92117       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1093       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8841.579     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1469 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.126        1.5357        .30682E-09   -.80510E-02
   2  Prefactor     2.7845        2.2327       -.17420E-07   -.90984E-03
   3  Prefactor     10.241        1.0635        .48477E-08   -.39494E-03
   4  Prefactor     .30187E-06    4.0621       -.20096E-07** at limit **
   5  Prefactor     4.7566        4.2418       -.87571E-08    .14231E-03
   6  norm          5.3580        4.0451        .33858E-08    .13060E-03
   7  Prefactor     .22973E-05    14.845        .15608E-07** at limit **
   8  norm           .0000        .80295       -.74966E-07** at limit **
   9  Prefactor     .43465E-06    3.8422        .49497E-07** at limit **
  10  norm          3.2063        3.9942        .64230E-07    .16383E-02
  11  norm          .15543E-08    2.9057       -.10983E-06** at limit **
  12  norm          69.277        7.3512       -.44128E-08    .13085E-01
  13  norm          .73774E-07    3.4461        .12637E-06** at limit **
  14  Prefactor      .0000        1.2042        .55269E-07** at limit **
  15  Prefactor     .29754E-06    7.7831        .14970E-06** at limit **
  16  Prefactor     .21674E-05    16.828       -.15909E-06** at limit **
  17  Prefactor     .59397E-07    5.2871        .14501E-06** at limit **
  18  Prefactor     40.661        5.1843        .13851E-07   -.28502E-01
  19  norm          1.0936        .97296       -.37215E-08    .26685E-03
  20  Prefactor     .16653E-09    2.2688       -.17078E-06** at limit **
  21  norm          .17208E-08    3.1522       -.11056E-06** at limit **
  22  Normalizat    .92139        .17811       -.35120E-05    .16706E-03
  23  Prefactor     1.1093        .22231        .59348E-05    .26540E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1261
  Prefactor  = 2.78451
  Prefactor  = 10.2412
  Prefactor  = 3.0187e-07
  Prefactor  = 4.75663
  norm       = 5.35797
  Prefactor  = 2.29733e-06
  norm       = 0
  Prefactor  = 4.34652e-07
  norm       = 3.20634
  norm       = 1.55431e-09
  norm       = 69.2767
  norm       = 7.37743e-08
  Prefactor  = 0
  Prefactor  = 2.9754e-07
  Prefactor  = 2.16738e-06
  Prefactor  = 5.93969e-08
  Prefactor  = 40.6612
  norm       = 1.09356
  Prefactor  = 1.66533e-10
  norm       = 1.72085e-09
  Normalizat = 0.921394
  Prefactor  = 1.10935
 **********
 **   18 **HESSE 
 **********

 FCN=   8841.579     FROM HESSE     STATUS=OK           414 CALLS     1883 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.126        8.0014        .28739E-03   -1.5638    
   2  Prefactor     2.7845        2.2483        .60972E-03   -1.5675    
   3  Prefactor     10.241        12.157        .31279E-03   -1.5644    
   4  Prefactor     .30187E-06    4.9323        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7566        4.2418        .46281E-03   -1.5664    
   6  norm          5.3580        4.0510        .43404E-03   -1.5662    
   7  Prefactor     .22973E-05    21.622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .80273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .43465E-06    5.1692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2063        4.0075        .56442E-03   -1.5672    
  11  norm          .15543E-08    2.9167        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          69.277        7.4435        .12018E-03   -1.5541    
  13  norm          .73774E-07    8.1011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.2015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .29754E-06    9.2493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21674E-05    22.768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .59397E-07    7.6156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     40.661        20.160        .15594E-03   -1.5580    
  19  norm          1.0936        1.0670        .19749E-02   -1.5687    
  20  Prefactor     .16653E-09    2.2474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .17208E-08    3.1612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .92139        .14905        .45172E-01   -.95712    
  23  Prefactor     1.1093        .18496        .67386E-01   -.89168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09113e-07
Minuit parameter uncertainties:
  1  8.00141
  2  2.24833
  3  12.1567
  4  0.00244042
  5  4.24183
  6  4.05102
  7  0.0140958
  8  8.74902e-06
  9  0.00299785
  10  4.00746
  11  0.000135386
  12  7.44346
  13  0.00154631
  14  7.23042e-06
  15  0.00331773
  16  0.0140494
  17  0.00134496
  18  20.1597
  19  1.06701
  20  3.75186e-05
  21  0.000146999
  22  0.149115
  23  0.185066
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.206e+00  4.007e+00  0.000e+00  1.000e+06 ( 1.000e-12)
318        alpha:  2.182e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  2.294e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.109e+00  1.851e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  9.214e-01  1.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.40e-08 +/- 1.75e-08
Energy Flux (Fixed Index): 5.77e-06 +/- 7.21e-06

TS (Fixed Index): 1.08
Ra Dec: 197.129 35.792
Photon Flux Upper Limit: 5.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/366402/likelihoodResults_695001601_695260801_4FGL_J1308.5+3547_daily_bin1758.txt

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) = 8841.43748601
delta logL = 0.141080775493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8841.43282491
delta logL = 0.1457418835

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8841.433     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      241 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9465        4.1241        .15866E-04    .26068E-02
   2  alpha         2.8775        1.2878        .26463E-01    .16281E-04
   3  Normalizat    .90458        .18042        .25970E-03   -.16845E-03
   4  Prefactor     1.1216        .22411        .29656E-03   -.21652E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.94654
  alpha      = 2.87754
  Normalizat = 0.904579
  Prefactor  = 1.12156
 **********
 **   18 **HESSE 
 **********

 FCN=   8841.433     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9465        3.7397        .63463E-06   -1.5674    
   2  alpha         2.8775        1.1768        .10585E-02    .15160    
   3  Normalizat    .90458        .17998        .10388E-04   -.96299    
   4  Prefactor     1.1216        .22381        .11862E-04   -.88780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70917e-11
Minuit parameter uncertainties:
  1  3.73966
  2  1.22648
  3  0.180095
  4  0.223994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366402': 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) = 8841.43282487
delta logL = 0.14574191829

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  2.947e+00  3.740e+00  0.000e+00  1.000e+06 ( 1.000e-12)
318        alpha:  2.878e+00  1.226e+00  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  2.294e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.122e+00  2.240e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  9.046e-01  1.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 197.129 35.792
Photon Index (Free Index): 2.88 +/- 1.23
Photon Flux (Free Index): 2.93e-08 +/- 3.97e-08
Energy Flux (Free Index): 7.20e-06 +/- 7.53e-06

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/366402/cmap_HighResolution_695001601_695260801_4FGL_J1308.5+3547_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', comment='SUCCESS', photon_flux='1.40e-08', energy_flux2='7.20e-06', photon_flux_error='1.75e-08', dlogl='1.46e-01', energy_flux='5.77e-06', photon_flux2='2.93e-08', job_status='DONE', time_completed='2023-01-13 00:58:32.212449', photon_index_error2='1.23', photon_index2='2.88', ts='1.08', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='5.92e-08', energy_flux_error2='7.53e-06', EG='0.92', time_epoch_completed='1673600312.21', return_code='0', job_id='366402', GAL2='1.12', EG2='0.90', return_code2='0', energy_flux_error='7.21e-06', photon_flux_error2='3.97e-08', ts2='1.38', photon_index='2.18' WHERE bin_id='1758' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:58:32 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 366402: <4FGL_J1308.5+3547_daily_bin1758> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1758> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Jan 13 00:45:20 2023
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:46:43 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:46:43 2023
Terminated at Fri Jan 13 00:58:33 2023
Results reported at Fri Jan 13 00:58:33 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1758 197.129 35.7918 695001601 695260801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1308.5+3547 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   702.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            793 sec.

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

