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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin992
RA = 197.129, Dec = 35.7918
tmin = 496454401, tmax = 496713601
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='268362', job_status='RUN', time_executed='2021-09-07 00:30:27.196088', time_epoch_executed='1630999827.2' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='992'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268362

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268362/ft1_4FGL_J1308.5+3547_daily_bin992.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268362/ft2_4FGL_J1308.5+3547_daily_bin992.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268362/ft1_4FGL_J1308.5+3547_daily_bin992.fits outfile=/scratch/kocevski/268362/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin992.fits ra=197.129 dec=35.7918 rad=12.0 tmin=496454401.0 tmax=496713601.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.47
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268362/ft1_filtered_4FGL_J1308.5+3547_daily_bin992.fits" evtable="EVENTS" scfile=/scratch/kocevski/268362/ft2_4FGL_J1308.5+3547_daily_bin992.fits sctable="SC_DATA" outfile=/scratch/kocevski/268362/ltcube_496454401_496713601_4FGL_J1308.5+3547_daily_bin992.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/268362/ft2_4FGL_J1308.5+3547_daily_bin992.fits
.....................!
real 16.09
user 15.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268362/ft1_filtered_4FGL_J1308.5+3547_daily_bin992.fits evtable="EVENTS" scfile=/scratch/kocevski/268362/ft2_4FGL_J1308.5+3547_daily_bin992.fits sctable="SC_DATA" expcube=/scratch/kocevski/268362/ltcube_496454401_496713601_4FGL_J1308.5+3547_daily_bin992.fits outfile=/scratch/kocevski/268362/expmap_496454401_496713601_4FGL_J1308.5+3547_daily_bin992.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/268362/ltcube_496454401_496713601_4FGL_J1308.5+3547_daily_bin992.fits
.....................!
real 192.52
user 186.74
sys 5.18

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/268362/ft1_filtered_4FGL_J1308.5+3547_daily_bin992.fits scfile=/scratch/kocevski/268362/ft2_4FGL_J1308.5+3547_daily_bin992.fits outfile=/scratch/kocevski/268362/cmap_496454401_496713601_4FGL_J1308.5+3547_daily_bin992.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268362/ft1_filtered_4FGL_J1308.5+3547_daily_bin992.fits scfile=/scratch/kocevski/268362/ft2_4FGL_J1308.5+3547_daily_bin992.fits outfile=/scratch/kocevski/268362/cmap_HighResolution_496454401_496713601_4FGL_J1308.5+3547_daily_bin992.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/268362/ft1_filtered_4FGL_J1308.5+3547_daily_bin992.fits evtable="EVENTS" scfile=/scratch/kocevski/268362/ft2_4FGL_J1308.5+3547_daily_bin992.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268362/Model_4FGL_J1308.5+3547_daily_bin992.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/268362/ft1_filtered_4FGL_J1308.5+3547_daily_bin992.fits.....................!
real 46.43
user 45.04
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0401       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8305       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7794       1.0000         .10000E-03   10000.    
     7 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.497       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .55440       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.8202       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6767       1.0000         .10000E-03   10000.    
    14 'norm      '    7.6726       1.0000         .10000E-03   10000.    
    15 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    78.897       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4768       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.011       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    11.885       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .73388       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2546       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=   5460.735     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3133 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0417        10.947       -.16532E-06    .25127E-04
   2  Prefactor     3.8306        3.4848        .12987E-06    .10575E-03
   3  Prefactor     .10000E-03    6.6793        .30215E-06** at limit **
   4  Prefactor     .10000E-03    10.463        .12196E-06** at limit **
   5  Prefactor     .10000E-03    37.511        .25002E-06** at limit **
   6  Prefactor     2.7794        3.5203        .33020E-07    .17689E-03
   7  norm          .10000E-03    1.8005       -.32527E-06** at limit **
   8  Prefactor     26.499        31.941       -.12322E-06    .17567E-04
   9  Prefactor     .10000E-03    7.1590       -.56680E-08** at limit **
  10  norm          .55463        2.5746        .17100E-05    .29414E-03
  11  Prefactor     .10000E-03    4.8553       -.86472E-07** at limit **
  12  norm          7.8158        5.0848        .93838E-06    .17236E-02
  13  norm          3.6769        7.6290        .26294E-06    .29511E-04
  14  norm          7.6713        3.5275        .30249E-06    .18028E-02
  15  norm          .10000E-03    7.5395       -.65423E-06** at limit **
  16  Prefactor     .10000E-03    2.3069       -.48683E-05** at limit **
  17  Prefactor     .10000E-03    3.4671       -.49075E-06** at limit **
  18  Prefactor     78.813        53.044        .42274E-05    .48517E-03
  19  Prefactor     .10000E-03    7.8214       -.51839E-06** at limit **
  20  Prefactor     6.4581        19.534       -.47040E-06   -.97551E-05
  21  Prefactor     16.996        31.972       -.34886E-06   -.21395E-04
  22  norm          .10000E-03    .57394        .10040E-06** at limit **
  23  Prefactor     .10000E-03    1.0435       -.22150E-07** at limit **
  24  norm          11.885        10.917       -.84982E-07    .17914E-04
  25  Normalizat    .73379        .16222        .29527E-05    .83243E-03
  26  Prefactor     1.2547        .21041       -.20564E-05    .75403E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.04171
  Prefactor  = 3.83056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.77941
  norm       = 0.0001
  Prefactor  = 26.4985
  Prefactor  = 0.0001
  norm       = 0.554633
  Prefactor  = 0.0001
  norm       = 7.81576
  norm       = 3.67692
  norm       = 7.67134
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 78.8125
  Prefactor  = 0.0001
  Prefactor  = 6.45808
  Prefactor  = 16.9956
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8848
  Normalizat = 0.733793
  Prefactor  = 1.25467
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.735     FROM HESSE     STATUS=OK           452 CALLS     3585 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0417        10.942        .14140E-03   -1.5141    
   2  Prefactor     3.8306        3.4776        .12746E-03   -1.5317    
   3  Prefactor     .10000E-03    6.7117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7794        3.5128        .15171E-03   -1.5375    
   7  norm          .10000E-03    3.1330        .19272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.499        31.942        .77824E-04   -1.4678    
   9  Prefactor     .10000E-03    7.1646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55463        2.5055        .23026E-03   -1.5559    
  11  Prefactor     .10000E-03    4.8618        .15901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.8158        5.1640        .13169E-03   -1.5149    
  13  norm          3.6769        7.6141        .21064E-03   -1.5324    
  14  norm          7.6713        3.5057        .90099E-04   -1.5154    
  15  norm          .10000E-03    7.6361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.6366        .17801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.4714        .13439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     78.813        54.294        .22606E-03   -1.3930    
  19  Prefactor     .10000E-03    7.8429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.4581        19.520        .15770E-03   -1.5200    
  21  Prefactor     16.996        31.947        .97107E-04   -1.4883    
  22  norm          .10000E-03    .58901        .10925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.0478        .73711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          11.885        10.917        .11620E-03   -1.5018    
  25  Normalizat    .73379        .19129        .24461E-03   -1.0257    
  26  Prefactor     1.2547        .24818        .25150E-03   -.84665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99528e-09
Minuit parameter uncertainties:
  1  10.9444
  2  3.47776
  3  2.03596e-05
  4  2.33744e-06
  5  4.70976e-05
  6  3.51302
  7  6.08838e-06
  8  31.9628
  9  1.66505e-06
  10  2.35761
  11  1.23641e-05
  12  5.16427
  13  7.61613
  14  3.50577
  15  6.91653e-05
  16  0.000202584
  17  6.14425e-06
  18  54.328
  19  3.92101e-05
  20  19.5397
  21  31.9792
  22  1.00071e-07
  23  1.29891e-06
  24  10.9192
  25  0.19146
  26  0.248412
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  7.816e+00  5.164e+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.255e+00  2.484e-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.338e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.66
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.41e-08 +/- 2.25e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 9.30e-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) = 5460.73410004
delta logL = 0.000589482049691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5460.73397671
delta logL = 0.000712807978744

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8605       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1428       1.0000          .0000       5.0000    
     3 'Normalizat'    .73520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2537       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=   5460.734     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      228 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8744        139.69        .35755E-02    .78208E-04
   2  alpha         2.1463        3.1550        .41695        .20298E-04
   3  Normalizat    .73510        .11516        .42759E-01    .12460E-04
   4  Prefactor     1.2536        .93928E-01    .56898E-01    .17605E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.87441
  alpha      = 2.14633
  Normalizat = 0.735104
  Prefactor  = 1.25363
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.734     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8744        5.4709        .13283E-03   -1.5147    
   2  alpha         2.1463        .92837        .18840E-01   -.14194    
   3  Normalizat    .73510        .19107        .24441E-03   -1.0252    
   4  Prefactor     1.2536        .24817        .25160E-03   -.84697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32334e-12
Minuit parameter uncertainties:
  1  5.47129
  2  0.95165
  3  0.191241
  4  0.248398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268362': 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) = 5460.73396274
delta logL = 0.000726786095584

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  7.874e+00  5.471e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.146e+00  9.516e-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.254e+00  2.484e-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.351e-01  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.67
Ra Dec: 197.129 35.792
Photon Index (Free Index): 2.15 +/- 0.95
Photon Flux (Free Index): 3.31e-08 +/- 3.25e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.00e-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/268362/cmap_HighResolution_496454401_496713601_4FGL_J1308.5+3547_daily_bin992.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.41e-08', energy_flux2='1.42e-05', photon_flux_error='2.25e-08', dlogl='7.27e-04', energy_flux='1.41e-05', photon_flux2='3.31e-08', job_status='DONE', time_completed='2021-09-07 00:41:13.500617', photon_index_error2='0.95', photon_index2='2.15', ts='4.66', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='1.00e-05', EG='0.73', time_epoch_completed='1631000473.5', return_code='0', job_id='268362', GAL2='1.25', EG2='0.74', return_code2='0', energy_flux_error='9.30e-06', photon_flux_error2='3.25e-08', ts2='4.67', photon_index='2.18' WHERE bin_id='992' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:41:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 268362: <4FGL_J1308.5+3547_daily_bin992> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin992> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:25:33 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:30:12 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:30:12 2021
Terminated at Tue Sep  7 00:41:14 2021
Results reported at Tue Sep  7 00:41:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin992 197.129 35.7918 496454401 496713601 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 :                                   640.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            941 sec.

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

