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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin846
RA = 197.129, Dec = 35.7918
tmin = 458611201, tmax = 458870401
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='266754', job_status='RUN', time_executed='2021-09-07 00:21:23.012139', time_epoch_executed='1630999283.01' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='846'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266754

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266754/ft1_4FGL_J1308.5+3547_daily_bin846.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266754/ft2_4FGL_J1308.5+3547_daily_bin846.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266754/ft1_4FGL_J1308.5+3547_daily_bin846.fits outfile=/scratch/kocevski/266754/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin846.fits ra=197.129 dec=35.7918 rad=12.0 tmin=458611201.0 tmax=458870401.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 3.73
user 3.44
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266754/ft1_filtered_4FGL_J1308.5+3547_daily_bin846.fits" evtable="EVENTS" scfile=/scratch/kocevski/266754/ft2_4FGL_J1308.5+3547_daily_bin846.fits sctable="SC_DATA" outfile=/scratch/kocevski/266754/ltcube_458611201_458870401_4FGL_J1308.5+3547_daily_bin846.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/266754/ft2_4FGL_J1308.5+3547_daily_bin846.fits
.....................!
real 16.41
user 15.83
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266754/ft1_filtered_4FGL_J1308.5+3547_daily_bin846.fits evtable="EVENTS" scfile=/scratch/kocevski/266754/ft2_4FGL_J1308.5+3547_daily_bin846.fits sctable="SC_DATA" expcube=/scratch/kocevski/266754/ltcube_458611201_458870401_4FGL_J1308.5+3547_daily_bin846.fits outfile=/scratch/kocevski/266754/expmap_458611201_458870401_4FGL_J1308.5+3547_daily_bin846.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/266754/ltcube_458611201_458870401_4FGL_J1308.5+3547_daily_bin846.fits
.....................!
real 193.77
user 185.98
sys 5.23

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/266754/ft1_filtered_4FGL_J1308.5+3547_daily_bin846.fits scfile=/scratch/kocevski/266754/ft2_4FGL_J1308.5+3547_daily_bin846.fits outfile=/scratch/kocevski/266754/cmap_458611201_458870401_4FGL_J1308.5+3547_daily_bin846.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266754/ft1_filtered_4FGL_J1308.5+3547_daily_bin846.fits scfile=/scratch/kocevski/266754/ft2_4FGL_J1308.5+3547_daily_bin846.fits outfile=/scratch/kocevski/266754/cmap_HighResolution_458611201_458870401_4FGL_J1308.5+3547_daily_bin846.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.613       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2642       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4365       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2578       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3159       1.0000         .10000E-03   10000.    
     8 'Prefactor '    65.429       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.645       1.0000         .10000E-03   10000.    
    10 'norm      '    .22745E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9431       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.913       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19233E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.385       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.671       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .42620       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .84732       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3554       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=   6031.860     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3144 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.615        10.239        .17792E-05    .26314E-03
   2  Prefactor     1.2643        2.4069        .45008E-06    .17013E-03
   3  Prefactor     6.4369        7.3648        .54810E-08   -.89186E-05
   4  Prefactor     .10000E-03    5.8712       -.12836E-07** at limit **
   5  Prefactor     .10000E-03    23.891       -.30552E-06** at limit **
   6  Prefactor     8.2576        6.1971       -.18611E-08    .27917E-04
   7  norm          1.3224        5.9999        .13206E-05    .12385E-03
   8  Prefactor     65.440        60.914        .80217E-06    .58489E-04
   9  Prefactor     15.612        37.695       -.16007E-05   -.94010E-04
  10  norm          .10000E-03    2.6194        .12116E-07** at limit **
  11  Prefactor     .10000E-03    22.409       -.76838E-06** at limit **
  12  norm          3.9418        4.5965       -.75506E-07    .65303E-04
  13  norm          .10000E-03    8.6861        .27223E-06** at limit **
  14  norm          .10000E-03    3.4262       -.21557E-06** at limit **
  15  norm          11.911        6.6816       -.43431E-08    .12870E-03
  16  Prefactor     .10006E-03    2.8357       -.11428E-05** at limit **
  17  Prefactor     38.358        20.507       -.31486E-06    .45589E-03
  18  Prefactor     .10000E-03    26.722        .47038E-06** at limit **
  19  Prefactor     .10000E-03    11.515        .58889E-06** at limit **
  20  Prefactor     38.678        33.554        .66988E-06    .64028E-04
  21  Prefactor     .10000E-03    112.22        .15814E-06** at limit **
  22  norm          .42625        1.4247        .11426E-05    .40163E-03
  23  Prefactor     .10000E-03    2.7908        .11350E-06** at limit **
  24  norm          .10000E-03    20.334        .20947E-06** at limit **
  25  Normalizat    .84717        .18626       -.55551E-06    .38755E-05
  26  Prefactor     1.3555        .22114       -.97777E-06   -.93249E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6145
  Prefactor  = 1.26425
  Prefactor  = 6.4369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.25763
  norm       = 1.32235
  Prefactor  = 65.4399
  Prefactor  = 15.6115
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.94185
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.9112
  Prefactor  = 0.000100063
  Prefactor  = 38.3581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.6779
  Prefactor  = 0.0001
  norm       = 0.426253
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.847169
  Prefactor  = 1.35545
 **********
 **   18 **HESSE 
 **********

 FCN=   6031.860     FROM HESSE     STATUS=OK           460 CALLS     3604 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.615        10.260        .61492E-03   -1.5056    
   2  Prefactor     1.2643        2.3782        .16155E-03   -1.5483    
   3  Prefactor     6.4369        7.3594        .15820E-03   -1.5200    
   4  Prefactor     .10000E-03    5.8724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2576        6.1894        .13951E-03   -1.5133    
   7  norm          1.3224        5.6291        .30590E-03   -1.5478    
   8  Prefactor     65.440        61.144        .49615E-04   -1.4088    
   9  Prefactor     15.612        36.701        .10126E-03   -1.4918    
  10  norm          .10000E-03    6.3180        .24443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9418        4.5679        .17093E-03   -1.5311    
  13  norm          .10000E-03    8.7179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.4530        .13946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.911        6.6621        .11606E-03   -1.5018    
  16  Prefactor     .10006E-03    10.457        .21313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.358        19.586        .64692E-04   -1.4468    
  18  Prefactor     .10000E-03    26.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     38.678        33.584        .64453E-04   -1.4463    
  21  Prefactor     .10000E-03    113.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .42625        1.4334        .16315E-03   -1.5577    
  23  Prefactor     .10000E-03    6.3133        .25133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    20.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .84717        .22108        .26954E-03   -.98342    
  26  Prefactor     1.3555        .26231        .27173E-03   -.81673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67467e-09
Minuit parameter uncertainties:
  1  10.262
  2  2.37836
  3  7.36041
  4  3.90215e-06
  5  0.00011903
  6  6.18989
  7  5.45729
  8  61.203
  9  36.7536
  10  5.50687e-05
  11  7.55477e-05
  12  4.56829
  13  4.46628e-05
  14  1.29743e-05
  15  6.66248
  16  0.00162804
  17  19.5895
  18  0.000208725
  19  0.000125205
  20  33.6
  21  0.000123287
  22  1.43356
  23  5.2283e-05
  24  7.69872e-05
  25  0.22132
  26  0.26257
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.942e+00  4.568e+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.355e+00  2.626e-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:  8.472e-01  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.72e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 7.10e-06 +/- 8.22e-06

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

Saving results to:
/scratch/kocevski/266754/likelihoodResults_458611201_458870401_4FGL_J1308.5+3547_daily_bin846.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) = 6031.37212029
delta logL = 0.487694923917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6031.37188555
delta logL = 0.487929665917

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0115       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4146       1.0000          .0000       5.0000    
     3 'Normalizat'    .79484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3922       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=   6031.372     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      305 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0113        4.4902        .10004E-03   -.92159E-04
   2  alpha         3.4149        1.2364        .17072E-01    .17901E-03
   3  Normalizat    .79475        .21981        .27735E-03   -.69724E-04
   4  Prefactor     1.3923        .26551        .26848E-03   -.11710E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.01132
  alpha      = 3.41486
  Normalizat = 0.794749
  Prefactor  = 1.39229
 **********
 **   18 **HESSE 
 **********

 FCN=   6031.372     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0113        3.9079        .40018E-05   -1.5361    
   2  alpha         3.4149        1.0881        .34145E-02    .37465    
   3  Normalizat    .79475        .21866        .11094E-04   -1.0026    
   4  Prefactor     1.3923        .26473        .53697E-04   -.80603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57566e-11
Minuit parameter uncertainties:
  1  3.90824
  2  1.1323
  3  0.218905
  4  0.264991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266754': 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) = 6031.37188538
delta logL = 0.487929837487

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.011e+00  3.908e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  3.415e+00  1.132e+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.392e+00  2.650e-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:  7.947e-01  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 197.129 35.792
Photon Index (Free Index): 3.41 +/- 1.13
Photon Flux (Free Index): 6.40e-08 +/- 6.52e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.03e-05

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/266754/cmap_HighResolution_458611201_458870401_4FGL_J1308.5+3547_daily_bin846.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-05', comment='SUCCESS', photon_flux='1.72e-08', energy_flux2='1.24e-05', photon_flux_error='1.99e-08', dlogl='4.88e-01', energy_flux='7.10e-06', photon_flux2='6.40e-08', job_status='DONE', time_completed='2021-09-07 00:34:00.304759', photon_index_error2='1.13', photon_index2='3.41', ts='1.59', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='7.19e-08', energy_flux_error2='1.03e-05', EG='0.85', time_epoch_completed='1631000040.3', return_code='0', job_id='266754', GAL2='1.39', EG2='0.79', return_code2='0', energy_flux_error='8.22e-06', photon_flux_error2='6.52e-08', ts2='2.61', photon_index='2.18' WHERE bin_id='846' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:34:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 266754: <4FGL_J1308.5+3547_daily_bin846> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin846> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 00:20:48 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:21:07 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:21:07 2021
Terminated at Tue Sep  7 00:34:00 2021
Results reported at Tue Sep  7 00:34:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin846 197.129 35.7918 458611201 458870401 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 :                                   744.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            792 sec.

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

