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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin77
RA = 197.129, Dec = 35.7918
tmin = 259286401, tmax = 259545601
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='259903', job_status='RUN', time_executed='2021-09-06 23:58:18.670848', time_epoch_executed='1630997898.67' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='77'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259903

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259903/ft1_4FGL_J1308.5+3547_daily_bin77.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259903/ft2_4FGL_J1308.5+3547_daily_bin77.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259903/ft1_4FGL_J1308.5+3547_daily_bin77.fits outfile=/scratch/kocevski/259903/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin77.fits ra=197.129 dec=35.7918 rad=12.0 tmin=259286401.0 tmax=259545601.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.28
user 2.07
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259903/ft2_4FGL_J1308.5+3547_daily_bin77.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/259903/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin77.fits evtable="EVENTS" outfile="/scratch/kocevski/259903/ft1_filtered_4FGL_J1308.5+3547_daily_bin77.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259903/ft1_filtered_4FGL_J1308.5+3547_daily_bin77.fits evtable="EVENTS" scfile=/scratch/kocevski/259903/ft2_4FGL_J1308.5+3547_daily_bin77.fits sctable="SC_DATA" expcube=/scratch/kocevski/259903/ltcube_259286401_259545601_4FGL_J1308.5+3547_daily_bin77.fits outfile=/scratch/kocevski/259903/expmap_259286401_259545601_4FGL_J1308.5+3547_daily_bin77.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/259903/ltcube_259286401_259545601_4FGL_J1308.5+3547_daily_bin77.fits
.....................!
real 193.38
user 188.46
sys 4.27

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259903/ft1_filtered_4FGL_J1308.5+3547_daily_bin77.fits scfile=/scratch/kocevski/259903/ft2_4FGL_J1308.5+3547_daily_bin77.fits outfile=/scratch/kocevski/259903/cmap_HighResolution_259286401_259545601_4FGL_J1308.5+3547_daily_bin77.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.58
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .32679E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1739       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2190       1.0000         .10000E-03   10000.    
     7 'norm      '    8.4786       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.866       1.0000         .10000E-03   10000.    
    10 'norm      '    6.3964       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4918       1.0000         .10000E-03   10000.    
    13 'norm      '    28.071       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5579       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3809       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5428       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.409       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9726       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .65594       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2144       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6440.648     FROM MIGRAD    STATUS=CONVERGED   1116 CALLS     3594 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7664        .10383E-02** at limit **
   2  Prefactor     .10000E-03    .92442        .14788E-03** at limit **
   3  Prefactor     .14012E-01    7.5566        .57696E-01    .13497E-03
   4  Prefactor     6.1727        10.769        .16157E-03    .52070E-05
   5  Prefactor     .10000E-03    44.114        .18142E-02** at limit **
   6  Prefactor     5.2199        4.3983        .14879E-03   -.13677E-04
   7  norm          8.4803        5.9737        .68836E-03    .32090E-04
   8  Prefactor     .10000E-03    80.475        .18142E-02** at limit **
   9  Prefactor     38.867        30.106        .64292E-04   -.10705E-03
  10  norm          6.3959        3.9182        .60214E-03    .27105E-03
  11  Prefactor     .10000E-03    19.287        .18142E-02** at limit **
  12  norm          3.4930        3.4787        .14400E-03    .66317E-05
  13  norm          28.069        15.272        .75615E-04    .23560E-03
  14  norm          5.5379        8.3723        .12264E-03    .15759E-05
  15  norm          5.4155        14.627        .17324E-03    .49874E-05
  16  Prefactor     4.5441        2.7551        .98224E-04    .11806E-03
  17  Prefactor     .10000E-03    6.1051        .18142E-02** at limit **
  18  Prefactor     .10000E-03    14.060        .18142E-02** at limit **
  19  Prefactor     .10000E-03    7.2946        .18142E-02** at limit **
  20  Prefactor     41.405        25.212        .62294E-04    .25368E-04
  21  Prefactor     .10000E-03    35.243        .18142E-02** at limit **
  22  norm          1.9724        1.2627        .70130E-04    .19177E-03
  23  Prefactor     .10000E-03    2.5731        .18664E-02** at limit **
  24  norm          .10000E-03    5.9800        .18142E-02** at limit **
  25  Normalizat    .65576        .18057        .25633E-03    .33894E-03
  26  Prefactor     1.2148        .23022        .25186E-03    .16372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0140125
  Prefactor  = 6.17269
  Prefactor  = 0.000100001
  Prefactor  = 5.21989
  norm       = 8.48031
  Prefactor  = 0.000100001
  Prefactor  = 38.8671
  norm       = 6.39588
  Prefactor  = 0.0001
  norm       = 3.493
  norm       = 28.0691
  norm       = 5.53794
  norm       = 5.41552
  Prefactor  = 4.54408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.4051
  Prefactor  = 0.0001
  norm       = 1.97245
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.655755
  Prefactor  = 1.2148
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.648     FROM HESSE     STATUS=OK           442 CALLS     4036 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7666        .20765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .92443        .29576E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .14012E-01    6.6283        .63559E-01   -1.5684    
   4  Prefactor     6.1727        10.769        .64628E-05   -1.5211    
   5  Prefactor     .10000E-03    44.116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2199        4.3981        .59514E-05   -1.5251    
   7  norm          8.4803        5.9716        .27534E-04   -1.5125    
   8  Prefactor     .10000E-03    80.495        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.867        30.104        .12858E-04   -1.4460    
  10  norm          6.3959        3.9181        .24086E-04   -1.5202    
  11  Prefactor     .10000E-03    19.298        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4930        3.4785        .57600E-05   -1.5334    
  13  norm          28.069        15.272        .15123E-04   -1.4648    
  14  norm          5.5379        8.3953        .49056E-05   -1.5237    
  15  norm          5.4155        14.668        .69297E-05   -1.5243    
  16  Prefactor     4.5441        2.7550        .39290E-05   -1.5282    
  17  Prefactor     .10000E-03    6.1064        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.060        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.2952        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.405        25.212        .24918E-05   -1.4420    
  21  Prefactor     .10000E-03    35.244        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9724        1.2627        .28052E-05   -1.5427    
  23  Prefactor     .10000E-03    2.5808        .37329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.9807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .65576        .18075        .10253E-04   -1.0567    
  26  Prefactor     1.2148        .23044        .50372E-04   -.85877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42596e-10
Minuit parameter uncertainties:
  1  1.71796e-06
  2  8.17218e-07
  3  0.607408
  4  10.7721
  5  0.000473729
  6  4.39835
  7  5.97206
  8  0.000410769
  9  30.1154
  10  3.91826
  11  4.84773e-06
  12  3.47868
  13  15.2738
  14  8.3971
  15  14.6779
  16  2.75504
  17  1.04566e-05
  18  8.13104e-06
  19  1.50336e-05
  20  25.2181
  21  0.00023401
  22  1.26273
  23  2.65175e-05
  24  2.84246e-06
  25  0.180914
  26  0.230628
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.493e+00  3.479e+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.215e+00  2.306e-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:  6.558e-01  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.69
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.52e-08 +/- 1.52e-08
Energy Flux (Fixed Index): 6.29e-06 +/- 6.26e-06

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

Saving results to:
/scratch/kocevski/259903/likelihoodResults_259286401_259545601_4FGL_J1308.5+3547_daily_bin77.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6440.64262522
delta logL = 0.00519669241294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6440.6416666
delta logL = 0.00615531516451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3502       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0028       1.0000          .0000       5.0000    
     3 'Normalizat'    .65863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2132       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=   6440.642     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3496        4.4632        .55277E-02   -.94882E-05
   2  alpha         2.0021        1.5301        .42230       -.23225E-04
   3  Normalizat    .65862        .15055        .41735E-01    .16315E-04
   4  Prefactor     1.2132        .19275        .56996E-01    .58299E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.34965
  alpha      = 2.00208
  Normalizat = 0.658618
  Prefactor  = 1.2132
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.642     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3496        3.7052        .14560E-03   -1.5342    
   2  alpha         2.0021        1.4647        .39135E-01   -.20051    
   3  Normalizat    .65862        .17521        .25585E-03   -1.0555    
   4  Prefactor     1.2132        .22720        .25203E-03   -.85926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.058e-09
Minuit parameter uncertainties:
  1  3.70543
  2  1.56997
  3  0.175358
  4  0.227389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259903': 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) = 6440.64166637
delta logL = 0.00615554682099

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.350e+00  3.705e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.002e+00  1.570e+00  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.213e+00  2.274e-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:  6.586e-01  1.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 197.129 35.792
Photon Index (Free Index): 2.00 +/- 1.57
Photon Flux (Free Index): 1.23e-08 +/- 2.57e-08
Energy Flux (Free Index): 6.16e-06 +/- 6.27e-06

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/259903/cmap_HighResolution_259286401_259545601_4FGL_J1308.5+3547_daily_bin77.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-05', comment='SUCCESS', photon_flux='1.52e-08', energy_flux2='6.16e-06', photon_flux_error='1.52e-08', dlogl='6.16e-03', energy_flux='6.29e-06', photon_flux2='1.23e-08', job_status='DONE', time_completed='2021-09-07 00:11:51.105100', photon_index_error2='1.57', photon_index2='2.00', ts='2.69', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='5.69e-08', energy_flux_error2='6.27e-06', EG='0.66', time_epoch_completed='1630998711.11', return_code='0', job_id='259903', GAL2='1.21', EG2='0.66', return_code2='0', energy_flux_error='6.26e-06', photon_flux_error2='2.57e-08', ts2='2.71', photon_index='2.18' WHERE bin_id='77' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:11:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 259903: <4FGL_J1308.5+3547_daily_bin77> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin77 197.129 35.7918 259286401 259545601 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 :                                   810.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            975 sec.

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

