/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 5 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1271
RA = 197.129, Dec = 35.7918
tmin = 568771201, tmax = 569030401
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='272473', job_status='RUN', time_executed='2021-09-07 00:36:12.236688', time_epoch_executed='1631000172.24' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272473

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272473/ft1_4FGL_J1308.5+3547_daily_bin1271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272473/ft2_4FGL_J1308.5+3547_daily_bin1271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272473/ft1_4FGL_J1308.5+3547_daily_bin1271.fits outfile=/scratch/kocevski/272473/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1271.fits ra=197.129 dec=35.7918 rad=12.0 tmin=568771201.0 tmax=569030401.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 3.54
user 3.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/272473/ft2_4FGL_J1308.5+3547_daily_bin1271.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/272473/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1271.fits evtable="EVENTS" outfile="/scratch/kocevski/272473/ft1_filtered_4FGL_J1308.5+3547_daily_bin1271.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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272473/ft1_filtered_4FGL_J1308.5+3547_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/272473/ft2_4FGL_J1308.5+3547_daily_bin1271.fits sctable="SC_DATA" expcube=/scratch/kocevski/272473/ltcube_568771201_569030401_4FGL_J1308.5+3547_daily_bin1271.fits outfile=/scratch/kocevski/272473/expmap_568771201_569030401_4FGL_J1308.5+3547_daily_bin1271.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/272473/ltcube_568771201_569030401_4FGL_J1308.5+3547_daily_bin1271.fits
.....................!
real 191.68
user 186.85
sys 4.29

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/272473/ft1_filtered_4FGL_J1308.5+3547_daily_bin1271.fits scfile=/scratch/kocevski/272473/ft2_4FGL_J1308.5+3547_daily_bin1271.fits outfile=/scratch/kocevski/272473/cmap_568771201_569030401_4FGL_J1308.5+3547_daily_bin1271.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272473/ft1_filtered_4FGL_J1308.5+3547_daily_bin1271.fits scfile=/scratch/kocevski/272473/ft2_4FGL_J1308.5+3547_daily_bin1271.fits outfile=/scratch/kocevski/272473/cmap_HighResolution_568771201_569030401_4FGL_J1308.5+3547_daily_bin1271.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/272473/ft1_filtered_4FGL_J1308.5+3547_daily_bin1271.fits', '/scratch/kocevski/272473/ft2_4FGL_J1308.5+3547_daily_bin1271.fits', expMap='/scratch/kocevski/272473/expmap_568771201_569030401_4FGL_J1308.5+3547_daily_bin1271.fits', expCube='/scratch/kocevski/272473/ltcube_568771201_569030401_4FGL_J1308.5+3547_daily_bin1271.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/272473/Model_4FGL_J1308.5+3547_daily_bin1271.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  1.000e-04  1.000e+04 ( 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  0.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/272473/ft1_filtered_4FGL_J1308.5+3547_daily_bin1271.fits
Spacecraft file(s): /scratch/kocevski/272473/ft2_4FGL_J1308.5+3547_daily_bin1271.fits
Exposure map: /scratch/kocevski/272473/expmap_568771201_569030401_4FGL_J1308.5+3547_daily_bin1271.fits
Exposure cube: /scratch/kocevski/272473/ltcube_568771201_569030401_4FGL_J1308.5+3547_daily_bin1271.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/272473/Model_4FGL_J1308.5+3547_daily_bin1271.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) = 6862.49594519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21621E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0427       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3534       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    123.04       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5397       1.0000         .10000E-03   10000.    
     7 'norm      '    4.9567       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9628       1.0000         .10000E-03   10000.    
    10 'norm      '    5.7383       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.536       1.0000         .10000E-03   10000.    
    13 'norm      '    21.498       1.0000         .10000E-03   10000.    
    14 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0477       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    122.20       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4878       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.148       1.0000         .10000E-03   10000.    
    21 'Prefactor '    76.943       1.0000         .10000E-03   10000.    
    22 'norm      '    19.888       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    23.419       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .42126       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.5053       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.

 FCN=   6862.494     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3135 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    15.766        .86788E-05** at limit **
   2  Prefactor     2.0427        1.7939        .12971E-07   -.14769E-04
   3  Prefactor     9.3536        9.0241        .78530E-07    .23719E-03
   4  Prefactor     .10000E-03    7.7311       -.11259E-05** at limit **
   5  Prefactor     123.04        94.217       -.37674E-06    .52251E-04
   6  Prefactor     3.5400        3.9420        .52624E-06    .15334E-02
   7  norm          4.9570        6.2211        .12447E-05    .72633E-03
   8  Prefactor     .10000E-03    25.447        .47862E-05** at limit **
   9  Prefactor     1.9735        111.50       -.18706E-04   -.89063E-04
  10  norm          5.7385        4.1903       -.15809E-06   -.70539E-05
  11  Prefactor     .10000E-03    6.9882        .10062E-05** at limit **
  12  norm          13.537        6.4676        .38805E-06    .49361E-03
  13  norm          21.498        17.291       -.19245E-06   -.49952E-04
  14  norm          .10000E-03    1.5569        .18507E-06** at limit **
  15  norm          4.0480        3.8828        .27215E-06    .11939E-03
  16  Prefactor     .10000E-03    .90928        .52463E-07** at limit **
  17  Prefactor     .10000E-03    12.911        .30548E-05** at limit **
  18  Prefactor     122.20        66.165       -.61633E-06   -.63088E-04
  19  Prefactor     6.4892        16.346       -.91190E-06   -.31470E-04
  20  Prefactor     12.147        20.452        .54349E-06    .26845E-04
  21  Prefactor     76.944        62.595       -.50522E-06   -.92793E-05
  22  norm          19.888        3.0990       -.13091E-07   -.23016E-04
  23  Prefactor     .10000E-03    1.0209       -.27182E-07** at limit **
  24  norm          23.419        14.207       -.56760E-07   -.55984E-05
  25  Normalizat    .42130        .17289        .18835E-05    .31412E-04
  26  Prefactor     1.5052        .21289       -.32080E-06    .93984E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100038
  Prefactor  = 2.04266
  Prefactor  = 9.3536
  Prefactor  = 0.0001
  Prefactor  = 123.043
  Prefactor  = 3.53998
  norm       = 4.95702
  Prefactor  = 0.000100001
  Prefactor  = 1.97354
  norm       = 5.73845
  Prefactor  = 0.0001
  norm       = 13.5366
  norm       = 21.4978
  norm       = 0.0001
  norm       = 4.04795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 122.204
  Prefactor  = 6.4892
  Prefactor  = 12.1469
  Prefactor  = 76.9441
  norm       = 19.8881
  Prefactor  = 0.0001
  norm       = 23.419
  Normalizat = 0.421298
  Prefactor  = 1.50522
 **********
 **   18 **HESSE 
 **********

 FCN=   6862.494     FROM HESSE     STATUS=OK           460 CALLS     3595 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    18.746        .32738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0427        1.7958        .10122E-03   -1.5422    
   3  Prefactor     9.3536        9.0487        .65520E-03   -1.5096    
   4  Prefactor     .10000E-03    7.7399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     123.04        93.921        .36285E-04   -1.3485    
   6  Prefactor     3.5400        4.2916        .91372E-03   -1.5332    
   7  norm          4.9570        6.1618        .18064E-03   -1.5263    
   8  Prefactor     .10000E-03    25.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9735        115.83        .29606E-03   -1.5427    
  10  norm          5.7385        4.1864        .13977E-03   -1.5229    
  11  Prefactor     .10000E-03    7.0202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.537        6.4568        .54434E-03   -1.4972    
  13  norm          21.498        17.305        .86387E-04   -1.4780    
  14  norm          .10000E-03    1.5758        .10073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.0480        3.8815        .15458E-03   -1.5306    
  16  Prefactor     .10000E-03    .91330        .77067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     122.20        66.106        .36408E-04   -1.3493    
  19  Prefactor     6.4892        16.259        .15756E-03   -1.5198    
  20  Prefactor     12.147        20.366        .11493E-03   -1.5011    
  21  Prefactor     76.944        62.550        .45779E-04   -1.3951    
  22  norm          19.888        3.0966        .55333E-04   -1.4816    
  23  Prefactor     .10000E-03    1.0254        .81726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          23.419        14.202        .82773E-04   -1.4740    
  25  Normalizat    .42130        .19327        .34419E-03   -1.1621    
  26  Prefactor     1.5052        .24424        .24964E-03   -.77394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76621e-09
Minuit parameter uncertainties:
  1  0.00168158
  2  1.79587
  3  9.05005
  4  2.73608e-05
  5  94.0349
  6  4.29198
  7  6.16259
  8  0.000291042
  9  30.2999
  10  4.18661
  11  6.06939e-05
  12  6.45709
  13  17.309
  14  2.43642e-05
  15  3.88173
  16  4.70282e-06
  17  0.000147704
  18  66.1459
  19  16.2698
  20  20.3776
  21  62.6032
  22  3.09667
  23  2.29855e-06
  24  14.2045
  25  0.193572
  26  0.244429
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.354e+01  6.457e+00  1.000e-04  1.000e+04 ( 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  0.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.505e+00  2.444e-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:  4.213e-01  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.58
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.90e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.16e-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) = 6862.23568574
delta logL = 0.257871385265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6862.22743361
delta logL = 0.266123514216

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.309       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8687       1.0000          .0000       5.0000    
     3 'Normalizat'    .43418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4964       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.

 FCN=   6862.227     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.316        9.2001        .26471E-02   -.11160E-02
   2  alpha         1.8687        .54085        .32182       -.18560E-05
   3  Normalizat    .43434        .16280        .76589E-01    .35770E-04
   4  Prefactor     1.4964        .21160        .56610E-01   -.83031E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.3161
  alpha      = 1.86865
  Normalizat = 0.434341
  Prefactor  = 1.49641
 **********
 **   18 **HESSE 
 **********

 FCN=   6862.227     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.316        6.7808        .10589E-03   -1.4951    
   2  alpha         1.8687        .42688        .13199E-01   -.25530    
   3  Normalizat    .43434        .18473        .33919E-03   -1.1556    
   4  Prefactor     1.4964        .24181        .25029E-03   -.77640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22076e-10
Minuit parameter uncertainties:
  1  6.7812
  2  0.429123
  3  0.184986
  4  0.241999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272473': 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) = 6862.22743093
delta logL = 0.266126189988

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.432e+01  6.781e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.869e+00  4.291e-01  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  2.294e-01  0.000e+00  0.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.496e+00  2.420e-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:  4.343e-01  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.10
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.87 +/- 0.43
Photon Flux (Free Index): 4.70e-08 +/- 2.76e-08
Energy Flux (Free Index): 2.76e-05 +/- 1.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/272473/cmap_HighResolution_568771201_569030401_4FGL_J1308.5+3547_daily_bin1271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.90e-08', energy_flux2='2.76e-05', photon_flux_error='2.81e-08', dlogl='2.66e-01', energy_flux='2.44e-05', photon_flux2='4.70e-08', job_status='DONE', time_completed='2021-09-07 00:48:02.074653', photon_index_error2='0.43', photon_index2='1.87', ts='13.58', fit_tolerance='1e-08', GAL='1.51', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='0.42', time_epoch_completed='1631000882.07', return_code='0', job_id='272473', GAL2='1.50', EG2='0.43', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='2.76e-08', ts2='14.10', photon_index='2.18' WHERE bin_id='1271' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:48:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 272473: <4FGL_J1308.5+3547_daily_bin1271> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1271> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:36 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:35:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 00:35:57 2021
Terminated at Tue Sep  7 00:48:02 2021
Results reported at Tue Sep  7 00:48:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1271 197.129 35.7918 568771201 569030401 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 :                                   704.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             380.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            746 sec.

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

