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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin2
RA = 197.129, Dec = 35.7918
tmin = 239846401, tmax = 240105601
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='258592', job_status='RUN', time_executed='2021-09-06 23:54:18.482513', time_epoch_executed='1630997658.48' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258592

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258592/ft1_4FGL_J1308.5+3547_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258592/ft2_4FGL_J1308.5+3547_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258592/ft1_4FGL_J1308.5+3547_daily_bin2.fits outfile=/scratch/kocevski/258592/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin2.fits ra=197.129 dec=35.7918 rad=12.0 tmin=239846401.0 tmax=240105601.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 1.46
user 1.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258592/ft1_filtered_4FGL_J1308.5+3547_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/258592/ft2_4FGL_J1308.5+3547_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/258592/ltcube_239846401_240105601_4FGL_J1308.5+3547_daily_bin2.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/258592/ft2_4FGL_J1308.5+3547_daily_bin2.fits
.....................!
real 15.25
user 14.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258592/ft1_filtered_4FGL_J1308.5+3547_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/258592/ft2_4FGL_J1308.5+3547_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/258592/ltcube_239846401_240105601_4FGL_J1308.5+3547_daily_bin2.fits outfile=/scratch/kocevski/258592/expmap_239846401_240105601_4FGL_J1308.5+3547_daily_bin2.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/258592/ltcube_239846401_240105601_4FGL_J1308.5+3547_daily_bin2.fits
.....................!
real 191.30
user 185.36
sys 5.48

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/258592/ft1_filtered_4FGL_J1308.5+3547_daily_bin2.fits scfile=/scratch/kocevski/258592/ft2_4FGL_J1308.5+3547_daily_bin2.fits outfile=/scratch/kocevski/258592/cmap_239846401_240105601_4FGL_J1308.5+3547_daily_bin2.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258592/ft1_filtered_4FGL_J1308.5+3547_daily_bin2.fits scfile=/scratch/kocevski/258592/ft2_4FGL_J1308.5+3547_daily_bin2.fits outfile=/scratch/kocevski/258592/cmap_HighResolution_239846401_240105601_4FGL_J1308.5+3547_daily_bin2.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .80358       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8186       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6982       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14133E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .14189E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.7793       1.0000         .10000E-03   10000.    
    14 'norm      '    11.072       1.0000         .10000E-03   10000.    
    15 'norm      '    .14417E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6704       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.548       1.0000         .10000E-03   10000.    
    22 'norm      '    2.2760       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.467       1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0124       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2192       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=   5178.219     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3114 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6657       -.68731E-07** at limit **
   2  Prefactor     .80313        1.9558        .68762E-06    .81976E-03
   3  Prefactor     2.8214        14.319        .19237E-05    .18912E-03
   4  Prefactor     4.6986        16.039        .22757E-06    .92300E-05
   5  Prefactor     .10000E-03    1483.4        .19686E-04** at limit **
   6  Prefactor     .10000E-03    3.0647       -.96268E-07** at limit **
   7  norm          .10000E-03    2.4377       -.12702E-05** at limit **
   8  Prefactor     .10000E-03    71.602       -.37855E-06** at limit **
   9  Prefactor     .10000E-03    7.4349       -.10976E-06** at limit **
  10  norm          .10000E-03    1.6172       -.76361E-07** at limit **
  11  Prefactor     .10000E-03    17.537       -.55108E-06** at limit **
  12  norm          .10000E-03    3.4399        .25038E-06** at limit **
  13  norm          3.7830        41.062        .68675E-06    .47176E-05
  14  norm          11.064        4.5366        .61067E-06    .32547E-02
  15  norm          .10008E-03    11.527       -.45480E-05** at limit **
  16  Prefactor     7.6687        4.1937        .99172E-07    .48546E-03
  17  Prefactor     .10000E-03    9.0368       -.22903E-06** at limit **
  18  Prefactor     .10000E-03    34.749       -.30405E-06** at limit **
  19  Prefactor     .10000E-03    14.241       -.48635E-06** at limit **
  20  Prefactor     .10000E-03    12.291        .10701E-06** at limit **
  21  Prefactor     25.544        100.67        .22965E-05    .60625E-05
  22  norm          2.2759        2.0096        .59518E-07    .35365E-04
  23  Prefactor     19.467        6.1214        .59239E-07    .38739E-04
  24  norm          .10000E-03    8.7444       -.17927E-06** at limit **
  25  Normalizat    1.0127        .19521       -.11126E-05   -.60722E-04
  26  Prefactor     1.2189        .23670        .82496E-07   -.45417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.803129
  Prefactor  = 2.82142
  Prefactor  = 4.69855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.78303
  norm       = 11.0643
  norm       = 0.000100083
  Prefactor  = 7.66875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.5438
  norm       = 2.27589
  Prefactor  = 19.4668
  norm       = 0.0001
  Normalizat = 1.01271
  Prefactor  = 1.21885
 **********
 **   18 **HESSE 
 **********

 FCN=   5178.219     FROM HESSE     STATUS=OK           462 CALLS     3576 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6818        .13454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .80313        1.7290        .15753E-02   -1.5529    
   3  Prefactor     2.8214        14.953        .12113E-02   -1.5372    
   4  Prefactor     4.6986        16.027        .18565E-03   -1.5274    
   5  Prefactor     .10000E-03    1473.2        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0782        .12298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.6484        .20389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    71.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.6279        .89353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    18.853        .25771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.7830        41.138        .20766E-03   -1.5319    
  14  norm          11.064        4.7305        .96909E-04   -1.5043    
  15  norm          .10008E-03    23.090        .33311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.6687        4.1835        .10249E-03   -1.5154    
  17  Prefactor     .10000E-03    9.0689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.544        102.26        .79254E-04   -1.4697    
  22  norm          2.2759        1.9990        .92408E-04   -1.5406    
  23  Prefactor     19.467        6.1239        .45389E-03   -1.4825    
  24  norm          .10000E-03    8.7605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0127        .23375        .24594E-03   -.92606    
  26  Prefactor     1.2189        .28338        .28552E-03   -.85753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94135e-09
Minuit parameter uncertainties:
  1  2.1285e-06
  2  1.72911
  3  12.9953
  4  16.0414
  5  2.49733e-06
  6  2.16613e-06
  7  5.233e-05
  8  4.22505e-05
  9  6.96128e-06
  10  1.3556e-06
  11  3.87952e-05
  12  0.000166897
  13  24.9715
  14  4.73062
  15  0.00277426
  16  4.18367
  17  1.54226e-05
  18  3.83158e-05
  19  2.76695e-05
  20  1.23824e-05
  21  102.523
  22  1.99908
  23  6.12405
  24  9.69403e-06
  25  0.233985
  26  0.28374
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  1.669e-04  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.219e+00  2.837e-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.013e+00  2.340e-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: 4.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258592/likelihoodResults_239846401_240105601_4FGL_J1308.5+3547_daily_bin2.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): 102
logL (Free Index) = 5178.21937035
delta logL = -0.000249692094258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5178.17711559
delta logL = 0.0420050747389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23961       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0089       1.0000          .0000       5.0000    
     3 'Normalizat'    .99886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2274       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=   5178.177     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      317 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24083        9.7289        .26284E-01   -.43471E-03
   2  alpha         4.0033        2.9702        .50000        .15826E-04
   3  Normalizat    .99898        .22028E-01    .46153E-01   -.14542E-03
   4  Prefactor     1.2274        .27865E-01    .64350E-01   -.11862E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.24083
  alpha      = 4.00329
  Normalizat = 0.998978
  Prefactor  = 1.22736
 **********
 **   18 **HESSE 
 **********

 FCN=   5178.177     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      350 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24083        134.16        .95577E-03   -1.5610    
   2  alpha         4.0033        2.6643        .78812E-01    .64515    
   3  Normalizat    .99898        .12406        .24739E-03   -.93065    
   4  Prefactor     1.2274        .14477        .28463E-03   -.85493    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.87599e-09
Minuit parameter uncertainties:
  1  11.3917
  2  33.6429
  3  0.124097
  4  0.144816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258592': 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): 102
logL (Free Index) = 5178.17711487
delta logL = 0.042005791408

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  2.408e-01  1.139e+01  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  4.003e+00  3.364e+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.227e+00  1.448e-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:  9.990e-01  1.241e-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/258592/cmap_HighResolution_239846401_240105601_4FGL_J1308.5+3547_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-05', job_status='DONE', photon_flux_upper_limit='4.97e-08', time_completed='2021-09-07 00:05:46.388483', job_id='258592', GAL2='1.23', fit_tolerance='1e-08', EG2='1.00', EG='1.01', time_epoch_completed='1630998346.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='4.20e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='2' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:05:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 258592: <4FGL_J1308.5+3547_daily_bin2> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin2> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 23:50:25 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:50:57 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:50:57 2021
Terminated at Tue Sep  7 00:05:47 2021
Results reported at Tue Sep  7 00:05:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin2 197.129 35.7918 239846401 240105601 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 :                                   686.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            922 sec.

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

