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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin700
RA = 197.129, Dec = 35.7918
tmin = 420768001, tmax = 421027201
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='266510', job_status='RUN', time_executed='2021-09-07 00:24:08.438228', time_epoch_executed='1630999448.44' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266510/ft1_4FGL_J1308.5+3547_daily_bin700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266510/ft2_4FGL_J1308.5+3547_daily_bin700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266510/ft1_4FGL_J1308.5+3547_daily_bin700.fits outfile=/scratch/kocevski/266510/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin700.fits ra=197.129 dec=35.7918 rad=12.0 tmin=420768001.0 tmax=421027201.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.23
user 2.68
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266510/ft2_4FGL_J1308.5+3547_daily_bin700.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/266510/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin700.fits evtable="EVENTS" outfile="/scratch/kocevski/266510/ft1_filtered_4FGL_J1308.5+3547_daily_bin700.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.46
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266510/ft1_filtered_4FGL_J1308.5+3547_daily_bin700.fits" evtable="EVENTS" scfile=/scratch/kocevski/266510/ft2_4FGL_J1308.5+3547_daily_bin700.fits sctable="SC_DATA" outfile=/scratch/kocevski/266510/ltcube_420768001_421027201_4FGL_J1308.5+3547_daily_bin700.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/266510/ft2_4FGL_J1308.5+3547_daily_bin700.fits
.....................!
real 17.40
user 14.59
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266510/ft1_filtered_4FGL_J1308.5+3547_daily_bin700.fits evtable="EVENTS" scfile=/scratch/kocevski/266510/ft2_4FGL_J1308.5+3547_daily_bin700.fits sctable="SC_DATA" expcube=/scratch/kocevski/266510/ltcube_420768001_421027201_4FGL_J1308.5+3547_daily_bin700.fits outfile=/scratch/kocevski/266510/expmap_420768001_421027201_4FGL_J1308.5+3547_daily_bin700.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/266510/ltcube_420768001_421027201_4FGL_J1308.5+3547_daily_bin700.fits
.....................!
real 177.14
user 152.34
sys 3.24

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/266510/ft1_filtered_4FGL_J1308.5+3547_daily_bin700.fits scfile=/scratch/kocevski/266510/ft2_4FGL_J1308.5+3547_daily_bin700.fits outfile=/scratch/kocevski/266510/cmap_420768001_421027201_4FGL_J1308.5+3547_daily_bin700.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=197.129 yref=35.7918 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266510/ft1_filtered_4FGL_J1308.5+3547_daily_bin700.fits scfile=/scratch/kocevski/266510/ft2_4FGL_J1308.5+3547_daily_bin700.fits outfile=/scratch/kocevski/266510/cmap_HighResolution_420768001_421027201_4FGL_J1308.5+3547_daily_bin700.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.61
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.578       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2782       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7431       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.287       1.0000         .10000E-03   10000.    
    10 'norm      '    4.8629       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    26.533       1.0000         .10000E-03   10000.    
    14 'norm      '    7.2595       1.0000         .10000E-03   10000.    
    15 'norm      '    42.147       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8080       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.522       1.0000         .10000E-03   10000.    
    22 'norm      '    3.2114       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8087       1.0000         .10000E-03   10000.    
    24 'norm      '    .10379E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0314       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .66995       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=   5607.916     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3160 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.583        10.691        .17815E-06    .45927E-05
   2  Prefactor     .10000E-03    .87325       -.83303E-08** at limit **
   3  Prefactor     .10000E-03    2.4936       -.52785E-08** at limit **
   4  Prefactor     7.2752        10.457        .62502E-07    .17047E-04
   5  Prefactor     .10000E-03    19.429       -.77071E-07** at limit **
   6  Prefactor     .10000E-03    5.5508       -.23590E-06** at limit **
   7  norm          2.7467        5.9431       -.25017E-06   -.35381E-04
   8  Prefactor     .10000E-03    14.453        .23216E-06** at limit **
   9  Prefactor     48.270        38.184        .21624E-05    .54353E-04
  10  norm          4.8628        5.5464        .18918E-05   -.65356E-04
  11  Prefactor     .10000E-03    33.100       -.21523E-05** at limit **
  12  norm          .10000E-03    2.4692       -.11602E-06** at limit **
  13  norm          26.533        14.650        .57477E-07    .44497E-05
  14  norm          7.2617        9.5996       -.61184E-06    .87993E-05
  15  norm          42.140        18.180        .17282E-06    .33004E-04
  16  Prefactor     1.8097        2.4688        .86379E-07    .31986E-04
  17  Prefactor     .10000E-03    14.083        .44824E-06** at limit **
  18  Prefactor     .10000E-03    15.515       -.74659E-06** at limit **
  19  Prefactor     .10000E-03    10.075        .18735E-07** at limit **
  20  Prefactor     .10000E-03    65.077        .34074E-06** at limit **
  21  Prefactor     42.535        51.592       -.16522E-05    .32992E-05
  22  norm          3.2116        1.4899        .18119E-07   -.13608E-04
  23  Prefactor     2.8094        3.9534        .15506E-06   -.24210E-05
  24  norm          .10000E-03    27.108        .13116E-05** at limit **
  25  Normalizat    1.0307        .16788       -.26708E-06    .39336E-04
  26  Prefactor     .67069        .20452       -.38497E-06    .31229E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.27517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.74668
  Prefactor  = 0.0001
  Prefactor  = 48.2701
  norm       = 4.86279
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.5331
  norm       = 7.26165
  norm       = 42.1401
  Prefactor  = 1.80969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.535
  norm       = 3.21156
  Prefactor  = 2.80935
  norm       = 0.0001
  Normalizat = 1.03074
  Prefactor  = 0.670693
 **********
 **   18 **HESSE 
 **********

 FCN=   5607.916     FROM HESSE     STATUS=OK           458 CALLS     3618 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.583        10.714        .46461E-03   -1.4846    
   2  Prefactor     .10000E-03    .87934        .68335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4952        .11549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.2752        10.450        .14868E-03   -1.5168    
   5  Prefactor     .10000E-03    19.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7061        .34446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7467        5.8658        .21849E-03   -1.5376    
   8  Prefactor     .10000E-03    14.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.270        38.265        .57706E-04   -1.4317    
  10  norm          4.8628        5.5513        .89922E-03   -1.5267    
  11  Prefactor     .10000E-03    34.102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4849        .11491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          26.533        14.650        .77772E-04   -1.4677    
  14  norm          7.2617        9.5741        .14887E-03   -1.5169    
  15  norm          42.140        18.181        .61748E-04   -1.4409    
  16  Prefactor     1.8097        2.4390        .13092E-03   -1.5439    
  17  Prefactor     .10000E-03    14.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    66.725        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     42.535        51.679        .61476E-04   -1.4403    
  22  norm          3.2116        1.4894        .60392E-04   -1.5350    
  23  Prefactor     2.8094        3.9417        .16913E-03   -1.5373    
  24  norm          .10000E-03    27.938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0307        .19914        .21268E-03   -.92008    
  26  Prefactor     .67069        .24080        .32021E-03   -1.0469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84212e-11
Minuit parameter uncertainties:
  1  10.7147
  2  2.14404e-07
  3  4.58927e-07
  4  10.4529
  5  6.20738e-06
  6  2.32505e-05
  7  5.86702
  8  3.43964e-06
  9  38.2841
  10  5.55191
  11  7.57269e-05
  12  7.9956e-06
  13  14.6518
  14  9.57609
  15  18.1838
  16  2.43916
  17  1.42313e-05
  18  1.23742e-05
  19  3.70322e-06
  20  3.40702e-05
  21  51.7334
  22  1.48942
  23  3.94209
  24  5.85346e-05
  25  0.199286
  26  0.241173
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  7.996e-06  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:  6.707e-01  2.412e-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.031e+00  1.993e-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: 4.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266510/likelihoodResults_420768001_421027201_4FGL_J1308.5+3547_daily_bin700.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) = 5607.91818233
delta logL = -0.00190947580813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5607.91627313
delta logL = -2.73473233392e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5607.916     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      234 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    80.097        .11497E-02** at limit **
   2  alpha         2.0602        3.1401        .16636       -.56651E-07
   3  Normalizat    1.0307        .19054        .21268E-03    .95522E-04
   4  Prefactor     .67069        .23656        .32021E-03    .59894E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.06018
  Normalizat = 1.03074
  Prefactor  = 0.670693
 **********
 **   18 **HESSE 
 **********

 FCN=   5607.916     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5082        .22995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0602        2.8744        .66545E-02   -.17685    
   3  Normalizat    1.0307        .19070        .85073E-05   -.92008    
   4  Prefactor     .67069        .23675        .12809E-04   -1.0469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72809e-11
Minuit parameter uncertainties:
  1  4.10316e-05
  2  200.278
  3  0.190829
  4  0.23711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266510': 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) = 5607.91627267
delta logL = 1.83687916433e-07

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  4.103e-05  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.060e+00  2.003e+02  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:  6.707e-01  2.371e-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.031e+00  1.908e-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/266510/cmap_HighResolution_420768001_421027201_4FGL_J1308.5+3547_daily_bin700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.90e-05', job_status='DONE', photon_flux_upper_limit='4.61e-08', time_completed='2021-09-07 00:35:27.655319', job_id='266510', GAL2='0.67', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631000127.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='700' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:35:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 266510: <4FGL_J1308.5+3547_daily_bin700> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin700> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 00:20:26 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:20:31 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:20:31 2021
Terminated at Tue Sep  7 00:35:28 2021
Results reported at Tue Sep  7 00:35:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin700 197.129 35.7918 420768001 421027201 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 :                                   601.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            902 sec.

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

