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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1209
RA = 197.129, Dec = 35.7918
tmin = 552700801, tmax = 552960001
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='272384', job_status='RUN', time_executed='2021-09-07 00:38:21.357652', time_epoch_executed='1631000301.36' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272384

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272384/ft1_4FGL_J1308.5+3547_daily_bin1209.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272384/ft2_4FGL_J1308.5+3547_daily_bin1209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272384/ft1_4FGL_J1308.5+3547_daily_bin1209.fits outfile=/scratch/kocevski/272384/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1209.fits ra=197.129 dec=35.7918 rad=12.0 tmin=552700801.0 tmax=552960001.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.98
user 2.72
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272384/ft1_filtered_4FGL_J1308.5+3547_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/272384/ft2_4FGL_J1308.5+3547_daily_bin1209.fits sctable="SC_DATA" expcube=/scratch/kocevski/272384/ltcube_552700801_552960001_4FGL_J1308.5+3547_daily_bin1209.fits outfile=/scratch/kocevski/272384/expmap_552700801_552960001_4FGL_J1308.5+3547_daily_bin1209.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/272384/ltcube_552700801_552960001_4FGL_J1308.5+3547_daily_bin1209.fits
.....................!
real 191.52
user 185.33
sys 4.84

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/272384/ft1_filtered_4FGL_J1308.5+3547_daily_bin1209.fits scfile=/scratch/kocevski/272384/ft2_4FGL_J1308.5+3547_daily_bin1209.fits outfile=/scratch/kocevski/272384/cmap_552700801_552960001_4FGL_J1308.5+3547_daily_bin1209.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.57
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12784       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0947       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2757       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5885       1.0000         .10000E-03   10000.    
     5 'Prefactor '    61.234       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6487       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9438       1.0000         .10000E-03   10000.    
    10 'norm      '    4.5346       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.285       1.0000         .10000E-03   10000.    
    13 'norm      '    4.2641       1.0000         .10000E-03   10000.    
    14 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4330       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5534       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1736       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1229       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0203       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=   8979.339     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     2249 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28800E-02    1704.2       -.65656E-04    .34680E-03
   2  Prefactor     2.0952        2.0680       -.17103E-07    .58542E-05
   3  Prefactor     6.2752        1.0102        .52709E-07   -.12397E-04
   4  Prefactor     3.5859        1.1832        .79125E-06   -.39815E-03
   5  Prefactor     61.232        1.1002       -.12429E-06    .13585E-02
   6  Prefactor     .10000E-03    2.2877        .13060E-05** at limit **
   7  norm          3.6538        3.7185        .32881E-06    .15680E-02
   8  Prefactor     .10011E-03    11.102       -.12361E-04** at limit **
   9  Prefactor     5.8848        9.2532        .39132E-05   -.80674E-02
  10  norm          4.5341        2.6510       -.28211E-06   -.56832E-03
  11  Prefactor     .10004E-03    5.0298        .92638E-05** at limit **
  12  norm          11.284        1.0725       -.14158E-06    .32680E-03
  13  norm          4.2597        1.3125        .92191E-06   -.24326E-03
  14  norm          .10000E-03    1.6757       -.20735E-06** at limit **
  15  norm          .10000E-03    1.2784        .41337E-06** at limit **
  16  Prefactor     1.4359        2.4052        .12717E-05    .32301E-03
  17  Prefactor     .10001E-03    4.6465       -.17519E-05** at limit **
  18  Prefactor     2.5089        6.8925       -.41188E-05    .39801E-03
  19  Prefactor     .10000E-03    3.6628       -.92346E-06** at limit **
  20  Prefactor     .10001E-03    5.7110       -.51683E-05** at limit **
  21  Prefactor     .10001E-03    18.331       -.11130E-06** at limit **
  22  norm          1.1732        .95323        .51000E-06    .63947E-03
  23  Prefactor     .10000E-03    .83723       -.87533E-07** at limit **
  24  norm          .10008E-03    9.9001        .88940E-05** at limit **
  25  Normalizat    1.1230        .16023        .10551E-05    .15537E-03
  26  Prefactor     1.0205        .20092       -.24061E-05    .49116E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00288002
  Prefactor  = 2.0952
  Prefactor  = 6.27516
  Prefactor  = 3.58593
  Prefactor  = 61.2316
  Prefactor  = 0.0001
  norm       = 3.65383
  Prefactor  = 0.000100112
  Prefactor  = 5.88485
  norm       = 4.53406
  Prefactor  = 0.000100037
  norm       = 11.2842
  norm       = 4.25974
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.43592
  Prefactor  = 0.000100007
  Prefactor  = 2.50888
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.000100006
  norm       = 1.17325
  Prefactor  = 0.0001
  norm       = 0.000100076
  Normalizat = 1.12299
  Prefactor  = 1.02055
 **********
 **   18 **HESSE 
 **********

 FCN=   8979.339     FROM HESSE     STATUS=OK           514 CALLS     2763 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28800E-02    3.3540        .96432E-01   -1.5697    
   2  Prefactor     2.0952        2.0815        .71298E-02   -1.5418    
   3  Prefactor     6.2752        7.0507        .40059E-02   -1.5207    
   4  Prefactor     3.5859        11.127        .53330E-02   -1.5329    
   5  Prefactor     61.232        53.203        .12819E-02   -1.4141    
   6  Prefactor     .10000E-03    2.2277        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6538        4.2500        .52870E-02   -1.5326    
   8  Prefactor     .10011E-03    11.339        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8848        21.976        .41177E-02   -1.5223    
  10  norm          4.5341        2.6513        .47263E-02   -1.5282    
  11  Prefactor     .10004E-03    5.0896        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.284        4.8956        .29814E-02   -1.5036    
  13  norm          4.2597        8.7445        .48779E-02   -1.5295    
  14  norm          .10000E-03    1.6170        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4359        2.5723        .90188E-02   -1.5468    
  17  Prefactor     .10001E-03    4.6713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5089        91.158        .63879E-02   -1.5391    
  19  Prefactor     .10000E-03    3.6580        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    5.7383        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    18.496        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1732        .97631        .10578E-01   -1.5491    
  23  Prefactor     .10000E-03    .83097        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10008E-03    9.8916        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1230        .13687        .37136E-01   -.89017    
  26  Prefactor     1.0205        .17173        .65368E-01   -.92048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19884e-07
Minuit parameter uncertainties:
  1  0.193134
  2  2.08156
  3  7.05162
  4  11.1336
  5  53.2448
  6  1.99827e-05
  7  4.2504
  8  0.00225157
  9  22.0057
  10  2.65135
  11  0.00086787
  12  4.89582
  13  8.74712
  14  2.59147e-06
  15  4.69763e-06
  16  2.5725
  17  0.000354083
  18  30.2953
  19  2.33244e-06
  20  0.000586554
  21  0.000639548
  22  0.976323
  23  7.85249e-07
  24  0.00173691
  25  0.136912
  26  0.171826
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.128e+01  4.896e+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:  1.021e+00  1.718e-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.123e+00  1.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.42
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 4.92e-08 +/- 2.13e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 8.81e-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) = 8979.3326568
delta logL = 0.00591618294129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8979.33229285
delta logL = 0.00628013115966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.323       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1212       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0183       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=   8979.332     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      224 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.348        92.660        .29764E-02    .80642E-03
   2  alpha         2.1244        3.1810        .41765        .25361E-04
   3  Normalizat    1.1259        .12947        .37014E-01   -.48515E-05
   4  Prefactor     1.0186        .91995E-01    .65427E-01    .81113E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3476
  alpha      = 2.12441
  Normalizat = 1.12593
  Prefactor  = 1.01865
 **********
 **   18 **HESSE 
 **********

 FCN=   8979.332     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.348        4.8898        .59527E-03   -1.5034    
   2  alpha         2.1244        .51381        .15004E-01   -.15081    
   3  Normalizat    1.1259        .15946        .21746E-03   -.88924    
   4  Prefactor     1.0186        .20119        .28940E-03   -.92111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12273e-10
Minuit parameter uncertainties:
  1  4.88996
  2  0.517581
  3  0.159524
  4  0.201337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272384': 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) = 8979.33225685
delta logL = 0.00631613736368

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.135e+01  4.890e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.124e+00  5.176e-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.019e+00  2.013e-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.126e+00  1.595e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.44
Ra Dec: 197.129 35.792
Photon Index (Free Index): 2.12 +/- 0.52
Photon Flux (Free Index): 4.67e-08 +/- 2.92e-08
Energy Flux (Free Index): 2.05e-05 +/- 8.92e-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/272384/cmap_HighResolution_552700801_552960001_4FGL_J1308.5+3547_daily_bin1209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.92e-08', energy_flux2='2.05e-05', photon_flux_error='2.13e-08', dlogl='6.32e-03', energy_flux='2.03e-05', photon_flux2='4.67e-08', job_status='DONE', time_completed='2021-09-07 00:50:54.633414', photon_index_error2='0.52', photon_index2='2.12', ts='18.42', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='8.92e-06', EG='1.12', time_epoch_completed='1631001054.63', return_code='0', job_id='272384', GAL2='1.02', EG2='1.13', return_code2='0', energy_flux_error='8.81e-06', photon_flux_error2='2.92e-08', ts2='18.44', photon_index='2.18' WHERE bin_id='1209' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:50:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 272384: <4FGL_J1308.5+3547_daily_bin1209> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1209> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:30 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:35:47 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:35:47 2021
Terminated at Tue Sep  7 00:50:55 2021
Results reported at Tue Sep  7 00:50:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1209 197.129 35.7918 552700801 552960001 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 :                                   742.18 sec.
    Max Memory :                                 1163 MB
    Average Memory :                             256.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            925 sec.

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

