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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin87
RA = 197.129, Dec = 35.7918
tmin = 261878401, tmax = 262137601
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='259920', job_status='RUN', time_executed='2021-09-06 23:57:49.704451', time_epoch_executed='1630997869.7' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259920

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259920/ft1_4FGL_J1308.5+3547_daily_bin87.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259920/ft2_4FGL_J1308.5+3547_daily_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259920/ft1_4FGL_J1308.5+3547_daily_bin87.fits outfile=/scratch/kocevski/259920/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin87.fits ra=197.129 dec=35.7918 rad=12.0 tmin=261878401.0 tmax=262137601.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.42
user 1.23
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259920/ft1_filtered_4FGL_J1308.5+3547_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/259920/ft2_4FGL_J1308.5+3547_daily_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/259920/ltcube_261878401_262137601_4FGL_J1308.5+3547_daily_bin87.fits outfile=/scratch/kocevski/259920/expmap_261878401_262137601_4FGL_J1308.5+3547_daily_bin87.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/259920/ltcube_261878401_262137601_4FGL_J1308.5+3547_daily_bin87.fits
.....................!
real 190.52
user 185.53
sys 4.51

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/259920/ft1_filtered_4FGL_J1308.5+3547_daily_bin87.fits scfile=/scratch/kocevski/259920/ft2_4FGL_J1308.5+3547_daily_bin87.fits outfile=/scratch/kocevski/259920/cmap_261878401_262137601_4FGL_J1308.5+3547_daily_bin87.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259920/ft1_filtered_4FGL_J1308.5+3547_daily_bin87.fits scfile=/scratch/kocevski/259920/ft2_4FGL_J1308.5+3547_daily_bin87.fits outfile=/scratch/kocevski/259920/cmap_HighResolution_261878401_262137601_4FGL_J1308.5+3547_daily_bin87.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.56
user 0.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8020       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1562       1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.574       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 '    31.081       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1954       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.648       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10782E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.852       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11214E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19022E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .95358       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10802E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2879       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .62866       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=   6328.118     FROM MIGRAD    STATUS=CONVERGED   1080 CALLS     3642 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.559        .32963E-02** at limit **
   2  Prefactor     2.8020        1.7461        .80726E-04   -.39151E-04
   3  Prefactor     .10000E-03    3.9549        .15335E-02** at limit **
   4  Prefactor     8.1549        8.0509        .14038E-03   -.20813E-04
   5  Prefactor     47.587        55.245        .58135E-04    .12046E-04
   6  Prefactor     .10000E-03    1.5240        .95811E-03** at limit **
   7  norm          .10000E-03    1.9979        .10910E-02** at limit **
   8  Prefactor     .10000E-03    13.222        .18142E-02** at limit **
   9  Prefactor     31.076        22.224        .71870E-04   -.65804E-04
  10  norm          4.1958        3.7817        .14215E-03    .11404E-03
  11  Prefactor     .10000E-03    9.9516        .18142E-02** at limit **
  12  norm          12.647        5.9342        .11263E-03    .11608E-04
  13  norm          .10000E-03    8.3828        .18142E-02** at limit **
  14  norm          .10000E-03    1.2829        .87546E-03** at limit **
  15  norm          .10000E-03    1.4987        .95052E-03** at limit **
  16  Prefactor     .10000E-03    1.5230        .95003E-03** at limit **
  17  Prefactor     .10000E-03    10.111        .18142E-02** at limit **
  18  Prefactor     .10000E-03    70.512        .18142E-02** at limit **
  19  Prefactor     24.885        17.857        .80354E-04    .52066E-04
  20  Prefactor     .10000E-03    8.2737        .18142E-02** at limit **
  21  Prefactor     .10000E-03    44.473        .15675    ** at limit **
  22  norm          .95372        1.2626        .52002E-04    .74330E-04
  23  Prefactor     .10000E-03    4.1527        .31043E-03** at limit **
  24  norm          .10000E-03    22.332        .18142E-02** at limit **
  25  Normalizat    1.2881        .18781        .20211E-03   -.34594E-04
  26  Prefactor     .62827        .22283        .33908E-03    .68229E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.80205
  Prefactor  = 0.0001
  Prefactor  = 8.15494
  Prefactor  = 47.5873
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.0756
  norm       = 4.19585
  Prefactor  = 0.0001
  norm       = 12.647
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.953724
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.28807
  Prefactor  = 0.628265
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.118     FROM HESSE     STATUS=OK           440 CALLS     4082 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.045        .65926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8020        1.7461        .32291E-05   -1.5373    
   3  Prefactor     .10000E-03    3.9565        .30671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.1549        8.0511        .56153E-05   -1.5137    
   5  Prefactor     47.587        55.245        .11627E-04   -1.4327    
   6  Prefactor     .10000E-03    1.5241        .19162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9982        .21819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.076        22.226        .28748E-05   -1.4592    
  10  norm          4.1958        3.7817        .56861E-05   -1.5298    
  11  Prefactor     .10000E-03    9.9545        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.647        5.9342        .45053E-05   -1.4997    
  13  norm          .10000E-03    8.3841        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2830        .17509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4987        .19010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5232        .19001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.114        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    70.528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.885        17.857        .32141E-05   -1.4710    
  20  Prefactor     .10000E-03    8.2742        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    45.261        .15476       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .95372        1.2626        .20801E-05   -1.5513    
  23  Prefactor     .10000E-03    4.1528        .62086E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    22.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2881        .18794        .40421E-04   -.83923    
  26  Prefactor     .62827        .22300        .13563E-04   -1.0641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02116e-10
Minuit parameter uncertainties:
  1  1.7463e-05
  2  1.74612
  3  5.63742e-06
  4  8.05218
  5  55.3041
  6  1.20495e-06
  7  7.23616e-06
  8  2.21229e-05
  9  22.2318
  10  3.78191
  11  1.86918e-05
  12  5.93444
  13  3.21537e-06
  14  6.48605e-06
  15  2.37147e-06
  16  5.11577e-06
  17  2.68461e-05
  18  9.14759e-05
  19  17.8612
  20  7.69372e-06
  21  0.000275101
  22  1.26268
  23  1.01108e-06
  24  9.22174e-05
  25  0.188043
  26  0.223312
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.265e+01  5.934e+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:  6.283e-01  2.233e-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.288e+00  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.79
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.51e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.07e-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) = 6327.87563141
delta logL = 0.242668604596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6327.8657065
delta logL = 0.252593512515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.446       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8379       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61677       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=   6327.866     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      242 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.447        6.3261        .10924E-03   -.10578E-03
   2  alpha         1.8381        .47438        .13903E-01   -.15477E-04
   3  Normalizat    1.3031        .18349        .20114E-03   -.45158E-03
   4  Prefactor     .61675        .22237        .34193E-03   -.24348E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.4469
  alpha      = 1.83805
  Normalizat = 1.30308
  Prefactor  = 0.616755
 **********
 **   18 **HESSE 
 **********

 FCN=   6327.866     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.447        6.3297        .21847E-04   -1.4974    
   2  alpha         1.8381        .47457        .55610E-03   -.26797    
   3  Normalizat    1.3031        .18359        .40228E-04   -.83474    
   4  Prefactor     .61675        .22251        .13677E-04   -1.0689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41289e-10
Minuit parameter uncertainties:
  1  6.32998
  2  0.477691
  3  0.183685
  4  0.222828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259920': 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) = 6327.86570644
delta logL = 0.252593573391

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.345e+01  6.330e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.838e+00  4.777e-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:  6.168e-01  2.228e-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.303e+00  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.34
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.84 +/- 0.48
Photon Flux (Free Index): 4.32e-08 +/- 2.61e-08
Energy Flux (Free Index): 2.63e-05 +/- 1.38e-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/259920/cmap_HighResolution_261878401_262137601_4FGL_J1308.5+3547_daily_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.51e-08', energy_flux2='2.63e-05', photon_flux_error='2.59e-08', dlogl='2.53e-01', energy_flux='2.28e-05', photon_flux2='4.32e-08', job_status='DONE', time_completed='2021-09-07 00:09:47.773087', photon_index_error2='0.48', photon_index2='1.84', ts='13.79', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='1.29', time_epoch_completed='1630998587.77', return_code='0', job_id='259920', GAL2='0.62', EG2='1.30', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='2.61e-08', ts2='14.34', photon_index='2.18' WHERE bin_id='87' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:09:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 259920: <4FGL_J1308.5+3547_daily_bin87> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin87> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep  6 23:55:37 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:55:59 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:55:59 2021
Terminated at Tue Sep  7 00:09:48 2021
Results reported at Tue Sep  7 00:09:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin87 197.129 35.7918 261878401 262137601 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 :                                   716.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            851 sec.

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

