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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin705
RA = 197.129, Dec = 35.7918
tmin = 422064001, tmax = 422323201
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='266526', job_status='RUN', time_executed='2021-09-07 00:20:41.364674', time_epoch_executed='1630999241.36' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='705'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266526

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266526/ft1_4FGL_J1308.5+3547_daily_bin705.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266526/ft2_4FGL_J1308.5+3547_daily_bin705.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266526/ft1_4FGL_J1308.5+3547_daily_bin705.fits outfile=/scratch/kocevski/266526/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin705.fits ra=197.129 dec=35.7918 rad=12.0 tmin=422064001.0 tmax=422323201.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.63
user 3.39
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266526/ft1_filtered_4FGL_J1308.5+3547_daily_bin705.fits" evtable="EVENTS" scfile=/scratch/kocevski/266526/ft2_4FGL_J1308.5+3547_daily_bin705.fits sctable="SC_DATA" outfile=/scratch/kocevski/266526/ltcube_422064001_422323201_4FGL_J1308.5+3547_daily_bin705.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/266526/ft2_4FGL_J1308.5+3547_daily_bin705.fits
.....................!
real 13.79
user 13.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266526/ft1_filtered_4FGL_J1308.5+3547_daily_bin705.fits evtable="EVENTS" scfile=/scratch/kocevski/266526/ft2_4FGL_J1308.5+3547_daily_bin705.fits sctable="SC_DATA" expcube=/scratch/kocevski/266526/ltcube_422064001_422323201_4FGL_J1308.5+3547_daily_bin705.fits outfile=/scratch/kocevski/266526/expmap_422064001_422323201_4FGL_J1308.5+3547_daily_bin705.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/266526/ltcube_422064001_422323201_4FGL_J1308.5+3547_daily_bin705.fits
.....................!
real 191.26
user 185.80
sys 4.94

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/266526/ft1_filtered_4FGL_J1308.5+3547_daily_bin705.fits scfile=/scratch/kocevski/266526/ft2_4FGL_J1308.5+3547_daily_bin705.fits outfile=/scratch/kocevski/266526/cmap_422064001_422323201_4FGL_J1308.5+3547_daily_bin705.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266526/ft1_filtered_4FGL_J1308.5+3547_daily_bin705.fits scfile=/scratch/kocevski/266526/ft2_4FGL_J1308.5+3547_daily_bin705.fits outfile=/scratch/kocevski/266526/cmap_HighResolution_422064001_422323201_4FGL_J1308.5+3547_daily_bin705.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88252       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2088       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8401       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    138.78       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11078E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7148       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12851E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .25154       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10477E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0933       1.0000         .10000E-03   10000.    
    15 'norm      '    23.332       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.174       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.593       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11081E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.1172       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.8493       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4253       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .45598       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=   5675.993     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     2771 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88084        5.9542       -.11284E-05   -.65491E-04
   2  Prefactor     2.2084        2.1702       -.23441E-07    .87406E-05
   3  Prefactor     4.8376        9.0890       -.13156E-06   -.83425E-05
   4  Prefactor     .10000E-03    8.6246        .54750E-07** at limit **
   5  Prefactor     138.81        87.748        .64313E-06    .10211E-04
   6  Prefactor     .10000E-03    3.2126        .56789E-07** at limit **
   7  norm          .10000E-03    5.0209       -.83269E-06** at limit **
   8  Prefactor     9.5973        65.859       -.46990E-05    .67481E-05
   9  Prefactor     .10000E-03    46.734       -.18800E-05** at limit **
  10  norm          .23295        33.925       -.36161E-05    .68791E-05
  11  Prefactor     .10000E-03    6.7675        .70973E-07** at limit **
  12  norm          .10000E-03    2.8804        .23799E-06** at limit **
  13  norm          .10000E-03    4.2265        .33871E-06** at limit **
  14  norm          3.0795        8.4005        .19804E-06    .50120E-04
  15  norm          23.346        15.154       -.17879E-06    .40831E-04
  16  Prefactor     .10000E-03    1.8114       -.85819E-08** at limit **
  17  Prefactor     31.177        19.478       -.68302E-06    .55016E-05
  18  Prefactor     .10000E-03    184.03        .33384E-05** at limit **
  19  Prefactor     12.588        19.117       -.96599E-07   -.17640E-04
  20  Prefactor     .10000E-03    33.499        .45186E-06** at limit **
  21  Prefactor     .10000E-03    70.304        .21650E-06** at limit **
  22  norm          5.1162        1.9938        .31647E-07   -.33831E-04
  23  Prefactor     .10000E-03    4.2410        .15622E-06** at limit **
  24  norm          4.8489        7.8819       -.52142E-07   -.66698E-05
  25  Normalizat    1.4259        .19084       -.11269E-05    .19307E-04
  26  Prefactor     .45545        .22050        .11404E-05   -.14434E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.88084
  Prefactor  = 2.20841
  Prefactor  = 4.83763
  Prefactor  = 0.0001
  Prefactor  = 138.81
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.59728
  Prefactor  = 0.0001
  norm       = 0.232954
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.07947
  norm       = 23.3459
  Prefactor  = 0.000100001
  Prefactor  = 31.1767
  Prefactor  = 0.0001
  Prefactor  = 12.5877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.11624
  Prefactor  = 0.0001
  norm       = 4.84887
  Normalizat = 1.42592
  Prefactor  = 0.45545
 **********
 **   18 **HESSE 
 **********

 FCN=   5675.993     FROM HESSE     STATUS=OK           466 CALLS     3237 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88084        6.0060        .36039E-03   -1.5520    
   2  Prefactor     2.2084        2.1682        .10690E-03   -1.5411    
   3  Prefactor     4.8376        9.0764        .18285E-03   -1.5268    
   4  Prefactor     .10000E-03    8.6310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     138.81        87.852        .17097E-03   -1.3346    
   6  Prefactor     .10000E-03    3.2337        .13190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.0841        .32666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.5973        65.455        .12857E-03   -1.5088    
   9  Prefactor     .10000E-03    46.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .23295        34.242        .25534E-02   -1.5611    
  11  Prefactor     .10000E-03    6.7828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    17.660        .24605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.2344        .15138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0795        8.1878        .20698E-03   -1.5357    
  15  norm          23.346        14.843        .82926E-04   -1.4741    
  16  Prefactor     .10000E-03    3.0979        .18954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.177        19.172        .71762E-04   -1.4591    
  18  Prefactor     .10000E-03    186.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.588        19.119        .11288E-03   -1.4998    
  20  Prefactor     .10000E-03    34.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    70.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.1162        1.9956        .64192E-04   -1.5256    
  23  Prefactor     .10000E-03    4.3791        .30325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.8489        7.8738        .18267E-03   -1.5268    
  25  Normalizat    1.4259        .21476        .20490E-03   -.79882    
  26  Prefactor     .45545        .24408        .39948E-03   -1.1407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15699e-10
Minuit parameter uncertainties:
  1  4.60054
  2  2.1683
  3  9.07902
  4  3.83909e-06
  5  87.9348
  6  4.04442e-06
  7  4.01672e-06
  8  50.2063
  9  9.60973e-05
  10  5.65076
  11  7.32901e-06
  12  0.000138414
  13  1.10157e-05
  14  8.19077
  15  14.8454
  16  9.6125e-05
  17  19.1753
  18  0.000287518
  19  19.1287
  20  2.81182e-05
  21  6.16965e-05
  22  1.99558
  23  1.00981e-05
  24  7.8755
  25  0.214894
  26  0.244644
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  1.384e-04  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:  4.554e-01  2.446e-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.426e+00  2.149e-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.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266526/likelihoodResults_422064001_422323201_4FGL_J1308.5+3547_daily_bin705.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) = 5675.99298834
delta logL = -0.000266373014711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5675.95859013
delta logL = 0.034131835685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61244       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3064       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44891       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=   5675.959     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      292 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61202        2.2903       -.79577E-06    .12090E-02
   2  alpha         1.3078        .53441        .20692E-04    .46607E-04
   3  Normalizat    1.4293        .18496       -.80384E-07   -.74128E-05
   4  Prefactor     .44893        .21609        .26340E-06   -.68906E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.612017
  alpha      = 1.30777
  Normalizat = 1.42932
  Prefactor  = 0.448932
 **********
 **   18 **HESSE 
 **********

 FCN=   5675.959     FROM HESSE     STATUS=OK            35 CALLS      327 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61202        7.0403        .24440E-03   -1.5552    
   2  alpha         1.3078        3.1103        .50000       -.49711    
   3  Normalizat    1.4293        .20810        .20469E-03   -.79784    
   4  Prefactor     .44893        .24354        .40218E-03   -1.1438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65582e-09
Minuit parameter uncertainties:
  1  4.15181
  2  2.94158
  3  0.20822
  4  0.2441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266526': 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) = 5675.95858927
delta logL = 0.0341326997232

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  6.120e-01  4.152e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.308e+00  2.942e+00  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  4.489e-01  2.441e-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.429e+00  2.082e-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/266526/cmap_HighResolution_422064001_422323201_4FGL_J1308.5+3547_daily_bin705.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-05', job_status='DONE', photon_flux_upper_limit='4.26e-08', time_completed='2021-09-07 00:32:19.917962', job_id='266526', GAL2='0.45', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1630999939.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.46', dlogl='3.41e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='705' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:32:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 266526: <4FGL_J1308.5+3547_daily_bin705> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin705 197.129 35.7918 422064001 422323201 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 :                                   695.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            713 sec.

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

