/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 167 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 = 7467
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin71
RA = 197.129, Dec = 35.7918
tmin = 257731201, tmax = 257990401
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='259892', job_status='RUN', time_executed='2021-09-06 23:58:53.586301', time_epoch_executed='1630997933.59' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259892

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259892/ft1_4FGL_J1308.5+3547_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259892/ft2_4FGL_J1308.5+3547_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259892/ft1_4FGL_J1308.5+3547_daily_bin71.fits outfile=/scratch/kocevski/259892/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin71.fits ra=197.129 dec=35.7918 rad=12.0 tmin=257731201.0 tmax=257990401.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 1.45
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259892/ft1_filtered_4FGL_J1308.5+3547_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/259892/ft2_4FGL_J1308.5+3547_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/259892/ltcube_257731201_257990401_4FGL_J1308.5+3547_daily_bin71.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/259892/ft2_4FGL_J1308.5+3547_daily_bin71.fits
.....................!
real 19.06
user 18.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259892/ft1_filtered_4FGL_J1308.5+3547_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/259892/ft2_4FGL_J1308.5+3547_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/259892/ltcube_257731201_257990401_4FGL_J1308.5+3547_daily_bin71.fits outfile=/scratch/kocevski/259892/expmap_257731201_257990401_4FGL_J1308.5+3547_daily_bin71.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/259892/ltcube_257731201_257990401_4FGL_J1308.5+3547_daily_bin71.fits
.....................!
real 192.93
user 187.10
sys 4.89

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/259892/ft1_filtered_4FGL_J1308.5+3547_daily_bin71.fits scfile=/scratch/kocevski/259892/ft2_4FGL_J1308.5+3547_daily_bin71.fits outfile=/scratch/kocevski/259892/cmap_257731201_257990401_4FGL_J1308.5+3547_daily_bin71.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259892/ft1_filtered_4FGL_J1308.5+3547_daily_bin71.fits scfile=/scratch/kocevski/259892/ft2_4FGL_J1308.5+3547_daily_bin71.fits outfile=/scratch/kocevski/259892/cmap_HighResolution_257731201_257990401_4FGL_J1308.5+3547_daily_bin71.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.674       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.307       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.803       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.637       1.0000         .10000E-03   10000.    
     7 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9749       1.0000         .10000E-03   10000.    
    10 'norm      '    5.9389       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.459       1.0000         .10000E-03   10000.    
    13 'norm      '    7.9389       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5197       1.0000         .10000E-03   10000.    
    15 'norm      '    11.378       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0104       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.986       1.0000         .10000E-03   10000.    
    22 'norm      '    9.3307       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0654       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84309       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=   5515.937     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     2521 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5605        .53128E-07** at limit **
   2  Prefactor     .10000E-03    .61984       -.34821E-07** at limit **
   3  Prefactor     14.675        1.0023        .46479E-07    .81962E-07
   4  Prefactor     19.310        1.0845       -.29816E-06    .89918E-03
   5  Prefactor     31.808        1.2643        .27351E-06   -.13345E-02
   6  Prefactor     10.640        1.0815        .50143E-06    .37531E-03
   7  norm          .10000E-03    1.3122       -.78879E-07** at limit **
   8  Prefactor     .10000E-03    29.497        .28023E-05** at limit **
   9  Prefactor     7.9507        3.0090        .51771E-06   -.94227E-03
  10  norm          5.9389        3.9590       -.21828E-05   -.67529E-03
  11  Prefactor     .10000E-03    8.1797        .69661E-06** at limit **
  12  norm          17.462        1.0751        .54859E-07    .21910E-03
  13  norm          7.9375        1.0338        .26836E-06   -.26228E-03
  14  norm          1.5015        2.4019       -.29733E-05   -.38061E-03
  15  norm          11.405        2.4466        .16605E-05   -.30252E-02
  16  Prefactor     4.0112        3.0428        .14563E-06    .51259E-03
  17  Prefactor     .10001E-03    8.4798        .18224E-04** at limit **
  18  Prefactor     .10077E-03    167.06       -.30053E-05** at limit **
  19  Prefactor     .10000E-03    4.1490        .45384E-05** at limit **
  20  Prefactor     .10001E-03    9.2358       -.15910E-04** at limit **
  21  Prefactor     23.954        5.4324       -.21240E-05    .77838E-02
  22  norm          9.3312        2.6420       -.44458E-07   -.52471E-04
  23  Prefactor     .10000E-03    2.1441        .82746E-07** at limit **
  24  norm          .10000E-03    13.258       -.84956E-05** at limit **
  25  Normalizat    1.0647        .20404        .83980E-06   -.56093E-04
  26  Prefactor     .84390        .24936        .49675E-07   -.36103E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6747
  Prefactor  = 19.3099
  Prefactor  = 31.808
  Prefactor  = 10.6396
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.95075
  norm       = 5.93892
  Prefactor  = 0.0001
  norm       = 17.4616
  norm       = 7.93747
  norm       = 1.50153
  norm       = 11.4049
  Prefactor  = 4.01121
  Prefactor  = 0.00010001
  Prefactor  = 0.000100769
  Prefactor  = 0.000100003
  Prefactor  = 0.000100011
  Prefactor  = 23.9536
  norm       = 9.33121
  Prefactor  = 0.0001
  norm       = 0.000100004
  Normalizat = 1.06474
  Prefactor  = 0.8439
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.937     FROM HESSE     STATUS=OK           510 CALLS     3031 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5383        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .61836        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.675        8.7212        .26139E-02   -1.4942    
   4  Prefactor     19.310        17.990        .22788E-02   -1.4829    
   5  Prefactor     31.808        45.560        .17763E-02   -1.4579    
   6  Prefactor     10.640        6.6902        .30711E-02   -1.5055    
   7  norm          .10000E-03    1.3113        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.9507        26.294        .35495E-02   -1.5144    
  10  norm          5.9389        4.0588        .41194E-02   -1.5221    
  11  Prefactor     .10000E-03    8.1660        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.462        7.8553        .23964E-02   -1.4872    
  13  norm          7.9375        16.835        .35576E-02   -1.5144    
  14  norm          1.5015        9.9323        .86653E-02   -1.5463    
  15  norm          11.405        11.935        .29692E-02   -1.5032    
  16  Prefactor     4.0112        3.7297        .50345E-02   -1.5307    
  17  Prefactor     .10001E-03    11.410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10077E-03    169.47        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.904        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    10.523        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.954        48.581        .20447E-02   -1.4729    
  22  norm          9.3312        2.6446        .32800E-02   -1.5097    
  23  Prefactor     .10000E-03    2.1086        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    13.103        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0647        .17726        .39627E-01   -.90892    
  26  Prefactor     .84390        .21411        .69568E-01   -.98130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50634e-07
Minuit parameter uncertainties:
  1  5.33434e-06
  2  4.00771e-07
  3  8.72194
  4  17.9947
  5  45.6096
  6  6.69067
  7  1.90126e-06
  8  0.000360315
  9  26.3321
  10  4.05897
  11  2.0134e-05
  12  7.85576
  13  16.8447
  14  7.72521
  15  11.9378
  16  3.72997
  17  0.000686626
  18  0.0229034
  19  0.000365091
  20  0.000687683
  21  48.6618
  22  2.64467
  23  2.43875e-06
  24  0.000481991
  25  0.177363
  26  0.214326
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.746e+01  7.856e+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:  8.439e-01  2.143e-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.065e+00  1.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.50
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 7.61e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 3.14e-05 +/- 1.41e-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) = 5515.377914
delta logL = 0.558886081054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5515.35780022
delta logL = 0.578999862282

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.767       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6946       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87333       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=   5515.358     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      239 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.767        96.324        .26988E-02    .77809E-03
   2  alpha         2.6946        3.8380        .22769        .45786E-04
   3  Normalizat    1.0267        .12731        .42508E-01    .71267E-05
   4  Prefactor     .87333        .11968        .68479E-01    .14805E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.7672
  alpha      = 2.69463
  Normalizat = 1.02672
  Prefactor  = 0.873325
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.358     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.767        7.6242        .10552E-03   -1.4966    
   2  alpha         2.6946        .49386        .94078E-02    .77931E-01
   3  Normalizat    1.0267        .20427        .22652E-03   -.92141    
   4  Prefactor     .87333        .25095        .30295E-03   -.97080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08278e-10
Minuit parameter uncertainties:
  1  7.62471
  2  0.497147
  3  0.20443
  4  0.251281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259892': 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) = 5515.35780022
delta logL = 0.578999866914

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.377e+01  7.625e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.695e+00  4.971e-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:  8.733e-01  2.513e-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.027e+00  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.72
Ra Dec: 197.129 35.792
Photon Index (Free Index): 2.69 +/- 0.50
Photon Flux (Free Index): 1.08e-07 +/- 5.08e-08
Energy Flux (Free Index): 2.95e-05 +/- 1.20e-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/259892/cmap_HighResolution_257731201_257990401_4FGL_J1308.5+3547_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.61e-08', energy_flux2='2.95e-05', photon_flux_error='3.42e-08', dlogl='5.79e-01', energy_flux='3.14e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-07 00:08:48.783708', photon_index_error2='0.50', photon_index2='2.69', ts='13.50', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.06', time_epoch_completed='1630998528.78', return_code='0', job_id='259892', GAL2='0.87', EG2='1.03', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='5.08e-08', ts2='14.72', photon_index='2.18' WHERE bin_id='71' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:08:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 259892: <4FGL_J1308.5+3547_daily_bin71> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin71> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep  6 23:55:35 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:55:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 23:55:53 2021
Terminated at Tue Sep  7 00:08:49 2021
Results reported at Tue Sep  7 00:08:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin71 197.129 35.7918 257731201 257990401 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 :                                   594.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            794 sec.

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

