/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 58 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1301
RA = 197.129, Dec = 35.7918
tmin = 576547201, tmax = 576806401
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='272517', job_status='RUN', time_executed='2021-09-07 00:37:23.201441', time_epoch_executed='1631000243.2' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1301'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272517

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272517/ft1_4FGL_J1308.5+3547_daily_bin1301.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272517/ft2_4FGL_J1308.5+3547_daily_bin1301.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272517/ft1_4FGL_J1308.5+3547_daily_bin1301.fits outfile=/scratch/kocevski/272517/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1301.fits ra=197.129 dec=35.7918 rad=12.0 tmin=576547201.0 tmax=576806401.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 5.06
user 4.76
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272517/ft1_filtered_4FGL_J1308.5+3547_daily_bin1301.fits evtable="EVENTS" scfile=/scratch/kocevski/272517/ft2_4FGL_J1308.5+3547_daily_bin1301.fits sctable="SC_DATA" expcube=/scratch/kocevski/272517/ltcube_576547201_576806401_4FGL_J1308.5+3547_daily_bin1301.fits outfile=/scratch/kocevski/272517/expmap_576547201_576806401_4FGL_J1308.5+3547_daily_bin1301.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/272517/ltcube_576547201_576806401_4FGL_J1308.5+3547_daily_bin1301.fits
.....................!
real 192.66
user 186.78
sys 4.31

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/272517/ft1_filtered_4FGL_J1308.5+3547_daily_bin1301.fits scfile=/scratch/kocevski/272517/ft2_4FGL_J1308.5+3547_daily_bin1301.fits outfile=/scratch/kocevski/272517/cmap_576547201_576806401_4FGL_J1308.5+3547_daily_bin1301.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.62
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272517/ft1_filtered_4FGL_J1308.5+3547_daily_bin1301.fits scfile=/scratch/kocevski/272517/ft2_4FGL_J1308.5+3547_daily_bin1301.fits outfile=/scratch/kocevski/272517/cmap_HighResolution_576547201_576806401_4FGL_J1308.5+3547_daily_bin1301.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5156       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5743       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.933       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.1026       1.0000         .10000E-03   10000.    
    13 'norm      '    7.0307       1.0000         .10000E-03   10000.    
    14 'norm      '    5.2875       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    59.159       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.509       1.0000         .10000E-03   10000.    
    22 'norm      '    25.940       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    16.046       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96831       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3637       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=   6821.327     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     3048 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5157        6.1117       -.28349E-06   -.13181E-04
   2  Prefactor     4.5742        3.2827        .17000E-05   -.22218E-03
   3  Prefactor     .10000E-03    4.0007       -.23122E-05** at limit **
   4  Prefactor     .10000E-03    16.821        .54494E-05** at limit **
   5  Prefactor     .10000E-03    22.992       -.43418E-05** at limit **
   6  Prefactor     .10000E-03    6.5612        .28112E-05** at limit **
   7  norm          .10000E-03    2.6975        .30614E-06** at limit **
   8  Prefactor     24.933        33.186        .48267E-07    .23420E-05
   9  Prefactor     .10000E-03    14.624       -.30443E-05** at limit **
  10  norm          .10000E-03    5.4514       -.23299E-05** at limit **
  11  Prefactor     .10000E-03    9.2605       -.35111E-05** at limit **
  12  norm          9.1017        5.8496        .56756E-06   -.81670E-04
  13  norm          7.0305        12.848       -.81605E-06   -.46727E-04
  14  norm          5.2885        3.6257        .97064E-06   -.40194E-03
  15  norm          .10000E-03    4.0668        .25279E-05** at limit **
  16  Prefactor     .10000E-03    2.0699        .66631E-06** at limit **
  17  Prefactor     .10000E-03    5.2446       -.43410E-06** at limit **
  18  Prefactor     59.113        64.480       -.55828E-04   -.12918E-04
  19  Prefactor     .10000E-03    6.1826       -.13038E-06** at limit **
  20  Prefactor     .10000E-03    16.020        .28104E-05** at limit **
  21  Prefactor     23.512        59.295        .64252E-05    .31834E-05
  22  norm          25.940        3.6414       -.17515E-07    .67191E-04
  23  Prefactor     .10000E-03    1.8986       -.49310E-07** at limit **
  24  norm          16.046        19.189       -.14480E-05   -.41710E-03
  25  Normalizat    .96825        .18275        .18180E-05   -.68618E-04
  26  Prefactor     1.3638        .22403        .14264E-05   -.60012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.51572
  Prefactor  = 4.57425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 24.9329
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.10171
  norm       = 7.03049
  norm       = 5.28853
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 59.1128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5125
  norm       = 25.9397
  Prefactor  = 0.0001
  norm       = 16.0464
  Normalizat = 0.968246
  Prefactor  = 1.36381
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.327     FROM HESSE     STATUS=OK           454 CALLS     3502 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5157        6.1144        .17108E-03   -1.5238    
   2  Prefactor     4.5742        3.2770        .12304E-03   -1.5280    
   3  Prefactor     .10000E-03    4.0084        .16136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.7233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.4260        .26161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.933        33.184        .80224E-04   -1.4709    
   9  Prefactor     .10000E-03    14.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.7042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.2851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.1017        5.8420        .13284E-03   -1.5104    
  13  norm          7.0305        12.852        .15129E-03   -1.5178    
  14  norm          5.2885        3.5946        .12406E-03   -1.5248    
  15  norm          .10000E-03    4.0776        .16212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1261        .23205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     59.113        64.532        .52162E-04   -1.4169    
  19  Prefactor     .10000E-03    6.1915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.512        59.481        .82614E-04   -1.4738    
  22  norm          25.940        3.6423        .57084E-04   -1.4689    
  23  Prefactor     .10000E-03    1.9159        .11112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          16.046        19.218        .49992E-03   -1.4907    
  25  Normalizat    .96825        .21769        .27498E-03   -.94102    
  26  Prefactor     1.3638        .26718        .29567E-03   -.81429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05677e-09
Minuit parameter uncertainties:
  1  6.11513
  2  3.27709
  3  1.12211e-05
  4  5.6058e-05
  5  1.60214e-05
  6  4.40278e-05
  7  0.000305975
  8  33.2088
  9  1.58495e-05
  10  4.76688e-06
  11  9.32497e-06
  12  5.84235
  13  12.8571
  14  3.59479
  15  3.07015e-05
  16  0.000131114
  17  8.39337e-05
  18  64.6084
  19  6.50243e-06
  20  1.67697e-05
  21  59.6313
  22  3.64235
  23  3.44267e-07
  24  19.2254
  25  0.217886
  26  0.267446
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  9.102e+00  5.842e+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.364e+00  2.674e-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.682e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.18
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.97e-08 +/- 2.55e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.05e-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) = 6821.26134126
delta logL = 0.0660939827985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6821.26101613
delta logL = 0.0664191085871

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1318       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9315       1.0000          .0000       5.0000    
     3 'Normalizat'    .97740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3583       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=   6821.261     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      199 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1670        19.111        .33157E-02    .75302E-03
   2  alpha         1.9359        1.6955        .42584        .87628E-06
   3  Normalizat    .97681        .19210        .45883E-01    .98097E-05
   4  Prefactor     1.3588        .23153        .66949E-01    .28208E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.16703
  alpha      = 1.93587
  Normalizat = 0.976815
  Prefactor  = 1.35877
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.261     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1670        6.0719        .66314E-03   -1.5102    
   2  alpha         1.9359        .67106        .19155E-01   -.22761    
   3  Normalizat    .97681        .21215        .27392E-03   -.93811    
   4  Prefactor     1.3588        .26487        .29614E-03   -.81576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6354e-13
Minuit parameter uncertainties:
  1  6.07227
  2  0.679859
  3  0.212329
  4  0.265133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272517': 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) = 6821.26098124
delta logL = 0.0664540008347

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  9.167e+00  6.072e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.936e+00  6.799e-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.359e+00  2.651e-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.768e-01  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.31
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.94 +/- 0.68
Photon Flux (Free Index): 3.18e-08 +/- 2.92e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/272517/cmap_HighResolution_576547201_576806401_4FGL_J1308.5+3547_daily_bin1301.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.97e-08', energy_flux2='1.72e-05', photon_flux_error='2.55e-08', dlogl='6.65e-02', energy_flux='1.64e-05', photon_flux2='3.18e-08', job_status='DONE', time_completed='2021-09-07 00:49:54.416572', photon_index_error2='0.68', photon_index2='1.94', ts='6.18', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='0.97', time_epoch_completed='1631000994.42', return_code='0', job_id='272517', GAL2='1.36', EG2='0.98', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='2.92e-08', ts2='6.31', photon_index='2.18' WHERE bin_id='1301' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:49:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 272517: <4FGL_J1308.5+3547_daily_bin1301> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1301> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:39 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:36:06 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:36:06 2021
Terminated at Tue Sep  7 00:49:55 2021
Results reported at Tue Sep  7 00:49:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1301 197.129 35.7918 576547201 576806401 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 :                                   708.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            856 sec.

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

