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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin950
RA = 197.129, Dec = 35.7918
tmin = 485568001, tmax = 485827201
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='268302', job_status='RUN', time_executed='2021-09-07 00:30:09.176095', time_epoch_executed='1630999809.18' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268302

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268302/ft1_4FGL_J1308.5+3547_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268302/ft2_4FGL_J1308.5+3547_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268302/ft1_4FGL_J1308.5+3547_daily_bin950.fits outfile=/scratch/kocevski/268302/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin950.fits ra=197.129 dec=35.7918 rad=12.0 tmin=485568001.0 tmax=485827201.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.94
user 3.71
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268302/ft1_filtered_4FGL_J1308.5+3547_daily_bin950.fits" evtable="EVENTS" scfile=/scratch/kocevski/268302/ft2_4FGL_J1308.5+3547_daily_bin950.fits sctable="SC_DATA" outfile=/scratch/kocevski/268302/ltcube_485568001_485827201_4FGL_J1308.5+3547_daily_bin950.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/268302/ft2_4FGL_J1308.5+3547_daily_bin950.fits
.....................!
real 13.54
user 13.13
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268302/ft1_filtered_4FGL_J1308.5+3547_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/268302/ft2_4FGL_J1308.5+3547_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/268302/ltcube_485568001_485827201_4FGL_J1308.5+3547_daily_bin950.fits outfile=/scratch/kocevski/268302/expmap_485568001_485827201_4FGL_J1308.5+3547_daily_bin950.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/268302/ltcube_485568001_485827201_4FGL_J1308.5+3547_daily_bin950.fits
.....................!
real 191.68
user 186.57
sys 4.70

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/268302/ft1_filtered_4FGL_J1308.5+3547_daily_bin950.fits scfile=/scratch/kocevski/268302/ft2_4FGL_J1308.5+3547_daily_bin950.fits outfile=/scratch/kocevski/268302/cmap_485568001_485827201_4FGL_J1308.5+3547_daily_bin950.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268302/ft1_filtered_4FGL_J1308.5+3547_daily_bin950.fits scfile=/scratch/kocevski/268302/ft2_4FGL_J1308.5+3547_daily_bin950.fits outfile=/scratch/kocevski/268302/cmap_HighResolution_485568001_485827201_4FGL_J1308.5+3547_daily_bin950.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=197.129 yref=35.7918 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7049       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4658       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2475       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20818E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    35.860       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.173       1.0000         .10000E-03   10000.    
    10 'norm      '    .69581E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.1478       1.0000         .10000E-03   10000.    
    13 'norm      '    26.125       1.0000         .10000E-03   10000.    
    14 'norm      '    .15405E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8026       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11824E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.013       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8445       1.0000         .10000E-03   10000.    
    20 'Prefactor '    74.454       1.0000         .10000E-03   10000.    
    21 'Prefactor '    76.233       1.0000         .10000E-03   10000.    
    22 'norm      '    4.7626       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1069       1.0000         .10000E-03   10000.    
    24 'norm      '    18.253       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0353       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97024       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=   5950.630     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3658 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7047        4.8543        .16922E-07    .76109E-06
   2  Prefactor     4.4657        2.4489       -.11647E-06    .35050E-04
   3  Prefactor     1.2466        15.944        .90125E-05   -.21224E-03
   4  Prefactor     .10000E-03    19.404        .51914E-06** at limit **
   5  Prefactor     .10000E-03    38.276        .14781E-06** at limit **
   6  Prefactor     .10000E-03    2.8087       -.21027E-08** at limit **
   7  norm          35.862        10.458        .25352E-07   -.46192E-03
   8  Prefactor     .10000E-03    27.259       -.48049E-06** at limit **
   9  Prefactor     32.185        42.328        .49544E-06   -.10116E-03
  10  norm          .10003E-03    2.6812        .57957E-06** at limit **
  11  Prefactor     .10000E-03    6.5642       -.33882E-07** at limit **
  12  norm          9.1463        6.6475        .40281E-06    .94398E-04
  13  norm          26.126        15.060        .52865E-07    .60888E-04
  14  norm          .10000E-03    3.2162        .49373E-06** at limit **
  15  norm          1.8071        4.1965        .83186E-06   -.23120E-03
  16  Prefactor     .10000E-03    3.5905       -.13372E-05** at limit **
  17  Prefactor     19.019        18.177        .17558E-05    .12235E-03
  18  Prefactor     .10000E-03    25.552        .30517E-06** at limit **
  19  Prefactor     3.8458        15.359        .11835E-06   -.11551E-04
  20  Prefactor     74.456        38.807       -.46021E-07   -.44802E-04
  21  Prefactor     76.187        75.513        .13928E-05    .72665E-04
  22  norm          4.7625        1.9737       -.10449E-07   -.17435E-03
  23  Prefactor     1.1067        3.7919        .24418E-06   -.52040E-04
  24  norm          18.254        18.694       -.49400E-07   -.26952E-04
  25  Normalizat    1.0351        .19423        .27428E-05    .23208E-03
  26  Prefactor     .97051        .23152       -.36359E-05   -.26272E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.70467
  Prefactor  = 4.46568
  Prefactor  = 1.24659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.8617
  Prefactor  = 0.0001
  Prefactor  = 32.1853
  norm       = 0.000100028
  Prefactor  = 0.0001
  norm       = 9.14625
  norm       = 26.1264
  norm       = 0.0001
  norm       = 1.80709
  Prefactor  = 0.000100001
  Prefactor  = 19.0194
  Prefactor  = 0.0001
  Prefactor  = 3.84581
  Prefactor  = 74.4559
  Prefactor  = 76.1874
  norm       = 4.7625
  Prefactor  = 1.1067
  norm       = 18.2536
  Normalizat = 1.03512
  Prefactor  = 0.970508
 **********
 **   18 **HESSE 
 **********

 FCN=   5950.630     FROM HESSE     STATUS=OK           474 CALLS     4132 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7047        4.8485        .18927E-03   -1.5323    
   2  Prefactor     4.4657        2.4519        .43508E-03   -1.5285    
   3  Prefactor     1.2466        16.792        .20036E-02   -1.5485    
   4  Prefactor     .10000E-03    175.67        .65259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8146        .12620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          35.862        10.440        .66923E-04   -1.4510    
   8  Prefactor     .10000E-03    27.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.185        42.372        .70642E-04   -1.4573    
  10  norm          .10003E-03    4.8355        .42869E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.5701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.1463        6.6381        .66256E-03   -1.5103    
  13  norm          26.126        15.062        .78376E-04   -1.4685    
  14  norm          .10000E-03    22.494        .22951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8071        4.0175        .22406E-03   -1.5439    
  16  Prefactor     .10000E-03    6.4589        .26716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.019        18.298        .91854E-04   -1.4835    
  18  Prefactor     .10000E-03    25.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8458        15.273        .20582E-03   -1.5316    
  20  Prefactor     74.456        38.689        .46532E-04   -1.3980    
  21  Prefactor     76.187        75.707        .22995E-03   -1.3960    
  22  norm          4.7625        1.9741        .67452E-04   -1.5271    
  23  Prefactor     1.1067        3.7828        .26565E-03   -1.5498    
  24  norm          18.254        18.695        .93746E-04   -1.4853    
  25  Normalizat    1.0351        .23217        .25169E-03   -.91863    
  26  Prefactor     .97051        .27107        .31277E-03   -.93719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09988e-09
Minuit parameter uncertainties:
  1  4.84901
  2  2.45198
  3  9.15319
  4  6.5319e-05
  5  0.000115392
  6  9.21149e-06
  7  10.4403
  8  4.55068e-05
  9  42.4119
  10  0.000732207
  11  6.27076e-07
  12  6.63861
  13  15.0642
  14  0.00019629
  15  4.01812
  16  0.000127275
  17  18.3034
  18  3.26845e-05
  19  15.288
  20  38.7026
  21  75.8031
  22  1.9741
  23  3.78358
  24  18.7014
  25  0.2324
  26  0.271448
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  9.146e+00  6.639e+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:  9.705e-01  2.714e-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.035e+00  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.99e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.19e-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) = 5949.46019695
delta logL = 1.16998051477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5949.45116094
delta logL = 1.17901652063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9418       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2770       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94769       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=   5949.451     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9418        5.7621        .33509E-02    .42836E-03
   2  alpha         1.2770        .44554        .36159       -.25164E-04
   3  Normalizat    1.0605        .18531        .39900E-01    .88686E-05
   4  Prefactor     .94769        .22503        .71373E-01    .14928E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.94183
  alpha      = 1.27697
  Normalizat = 1.06054
  Prefactor  = 0.947689
 **********
 **   18 **HESSE 
 **********

 FCN=   5949.451     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9418        6.6451        .13404E-03   -1.5110    
   2  alpha         1.2770        .52894        .15464E-01   -.51118    
   3  Normalizat    1.0605        .21819        .24895E-03   -.91029    
   4  Prefactor     .94769        .26481        .31577E-03   -.94494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73683e-10
Minuit parameter uncertainties:
  1  6.64569
  2  0.534275
  3  0.218371
  4  0.265177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268302': 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) = 5949.45116094
delta logL = 1.17901652148

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  8.942e+00  6.646e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.277e+00  5.343e-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:  9.477e-01  2.652e-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.061e+00  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.96
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.28 +/- 0.53
Photon Flux (Free Index): 2.20e-08 +/- 1.73e-08
Energy Flux (Free Index): 3.13e-05 +/- 2.48e-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/268302/cmap_HighResolution_485568001_485827201_4FGL_J1308.5+3547_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.99e-08', energy_flux2='3.13e-05', photon_flux_error='2.89e-08', dlogl='1.18e+00', energy_flux='1.65e-05', photon_flux2='2.20e-08', job_status='DONE', time_completed='2021-09-07 00:41:52.721772', photon_index_error2='0.53', photon_index2='1.28', ts='4.56', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.48e-05', EG='1.04', time_epoch_completed='1631000512.72', return_code='0', job_id='268302', GAL2='0.95', EG2='1.06', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='1.73e-08', ts2='6.96', photon_index='2.18' WHERE bin_id='950' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:41:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 268302: <4FGL_J1308.5+3547_daily_bin950> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin950> 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) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:29:55 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:55 2021
Terminated at Tue Sep  7 00:41:53 2021
Results reported at Tue Sep  7 00:41:53 2021

Your job looked like:

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

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

