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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1102
RA = 197.129, Dec = 35.7918
tmin = 524966401, tmax = 525225601
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='272226', job_status='RUN', time_executed='2021-09-07 00:38:19.096395', time_epoch_executed='1631000299.1' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272226/ft1_4FGL_J1308.5+3547_daily_bin1102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272226/ft2_4FGL_J1308.5+3547_daily_bin1102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272226/ft1_4FGL_J1308.5+3547_daily_bin1102.fits outfile=/scratch/kocevski/272226/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1102.fits ra=197.129 dec=35.7918 rad=12.0 tmin=524966401.0 tmax=525225601.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 3.48
user 3.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/272226/ft2_4FGL_J1308.5+3547_daily_bin1102.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/272226/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1102.fits evtable="EVENTS" outfile="/scratch/kocevski/272226/ft1_filtered_4FGL_J1308.5+3547_daily_bin1102.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/272226/ft1_filtered_4FGL_J1308.5+3547_daily_bin1102.fits" evtable="EVENTS" scfile=/scratch/kocevski/272226/ft2_4FGL_J1308.5+3547_daily_bin1102.fits sctable="SC_DATA" outfile=/scratch/kocevski/272226/ltcube_524966401_525225601_4FGL_J1308.5+3547_daily_bin1102.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/272226/ft2_4FGL_J1308.5+3547_daily_bin1102.fits
.....................!
real 14.24
user 13.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272226/ft1_filtered_4FGL_J1308.5+3547_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/272226/ft2_4FGL_J1308.5+3547_daily_bin1102.fits sctable="SC_DATA" expcube=/scratch/kocevski/272226/ltcube_524966401_525225601_4FGL_J1308.5+3547_daily_bin1102.fits outfile=/scratch/kocevski/272226/expmap_524966401_525225601_4FGL_J1308.5+3547_daily_bin1102.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/272226/ltcube_524966401_525225601_4FGL_J1308.5+3547_daily_bin1102.fits
.....................!
real 190.52
user 185.26
sys 3.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/272226/ft1_filtered_4FGL_J1308.5+3547_daily_bin1102.fits scfile=/scratch/kocevski/272226/ft2_4FGL_J1308.5+3547_daily_bin1102.fits outfile=/scratch/kocevski/272226/cmap_524966401_525225601_4FGL_J1308.5+3547_daily_bin1102.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272226/ft1_filtered_4FGL_J1308.5+3547_daily_bin1102.fits scfile=/scratch/kocevski/272226/ft2_4FGL_J1308.5+3547_daily_bin1102.fits outfile=/scratch/kocevski/272226/cmap_HighResolution_524966401_525225601_4FGL_J1308.5+3547_daily_bin1102.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.283       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9642       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15717E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.923       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .58739E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .47234       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26046E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    4.4577       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .39291E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .19912E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1425       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8834       1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.623       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12756E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20286E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14959E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.8289       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .48105E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.309       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2195       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64099       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=   5179.932     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     2256 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.206        8.1421       -.17760E-05   -.42178E-06
   2  Prefactor     3.9651        2.5855        .13166E-06    .17036E-03
   3  Prefactor     .10000E-03    10.453       -.63090E-05** at limit **
   4  Prefactor     .10000E-03    10.013        .81781E-05** at limit **
   5  Prefactor     11.990        40.029        .48976E-05    .28955E-04
   6  Prefactor     .10000E-03    4.7873        .48336E-06** at limit **
   7  norm          .47104        4.1845       -.12791E-05   -.10098E-02
   8  Prefactor     .10000E-03    35.118       -.16972E-04** at limit **
   9  Prefactor     .10000E-03    34.498       -.30179E-04** at limit **
  10  norm          4.4677        3.9341        .15389E-06   -.42131E-04
  11  Prefactor     .10000E-03    19.594       -.61280E-06** at limit **
  12  norm          .10000E-03    1.6771        .80397E-08** at limit **
  13  norm          .10000E-03    5.9001        .39958E-05** at limit **
  14  norm          .10000E-03    2.1733        .60877E-07** at limit **
  15  norm          5.1481        4.0909        .19197E-06    .18949E-03
  16  Prefactor     .10000E-03    1.2021       -.11409E-06** at limit **
  17  Prefactor     2.8710        10.244       -.13442E-05   -.18984E-03
  18  Prefactor     52.708        45.301        .21393E-04    .18318E-04
  19  Prefactor     .10000E-03    7.4635       -.20098E-05** at limit **
  20  Prefactor     .10000E-03    5.7074       -.31830E-05** at limit **
  21  Prefactor     .10000E-03    22.429        .12432E-04** at limit **
  22  norm          3.8290        1.8238       -.75661E-07   -.20889E-03
  23  Prefactor     .10000E-03    2.8517        .49888E-06** at limit **
  24  norm          12.223        14.352        .18131E-04   -.33774E-04
  25  Normalizat    1.2197        .16567       -.14409E-05    .33809E-03
  26  Prefactor     .64098        .20205       -.17804E-05    .56982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2059
  Prefactor  = 3.96511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.99
  Prefactor  = 0.000100001
  norm       = 0.471039
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.46772
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.14808
  Prefactor  = 0.0001
  Prefactor  = 2.87099
  Prefactor  = 52.7084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.82899
  Prefactor  = 0.0001
  norm       = 12.2226
  Normalizat = 1.21969
  Prefactor  = 0.640982
 **********
 **   18 **HESSE 
 **********

 FCN=   5179.932     FROM HESSE     STATUS=OK           456 CALLS     2712 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.206        8.1449        .12495E-03   -1.5069    
   2  Prefactor     3.9651        2.5869        .91008E-04   -1.5310    
   3  Prefactor     .10000E-03    10.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.990        39.979        .11601E-03   -1.5015    
   6  Prefactor     .10000E-03    10.149        .30351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .47104        4.2214        .28241E-03   -1.5571    
   8  Prefactor     .10000E-03    35.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.550        .19977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.4677        3.9330        .12985E-03   -1.5285    
  11  Prefactor     .10000E-03    19.867        .21272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6851        .91006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.9075        .17075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2161        .20529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1481        4.0558        .12506E-03   -1.5254    
  16  Prefactor     .10000E-03    1.2161        .76940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8710        10.202        .23935E-03   -1.5369    
  18  Prefactor     52.708        45.290        .27645E-03   -1.4255    
  19  Prefactor     .10000E-03    7.4983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.7101        .16792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.8290        1.8220        .64819E-04   -1.5317    
  23  Prefactor     .10000E-03    6.1578        .23454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.223        14.289        .11417E-03   -1.5009    
  25  Normalizat    1.2197        .18643        .19512E-03   -.85997    
  26  Prefactor     .64098        .22819        .32246E-03   -1.0589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50486e-09
Minuit parameter uncertainties:
  1  8.14581
  2  2.58699
  3  7.5725e-05
  4  9.44536e-06
  5  40.0684
  6  0.000204674
  7  2.8202
  8  7.30936e-05
  9  0.000439378
  10  3.93323
  11  5.52692e-05
  12  1.46653e-06
  13  6.25297e-06
  14  4.56044e-06
  15  4.05603
  16  1.16053e-05
  17  10.2081
  18  45.3198
  19  9.58936e-06
  20  4.64952e-06
  21  6.50258e-05
  22  1.82208
  23  4.62561e-05
  24  14.2928
  25  0.186528
  26  0.22852
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  1.467e-06  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.182e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  6.410e-01  2.285e-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.220e+00  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 197.129 35.792
Photon Flux Upper Limit: 3.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/272226/likelihoodResults_524966401_525225601_4FGL_J1308.5+3547_daily_bin1102.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): 0
logL (Free Index) = 5179.9342578
delta logL = -0.00275754790073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5179.93150026
delta logL = -6.74117472954e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1840       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64099       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=   5179.932     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      193 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7085        .90712E-02** at limit **
   2  alpha         2.1860        3.4765        .41575       -.59664E-05
   3  Normalizat    1.2197        .16143        .34425E-01    .28247E-05
   4  Prefactor     .64098        .20021        .72846E-01    .26923E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.18596
  Normalizat = 1.21968
  Prefactor  = 0.640985
 **********
 **   18 **HESSE 
 **********

 FCN=   5179.932     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6855        .91018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1860        3.4715        .50000       -.12595    
   3  Normalizat    1.2197        .18276        .19512E-03   -.85997    
   4  Prefactor     .64098        .22615        .32246E-03   -1.0589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60422e-11
Minuit parameter uncertainties:
  1  2.22582e-06
  2  2.48091
  3  0.182853
  4  0.226472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272226': 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) = 5179.93150024
delta logL = 9.51331458054e-09

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  2.226e-06  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.186e+00  2.481e+00  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  6.410e-01  2.265e-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.220e+00  1.829e-01  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/272226/cmap_HighResolution_524966401_525225601_4FGL_J1308.5+3547_daily_bin1102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-05', job_status='DONE', photon_flux_upper_limit='3.58e-08', time_completed='2021-09-07 00:48:54.017726', job_id='272226', GAL2='0.64', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631000934.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='9.51e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1102' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:48:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 272226: <4FGL_J1308.5+3547_daily_bin1102> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1102> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:19 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:35:24 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:24 2021
Terminated at Tue Sep  7 00:48:54 2021
Results reported at Tue Sep  7 00:48:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1102 197.129 35.7918 524966401 525225601 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 :                                   622.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            815 sec.

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

