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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1230
RA = 197.129, Dec = 35.7918
tmin = 558144001, tmax = 558403201
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='272414', job_status='RUN', time_executed='2021-09-07 00:37:46.980129', time_epoch_executed='1631000266.98' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272414

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272414/ft1_4FGL_J1308.5+3547_daily_bin1230.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272414/ft2_4FGL_J1308.5+3547_daily_bin1230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272414/ft1_4FGL_J1308.5+3547_daily_bin1230.fits outfile=/scratch/kocevski/272414/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1230.fits ra=197.129 dec=35.7918 rad=12.0 tmin=558144001.0 tmax=558403201.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 4.31
user 4.04
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/272414/ft2_4FGL_J1308.5+3547_daily_bin1230.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/272414/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1230.fits evtable="EVENTS" outfile="/scratch/kocevski/272414/ft1_filtered_4FGL_J1308.5+3547_daily_bin1230.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/272414/ft1_filtered_4FGL_J1308.5+3547_daily_bin1230.fits" evtable="EVENTS" scfile=/scratch/kocevski/272414/ft2_4FGL_J1308.5+3547_daily_bin1230.fits sctable="SC_DATA" outfile=/scratch/kocevski/272414/ltcube_558144001_558403201_4FGL_J1308.5+3547_daily_bin1230.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/272414/ft2_4FGL_J1308.5+3547_daily_bin1230.fits
.....................!
real 15.50
user 15.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272414/ft1_filtered_4FGL_J1308.5+3547_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/272414/ft2_4FGL_J1308.5+3547_daily_bin1230.fits sctable="SC_DATA" expcube=/scratch/kocevski/272414/ltcube_558144001_558403201_4FGL_J1308.5+3547_daily_bin1230.fits outfile=/scratch/kocevski/272414/expmap_558144001_558403201_4FGL_J1308.5+3547_daily_bin1230.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/272414/ltcube_558144001_558403201_4FGL_J1308.5+3547_daily_bin1230.fits
.....................!
real 192.07
user 187.21
sys 4.48

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/272414/ft1_filtered_4FGL_J1308.5+3547_daily_bin1230.fits scfile=/scratch/kocevski/272414/ft2_4FGL_J1308.5+3547_daily_bin1230.fits outfile=/scratch/kocevski/272414/cmap_558144001_558403201_4FGL_J1308.5+3547_daily_bin1230.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272414/ft1_filtered_4FGL_J1308.5+3547_daily_bin1230.fits scfile=/scratch/kocevski/272414/ft2_4FGL_J1308.5+3547_daily_bin1230.fits outfile=/scratch/kocevski/272414/cmap_HighResolution_558144001_558403201_4FGL_J1308.5+3547_daily_bin1230.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.41
sys 0.16

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 488.434115941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 485.458015444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34819E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28440E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .72753E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36931E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .31733       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3085       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54391E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .14801E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    96.835       1.0000         .10000E-03   10000.    
    12 'norm      '    .21584E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4849       1.0000         .10000E-03   10000.    
    14 'norm      '    .43406E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .24878E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .87469E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2931       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .52124E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14766E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8942       1.0000         .10000E-03   10000.    
    22 'norm      '    .79195E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13043E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    145.12       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .43175E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.5676       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   485.3645     FROM MIGRAD    STATUS=CONVERGED    526 CALLS      880 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.920        .24144E-06** at limit **
   2  Prefactor     .10000E-03    6.3375        .24643E-07** at limit **
   3  Prefactor     .10000E-03    17.856       -.49608E-06** at limit **
   4  Prefactor     .10000E-03    189.94       -.38427E-05** at limit **
   5  Prefactor     140.15        358.10        .12034E-05    .30865E-03
   6  Prefactor     .10000E-03    38.095       -.57073E-07** at limit **
   7  norm          .10000E-03    51.051        .24308E-06** at limit **
   8  Prefactor     4.3085        1.0069         .0000         .0000    
   9  Prefactor     .10000E-03    71.927       -.19924E-05** at limit **
  10  norm          .10000E-03    4.3102       -.29415E-06** at limit **
  11  Prefactor     93.647        8.4661       -.99551E-07    .44003E-02
  12  norm          .10000E-03    20.827        .17272E-06** at limit **
  13  norm          .63442E-03    534.44        .61709E-05** at limit **
  14  norm          .10000E-03    8.4275       -.31225E-06** at limit **
  15  norm          .10000E-03    11.082       -.99435E-06** at limit **
  16  Prefactor     .10000E-03    7.2308       -.11626E-06** at limit **
  17  Prefactor     .10000E-03    20.059       -.32037E-06** at limit **
  18  Prefactor     31.010        313.08       -.87387E-05    .85760E-03
  19  Prefactor     2.1975        95.570        .12853E-04    .23820E-04
  20  Prefactor     .10000E-03    21.332        .13040E-05** at limit **
  21  Prefactor     .11114E-03    339.37       -.35974E-05** at limit **
  22  norm          .10000E-03    55.663       -.57822E-06** at limit **
  23  Prefactor     .10000E-03    57.330       -.28264E-05** at limit **
  24  norm          146.02        51.246        .29339E-06   -.21570E-01
  25  Normalizat    .10000E-01    7.0954       -.29983E-04** at limit **
  26  Prefactor     1.5470        .35945       -.14003E-05    .20369E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 140.155
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.30848
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 93.6473
  norm       = 0.0001
  norm       = 0.000634416
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.0098
  Prefactor  = 2.19752
  Prefactor  = 0.0001
  Prefactor  = 0.00011114
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 146.015
  Normalizat = 0.01
  Prefactor  = 1.54703
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   485.3645     FROM HESSE     STATUS=FAILED        39 CALLS      919 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.876        .10663E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.3407        .10706E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.342        .10621E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    190.29        .93805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     140.15        336.76        .31670E-02   -1.3335    
   6  Prefactor     .10000E-03    37.583        .97958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    50.186        .10501E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     538.73        534.36         .0000       -1.5293    
   9  Prefactor     .10000E-03    .21583       -.19924E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .20571       -.29415E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     93.647        .98357       -.99551E-07   -1.3769    
  12  norm          .10000E-03    .20571        .17272E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .63442E-03    .38809E-01    .61709E-05   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .28158       -.31225E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .20571       -.99435E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .20571       -.11626E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .27164       -.32037E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.010        2.0645       -.87387E-05   -1.4594    
  19  Prefactor     2.1975        1.3755        .12853E-04   -1.5411    
  20  Prefactor     .10000E-03    .20571        .13040E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11114E-03    .42750E-01   -.35974E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .22144       -.57822E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .26464       -.28264E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          146.02        1.0030        .29339E-06   -1.3285    
  25  Normalizat    .10000E-01    .26377       -.29983E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.5470        1.0369       -.14003E-05   -.76231    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.57519e-10
Minuit parameter uncertainties:
  1  0.000339477
  2  9.202e-07
  3  4.10837e-06
  4  0.000307006
  5  341.547
  6  1.76369e-05
  7  0.000262234
  8  1.0069
  9  1.14563e-06
  10  1.41418e-06
  11  0.983575
  12  9.81349e-07
  13  0.00910823
  14  2.83901e-07
  15  2.97907e-06
  16  1.59769e-07
  17  7.2291e-07
  18  2.06447
  19  1.37555
  20  2.45919e-07
  21  0.0013802
  22  1.96545e-06
  23  9.85293e-06
  24  1.00304
  25  4.87549e-06
  26  1.05165
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 485.364527668

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  9.813e-07  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.547e+00  1.052e+00  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.000e-02  4.875e-06  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.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/272414/likelihoodResults_558144001_558403201_4FGL_J1308.5+3547_daily_bin1230.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) = 485.364736333
delta logL = -0.000208665045932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 485.364532268
delta logL = -4.60016536863e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2743       1.0000          .0000       5.0000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5470       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=   485.3645     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      315 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1813.9        .59727E-02** at limit **
   2  alpha         1.6896        3.7728        .17590        .16562E-08
   3  Normalizat    .10000E-01    .91151        .11704E-01** at limit **
   4  Prefactor     1.5470        .13836        .18903E-03    .21758E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.68956
  Normalizat = 0.01
  Prefactor  = 1.54704
 **********
 **   18 **HESSE 
 **********

 FCN=   485.3645     FROM HESSE     STATUS=OK            23 CALLS      338 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.257        .10597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6896        3.4678        .70360E-02   -.33014    
   3  Normalizat    .10000E-01    7.1338        .46815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5470        .31716        .37806E-04   -.76231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65951e-10
Minuit parameter uncertainties:
  1  3.14609e-05
  2  587.281
  3  4.82241e-06
  4  0.317572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272414': 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) = 485.364527324
delta logL = 3.4358049561e-07

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  3.146e-05  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.690e+00  5.873e+02  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.547e+00  3.176e-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.000e-02  4.822e-06  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/272414/cmap_HighResolution_558144001_558403201_4FGL_J1308.5+3547_daily_bin1230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-04', job_status='DONE', photon_flux_upper_limit='4.31e-07', time_completed='2021-09-07 00:43:37.652046', job_id='272414', GAL2='1.55', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631000617.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.55', dlogl='3.44e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1230' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:43:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 272414: <4FGL_J1308.5+3547_daily_bin1230> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1230> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:31 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:35:50 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:35:50 2021
Terminated at Tue Sep  7 00:43:38 2021
Results reported at Tue Sep  7 00:43:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1230 197.129 35.7918 558144001 558403201 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 :                                   344.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   467 sec.
    Turnaround time :                            487 sec.

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

