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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin66
RA = 197.129, Dec = 35.7918
tmin = 256435201, tmax = 256694401
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='259885', job_status='RUN', time_executed='2021-09-06 23:59:18.837311', time_epoch_executed='1630997958.84' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259885

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259885/ft1_4FGL_J1308.5+3547_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259885/ft2_4FGL_J1308.5+3547_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259885/ft1_4FGL_J1308.5+3547_daily_bin66.fits outfile=/scratch/kocevski/259885/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin66.fits ra=197.129 dec=35.7918 rad=12.0 tmin=256435201.0 tmax=256694401.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.27
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259885/ft2_4FGL_J1308.5+3547_daily_bin66.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/259885/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin66.fits evtable="EVENTS" outfile="/scratch/kocevski/259885/ft1_filtered_4FGL_J1308.5+3547_daily_bin66.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/259885/ft1_filtered_4FGL_J1308.5+3547_daily_bin66.fits" evtable="EVENTS" scfile=/scratch/kocevski/259885/ft2_4FGL_J1308.5+3547_daily_bin66.fits sctable="SC_DATA" outfile=/scratch/kocevski/259885/ltcube_256435201_256694401_4FGL_J1308.5+3547_daily_bin66.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/259885/ft2_4FGL_J1308.5+3547_daily_bin66.fits
.....................!
real 18.02
user 17.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259885/ft1_filtered_4FGL_J1308.5+3547_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/259885/ft2_4FGL_J1308.5+3547_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/259885/ltcube_256435201_256694401_4FGL_J1308.5+3547_daily_bin66.fits outfile=/scratch/kocevski/259885/expmap_256435201_256694401_4FGL_J1308.5+3547_daily_bin66.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/259885/ltcube_256435201_256694401_4FGL_J1308.5+3547_daily_bin66.fits
.....................!
real 193.47
user 187.90
sys 4.79

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/259885/ft1_filtered_4FGL_J1308.5+3547_daily_bin66.fits scfile=/scratch/kocevski/259885/ft2_4FGL_J1308.5+3547_daily_bin66.fits outfile=/scratch/kocevski/259885/cmap_256435201_256694401_4FGL_J1308.5+3547_daily_bin66.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259885/ft1_filtered_4FGL_J1308.5+3547_daily_bin66.fits scfile=/scratch/kocevski/259885/ft2_4FGL_J1308.5+3547_daily_bin66.fits outfile=/scratch/kocevski/259885/cmap_HighResolution_256435201_256694401_4FGL_J1308.5+3547_daily_bin66.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/259885/ft1_filtered_4FGL_J1308.5+3547_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/259885/ft2_4FGL_J1308.5+3547_daily_bin66.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259885/Model_4FGL_J1308.5+3547_daily_bin66.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/259885/ft1_filtered_4FGL_J1308.5+3547_daily_bin66.fits.....................!
real 59.62
user 58.30
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5534       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    69.132       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9341       1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.852       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3838       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.331       1.0000         .10000E-03   10000.    
    12 'norm      '    7.3131       1.0000         .10000E-03   10000.    
    13 'norm      '    9.7694       1.0000         .10000E-03   10000.    
    14 'norm      '    6.8044       1.0000         .10000E-03   10000.    
    15 'norm      '    .45063E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37388       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.332       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0580       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3079       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.2822       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1909       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72633       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7572.982     FROM MIGRAD    STATUS=CONVERGED     72 CALLS     2560 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7843        .19866E-06** at limit **
   2  Prefactor     .10000E-03    .42417        .22263E-06** at limit **
   3  Prefactor     5.5534        1.0049        .27740E-07    .61241E-04
   4  Prefactor     .10000E-03    5.8238        .14938E-04** at limit **
   5  Prefactor     69.132        1.0001        .42244E-08   -.30308E-04
   6  Prefactor     1.9342        1.0539       -.24897E-06   -.49142E-03
   7  norm          .10000E-03    1.1512       -.22028E-07** at limit **
   8  Prefactor     25.851        1.0385       -.26538E-06    .21897E-02
   9  Prefactor     .10000E-03    9.2493        .79254E-05** at limit **
  10  norm          2.3839        2.3054        .11103E-05   -.19204E-04
  11  Prefactor     17.332        1.0049       -.10303E-07   -.85160E-03
  12  norm          7.3117        1.4317       -.14105E-05   -.14319E-02
  13  norm          9.7699        1.0018       -.14962E-07    .51744E-04
  14  norm          6.8002        3.0817        .20670E-05    .80908E-03
  15  norm          .10001E-03    .65196       -.38267E-05** at limit **
  16  Prefactor     .37848        .94273       -.88774E-06   -.48678E-03
  17  Prefactor     .10000E-03    6.2075       -.18937E-04** at limit **
  18  Prefactor     13.331        1.0591       -.44893E-06    .17620E-02
  19  Prefactor     3.0586        1.0151       -.78470E-07    .10041E-03
  20  Prefactor     8.3083        1.0020        .85372E-09    .46271E-04
  21  Prefactor     .10000E-03    31.242       -.61138E-05** at limit **
  22  norm          .10000E-03    .64782       -.25902E-06** at limit **
  23  Prefactor     .10000E-03    1.2044       -.62197E-07** at limit **
  24  norm          4.2817        1.0079       -.97968E-08    .27538E-04
  25  Normalizat    1.1909        .17382        .43835E-06    .41382E-04
  26  Prefactor     .72631        .20947        .22888E-07    .40789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.55343
  Prefactor  = 0.0001
  Prefactor  = 69.1324
  Prefactor  = 1.93424
  norm       = 0.0001
  Prefactor  = 25.851
  Prefactor  = 0.0001
  norm       = 2.38385
  Prefactor  = 17.332
  norm       = 7.3117
  norm       = 9.76992
  norm       = 6.80024
  norm       = 0.000100009
  Prefactor  = 0.378485
  Prefactor  = 0.0001
  Prefactor  = 13.331
  Prefactor  = 3.05863
  Prefactor  = 8.30831
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.28171
  Normalizat = 1.19088
  Prefactor  = 0.726308
 **********
 **   18 **HESSE 
 **********

 FCN=   7572.982     FROM HESSE     STATUS=OK           526 CALLS     3086 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7606        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .42321        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5534        5.9787        .42621E-02   -1.5237    
   4  Prefactor     .10000E-03    5.9760        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     69.132        56.535        .12069E-02   -1.4043    
   6  Prefactor     1.9342        5.0602        .74652E-02   -1.5430    
   7  norm          .10000E-03    1.1458        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.851        37.967        .19697E-02   -1.4691    
   9  Prefactor     .10000E-03    9.3554        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3839        2.3154        .66325E-02   -1.5399    
  11  Prefactor     17.332        21.215        .24051E-02   -1.4875    
  12  norm          7.3117        5.6863        .37080E-02   -1.5167    
  13  norm          9.7699        10.997        .32052E-02   -1.5083    
  14  norm          6.8002        3.9226        .38454E-02   -1.5186    
  15  norm          .10001E-03    3.7902        .49333E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .37848        1.9961        .64074E-01   -1.5585    
  17  Prefactor     .10000E-03    6.4451        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.331        35.388        .27425E-02   -1.4978    
  19  Prefactor     3.0586        9.2132        .57997E-02   -1.5358    
  20  Prefactor     8.3083        13.232        .34772E-02   -1.5131    
  21  Prefactor     .10000E-03    31.208        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .61945        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.1898        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.2817        13.612        .48673E-02   -1.5294    
  25  Normalizat    1.1909        .15303        .35119E-01   -.86885    
  26  Prefactor     .72631        .18274        .71501E-01   -1.0250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9957e-07
Minuit parameter uncertainties:
  1  2.42585e-06
  2  7.44233e-07
  3  5.97934
  4  2.15931e-05
  5  56.5786
  6  5.06131
  7  1.2675e-06
  8  38.0021
  9  8.8499e-05
  10  2.31546
  11  21.2245
  12  5.68673
  13  10.9997
  14  3.92272
  15  0.00036459
  16  1.73824
  17  1.35553e-05
  18  35.4441
  19  9.21752
  20  13.2366
  21  0.000309218
  22  2.54066e-06
  23  4.36367e-07
  24  13.6223
  25  0.153086
  26  0.182892
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  7.312e+00  5.687e+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:  7.263e-01  1.829e-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.191e+00  1.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.33
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.19e-08 +/- 2.48e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.02e-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) = 7571.31721751
delta logL = 1.66443165947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7571.31177736
delta logL = 1.66987180718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1127       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4866       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79047       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=   7571.312     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      238 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1048        28.700        .49695E-02    .13050E-03
   2  alpha         3.4879        4.1603        .28226        .56218E-04
   3  Normalizat    1.1086        .60591E-01    .37656E-01   -.39229E-04
   4  Prefactor     .79061        .65971E-01    .68728E-01    .30970E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.10479
  alpha      = 3.48792
  Normalizat = 1.10864
  Prefactor  = 0.790605
 **********
 **   18 **HESSE 
 **********

 FCN=   7571.312     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1048        4.5267        .77214E-04   -1.5303    
   2  alpha         3.4879        .82967        .11546E-01    .40625    
   3  Normalizat    1.1086        .18080        .21390E-03   -.89475    
   4  Prefactor     .79061        .21534        .30409E-03   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07289e-08
Minuit parameter uncertainties:
  1  4.52709
  2  0.848871
  3  0.180903
  4  0.215564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259885': 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) = 7571.31177502
delta logL = 1.66987415088

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  4.105e+00  4.527e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  3.488e+00  8.489e-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:  7.906e-01  2.156e-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.109e+00  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.83
Ra Dec: 197.129 35.792
Photon Index (Free Index): 3.49 +/- 0.85
Photon Flux (Free Index): 9.74e-08 +/- 5.27e-08
Energy Flux (Free Index): 1.85e-05 +/- 8.64e-06

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/259885/cmap_HighResolution_256435201_256694401_4FGL_J1308.5+3547_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.19e-08', energy_flux2='1.85e-05', photon_flux_error='2.48e-08', dlogl='1.67e+00', energy_flux='1.32e-05', photon_flux2='9.74e-08', job_status='DONE', time_completed='2021-09-07 00:10:58.983753', photon_index_error2='0.85', photon_index2='3.49', ts='4.33', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='8.64e-06', EG='1.19', time_epoch_completed='1630998658.98', return_code='0', job_id='259885', GAL2='0.79', EG2='1.11', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='5.27e-08', ts2='7.83', photon_index='2.18' WHERE bin_id='66' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:10:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 259885: <4FGL_J1308.5+3547_daily_bin66> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin66> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep  6 23:55:34 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:55:48 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:48 2021
Terminated at Tue Sep  7 00:10:59 2021
Results reported at Tue Sep  7 00:10:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin66 197.129 35.7918 256435201 256694401 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 :                                   698.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            925 sec.

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

