/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 128 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 = 7479
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin69
RA = 197.129, Dec = 35.7918
tmin = 257212801, tmax = 257472001
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='259889', job_status='RUN', time_executed='2021-09-06 23:58:09.655853', time_epoch_executed='1630997889.66' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259889

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259889/ft1_4FGL_J1308.5+3547_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259889/ft2_4FGL_J1308.5+3547_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259889/ft1_4FGL_J1308.5+3547_daily_bin69.fits outfile=/scratch/kocevski/259889/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin69.fits ra=197.129 dec=35.7918 rad=12.0 tmin=257212801.0 tmax=257472001.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 2.35
user 2.13
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259889/ft1_filtered_4FGL_J1308.5+3547_daily_bin69.fits" evtable="EVENTS" scfile=/scratch/kocevski/259889/ft2_4FGL_J1308.5+3547_daily_bin69.fits sctable="SC_DATA" outfile=/scratch/kocevski/259889/ltcube_257212801_257472001_4FGL_J1308.5+3547_daily_bin69.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/259889/ft2_4FGL_J1308.5+3547_daily_bin69.fits
.....................!
real 17.85
user 17.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259889/ft1_filtered_4FGL_J1308.5+3547_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/259889/ft2_4FGL_J1308.5+3547_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/259889/ltcube_257212801_257472001_4FGL_J1308.5+3547_daily_bin69.fits outfile=/scratch/kocevski/259889/expmap_257212801_257472001_4FGL_J1308.5+3547_daily_bin69.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/259889/ltcube_257212801_257472001_4FGL_J1308.5+3547_daily_bin69.fits
.....................!
real 192.66
user 187.38
sys 4.32

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/259889/ft1_filtered_4FGL_J1308.5+3547_daily_bin69.fits scfile=/scratch/kocevski/259889/ft2_4FGL_J1308.5+3547_daily_bin69.fits outfile=/scratch/kocevski/259889/cmap_257212801_257472001_4FGL_J1308.5+3547_daily_bin69.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.56
user 0.39
sys 0.15

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0689       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2533       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.418       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .88139E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.731       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.076       1.0000         .10000E-03   10000.    
    12 'norm      '    3.4451       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.861       1.0000         .10000E-03   10000.    
    15 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17261E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7218       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7020       1.0000         .10000E-03   10000.    
    22 'norm      '    2.9278       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11631E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.0486       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2519       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .61014       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=   6230.382     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     3172 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0683        6.5185        .33156E-05   -.66420E-04
   2  Prefactor     3.2531        2.1806        .19999E-07    .55081E-04
   3  Prefactor     .10000E-03    4.6684        .31477E-07** at limit **
   4  Prefactor     13.418        12.685       -.22809E-07    .10451E-03
   5  Prefactor     .10000E-03    51.238        .16578E-05** at limit **
   6  Prefactor     .10000E-03    2.0188        .41868E-07** at limit **
   7  norm          .10000E-03    2.5539       -.14682E-05** at limit **
   8  Prefactor     .10000E-03    13.086        .41102E-07** at limit **
   9  Prefactor     30.750        26.656        .42159E-05    .62099E-03
  10  norm          .10000E-03    1.3190        .72984E-07** at limit **
  11  Prefactor     14.075        14.968       -.41743E-06    .11513E-03
  12  norm          3.4459        3.9141       -.26619E-06    .63385E-04
  13  norm          .10000E-03    5.0671        .73587E-07** at limit **
  14  norm          13.857        5.3190       -.43782E-06    .12016E-02
  15  norm          .10000E-03    4.5134       -.26482E-06** at limit **
  16  Prefactor     .10000E-03    2.0417       -.19128E-05** at limit **
  17  Prefactor     1.7487        37.190        .15833E-04   -.71548E-04
  18  Prefactor     .10000E-03    48.598       -.15796E-05** at limit **
  19  Prefactor     .10000E-03    11.490        .35272E-06** at limit **
  20  Prefactor     .10000E-03    8.6453        .14307E-06** at limit **
  21  Prefactor     2.3683        573.53        .15439E-06   -.18217E-04
  22  norm          2.9275        1.7427        .16453E-07   -.19747E-03
  23  Prefactor     .10000E-03    1.8640       -.30947E-06** at limit **
  24  norm          7.0493        12.263        .12317E-05   -.34535E-03
  25  Normalizat    1.2525        .17351        .58710E-07    .50253E-03
  26  Prefactor     .60949        .19884       -.25345E-05    .13859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.06829
  Prefactor  = 3.25311
  Prefactor  = 0.0001
  Prefactor  = 13.4178
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 30.7497
  norm       = 0.0001
  Prefactor  = 14.0747
  norm       = 3.44591
  norm       = 0.0001
  norm       = 13.8573
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.74875
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.36828
  norm       = 2.92753
  Prefactor  = 0.0001
  norm       = 7.04934
  Normalizat = 1.25245
  Prefactor  = 0.609495
 **********
 **   18 **HESSE 
 **********

 FCN=   6230.382     FROM HESSE     STATUS=OK           458 CALLS     3630 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0683        6.3133        .99941E-03   -1.5305    
   2  Prefactor     3.2531        2.1810        .92899E-04   -1.5347    
   3  Prefactor     .10000E-03    4.6882        .16654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.418        12.683        .10935E-03   -1.4975    
   5  Prefactor     .10000E-03    51.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0235        .10945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    13.572        .22871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.750        26.626        .72277E-04   -1.4598    
  10  norm          .10000E-03    1.3303        .88522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.075        14.944        .10676E-03   -1.4957    
  12  norm          3.4459        3.8890        .15648E-03   -1.5337    
  13  norm          .10000E-03    5.0745        .17353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.857        5.2461        .97106E-04   -1.4963    
  15  norm          .10000E-03    4.5377        .16325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.5553        .19804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7487        39.592        .16006E-02   -1.5443    
  18  Prefactor     .10000E-03    48.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.6635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3683        585.77        .24782E-03   -1.5400    
  22  norm          2.9275        1.7383        .77504E-04   -1.5366    
  23  Prefactor     .10000E-03    4.7460        .20888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.0493        12.180        .15110E-03   -1.5177    
  25  Normalizat    1.2525        .19999        .20391E-03   -.84997    
  26  Prefactor     .60949        .22712        .34216E-03   -1.0719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31946e-09
Minuit parameter uncertainties:
  1  6.31434
  2  2.18104
  3  2.09108e-05
  4  12.6856
  5  0.00078595
  6  2.75797e-06
  7  0.0004201
  8  1.7253e-05
  9  26.6361
  10  4.8404e-06
  11  14.9483
  12  3.8893
  13  6.21821e-06
  14  5.24625
  15  1.87245e-05
  16  0.000201841
  17  16.6537
  18  0.000793645
  19  3.53076e-05
  20  1.63242e-05
  21  75.2467
  22  1.73837
  23  3.49859e-05
  24  12.1844
  25  0.200116
  26  0.227465
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.446e+00  3.889e+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:  6.095e-01  2.275e-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.252e+00  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.08
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.50e-08 +/- 1.69e-08
Energy Flux (Fixed Index): 6.20e-06 +/- 7.00e-06

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

Saving results to:
/scratch/kocevski/259889/likelihoodResults_257212801_257472001_4FGL_J1308.5+3547_daily_bin69.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) = 6230.24158747
delta logL = 0.14012277596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6230.23523165
delta logL = 0.146478594157

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0366       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4675       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60241       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=   6230.235     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      196 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0366        3.3200        .58214E-02   -.50703E-02
   2  alpha         1.4674        .93766        .46814       -.56275E-04
   3  Normalizat    1.2615        .16265        .33532E-01    .46966E-06
   4  Prefactor     .60242        .19766        .77696E-01    .30104E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.03662
  alpha      = 1.46738
  Normalizat = 1.26152
  Prefactor  = 0.602425
 **********
 **   18 **HESSE 
 **********

 FCN=   6230.235     FROM HESSE     STATUS=OK            29 CALLS      225 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0366        3.6545        .14657E-03   -1.5359    
   2  alpha         1.4674        1.0842        .32603E-01   -.42580    
   3  Normalizat    1.2615        .18349        .20333E-03   -.84722    
   4  Prefactor     .60242        .22266        .34404E-03   -1.0748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26628e-08
Minuit parameter uncertainties:
  1  3.65479
  2  1.12997
  3  0.183587
  4  0.22299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259889': 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) = 6230.23523164
delta logL = 0.146478610916

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.037e+00  3.655e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.467e+00  1.130e+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.024e-01  2.230e-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.262e+00  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.47 +/- 1.13
Photon Flux (Free Index): 7.86e-09 +/- 1.13e-08
Energy Flux (Free Index): 8.16e-06 +/- 1.13e-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/259889/cmap_HighResolution_257212801_257472001_4FGL_J1308.5+3547_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-05', comment='SUCCESS', photon_flux='1.50e-08', energy_flux2='8.16e-06', photon_flux_error='1.69e-08', dlogl='1.46e-01', energy_flux='6.20e-06', photon_flux2='7.86e-09', job_status='DONE', time_completed='2021-09-07 00:10:55.929559', photon_index_error2='1.13', photon_index2='1.47', ts='2.08', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='6.32e-08', energy_flux_error2='1.13e-05', EG='1.25', time_epoch_completed='1630998655.93', return_code='0', job_id='259889', GAL2='0.60', EG2='1.26', return_code2='0', energy_flux_error='7.00e-06', photon_flux_error2='1.13e-08', ts2='2.38', photon_index='2.18' WHERE bin_id='69' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:10:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 259889: <4FGL_J1308.5+3547_daily_bin69> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin69> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep  6 23:55:35 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:55:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 23:55:52 2021
Terminated at Tue Sep  7 00:10:56 2021
Results reported at Tue Sep  7 00:10:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin69 197.129 35.7918 257212801 257472001 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 :                                   763.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            921 sec.

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

