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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin868
RA = 197.129, Dec = 35.7918
tmin = 464313601, tmax = 464572801
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='268153', job_status='RUN', time_executed='2021-09-07 00:25:50.444391', time_epoch_executed='1630999550.44' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268153

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268153/ft1_4FGL_J1308.5+3547_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268153/ft2_4FGL_J1308.5+3547_daily_bin868.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268153/ft1_4FGL_J1308.5+3547_daily_bin868.fits outfile=/scratch/kocevski/268153/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin868.fits ra=197.129 dec=35.7918 rad=12.0 tmin=464313601.0 tmax=464572801.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.44
user 3.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268153/ft1_filtered_4FGL_J1308.5+3547_daily_bin868.fits" evtable="EVENTS" scfile=/scratch/kocevski/268153/ft2_4FGL_J1308.5+3547_daily_bin868.fits sctable="SC_DATA" outfile=/scratch/kocevski/268153/ltcube_464313601_464572801_4FGL_J1308.5+3547_daily_bin868.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/268153/ft2_4FGL_J1308.5+3547_daily_bin868.fits
.....................!
real 12.24
user 11.92
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268153/ft1_filtered_4FGL_J1308.5+3547_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/268153/ft2_4FGL_J1308.5+3547_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/268153/ltcube_464313601_464572801_4FGL_J1308.5+3547_daily_bin868.fits outfile=/scratch/kocevski/268153/expmap_464313601_464572801_4FGL_J1308.5+3547_daily_bin868.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/268153/ltcube_464313601_464572801_4FGL_J1308.5+3547_daily_bin868.fits
.....................!
real 191.14
user 185.42
sys 5.32

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/268153/ft1_filtered_4FGL_J1308.5+3547_daily_bin868.fits scfile=/scratch/kocevski/268153/ft2_4FGL_J1308.5+3547_daily_bin868.fits outfile=/scratch/kocevski/268153/cmap_464313601_464572801_4FGL_J1308.5+3547_daily_bin868.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268153/ft1_filtered_4FGL_J1308.5+3547_daily_bin868.fits scfile=/scratch/kocevski/268153/ft2_4FGL_J1308.5+3547_daily_bin868.fits outfile=/scratch/kocevski/268153/cmap_HighResolution_464313601_464572801_4FGL_J1308.5+3547_daily_bin868.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.56
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/268153/ft1_filtered_4FGL_J1308.5+3547_daily_bin868.fits', '/scratch/kocevski/268153/ft2_4FGL_J1308.5+3547_daily_bin868.fits', expMap='/scratch/kocevski/268153/expmap_464313601_464572801_4FGL_J1308.5+3547_daily_bin868.fits', expCube='/scratch/kocevski/268153/ltcube_464313601_464572801_4FGL_J1308.5+3547_daily_bin868.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/268153/Model_4FGL_J1308.5+3547_daily_bin868.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/268153/ft1_filtered_4FGL_J1308.5+3547_daily_bin868.fits
Spacecraft file(s): /scratch/kocevski/268153/ft2_4FGL_J1308.5+3547_daily_bin868.fits
Exposure map: /scratch/kocevski/268153/expmap_464313601_464572801_4FGL_J1308.5+3547_daily_bin868.fits
Exposure cube: /scratch/kocevski/268153/ltcube_464313601_464572801_4FGL_J1308.5+3547_daily_bin868.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/268153/Model_4FGL_J1308.5+3547_daily_bin868.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) = 6192.38600352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15370E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2840       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .44110       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.642       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10353E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.613       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.4776       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.131       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6403       1.0000         .10000E-03   10000.    
    13 'norm      '    14.070       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9910       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.366       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.474       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.550       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.634       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.544       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2791       1.0000         .10000E-03   10000.    
    24 'norm      '    40.514       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1593       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75227       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=   6192.368     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3142 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3429       -.21789E-05** at limit **
   2  Prefactor     1.2840        1.2109       -.16705E-06   -.93560E-03
   3  Prefactor     .41579        21.600        .14178E-04   -.26055E-03
   4  Prefactor     .10000E-03    7.8892        .20377E-06** at limit **
   5  Prefactor     26.445        68.737       -.18118E-05   -.13122E-03
   6  Prefactor     .10000E-03    2.1509        .22538E-06** at limit **
   7  norm          .10000E-03    .99662       -.66257E-06** at limit **
   8  Prefactor     15.598        45.459        .80957E-06    .76712E-05
   9  Prefactor     .10000E-03    4.7279       -.16713E-06** at limit **
  10  norm          4.4788        3.5867        .70660E-08   -.13575E-03
  11  Prefactor     12.138        11.176        .75470E-07    .41061E-04
  12  norm          3.6404        3.1188       -.67690E-07   -.12695E-03
  13  norm          14.072        10.770       -.13002E-08   -.48206E-04
  14  norm          .10000E-03    .70484       -.14978E-06** at limit **
  15  norm          .10000E-03    1.3780       -.67514E-07** at limit **
  16  Prefactor     2.9926        3.5999        .77945E-06    .10726E-02
  17  Prefactor     16.366        12.919       -.42071E-06   -.12039E-03
  18  Prefactor     17.400        59.989       -.78137E-06   -.29152E-05
  19  Prefactor     11.525        15.081        .93396E-07   -.11882E-03
  20  Prefactor     31.638        20.433       -.74280E-06   -.67957E-03
  21  Prefactor     .10000E-03    20.116        .33789E-06** at limit **
  22  norm          13.544        2.6535        .88997E-08   -.18394E-03
  23  Prefactor     3.2796        3.5302        .39928E-06    .53383E-03
  24  norm          40.511        21.289        .15570E-06    .11069E-04
  25  Normalizat    1.1589        .17198        .89649E-06   -.41980E-03
  26  Prefactor     .75284        .20802       -.29923E-05   -.40507E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.28403
  Prefactor  = 0.415795
  Prefactor  = 0.0001
  Prefactor  = 26.4447
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 15.5981
  Prefactor  = 0.0001
  norm       = 4.47877
  Prefactor  = 12.1376
  norm       = 3.64037
  norm       = 14.0715
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.99261
  Prefactor  = 16.3661
  Prefactor  = 17.3999
  Prefactor  = 11.5253
  Prefactor  = 31.638
  Prefactor  = 0.0001
  norm       = 13.5439
  Prefactor  = 3.27962
  norm       = 40.5113
  Normalizat = 1.15893
  Prefactor  = 0.752837
 **********
 **   18 **HESSE 
 **********

 FCN=   6192.368     FROM HESSE     STATUS=OK           462 CALLS     3604 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.965        .33870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2840        1.2414        .82173E-04   -1.5481    
   3  Prefactor     .41579        22.479        .37336E-02   -1.5579    
   4  Prefactor     .10000E-03    7.9020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.445        69.058        .77613E-04   -1.4679    
   6  Prefactor     .10000E-03    2.1609        .11276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.0218        .77589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.598        45.452        .10136E-03   -1.4918    
   9  Prefactor     .10000E-03    4.7313        .16714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.4788        3.5870        .12958E-03   -1.5285    
  11  Prefactor     12.138        11.179        .11501E-03   -1.5011    
  12  norm          3.6404        3.1160        .12456E-03   -1.5326    
  13  norm          14.072        10.768        .10678E-03   -1.4958    
  14  norm          .10000E-03    .70745        .64564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3793        .90217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9926        3.6187        .14155E-03   -1.5362    
  17  Prefactor     16.366        12.905        .99003E-04   -1.4899    
  18  Prefactor     17.400        59.830        .95814E-04   -1.4873    
  19  Prefactor     11.525        15.067        .11788E-03   -1.5029    
  20  Prefactor     31.638        20.672        .35620E-03   -1.4582    
  21  Prefactor     .10000E-03    20.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.544        2.6541        .54877E-04   -1.4972    
  23  Prefactor     3.2796        3.5366        .14803E-03   -1.5346    
  24  norm          40.511        21.310        .62976E-04   -1.4434    
  25  Normalizat    1.1589        .19720        .21984E-03   -.87882    
  26  Prefactor     .75284        .23757        .33052E-03   -1.0149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81892e-09
Minuit parameter uncertainties:
  1  4.76946e-06
  2  1.24145
  3  6.11611
  4  4.05223e-05
  5  69.268
  6  2.31742e-05
  7  4.62891e-05
  8  45.5528
  9  2.54097e-05
  10  3.58713
  11  11.1805
  12  3.11614
  13  10.7699
  14  8.79562e-06
  15  5.52228e-06
  16  3.61893
  17  12.9072
  18  60.0373
  19  15.0718
  20  20.6771
  21  0.000117054
  22  2.65412
  23  3.5368
  24  21.3136
  25  0.197329
  26  0.237895
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.640e+00  3.116e+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:  7.528e-01  2.379e-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:  1.159e+00  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.66
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.59e-08 +/- 1.36e-08
Energy Flux (Fixed Index): 6.55e-06 +/- 5.61e-06

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

Saving results to:
/scratch/kocevski/268153/likelihoodResults_464313601_464572801_4FGL_J1308.5+3547_daily_bin868.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) = 6190.70099716
delta logL = 1.66663085308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6190.65580369
delta logL = 1.71182432708

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7538       1.0000         .10000E-03   10000.    
     2 'alpha     '    .80109       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74118       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=   6190.656     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7504        2.1621        .61326E-02   -.25679E-03
   2  alpha         .80059        .51672        .45690       -.18709E-04
   3  Normalizat    1.1716        .16610        .35628E-01    .28690E-05
   4  Prefactor     .74122        .20645        .75122E-01    .22759E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.75035
  alpha      = 0.800593
  Normalizat = 1.17163
  Prefactor  = 0.741217
 **********
 **   18 **HESSE 
 **********

 FCN=   6190.656     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7504        2.7029        .96198E-04   -1.5376    
   2  alpha         .80059        .61363        .21077E-01   -.74744    
   3  Normalizat    1.1716        .19035        .21873E-03   -.87484    
   4  Prefactor     .74122        .23609        .33252E-03   -1.0193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88217e-10
Minuit parameter uncertainties:
  1  2.703
  2  0.625703
  3  0.190465
  4  0.236408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268153': 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) = 6190.65580291
delta logL = 1.71182510276

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  2.750e+00  2.703e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  8.006e-01  6.257e-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:  7.412e-01  2.364e-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:  1.172e+00  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.10
Ra Dec: 197.129 35.792
Photon Index (Free Index): 0.80 +/- 0.63
Photon Flux (Free Index): 7.45e-09 +/- 5.96e-09
Energy Flux (Free Index): 2.50e-05 +/- 2.93e-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/268153/cmap_HighResolution_464313601_464572801_4FGL_J1308.5+3547_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.24e-05', comment='SUCCESS', photon_flux='1.59e-08', energy_flux2='2.50e-05', photon_flux_error='1.36e-08', dlogl='1.71e+00', energy_flux='6.55e-06', photon_flux2='7.45e-09', job_status='DONE', time_completed='2021-09-07 00:38:35.144351', photon_index_error2='0.63', photon_index2='0.80', ts='3.66', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='5.43e-08', energy_flux_error2='2.93e-05', EG='1.16', time_epoch_completed='1631000315.14', return_code='0', job_id='268153', GAL2='0.74', EG2='1.17', return_code2='0', energy_flux_error='5.61e-06', photon_flux_error2='5.96e-09', ts2='7.10', photon_index='2.18' WHERE bin_id='868' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:38:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 268153: <4FGL_J1308.5+3547_daily_bin868> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin868> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:25:21 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:25:40 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:25:40 2021
Terminated at Tue Sep  7 00:38:35 2021
Results reported at Tue Sep  7 00:38:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin868 197.129 35.7918 464313601 464572801 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 :                                   762.00 sec.
    Max Memory :                                 1173 MB
    Average Memory :                             351.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            794 sec.

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

