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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1315
RA = 197.129, Dec = 35.7918
tmin = 580176001, tmax = 580435201
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='272538', job_status='RUN', time_executed='2021-09-07 00:38:05.708032', time_epoch_executed='1631000285.71' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272538

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272538/ft1_4FGL_J1308.5+3547_daily_bin1315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272538/ft2_4FGL_J1308.5+3547_daily_bin1315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272538/ft1_4FGL_J1308.5+3547_daily_bin1315.fits outfile=/scratch/kocevski/272538/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1315.fits ra=197.129 dec=35.7918 rad=12.0 tmin=580176001.0 tmax=580435201.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.80
user 4.50
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272538/ft1_filtered_4FGL_J1308.5+3547_daily_bin1315.fits evtable="EVENTS" scfile=/scratch/kocevski/272538/ft2_4FGL_J1308.5+3547_daily_bin1315.fits sctable="SC_DATA" expcube=/scratch/kocevski/272538/ltcube_580176001_580435201_4FGL_J1308.5+3547_daily_bin1315.fits outfile=/scratch/kocevski/272538/expmap_580176001_580435201_4FGL_J1308.5+3547_daily_bin1315.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/272538/ltcube_580176001_580435201_4FGL_J1308.5+3547_daily_bin1315.fits
.....................!
real 190.91
user 185.72
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/272538/ft1_filtered_4FGL_J1308.5+3547_daily_bin1315.fits scfile=/scratch/kocevski/272538/ft2_4FGL_J1308.5+3547_daily_bin1315.fits outfile=/scratch/kocevski/272538/cmap_580176001_580435201_4FGL_J1308.5+3547_daily_bin1315.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272538/ft1_filtered_4FGL_J1308.5+3547_daily_bin1315.fits scfile=/scratch/kocevski/272538/ft2_4FGL_J1308.5+3547_daily_bin1315.fits outfile=/scratch/kocevski/272538/cmap_HighResolution_580176001_580435201_4FGL_J1308.5+3547_daily_bin1315.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4067       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.776       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9979       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10245E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11064E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5814       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.6152       1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.040       1.0000         .10000E-03   10000.    
    15 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8423       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.201       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3934       1.0000         .10000E-03   10000.    
    24 'norm      '    .24387       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .77931       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3953       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=   6390.076     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     2627 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0876       -.10656E-07** at limit **
   2  Prefactor     2.4068        1.6262       -.16541E-07   -.65177E-04
   3  Prefactor     12.775        10.026        .30220E-06    .76056E-04
   4  Prefactor     2.9988        12.898        .41375E-06    .16471E-04
   5  Prefactor     .10000E-03    37.746       -.39146E-06** at limit **
   6  Prefactor     .10000E-03    4.7337        .32669E-06** at limit **
   7  norm          .10000E-03    2.1774        .84873E-07** at limit **
   8  Prefactor     .10000E-03    113.17       -.93752E-06** at limit **
   9  Prefactor     2.5503        41.565        .11512E-04    .29323E-03
  10  norm          .10000E-03    2.1131       -.22049E-08** at limit **
  11  Prefactor     .10000E-03    8.7359        .13421E-05** at limit **
  12  norm          4.6153        3.6213       -.77424E-07   -.20435E-04
  13  norm          .10000E-03    8.7813       -.12771E-05** at limit **
  14  norm          10.040        4.3364        .15886E-06    .60284E-03
  15  norm          .10000E-03    4.4199       -.54849E-06** at limit **
  16  Prefactor     2.8418        2.6564       -.82018E-07    .16118E-03
  17  Prefactor     .10000E-03    5.9735       -.52497E-06** at limit **
  18  Prefactor     .10001E-03    68.569       -.81079E-05** at limit **
  19  Prefactor     .10000E-03    6.1128        .26013E-06** at limit **
  20  Prefactor     .10000E-03    4.7129       -.35594E-06** at limit **
  21  Prefactor     .10000E-03    55.215        .52478E-05** at limit **
  22  norm          10.201        2.4296        .17715E-07    .11952E-03
  23  Prefactor     1.3934        2.3423        .12272E-06    .11609E-03
  24  norm          .17904        21.173       -.64770E-05    .69379E-03
  25  Normalizat    .77940        .16416       -.90803E-06    .12366E-03
  26  Prefactor     1.3952        .21138        .18970E-06    .87015E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.40678
  Prefactor  = 12.7753
  Prefactor  = 2.99876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.55028
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.61531
  norm       = 0.0001
  norm       = 10.0401
  norm       = 0.0001
  Prefactor  = 2.84177
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 10.201
  Prefactor  = 1.39339
  norm       = 0.179039
  Normalizat = 0.779405
  Prefactor  = 1.39518
 **********
 **   18 **HESSE 
 **********

 FCN=   6390.076     FROM HESSE     STATUS=OK           460 CALLS     3087 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0965        .13716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4068        1.6341        .81698E-04   -1.5398    
   3  Prefactor     12.775        10.028        .11207E-03   -1.4993    
   4  Prefactor     2.9988        12.864        .23444E-03   -1.5362    
   5  Prefactor     .10000E-03    37.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8948        .33906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.2064        .11524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    114.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5503        43.516        .12700E-02   -1.5389    
  10  norm          .10000E-03    2.1631        .11346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.7792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.6153        3.6202        .13019E-03   -1.5278    
  13  norm          .10000E-03    8.8516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.040        4.3298        .10072E-03   -1.5074    
  15  norm          .10000E-03    4.4579        .16404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8418        2.6435        .11896E-03   -1.5371    
  17  Prefactor     .10000E-03    5.9933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    68.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.1348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.7170        .16949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    55.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.201        2.4309        .58759E-04   -1.5069    
  23  Prefactor     1.3934        2.3058        .15404E-03   -1.5472    
  24  norm          .17904        12.643        .75920E-01   -1.5623    
  25  Normalizat    .77940        .19664        .25854E-03   -1.0084    
  26  Prefactor     1.3952        .25386        .26131E-03   -.80519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14178e-09
Minuit parameter uncertainties:
  1  5.38423e-07
  2  1.63414
  3  10.0297
  4  12.4262
  5  6.3847e-05
  6  4.10348e-06
  7  3.45767e-06
  8  9.01117e-05
  9  21.0869
  10  4.70802e-07
  11  6.89684e-05
  12  3.62033
  13  6.91668e-05
  14  4.32989
  15  7.33135e-05
  16  2.64362
  17  4.06119e-05
  18  0.00133796
  19  1.25938e-05
  20  1.6316e-05
  21  0.000869353
  22  2.4309
  23  2.3059
  24  3.00889
  25  0.196819
  26  0.254083
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  4.615e+00  3.620e+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.395e+00  2.541e-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:  7.794e-01  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.50
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.01e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 8.31e-06 +/- 6.52e-06

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) = 6385.72352775
delta logL = 4.35257623944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6385.09828826
delta logL = 4.97781572153

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2476       1.0000         .10000E-03   10000.    
     2 'alpha     '    .18125       1.0000          .0000       5.0000    
     3 'Normalizat'    .79034       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3898       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=   6385.098     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2455        1.5260        .10017E-01   -.37808E-03
   2  alpha         .18061        .57209        .50000        .64272E-04
   3  Normalizat    .79019        .15985        .43484E-01    .20311E-04
   4  Prefactor     1.3901        .21021        .59147E-01   -.75388E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.24554
  alpha      = 0.180612
  Normalizat = 0.790192
  Prefactor  = 1.39008
 **********
 **   18 **HESSE 
 **********

 FCN=   6385.098     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2455        1.7558        .59714E-03   -1.5485    
   2  alpha         .18061        .54996        .28826E-01   -1.1884    
   3  Normalizat    .79019        .19192        .25671E-03   -1.0043    
   4  Prefactor     1.3901        .25238        .26155E-03   -.80667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28834e-10
Minuit parameter uncertainties:
  1  1.75587
  2  0.588148
  3  0.19208
  4  0.252609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272538': 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) = 6385.09828708
delta logL = 4.97781690472

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.246e+00  1.756e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.806e-01  5.881e-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.390e+00  2.526e-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:  7.902e-01  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.46
Ra Dec: 197.129 35.792
Photon Index (Free Index): 0.18 +/- 0.59
Photon Flux (Free Index): 6.92e-09 +/- 5.05e-09
Energy Flux (Free Index): 6.84e-05 +/- 6.93e-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/272538/cmap_HighResolution_580176001_580435201_4FGL_J1308.5+3547_daily_bin1315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.01e-08', energy_flux2='6.84e-05', photon_flux_error='1.58e-08', dlogl='4.98e+00', energy_flux='8.31e-06', photon_flux2='6.92e-09', job_status='DONE', time_completed='2021-09-07 00:50:24.988601', photon_index_error2='0.59', photon_index2='0.18', ts='7.50', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='6.93e-05', EG='0.78', time_epoch_completed='1631001024.99', return_code='0', job_id='272538', GAL2='1.39', EG2='0.79', return_code2='0', energy_flux_error='6.52e-06', photon_flux_error2='5.05e-09', ts2='17.46', photon_index='2.18' WHERE bin_id='1315' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:50:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 272538: <4FGL_J1308.5+3547_daily_bin1315> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1315 197.129 35.7918 580176001 580435201 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 :                                   653.06 sec.
    Max Memory :                                 1193 MB
    Average Memory :                             299.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            885 sec.

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

