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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin805
RA = 197.129, Dec = 35.7918
tmin = 447984001, tmax = 448243201
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='266682', job_status='RUN', time_executed='2021-09-07 00:21:10.967461', time_epoch_executed='1630999270.97' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266682

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266682/ft1_4FGL_J1308.5+3547_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266682/ft2_4FGL_J1308.5+3547_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266682/ft1_4FGL_J1308.5+3547_daily_bin805.fits outfile=/scratch/kocevski/266682/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin805.fits ra=197.129 dec=35.7918 rad=12.0 tmin=447984001.0 tmax=448243201.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.40
user 3.12
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266682/ft1_filtered_4FGL_J1308.5+3547_daily_bin805.fits" evtable="EVENTS" scfile=/scratch/kocevski/266682/ft2_4FGL_J1308.5+3547_daily_bin805.fits sctable="SC_DATA" outfile=/scratch/kocevski/266682/ltcube_447984001_448243201_4FGL_J1308.5+3547_daily_bin805.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/266682/ft2_4FGL_J1308.5+3547_daily_bin805.fits
.....................!
real 12.02
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266682/ft1_filtered_4FGL_J1308.5+3547_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/266682/ft2_4FGL_J1308.5+3547_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/266682/ltcube_447984001_448243201_4FGL_J1308.5+3547_daily_bin805.fits outfile=/scratch/kocevski/266682/expmap_447984001_448243201_4FGL_J1308.5+3547_daily_bin805.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/266682/ltcube_447984001_448243201_4FGL_J1308.5+3547_daily_bin805.fits
.....................!
real 156.00
user 151.65
sys 3.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/266682/ft1_filtered_4FGL_J1308.5+3547_daily_bin805.fits scfile=/scratch/kocevski/266682/ft2_4FGL_J1308.5+3547_daily_bin805.fits outfile=/scratch/kocevski/266682/cmap_447984001_448243201_4FGL_J1308.5+3547_daily_bin805.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.50
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266682/ft1_filtered_4FGL_J1308.5+3547_daily_bin805.fits scfile=/scratch/kocevski/266682/ft2_4FGL_J1308.5+3547_daily_bin805.fits outfile=/scratch/kocevski/266682/cmap_HighResolution_447984001_448243201_4FGL_J1308.5+3547_daily_bin805.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.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9065       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4863       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19791E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7486       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.810       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11754E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.2801       1.0000         .10000E-03   10000.    
    13 'norm      '    38.195       1.0000         .10000E-03   10000.    
    14 'norm      '    6.2330       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4116       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.118       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5761       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    83.399       1.0000         .10000E-03   10000.    
    22 'norm      '    13.585       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1825       1.0000         .10000E-03   10000.    
    24 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .52133       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.5038       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=   6098.606     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3135 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5680        .20923E-07** at limit **
   2  Prefactor     1.9063        1.6847        .46686E-07    .14369E-03
   3  Prefactor     .10000E-03    6.3287       -.14217E-06** at limit **
   4  Prefactor     2.4851        12.636       -.13057E-05   -.11216E-03
   5  Prefactor     .10000E-03    271.99       -.29313E-06** at limit **
   6  Prefactor     1.7479        4.4738       -.22390E-05   -.53324E-03
   7  norm          .10000E-03    1.2844        .88362E-08** at limit **
   8  Prefactor     47.841        47.624        .10665E-04   -.17828E-03
   9  Prefactor     .10000E-03    7.3138        .20360E-05** at limit **
  10  norm          .10000E-03    2.0530        .18270E-06** at limit **
  11  Prefactor     .10000E-03    13.718       -.46103E-05** at limit **
  12  norm          6.2800        4.8334        .38810E-05   -.60127E-03
  13  norm          38.194        16.832       -.25601E-06   -.13366E-04
  14  norm          6.2360        3.8172        .23661E-07   -.55722E-03
  15  norm          .10000E-03    5.3079        .67214E-06** at limit **
  16  Prefactor     1.4108        3.0850       -.16796E-05   -.92997E-03
  17  Prefactor     .10000E-03    7.6106       -.19817E-05** at limit **
  18  Prefactor     12.113        36.514        .85279E-06    .13102E-04
  19  Prefactor     3.5756        12.326       -.39102E-06   -.83061E-04
  20  Prefactor     .10000E-03    22.884       -.90247E-06** at limit **
  21  Prefactor     83.407        79.437        .60731E-05   -.62831E-04
  22  norm          13.585        2.7828       -.26804E-07   -.50388E-04
  23  Prefactor     2.1822        3.1457        .75356E-08   -.32910E-03
  24  norm          .10000E-03    15.351        .40156E-05** at limit **
  25  Normalizat    .52131        .17144       -.19604E-05    .25525E-04
  26  Prefactor     1.5040        .21236        .41415E-07   -.93050E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.90635
  Prefactor  = 0.0001
  Prefactor  = 2.48511
  Prefactor  = 0.0001
  Prefactor  = 1.74792
  norm       = 0.0001
  Prefactor  = 47.8411
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 6.27995
  norm       = 38.1938
  norm       = 6.23602
  norm       = 0.000100002
  Prefactor  = 1.41081
  Prefactor  = 0.0001
  Prefactor  = 12.1133
  Prefactor  = 3.57555
  Prefactor  = 0.0001
  Prefactor  = 83.4075
  norm       = 13.5849
  Prefactor  = 2.18217
  norm       = 0.0001
  Normalizat = 0.521306
  Prefactor  = 1.50395
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.606     FROM HESSE     STATUS=OK           464 CALLS     3599 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5801        .12221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9063        1.6944        .92920E-04   -1.5432    
   3  Prefactor     .10000E-03    6.3572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4851        12.617        .25925E-03   -1.5393    
   5  Prefactor     .10000E-03    275.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7479        4.5058        .25742E-03   -1.5444    
   7  norm          .10000E-03    1.2887        .86410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     47.841        47.096        .57992E-04   -1.4324    
   9  Prefactor     .10000E-03    7.3136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.1795        .40601E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.2800        4.8478        .14339E-03   -1.5207    
  13  norm          38.194        16.832        .64852E-04   -1.4471    
  14  norm          6.2360        3.2934        .97382E-04   -1.5208    
  15  norm          .10000E-03    10.850        .30176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4108        3.0949        .18141E-03   -1.5470    
  17  Prefactor     .10000E-03    7.6163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.113        36.356        .11507E-03   -1.5012    
  19  Prefactor     3.5756        12.307        .21370E-03   -1.5330    
  20  Prefactor     .10000E-03    23.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     83.407        79.405        .43985E-04   -1.3879    
  22  norm          13.585        2.7830        .56459E-04   -1.4971    
  23  Prefactor     2.1822        3.1290        .16022E-03   -1.5413    
  24  norm          .10000E-03    15.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .52131        .20070        .29856E-03   -1.1144    
  26  Prefactor     1.5040        .25225        .24274E-03   -.77429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70349e-09
Minuit parameter uncertainties:
  1  3.22365e-06
  2  1.69449
  3  1.25852e-05
  4  11.2024
  5  0.000660583
  6  4.50665
  7  1.236e-06
  8  47.1326
  9  4.42045e-05
  10  0.000195861
  11  0.000117032
  12  4.84807
  13  16.8341
  14  3.29353
  15  0.000318581
  16  3.09525
  17  9.50862e-05
  18  36.4221
  19  12.3156
  20  9.81317e-05
  21  79.5065
  22  2.78307
  23  3.12919
  24  0.000163584
  25  0.200975
  26  0.25246
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  6.280e+00  4.848e+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:  1.504e+00  2.525e-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:  5.213e-01  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.76
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.74e-08 +/- 2.11e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 8.73e-06

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) = 6097.38348314
delta logL = 1.22295816639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6097.14129712
delta logL = 1.465144186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1655       1.0000         .10000E-03   10000.    
     2 'alpha     '    .54556       1.0000          .0000       5.0000    
     3 'Normalizat'    .53898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4920       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=   6097.141     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      218 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1655        2.3648        .56949E-02    .29610E-03
   2  alpha         .54558        .43187        .39183       -.26505E-04
   3  Normalizat    .53894        .15868        .66331E-01    .33211E-04
   4  Prefactor     1.4919        .20973        .55071E-01   -.69851E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.16555
  alpha      = 0.545579
  Normalizat = 0.53894
  Prefactor  = 1.49195
 **********
 **   18 **HESSE 
 **********

 FCN=   6097.141     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1655        3.3777        .91886E-04   -1.5352    
   2  alpha         .54558        .54434        .19415E-01   -.89750    
   3  Normalizat    .53894        .18805        .29357E-03   -1.1064    
   4  Prefactor     1.4919        .24908        .24348E-03   -.77766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12955e-09
Minuit parameter uncertainties:
  1  3.37794
  2  0.556061
  3  0.188275
  4  0.24928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266682': 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) = 6097.14129666
delta logL = 1.4651446491

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.166e+00  3.378e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  5.456e-01  5.561e-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:  1.492e+00  2.493e-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:  5.389e-01  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.69
Ra Dec: 197.129 35.792
Photon Index (Free Index): 0.55 +/- 0.56
Photon Flux (Free Index): 1.06e-08 +/- 7.59e-09
Energy Flux (Free Index): 5.64e-05 +/- 5.71e-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/266682/cmap_HighResolution_447984001_448243201_4FGL_J1308.5+3547_daily_bin805.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.74e-08', energy_flux2='5.64e-05', photon_flux_error='2.11e-08', dlogl='1.47e+00', energy_flux='1.13e-05', photon_flux2='1.06e-08', job_status='DONE', time_completed='2021-09-07 00:30:32.591014', photon_index_error2='0.56', photon_index2='0.55', ts='4.76', fit_tolerance='1e-08', GAL='1.50', photon_index_error='0.00', energy_flux_error2='5.71e-05', EG='0.52', time_epoch_completed='1630999832.59', return_code='0', job_id='266682', GAL2='1.49', EG2='0.54', return_code2='0', energy_flux_error='8.73e-06', photon_flux_error2='7.59e-09', ts2='7.69', photon_index='2.18' WHERE bin_id='805' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:30:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 266682: <4FGL_J1308.5+3547_daily_bin805> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin805> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 00:20:41 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:20:58 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:58 2021
Terminated at Tue Sep  7 00:30:33 2021
Results reported at Tue Sep  7 00:30:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin805 197.129 35.7918 447984001 448243201 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 :                                   558.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   574 sec.
    Turnaround time :                            592 sec.

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

