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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin949
RA = 197.129, Dec = 35.7918
tmin = 485308801, tmax = 485568001
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='268301', job_status='RUN', time_executed='2021-09-07 00:30:05.409379', time_epoch_executed='1630999805.41' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268301

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268301/ft1_4FGL_J1308.5+3547_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268301/ft2_4FGL_J1308.5+3547_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268301/ft1_4FGL_J1308.5+3547_daily_bin949.fits outfile=/scratch/kocevski/268301/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin949.fits ra=197.129 dec=35.7918 rad=12.0 tmin=485308801.0 tmax=485568001.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.65
user 5.39
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268301/ft1_filtered_4FGL_J1308.5+3547_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/268301/ft2_4FGL_J1308.5+3547_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/268301/ltcube_485308801_485568001_4FGL_J1308.5+3547_daily_bin949.fits outfile=/scratch/kocevski/268301/expmap_485308801_485568001_4FGL_J1308.5+3547_daily_bin949.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/268301/ltcube_485308801_485568001_4FGL_J1308.5+3547_daily_bin949.fits
.....................!
real 191.85
user 185.32
sys 5.97

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/268301/ft1_filtered_4FGL_J1308.5+3547_daily_bin949.fits scfile=/scratch/kocevski/268301/ft2_4FGL_J1308.5+3547_daily_bin949.fits outfile=/scratch/kocevski/268301/cmap_485308801_485568001_4FGL_J1308.5+3547_daily_bin949.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268301/ft1_filtered_4FGL_J1308.5+3547_daily_bin949.fits scfile=/scratch/kocevski/268301/ft2_4FGL_J1308.5+3547_daily_bin949.fits outfile=/scratch/kocevski/268301/cmap_HighResolution_485308801_485568001_4FGL_J1308.5+3547_daily_bin949.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6935       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.662       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    186.85       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5118       1.0000         .10000E-03   10000.    
     7 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21330E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.212       1.0000         .10000E-03   10000.    
    13 'norm      '    27.651       1.0000         .10000E-03   10000.    
    14 'norm      '    5.6364       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.988       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.590       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1869       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11085E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    52.743       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2078       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .46442       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=   4875.908     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     2642 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7387       -.52292E-07** at limit **
   2  Prefactor     2.6936        2.4513        .38061E-07   -.38446E-05
   3  Prefactor     14.663        1.0017        .72932E-08    .12775E-04
   4  Prefactor     .10000E-03    5.6782       -.79288E-05** at limit **
   5  Prefactor     186.85        1.0295        .29182E-07   -.20744E-02
   6  Prefactor     3.5121        1.1707       -.88747E-06   -.91653E-03
   7  norm          .10000E-03    3.0358        .37318E-06** at limit **
   8  Prefactor     .10008E-03    14.982        .11106E-05** at limit **
   9  Prefactor     .10082E-03    71.587       -.51064E-05** at limit **
  10  norm          .10000E-03    1.0682        .16672E-06** at limit **
  11  Prefactor     .10012E-03    10.378       -.25516E-05** at limit **
  12  norm          10.213        1.3032       -.70167E-06    .62047E-03
  13  norm          27.653        1.0141       -.16205E-07    .34476E-03
  14  norm          5.6377        4.1201       -.17588E-05   -.10600E-03
  15  norm          .10000E-03    5.4923        .83993E-05** at limit **
  16  Prefactor     .10000E-03    2.9245        .63661E-06** at limit **
  17  Prefactor     24.997        1.3169       -.16685E-06    .15054E-02
  18  Prefactor     .10001E-03    29.367       -.19376E-05** at limit **
  19  Prefactor     38.589        1.0066       -.32409E-07    .41919E-03
  20  Prefactor     .10000E-03    8.3598       -.12163E-07** at limit **
  21  Prefactor     .10062E-03    72.843       -.39812E-05** at limit **
  22  norm          1.1871        1.5988       -.20869E-06    .66877E-05
  23  Prefactor     .10000E-03    4.9897       -.13312E-05** at limit **
  24  norm          52.744        1.0042        .14114E-07   -.13298E-03
  25  Normalizat    1.2076        .21500       -.11714E-05    .47314E-05
  26  Prefactor     .46462        .25082        .30401E-06   -.81175E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.69358
  Prefactor  = 14.6629
  Prefactor  = 0.0001
  Prefactor  = 186.854
  Prefactor  = 3.51215
  norm       = 0.0001
  Prefactor  = 0.000100078
  Prefactor  = 0.000100824
  norm       = 0.0001
  Prefactor  = 0.000100124
  norm       = 10.2132
  norm       = 27.6533
  norm       = 5.63769
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.9968
  Prefactor  = 0.000100006
  Prefactor  = 38.5893
  Prefactor  = 0.0001
  Prefactor  = 0.000100623
  norm       = 1.18705
  Prefactor  = 0.0001
  norm       = 52.7439
  Normalizat = 1.20757
  Prefactor  = 0.46462
 **********
 **   18 **HESSE 
 **********

 FCN=   4875.908     FROM HESSE     STATUS=OK           512 CALLS     3154 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7291        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6936        2.4616        .62059E-02   -1.5380    
   3  Prefactor     14.663        11.249        .26150E-02   -1.4942    
   4  Prefactor     .10000E-03    5.7786        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     186.85        113.29        .73850E-03   -1.2965    
   6  Prefactor     3.5121        4.1076        .53934E-02   -1.5333    
   7  norm          .10000E-03    3.0152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10008E-03    23.856        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10082E-03    142.05        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0671        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10012E-03    24.513        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.213        6.4492        .31347E-02   -1.5069    
  13  norm          27.653        20.546        .19047E-02   -1.4656    
  14  norm          5.6377        4.4075        .42301E-02   -1.5233    
  15  norm          .10000E-03    5.5926        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9005        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.997        21.167        .20034E-02   -1.4708    
  18  Prefactor     .10001E-03    30.207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.589        22.925        .16130E-02   -1.4465    
  20  Prefactor     .10000E-03    8.3524        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10062E-03    141.06        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1871        1.6369        .10466E-01   -1.5490    
  23  Prefactor     .10000E-03    2.5352        .41528E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          52.744        24.984        .13807E-02   -1.4254    
  25  Normalizat    1.2076        .19717        .34704E-01   -.86369    
  26  Prefactor     .46462        .22880        .83889E-01   -1.1363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33438e-08
Minuit parameter uncertainties:
  1  1.25047e-06
  2  2.46173
  3  11.2505
  4  8.15136e-05
  5  113.427
  6  4.1079
  7  4.25384e-06
  8  0.00272388
  9  0.0216951
  10  1.03133e-06
  11  0.00349002
  12  6.44966
  13  20.5512
  14  4.40771
  15  7.96233e-05
  16  4.74276e-07
  17  21.1729
  18  0.000849432
  19  22.9304
  20  1.60789e-05
  21  0.0187922
  22  1.63694
  23  6.16941e-06
  24  24.9889
  25  0.197289
  26  0.229257
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.021e+01  6.450e+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:  4.646e-01  2.293e-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.208e+00  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.32
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 4.45e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.16e-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) = 4875.8532476
delta logL = 0.0546230738755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4875.84612167
delta logL = 0.0617490044415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5136       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4040       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47204       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=   4875.846     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5113        157.19        .32482E-02    .86361E-04
   2  alpha         2.4037        2.9391        .34593        .25520E-04
   3  Normalizat    1.1978        .12510        .34943E-01   -.15439E-04
   4  Prefactor     .47214        .11945        .83255E-01    .24857E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.51133
  alpha      = 2.40371
  Normalizat = 1.19784
  Prefactor  = 0.472136
 **********
 **   18 **HESSE 
 **********

 FCN=   4875.846     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5113        6.5540        .12695E-03   -1.5091    
   2  alpha         2.4037        .63632        .13565E-01   -.38526E-01
   3  Normalizat    1.1978        .21474        .20406E-03   -.86670    
   4  Prefactor     .47214        .25169        .36885E-03   -1.1327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41038e-12
Minuit parameter uncertainties:
  1  6.55447
  2  0.643409
  3  0.214902
  4  0.252285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268301': 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) = 4875.84612132
delta logL = 0.0617493588252

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  9.511e+00  6.554e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.404e+00  6.434e-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:  4.721e-01  2.523e-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.198e+00  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.43
Ra Dec: 197.129 35.792
Photon Index (Free Index): 2.40 +/- 0.64
Photon Flux (Free Index): 5.26e-08 +/- 3.88e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.11e-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/268301/cmap_HighResolution_485308801_485568001_4FGL_J1308.5+3547_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.45e-08', energy_flux2='1.78e-05', photon_flux_error='2.81e-08', dlogl='6.17e-02', energy_flux='1.84e-05', photon_flux2='5.26e-08', job_status='DONE', time_completed='2021-09-07 00:39:52.304631', photon_index_error2='0.64', photon_index2='2.40', ts='5.32', fit_tolerance='1e-08', GAL='0.46', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='1.21', time_epoch_completed='1631000392.3', return_code='0', job_id='268301', GAL2='0.47', EG2='1.20', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='3.88e-08', ts2='5.43', photon_index='2.18' WHERE bin_id='949' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:39:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 268301: <4FGL_J1308.5+3547_daily_bin949> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin949> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:25:29 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:29:54 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:29:54 2021
Terminated at Tue Sep  7 00:39:52 2021
Results reported at Tue Sep  7 00:39:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin949 197.129 35.7918 485308801 485568001 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 :                                   583.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            863 sec.

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

