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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin800
RA = 197.129, Dec = 35.7918
tmin = 446688001, tmax = 446947201
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='266674', job_status='RUN', time_executed='2021-09-07 00:21:06.523064', time_epoch_executed='1630999266.52' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='800'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266674

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266674/ft1_4FGL_J1308.5+3547_daily_bin800.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266674/ft2_4FGL_J1308.5+3547_daily_bin800.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266674/ft1_4FGL_J1308.5+3547_daily_bin800.fits outfile=/scratch/kocevski/266674/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin800.fits ra=197.129 dec=35.7918 rad=12.0 tmin=446688001.0 tmax=446947201.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.26
user 2.61
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266674/ft1_filtered_4FGL_J1308.5+3547_daily_bin800.fits evtable="EVENTS" scfile=/scratch/kocevski/266674/ft2_4FGL_J1308.5+3547_daily_bin800.fits sctable="SC_DATA" expcube=/scratch/kocevski/266674/ltcube_446688001_446947201_4FGL_J1308.5+3547_daily_bin800.fits outfile=/scratch/kocevski/266674/expmap_446688001_446947201_4FGL_J1308.5+3547_daily_bin800.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/266674/ltcube_446688001_446947201_4FGL_J1308.5+3547_daily_bin800.fits
.....................!
real 156.05
user 151.74
sys 3.61

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/266674/ft1_filtered_4FGL_J1308.5+3547_daily_bin800.fits scfile=/scratch/kocevski/266674/ft2_4FGL_J1308.5+3547_daily_bin800.fits outfile=/scratch/kocevski/266674/cmap_446688001_446947201_4FGL_J1308.5+3547_daily_bin800.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.49
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266674/ft1_filtered_4FGL_J1308.5+3547_daily_bin800.fits scfile=/scratch/kocevski/266674/ft2_4FGL_J1308.5+3547_daily_bin800.fits outfile=/scratch/kocevski/266674/cmap_HighResolution_446688001_446947201_4FGL_J1308.5+3547_daily_bin800.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.49
user 0.31
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5406       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9511       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2316       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.6298       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4475       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .49597       1.0000         .10000E-03   10000.    
    12 'norm      '    .10679E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.3391       1.0000         .10000E-03   10000.    
    14 'norm      '    .32764E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.4205       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2142       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.630       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.171       1.0000         .10000E-03   10000.    
    21 'Prefactor '    93.610       1.0000         .10000E-03   10000.    
    22 'norm      '    11.954       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.8540       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1332       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .58813       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=   5162.104     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3554 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7202        .13900E-06** at limit **
   2  Prefactor     .10000E-03    .92226        .25928E-07** at limit **
   3  Prefactor     1.5409        5.9882        .14252E-05   -.42320E-05
   4  Prefactor     8.9529        12.216       -.74006E-07   -.43134E-04
   5  Prefactor     1.1190        1257.2       -.14156E-04   -.78881E-05
   6  Prefactor     .10000E-03    2.6137        .93538E-07** at limit **
   7  norm          5.6300        5.9931       -.22367E-05   -.31469E-03
   8  Prefactor     .10000E-03    22.059        .26300E-06** at limit **
   9  Prefactor     6.4462        31.689       -.88654E-06   -.14812E-03
  10  norm          .10000E-03    .92495        .26304E-07** at limit **
  11  Prefactor     .43097        11.258        .10950E-05   -.10449E-03
  12  norm          .10007E-03    2.9905        .13259E-05** at limit **
  13  norm          6.3394        7.4252        .40090E-07   -.95150E-05
  14  norm          .10007E-03    2.0476        .12080E-05** at limit **
  15  norm          8.4146        6.1772       -.31160E-06   -.83406E-03
  16  Prefactor     3.2139        2.6178       -.12487E-06   -.77501E-03
  17  Prefactor     11.627        12.524       -.12523E-06   -.31450E-03
  18  Prefactor     .10000E-03    16.557       -.41961E-07** at limit **
  19  Prefactor     .10000E-03    4.2425        .59155E-07** at limit **
  20  Prefactor     23.177        22.516        .19767E-06   -.45409E-04
  21  Prefactor     93.590        67.551        .31160E-07   -.68682E-04
  22  norm          11.954        2.8200        .47635E-07   -.35797E-04
  23  Prefactor     5.8529        4.7107        .29718E-06    .26498E-04
  24  norm          .10000E-03    7.0748        .10399E-06** at limit **
  25  Normalizat    1.1334        .17978        .13312E-06   -.59991E-03
  26  Prefactor     .58794        .21103       -.39817E-05   -.20129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.54089
  Prefactor  = 8.95291
  Prefactor  = 1.11904
  Prefactor  = 0.0001
  norm       = 5.63
  Prefactor  = 0.0001
  Prefactor  = 6.44621
  norm       = 0.0001
  Prefactor  = 0.430967
  norm       = 0.000100069
  norm       = 6.33944
  norm       = 0.000100072
  norm       = 8.41463
  Prefactor  = 3.21393
  Prefactor  = 11.6266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1766
  Prefactor  = 93.5899
  norm       = 11.9542
  Prefactor  = 5.85293
  norm       = 0.0001
  Normalizat = 1.13343
  Prefactor  = 0.587941
 **********
 **   18 **HESSE 
 **********

 FCN=   5162.104     FROM HESSE     STATUS=OK           474 CALLS     4028 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7330        .11574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .93133        .67380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5409        5.9511        .33635E-03   -1.5460    
   4  Prefactor     8.9529        12.216        .13397E-03   -1.5109    
   5  Prefactor     1.1190        1379.7        .40508E-02   -1.5496    
   6  Prefactor     .10000E-03    2.6202        .11334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.6300        5.9086        .13636E-03   -1.5233    
   8  Prefactor     .10000E-03    22.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4462        31.642        .15806E-03   -1.5200    
  10  norm          .10000E-03    .92606        .67484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .43097        137.79        .43882E-02   -1.5577    
  12  norm          .10007E-03    15.695        .23207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.3394        7.4251        .15942E-03   -1.5204    
  14  norm          .10007E-03    10.306        .30420E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.4146        6.6709        .13815E-03   -1.5128    
  16  Prefactor     3.2139        2.6130        .97742E-04   -1.5349    
  17  Prefactor     11.627        12.559        .11747E-03   -1.5026    
  18  Prefactor     .10000E-03    16.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.2454        .14453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.177        22.596        .83214E-04   -1.4745    
  21  Prefactor     93.590        67.997        .41538E-04   -1.3770    
  22  norm          11.954        2.8238        .56665E-04   -1.5016    
  23  Prefactor     5.8529        4.7197        .13374E-03   -1.5224    
  24  norm          .10000E-03    7.1102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1334        .21394        .20085E-03   -.88686    
  26  Prefactor     .58794        .24128        .33173E-03   -1.0810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07068e-09
Minuit parameter uncertainties:
  1  6.33006e-06
  2  1.52121e-06
  3  5.95339
  4  12.2192
  5  80.5158
  6  3.64611e-06
  7  5.90923
  8  2.03048e-05
  9  28.5877
  10  1.11891e-06
  11  15.4462
  12  0.00208933
  13  7.42621
  14  0.00171965
  15  6.6715
  16  2.61308
  17  12.5622
  18  3.62942e-05
  19  3.00773e-06
  20  22.6044
  21  68.0533
  22  2.82387
  23  4.71995
  24  1.08739e-05
  25  0.214108
  26  0.241701
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.001e-04  2.089e-03  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:  5.879e-01  2.417e-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.133e+00  2.141e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266674/likelihoodResults_446688001_446947201_4FGL_J1308.5+3547_daily_bin800.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): 102
logL (Free Index) = 5162.10398262
delta logL = -0.000301451808809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5162.10368075
delta logL = 4.22540324507e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10449E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2481       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58793       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=   5161.847     FROM MIGRAD    STATUS=CONVERGED    178 CALLS      346 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12502        .18479        .23247E-02   -.66740E-02
   2  alpha         5.0000        3.2602        .16567    ** at limit **
   3  Normalizat    1.0863        .20053        .20084E-03   -.43373E-03
   4  Prefactor     .62500        .24030        .33174E-02   -.34305E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.125015
  alpha      = 5
  Normalizat = 1.0863
  Prefactor  = 0.625003
 **********
 **   18 **HESSE 
 **********

 FCN=   5161.847     FROM HESSE     STATUS=OK            25 CALLS      371 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12502        .18684        .34889E-04   -1.5779    
   2  alpha         5.0000        3.2774        .66270E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0863        .20250        .40169E-04   -.90193    
   4  Prefactor     .62500        .24167        .13269E-03   -1.0654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12259e-09
Minuit parameter uncertainties:
  1  0.186843
  2  6.24544e-05
  3  0.202645
  4  0.242072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266674': 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) = 5161.84681518
delta logL = 0.256865985274

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.250e-01  1.868e-01  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  5.000e+00  6.245e-05  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.250e-01  2.421e-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.086e+00  2.026e-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/266674/cmap_HighResolution_446688001_446947201_4FGL_J1308.5+3547_daily_bin800.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-05', job_status='DONE', photon_flux_upper_limit='4.06e-08', time_completed='2021-09-07 00:31:18.959402', job_id='266674', GAL2='0.63', fit_tolerance='1e-08', EG2='1.09', EG='1.13', time_epoch_completed='1630999878.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='2.57e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='800' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:31:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 266674: <4FGL_J1308.5+3547_daily_bin800> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin800> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 00:20:40 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:20:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 00:20:57 2021
Terminated at Tue Sep  7 00:31:19 2021
Results reported at Tue Sep  7 00:31:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin800 197.129 35.7918 446688001 446947201 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 :                                   605.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            639 sec.

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

