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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin94
RA = 197.129, Dec = 35.7918
tmin = 263692801, tmax = 263952001
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='259932', job_status='RUN', time_executed='2021-09-06 23:58:00.607109', time_epoch_executed='1630997880.61' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259932

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259932/ft1_4FGL_J1308.5+3547_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259932/ft2_4FGL_J1308.5+3547_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259932/ft1_4FGL_J1308.5+3547_daily_bin94.fits outfile=/scratch/kocevski/259932/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin94.fits ra=197.129 dec=35.7918 rad=12.0 tmin=263692801.0 tmax=263952001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.68
user 1.50
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259932/ft1_filtered_4FGL_J1308.5+3547_daily_bin94.fits" evtable="EVENTS" scfile=/scratch/kocevski/259932/ft2_4FGL_J1308.5+3547_daily_bin94.fits sctable="SC_DATA" outfile=/scratch/kocevski/259932/ltcube_263692801_263952001_4FGL_J1308.5+3547_daily_bin94.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/259932/ft2_4FGL_J1308.5+3547_daily_bin94.fits
.....................!
real 17.57
user 17.11
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259932/ft1_filtered_4FGL_J1308.5+3547_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/259932/ft2_4FGL_J1308.5+3547_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/259932/ltcube_263692801_263952001_4FGL_J1308.5+3547_daily_bin94.fits outfile=/scratch/kocevski/259932/expmap_263692801_263952001_4FGL_J1308.5+3547_daily_bin94.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/259932/ltcube_263692801_263952001_4FGL_J1308.5+3547_daily_bin94.fits
.....................!
real 192.95
user 187.35
sys 4.88

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/259932/ft1_filtered_4FGL_J1308.5+3547_daily_bin94.fits scfile=/scratch/kocevski/259932/ft2_4FGL_J1308.5+3547_daily_bin94.fits outfile=/scratch/kocevski/259932/cmap_263692801_263952001_4FGL_J1308.5+3547_daily_bin94.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.58
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259932/ft1_filtered_4FGL_J1308.5+3547_daily_bin94.fits scfile=/scratch/kocevski/259932/ft2_4FGL_J1308.5+3547_daily_bin94.fits outfile=/scratch/kocevski/259932/cmap_HighResolution_263692801_263952001_4FGL_J1308.5+3547_daily_bin94.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.59
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/259932/ft1_filtered_4FGL_J1308.5+3547_daily_bin94.fits', '/scratch/kocevski/259932/ft2_4FGL_J1308.5+3547_daily_bin94.fits', expMap='/scratch/kocevski/259932/expmap_263692801_263952001_4FGL_J1308.5+3547_daily_bin94.fits', expCube='/scratch/kocevski/259932/ltcube_263692801_263952001_4FGL_J1308.5+3547_daily_bin94.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/259932/Model_4FGL_J1308.5+3547_daily_bin94.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/259932/ft1_filtered_4FGL_J1308.5+3547_daily_bin94.fits
Spacecraft file(s): /scratch/kocevski/259932/ft2_4FGL_J1308.5+3547_daily_bin94.fits
Exposure map: /scratch/kocevski/259932/expmap_263692801_263952001_4FGL_J1308.5+3547_daily_bin94.fits
Exposure cube: /scratch/kocevski/259932/ltcube_263692801_263952001_4FGL_J1308.5+3547_daily_bin94.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/259932/Model_4FGL_J1308.5+3547_daily_bin94.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5955.92193864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1266       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.901       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.922       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.105       1.0000         .10000E-03   10000.    
    10 'norm      '    10.977       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    36.258       1.0000         .10000E-03   10000.    
    13 'norm      '    8.4940       1.0000         .10000E-03   10000.    
    14 'norm      '    .47201       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9557       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5508       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1662       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7666       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .87369       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .14363E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99826       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0518       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=   5955.807     FROM MIGRAD    STATUS=CONVERGED   1103 CALLS     3624 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.067        .36285E-03** at limit **
   2  Prefactor     1.1261        1.6386        .14012E-02    .16906E-02
   3  Prefactor     19.901        10.404        .89782E-04   -.78888E-04
   4  Prefactor     18.922        15.819        .92075E-04    .49883E-04
   5  Prefactor     .10000E-03    20.070        .18142E-02** at limit **
   6  Prefactor     .10000E-03    1.9485        .10504E-02** at limit **
   7  norm          .10000E-03    1.6011        .95041E-03** at limit **
   8  Prefactor     .10000E-03    413.97        .36285E-03** at limit **
   9  Prefactor     19.104        18.878        .91633E-04    .13027E-03
  10  norm          10.977        5.0677        .57250E-03   -.72680E-05
  11  Prefactor     .10000E-03    5.2118        .17197E-02** at limit **
  12  norm          36.258        9.2009        .66556E-04   -.81512E-04
  13  norm          8.4943        8.9200        .68773E-03    .43625E-04
  14  norm          .47148        31.337        .26304E-03    .66386E-04
  15  norm          1.9564        28.712        .25922E-03   -.13420E-04
  16  Prefactor     1.5504        3.1781        .17339E-03    .59076E-04
  17  Prefactor     6.1660        13.691        .80835E-03   -.24584E-04
  18  Prefactor     .10000E-03    32.617        .18142E-02** at limit **
  19  Prefactor     5.7657        13.980        .16726E-03    .18033E-03
  20  Prefactor     .10000E-03    7.9099        .18142E-02** at limit **
  21  Prefactor     .10000E-03    16.835        .18142E-02** at limit **
  22  norm          .87355        1.4262        .12222E-02    .39928E-02
  23  Prefactor     .10000E-03    1.2551        .84140E-03** at limit **
  24  norm          .10000E-03    96.722        .50752E-02** at limit **
  25  Normalizat    .99824        .20200        .23242E-03    .42653E-04
  26  Prefactor     1.0520        .25342        .28994E-03    .41955E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.12609
  Prefactor  = 19.9008
  Prefactor  = 18.9219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1038
  norm       = 10.9771
  Prefactor  = 0.0001
  norm       = 36.2583
  norm       = 8.49426
  norm       = 0.471476
  norm       = 1.9564
  Prefactor  = 1.55038
  Prefactor  = 6.16604
  Prefactor  = 0.0001
  Prefactor  = 5.76569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.873548
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.998244
  Prefactor  = 1.05195
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.807     FROM HESSE     STATUS=OK           438 CALLS     4062 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.068        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1261        1.6379        .28024E-03   -1.5496    
   3  Prefactor     19.901        10.403        .17956E-04   -1.4815    
   4  Prefactor     18.922        15.819        .36830E-05   -1.4838    
   5  Prefactor     .10000E-03    20.070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9486        .21009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6012        .19008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    413.99        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.104        18.870        .36653E-05   -1.4834    
  10  norm          10.977        5.0677        .22900E-04   -1.5045    
  11  Prefactor     .10000E-03    5.2120        .34394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          36.258        9.2002        .13311E-04   -1.4503    
  13  norm          8.4943        8.9199        .27509E-04   -1.5125    
  14  norm          .47148        29.343        .52609E-04   -1.5571    
  15  norm          1.9564        26.899        .10369E-04   -1.5428    
  16  Prefactor     1.5504        3.1744        .69356E-05   -1.5459    
  17  Prefactor     6.1660        13.670        .32334E-04   -1.5211    
  18  Prefactor     .10000E-03    32.618        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.7657        13.978        .66902E-05   -1.5228    
  20  Prefactor     .10000E-03    7.9103        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .87355        1.4252        .24443E-03   -1.5521    
  23  Prefactor     .10000E-03    1.2551        .16828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    99.124        .20301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .99824        .20191        .92970E-05   -.93089    
  26  Prefactor     1.0520        .25350        .11598E-04   -.91017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62619e-10
Minuit parameter uncertainties:
  1  4.25699e-06
  2  1.63792
  3  10.4043
  4  15.822
  5  6.57146e-06
  6  1.66894e-07
  7  4.95666e-07
  8  0.000613513
  9  18.876
  10  5.06789
  11  2.98907e-07
  12  9.20051
  13  8.92132
  14  7.44201
  15  14.5162
  16  3.17469
  17  13.6765
  18  1.58161e-05
  19  13.9861
  20  4.14481e-06
  21  6.13624e-06
  22  1.42522
  23  4.7668e-08
  24  1.63898e-05
  25  0.202067
  26  0.253789
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.626e+01  9.201e+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.052e+00  2.538e-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:  9.982e-01  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 64.91
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 4.01e-08
Energy Flux (Fixed Index): 6.53e-05 +/- 1.66e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5954.47626773
delta logL = 1.33120286735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5954.38126587
delta logL = 1.42620471803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.491       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6933       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0148       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=   5954.381     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.496        10.982        .15946E-02   -.88193E-05
   2  alpha         1.6938        .29022        .20711        .78239E-05
   3  Normalizat    1.0484        .16635        .40668E-01    .35165E-05
   4  Prefactor     1.0148        .21147        .66680E-01    .84365E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 39.4961
  alpha      = 1.69379
  Normalizat = 1.04839
  Prefactor  = 1.01476
 **********
 **   18 **HESSE 
 **********

 FCN=   5954.381     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.496        10.683        .63783E-04   -1.4450    
   2  alpha         1.6938        .29410        .87655E-02   -.32835    
   3  Normalizat    1.0484        .19698        .22799E-03   -.91426    
   4  Prefactor     1.0148        .25010        .29495E-03   -.92239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18458e-13
Minuit parameter uncertainties:
  1  10.6831
  2  0.294863
  3  0.197117
  4  0.25039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259932': 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) = 5954.38126439
delta logL = 1.42620619893

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.950e+01  1.068e+01  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.694e+00  2.949e-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.015e+00  2.504e-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.048e+00  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 67.96
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.69 +/- 0.29
Photon Flux (Free Index): 1.15e-07 +/- 3.99e-08
Energy Flux (Free Index): 8.49e-05 +/- 2.80e-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/259932/cmap_HighResolution_263692801_263952001_4FGL_J1308.5+3547_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='8.49e-05', photon_flux_error='4.01e-08', dlogl='1.43e+00', energy_flux='6.53e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-07 00:09:42.587818', photon_index_error2='0.29', photon_index2='1.69', ts='64.91', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.80e-05', EG='1.00', time_epoch_completed='1630998582.59', return_code='0', job_id='259932', GAL2='1.01', EG2='1.05', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='3.99e-08', ts2='67.96', photon_index='2.18' WHERE bin_id='94' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:09:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 259932: <4FGL_J1308.5+3547_daily_bin94> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin94 197.129 35.7918 263692801 263952001 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 :                                   700.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            845 sec.

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

