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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin787
RA = 197.129, Dec = 35.7918
tmin = 443318401, tmax = 443577601
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='266654', job_status='RUN', time_executed='2021-09-07 00:21:04.661671', time_epoch_executed='1630999264.66' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='787'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266654

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266654/ft1_4FGL_J1308.5+3547_daily_bin787.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266654/ft2_4FGL_J1308.5+3547_daily_bin787.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266654/ft1_4FGL_J1308.5+3547_daily_bin787.fits outfile=/scratch/kocevski/266654/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin787.fits ra=197.129 dec=35.7918 rad=12.0 tmin=443318401.0 tmax=443577601.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 4.69
user 4.44
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266654/ft1_filtered_4FGL_J1308.5+3547_daily_bin787.fits" evtable="EVENTS" scfile=/scratch/kocevski/266654/ft2_4FGL_J1308.5+3547_daily_bin787.fits sctable="SC_DATA" outfile=/scratch/kocevski/266654/ltcube_443318401_443577601_4FGL_J1308.5+3547_daily_bin787.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/266654/ft2_4FGL_J1308.5+3547_daily_bin787.fits
.....................!
real 15.57
user 15.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266654/ft1_filtered_4FGL_J1308.5+3547_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/266654/ft2_4FGL_J1308.5+3547_daily_bin787.fits sctable="SC_DATA" expcube=/scratch/kocevski/266654/ltcube_443318401_443577601_4FGL_J1308.5+3547_daily_bin787.fits outfile=/scratch/kocevski/266654/expmap_443318401_443577601_4FGL_J1308.5+3547_daily_bin787.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/266654/ltcube_443318401_443577601_4FGL_J1308.5+3547_daily_bin787.fits
.....................!
real 192.58
user 187.17
sys 4.72

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/266654/ft1_filtered_4FGL_J1308.5+3547_daily_bin787.fits scfile=/scratch/kocevski/266654/ft2_4FGL_J1308.5+3547_daily_bin787.fits outfile=/scratch/kocevski/266654/cmap_443318401_443577601_4FGL_J1308.5+3547_daily_bin787.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266654/ft1_filtered_4FGL_J1308.5+3547_daily_bin787.fits scfile=/scratch/kocevski/266654/ft2_4FGL_J1308.5+3547_daily_bin787.fits outfile=/scratch/kocevski/266654/cmap_HighResolution_443318401_443577601_4FGL_J1308.5+3547_daily_bin787.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10401E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.062       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17239E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23514E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10593E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.128       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.967       1.0000         .10000E-03   10000.    
    12 'norm      '    6.3372       1.0000         .10000E-03   10000.    
    13 'norm      '    11.845       1.0000         .10000E-03   10000.    
    14 'norm      '    3.6731       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3891       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.688       1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.677       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2967       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.230       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9521       1.0000         .10000E-03   10000.    
    24 'norm      '    8.1675       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0438       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84858       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=   6882.143     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3158 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2772       -.95683E-06** at limit **
   2  Prefactor     .10004E-03    1.1175        .41517E-06** at limit **
   3  Prefactor     10.063        7.9661       -.26152E-06   -.41960E-04
   4  Prefactor     .10000E-03    11.167       -.21406E-05** at limit **
   5  Prefactor     .10000E-03    155.09       -.80784E-05** at limit **
   6  Prefactor     .10000E-03    15.660        .50655E-05** at limit **
   7  norm          .10000E-03    5.1459        .24132E-06** at limit **
   8  Prefactor     .10000E-03    31.733       -.28246E-04** at limit **
   9  Prefactor     53.133        32.159        .49422E-08   -.10650E-03
  10  norm          .10000E-03    1.3219       -.12727E-06** at limit **
  11  Prefactor     32.974        19.648       -.46553E-05   -.30447E-03
  12  norm          6.3375        4.9679       -.94553E-06   -.15522E-03
  13  norm          11.845        8.5031        .62292E-06    .11063E-02
  14  norm          3.6736        3.1007       -.16632E-06   -.17412E-03
  15  norm          .10000E-03    2.3311       -.18366E-07** at limit **
  16  Prefactor     3.3890        4.4845        .34927E-05   -.41499E-03
  17  Prefactor     12.688        15.513        .44923E-08   -.72580E-04
  18  Prefactor     45.638        47.589       -.30573E-04   -.22419E-04
  19  Prefactor     .10000E-03    3.4615        .16067E-06** at limit **
  20  Prefactor     1.3059        54.704       -.14832E-04   -.14492E-03
  21  Prefactor     .10000E-03    35.343        .29278E-04** at limit **
  22  norm          17.229        2.9322       -.56655E-08   -.33220E-04
  23  Prefactor     8.9525        4.6050        .22433E-05   -.93121E-04
  24  norm          8.1655        10.242       -.58671E-06   -.49729E-04
  25  Normalizat    1.0438        .16534        .94263E-06   -.42487E-04
  26  Prefactor     .84863        .19824        .10745E-05    .26150E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 10.0635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.1327
  norm       = 0.0001
  Prefactor  = 32.9739
  norm       = 6.3375
  norm       = 11.8453
  norm       = 3.67359
  norm       = 0.0001
  Prefactor  = 3.38899
  Prefactor  = 12.6885
  Prefactor  = 45.6377
  Prefactor  = 0.0001
  Prefactor  = 1.3059
  Prefactor  = 0.0001
  norm       = 17.2292
  Prefactor  = 8.95251
  norm       = 8.16552
  Normalizat = 1.04379
  Prefactor  = 0.848632
 **********
 **   18 **HESSE 
 **********

 FCN=   6882.143     FROM HESSE     STATUS=OK           456 CALLS     3614 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    10.188        .17041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.063        7.9558        .12632E-03   -1.5073    
   4  Prefactor     .10000E-03    11.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    155.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.2949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     53.133        31.960        .55027E-04   -1.4249    
  10  norm          .10000E-03    1.3407        .93140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.974        19.565        .69789E-04   -1.4559    
  12  norm          6.3375        4.9562        .15234E-03   -1.5204    
  13  norm          11.845        8.5279        .58198E-03   -1.5019    
  14  norm          3.6736        3.0814        .12297E-03   -1.5325    
  15  norm          .10000E-03    2.3355        .12342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3890        4.3996        .15474E-03   -1.5340    
  17  Prefactor     12.688        15.357        .11245E-03   -1.4995    
  18  Prefactor     45.638        47.246        .59324E-04   -1.4356    
  19  Prefactor     .10000E-03    3.4635        .15072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3059        56.615        .38837E-03   -1.5479    
  21  Prefactor     .10000E-03    35.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.229        2.9336        .56529E-04   -1.4878    
  23  Prefactor     8.9525        4.6022        .12236E-03   -1.5109    
  24  norm          8.1655        10.240        .14029E-03   -1.5136    
  25  Normalizat    1.0438        .19611        .23283E-03   -.91578    
  26  Prefactor     .84863        .23374        .31654E-03   -.97960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61449e-09
Minuit parameter uncertainties:
  1  1.35141e-05
  2  0.00131567
  3  7.95662
  4  2.14846e-05
  5  0.000183405
  6  0.000516863
  7  8.97922e-06
  8  1.25845e-05
  9  31.9705
  10  1.74843e-06
  11  19.5683
  12  4.95652
  13  8.52879
  14  3.08153
  15  6.91145e-07
  16  4.40001
  17  15.3613
  18  47.2846
  19  4.14572e-06
  20  17.2136
  21  1.52435e-05
  22  2.93366
  23  4.60242
  24  10.2418
  25  0.19625
  26  0.234017
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  6.338e+00  4.957e+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:  8.486e-01  2.340e-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.044e+00  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.72
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.76e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 8.92e-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) = 6881.74425638
delta logL = 0.398604392475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6881.61436617
delta logL = 0.528494603122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8414       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1612       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83961       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=   6881.614     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      198 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8307        3.1058        .51478E-02   -.91876E-04
   2  alpha         1.1593        .60781        .50000       -.42223E-04
   3  Normalizat    1.0605        .15926        .39905E-01   -.69358E-06
   4  Prefactor     .83963        .19799        .71920E-01    .14895E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.83066
  alpha      = 1.15926
  Normalizat = 1.06047
  Prefactor  = 0.839627
 **********
 **   18 **HESSE 
 **********

 FCN=   6881.614     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8307        4.1928        .12294E-03   -1.5317    
   2  alpha         1.1593        .82441        .22620E-02   -.56604    
   3  Normalizat    1.0605        .18693        .23145E-03   -.91031    
   4  Prefactor     .83963        .23213        .31824E-03   -.98284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49565e-12
Minuit parameter uncertainties:
  1  4.19313
  2  0.846968
  3  0.18705
  4  0.232403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266654': 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) = 6881.6143627
delta logL = 0.528498074314

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.831e+00  4.193e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.159e+00  8.470e-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:  8.396e-01  2.324e-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.060e+00  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.82
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.16 +/- 0.85
Photon Flux (Free Index): 9.34e-09 +/- 1.01e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.75e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/266654/cmap_HighResolution_443318401_443577601_4FGL_J1308.5+3547_daily_bin787.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.76e-08', energy_flux2='1.63e-05', photon_flux_error='2.16e-08', dlogl='5.28e-01', energy_flux='1.14e-05', photon_flux2='9.34e-09', job_status='DONE', time_completed='2021-09-07 00:33:23.539393', photon_index_error2='0.85', photon_index2='1.16', ts='4.72', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.04', time_epoch_completed='1631000003.54', return_code='0', job_id='266654', GAL2='0.84', EG2='1.06', return_code2='0', energy_flux_error='8.92e-06', photon_flux_error2='1.01e-08', ts2='5.82', photon_index='2.18' WHERE bin_id='787' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:33:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 266654: <4FGL_J1308.5+3547_daily_bin787> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin787> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 00:20:38 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:20: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:20:55 2021
Terminated at Tue Sep  7 00:33:23 2021
Results reported at Tue Sep  7 00:33:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin787 197.129 35.7918 443318401 443577601 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 :                                   735.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            765 sec.

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

