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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1398
RA = 197.129, Dec = 35.7918
tmin = 601689601, tmax = 601948801
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='272655', job_status='RUN', time_executed='2021-09-07 00:36:33.360132', time_epoch_executed='1631000193.36' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272655

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272655/ft1_4FGL_J1308.5+3547_daily_bin1398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272655/ft2_4FGL_J1308.5+3547_daily_bin1398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272655/ft1_4FGL_J1308.5+3547_daily_bin1398.fits outfile=/scratch/kocevski/272655/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1398.fits ra=197.129 dec=35.7918 rad=12.0 tmin=601689601.0 tmax=601948801.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.58
user 3.40
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/272655/ft2_4FGL_J1308.5+3547_daily_bin1398.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/272655/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1398.fits evtable="EVENTS" outfile="/scratch/kocevski/272655/ft1_filtered_4FGL_J1308.5+3547_daily_bin1398.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.55
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272655/ft1_filtered_4FGL_J1308.5+3547_daily_bin1398.fits" evtable="EVENTS" scfile=/scratch/kocevski/272655/ft2_4FGL_J1308.5+3547_daily_bin1398.fits sctable="SC_DATA" outfile=/scratch/kocevski/272655/ltcube_601689601_601948801_4FGL_J1308.5+3547_daily_bin1398.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/272655/ft2_4FGL_J1308.5+3547_daily_bin1398.fits
.....................!
real 16.29
user 15.84
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272655/ft1_filtered_4FGL_J1308.5+3547_daily_bin1398.fits evtable="EVENTS" scfile=/scratch/kocevski/272655/ft2_4FGL_J1308.5+3547_daily_bin1398.fits sctable="SC_DATA" expcube=/scratch/kocevski/272655/ltcube_601689601_601948801_4FGL_J1308.5+3547_daily_bin1398.fits outfile=/scratch/kocevski/272655/expmap_601689601_601948801_4FGL_J1308.5+3547_daily_bin1398.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/272655/ltcube_601689601_601948801_4FGL_J1308.5+3547_daily_bin1398.fits
.....................!
real 192.53
user 186.70
sys 5.36

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/272655/ft1_filtered_4FGL_J1308.5+3547_daily_bin1398.fits scfile=/scratch/kocevski/272655/ft2_4FGL_J1308.5+3547_daily_bin1398.fits outfile=/scratch/kocevski/272655/cmap_601689601_601948801_4FGL_J1308.5+3547_daily_bin1398.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272655/ft1_filtered_4FGL_J1308.5+3547_daily_bin1398.fits scfile=/scratch/kocevski/272655/ft2_4FGL_J1308.5+3547_daily_bin1398.fits outfile=/scratch/kocevski/272655/cmap_HighResolution_601689601_601948801_4FGL_J1308.5+3547_daily_bin1398.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.60
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94509E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .91993       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3542       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2785       1.0000         .10000E-03   10000.    
    12 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.7057       1.0000         .10000E-03   10000.    
    14 'norm      '    39.375       1.0000         .10000E-03   10000.    
    15 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.679       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3235       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13663E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.0501       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3232       1.0000         .10000E-03   10000.    
    24 'norm      '    8.2195       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81153       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2944       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=   6473.219     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3147 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10047E-03    24.667        .94862E-05** at limit **
   2  Prefactor     .91993        1.6824        .33554E-06    .45866E-04
   3  Prefactor     7.3544        6.8915       -.15679E-06   -.19947E-03
   4  Prefactor     .10003E-03    41.092        .21595E-05** at limit **
   5  Prefactor     .10001E-03    26.144       -.72023E-06** at limit **
   6  Prefactor     .10000E-03    4.4769        .38484E-06** at limit **
   7  norm          .10000E-03    4.0952       -.11714E-06** at limit **
   8  Prefactor     .10009E-03    113.12        .32726E-05** at limit **
   9  Prefactor     .10000E-03    21.812        .29622E-06** at limit **
  10  norm          .10000E-03    1.7813       -.50603E-07** at limit **
  11  Prefactor     8.2753        14.382       -.26236E-05    .24999E-03
  12  norm          .10000E-03    4.2659        .32223E-06** at limit **
  13  norm          6.7056        6.9165        .43320E-07   -.18172E-03
  14  norm          39.365        6.9920        .92186E-06    .24465E-02
  15  norm          .10001E-03    48.791        .11503E-04** at limit **
  16  Prefactor     .10000E-03    .95913        .22724E-07** at limit **
  17  Prefactor     15.680        13.594       -.67788E-06    .36144E-03
  18  Prefactor     .10000E-03    13.092        .14440E-08** at limit **
  19  Prefactor     4.3095        14.309       -.15734E-06    .78907E-04
  20  Prefactor     .10000E-03    52.239        .92556E-06** at limit **
  21  Prefactor     .10000E-03    28.677       -.16417E-06** at limit **
  22  norm          4.0501        1.7267       -.31440E-07    .74121E-04
  23  Prefactor     1.3228        3.7489       -.11403E-05    .19599E-03
  24  norm          8.2188        12.115       -.24036E-06    .28452E-04
  25  Normalizat    .81146        .16986        .32201E-06    .11692E-03
  26  Prefactor     1.2945        .20851        .10256E-05    .22288E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100466
  Prefactor  = 0.919926
  Prefactor  = 7.35435
  Prefactor  = 0.000100026
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100091
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 8.27532
  norm       = 0.0001
  norm       = 6.70563
  norm       = 39.3649
  norm       = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 15.68
  Prefactor  = 0.0001
  Prefactor  = 4.30949
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.0501
  Prefactor  = 1.32278
  norm       = 8.21883
  Normalizat = 0.811456
  Prefactor  = 1.29451
 **********
 **   18 **HESSE 
 **********

 FCN=   6473.219     FROM HESSE     STATUS=OK           462 CALLS     3609 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10047E-03    5.1159        .57176E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .91993        1.3717        .14171E-02   -1.5516    
   3  Prefactor     7.3544        6.8905        .14790E-03   -1.5166    
   4  Prefactor     .10003E-03    42.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    26.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5390        .16643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.2544        .31792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10009E-03    115.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.8066        .10487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.2753        14.471        .69668E-03   -1.5133    
  12  norm          .10000E-03    4.3716        .16243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.7056        6.9211        .15495E-03   -1.5190    
  14  norm          39.365        6.7621        .63877E-04   -1.4452    
  15  norm          .10001E-03    60.449        .40143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .96459        .76940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.680        13.570        .50575E-03   -1.4916    
  18  Prefactor     .10000E-03    13.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.3095        14.258        .19373E-03   -1.5293    
  20  Prefactor     .10000E-03    54.072        .41085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.0501        1.7262        .66821E-04   -1.5305    
  23  Prefactor     1.3228        3.7402        .24796E-03   -1.5478    
  24  norm          8.2188        12.111        .13984E-03   -1.5135    
  25  Normalizat    .81146        .20198        .25905E-03   -.99645    
  26  Prefactor     1.2945        .25028        .27007E-03   -.83470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30854e-09
Minuit parameter uncertainties:
  1  0.00308889
  2  1.37175
  3  6.89126
  4  0.00209327
  5  0.00075663
  6  7.37238e-05
  7  2.33918e-05
  8  0.00651174
  9  0.000355023
  10  9.27219e-06
  11  14.4775
  12  7.91479e-05
  13  6.92191
  14  6.76221
  15  0.00175432
  16  5.04487e-06
  17  13.5729
  18  1.08289e-06
  19  14.2687
  20  0.000493779
  21  0.000175266
  22  1.7262
  23  3.74084
  24  12.1143
  25  0.202163
  26  0.250514
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  7.915e-05  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.295e+00  2.505e-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:  8.115e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/272655/likelihoodResults_601689601_601948801_4FGL_J1308.5+3547_daily_bin1398.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) = 6473.21994091
delta logL = -0.0010895950636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6473.21885247
delta logL = -1.16165210784e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11965E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2266       1.0000          .0000       5.0000    
     3 'Normalizat'    .81153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2944       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=   6473.219     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      205 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 73.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    5.3684        .40771E-05** at limit **
   2  alpha         2.2786        3.6383        .91388E-04   -.55840E-04
   3  Normalizat    .81146        .16068       -.14333E-06   -.56239E-05
   4  Prefactor     1.2945        .20726        .31465E-07   -.69925E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100018
  alpha      = 2.27859
  Normalizat = 0.811458
  Prefactor  = 1.29451
 **********
 **   18 **HESSE 
 **********

 FCN=   6473.219     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    5.3614        .35805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2786        3.4970        .16587       -.88681E-01
   3  Normalizat    .81146        .19180        .25905E-03   -.99645    
   4  Prefactor     1.2945        .24730        .27007E-03   -.83470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36457e-09
Minuit parameter uncertainties:
  1  0.000626292
  2  2.49113
  3  0.191956
  4  0.247521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272655': 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) = 6473.2188492
delta logL = 2.11623409996e-06

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  6.263e-04  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.279e+00  2.491e+00  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.295e+00  2.475e-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:  8.115e-01  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.129 35.792

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/272655/cmap_HighResolution_601689601_601948801_4FGL_J1308.5+3547_daily_bin1398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-05', job_status='DONE', photon_flux_upper_limit='5.08e-08', time_completed='2021-09-07 00:50:01.562050', job_id='272655', GAL2='1.29', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1631001001.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='2.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1398' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:50:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 272655: <4FGL_J1308.5+3547_daily_bin1398> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1398> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:50 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:36:22 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:36:22 2021
Terminated at Tue Sep  7 00:50:02 2021
Results reported at Tue Sep  7 00:50:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1398 197.129 35.7918 601689601 601948801 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 :                                   799.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            852 sec.

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

