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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin51
RA = 197.129, Dec = 35.7918
tmin = 252547201, tmax = 252806401
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='259860', job_status='RUN', time_executed='2021-09-06 23:57:36.847812', time_epoch_executed='1630997856.85' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='51'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259860/ft1_4FGL_J1308.5+3547_daily_bin51.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259860/ft2_4FGL_J1308.5+3547_daily_bin51.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259860/ft1_4FGL_J1308.5+3547_daily_bin51.fits outfile=/scratch/kocevski/259860/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin51.fits ra=197.129 dec=35.7918 rad=12.0 tmin=252547201.0 tmax=252806401.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.40
user 1.22
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259860/ft1_filtered_4FGL_J1308.5+3547_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/259860/ft2_4FGL_J1308.5+3547_daily_bin51.fits sctable="SC_DATA" expcube=/scratch/kocevski/259860/ltcube_252547201_252806401_4FGL_J1308.5+3547_daily_bin51.fits outfile=/scratch/kocevski/259860/expmap_252547201_252806401_4FGL_J1308.5+3547_daily_bin51.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/259860/ltcube_252547201_252806401_4FGL_J1308.5+3547_daily_bin51.fits
.....................!
real 193.62
user 188.52
sys 4.54

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/259860/ft1_filtered_4FGL_J1308.5+3547_daily_bin51.fits scfile=/scratch/kocevski/259860/ft2_4FGL_J1308.5+3547_daily_bin51.fits outfile=/scratch/kocevski/259860/cmap_252547201_252806401_4FGL_J1308.5+3547_daily_bin51.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.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259860/ft1_filtered_4FGL_J1308.5+3547_daily_bin51.fits scfile=/scratch/kocevski/259860/ft2_4FGL_J1308.5+3547_daily_bin51.fits outfile=/scratch/kocevski/259860/cmap_HighResolution_252547201_252806401_4FGL_J1308.5+3547_daily_bin51.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9606       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4524       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6323       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0727       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5496       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.6127       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.125       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6548       1.0000         .10000E-03   10000.    
    13 'norm      '    13.902       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0544       1.0000         .10000E-03   10000.    
    15 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8271       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.037       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23489E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.424       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .34869       1.0000         .10000E-03   10000.    
    22 'norm      '    2.9582       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.6016       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0325       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79182       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=   6382.747     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3646 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9607        8.2897        .18859E-05   -.57714E-03
   2  Prefactor     2.4524        2.0714        .23333E-07   -.90532E-04
   3  Prefactor     7.6321        5.6264        .66799E-06    .54846E-03
   4  Prefactor     5.0755        17.682       -.44146E-05   -.25768E-03
   5  Prefactor     .10000E-03    35.845        .20855E-06** at limit **
   6  Prefactor     .10000E-03    2.8256        .87617E-07** at limit **
   7  norm          1.5494        2.3072        .99256E-07   -.54764E-04
   8  Prefactor     .10000E-03    11.390        .11589E-07** at limit **
   9  Prefactor     .10000E-03    5.7120        .25302E-07** at limit **
  10  norm          5.6125        3.4029        .68452E-07   -.17976E-04
  11  Prefactor     23.142        19.487        .29257E-05    .61615E-03
  12  norm          2.6526        5.6855       -.35736E-06   -.21232E-03
  13  norm          13.902        12.032       -.11800E-05   -.43784E-03
  14  norm          3.0546        2.8138        .39688E-07   -.55368E-04
  15  norm          .10000E-03    5.4941       -.32577E-07** at limit **
  16  Prefactor     2.8197        4.0388       -.73523E-07   -.19793E-03
  17  Prefactor     14.039        14.481        .53704E-06    .11617E-03
  18  Prefactor     .10000E-03    115.54        .12374E-05** at limit **
  19  Prefactor     13.429        14.943       -.18113E-05   -.36790E-03
  20  Prefactor     .10000E-03    40.786       -.68472E-06** at limit **
  21  Prefactor     .73035E-03    80.013        .75507E-06** at limit **
  22  norm          2.9585        1.7642        .68776E-07   -.11458E-03
  23  Prefactor     5.6017        4.1946        .20831E-05   -.16847E-02
  24  norm          .10000E-03    4.3121        .17518E-07** at limit **
  25  Normalizat    1.0323        .16258       -.16956E-05    .21792E-04
  26  Prefactor     .79196        .18968        .44715E-06   -.10480E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.96073
  Prefactor  = 2.45243
  Prefactor  = 7.63205
  Prefactor  = 5.0755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.61254
  Prefactor  = 23.1424
  norm       = 2.65262
  norm       = 13.9022
  norm       = 3.05458
  norm       = 0.0001
  Prefactor  = 2.81968
  Prefactor  = 14.0388
  Prefactor  = 0.000100001
  Prefactor  = 13.4287
  Prefactor  = 0.0001
  Prefactor  = 0.000730351
  norm       = 2.95846
  Prefactor  = 5.60173
  norm       = 0.0001
  Normalizat = 1.03235
  Prefactor  = 0.791956
 **********
 **   18 **HESSE 
 **********

 FCN=   6382.747     FROM HESSE     STATUS=OK           468 CALLS     4114 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9607        8.4429        .71055E-03   -1.5144    
   2  Prefactor     2.4524        2.0640        .10271E-03   -1.5395    
   3  Prefactor     7.6321        5.6566        .14516E-03   -1.5155    
   4  Prefactor     5.0755        18.229        .17852E-03   -1.5257    
   5  Prefactor     .10000E-03    35.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8306        .13098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5494        2.2784        .14325E-03   -1.5459    
   8  Prefactor     .10000E-03    11.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6125        3.4027        .11131E-03   -1.5234    
  11  Prefactor     23.142        20.156        .83296E-04   -1.4745    
  12  norm          2.6526        5.6462        .23856E-03   -1.5382    
  13  norm          13.902        12.168        .10742E-03   -1.4962    
  14  norm          3.0546        2.7723        .12010E-03   -1.5358    
  15  norm          .10000E-03    5.5495        .36182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8197        3.9745        .15209E-03   -1.5372    
  17  Prefactor     14.039        14.385        .10691E-03   -1.4958    
  18  Prefactor     .10000E-03    116.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.429        15.090        .10932E-03   -1.4975    
  20  Prefactor     .10000E-03    41.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .73035E-03    68.130        .17474       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9585        1.7632        .78689E-04   -1.5364    
  23  Prefactor     5.6017        4.4042        .70570E-03   -1.5235    
  24  norm          .10000E-03    4.3169        .16202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0323        .19344        .21663E-03   -.91955    
  26  Prefactor     .79196        .22371        .30117E-03   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40117e-09
Minuit parameter uncertainties:
  1  8.44417
  2  2.06409
  3  5.65702
  4  18.2486
  5  3.99674e-05
  6  7.253e-06
  7  2.27857
  8  7.67296e-06
  9  3.31471e-06
  10  3.40279
  11  20.1617
  12  5.64737
  13  12.1705
  14  2.77243
  15  4.75849e-07
  16  3.97491
  17  14.3886
  18  0.000541059
  19  15.0942
  20  0.00013384
  21  0.414938
  22  1.76321
  23  4.40449
  24  2.09508e-06
  25  0.193571
  26  0.223972
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  2.653e+00  5.647e+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.920e-01  2.240e-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.032e+00  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/259860/likelihoodResults_252547201_252806401_4FGL_J1308.5+3547_daily_bin51.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) = 6381.88505079
delta logL = 0.86225985378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6381.86539173
delta logL = 0.881918914172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9765       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5914       1.0000          .0000       5.0000    
     3 'Normalizat'    .98493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82486       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=   6381.865     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      216 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9732        29.531        .73717E-02    .13939E-02
   2  alpha         3.5932        4.2966        .39251        .97962E-04
   3  Normalizat    .98482        .44695E-01    .45978E-01   -.96878E-04
   4  Prefactor     .82502        .54874E-01    .66754E-01   -.85881E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.97317
  alpha      = 3.5932
  Normalizat = 0.984821
  Prefactor  = 0.825023
 **********
 **   18 **HESSE 
 **********

 FCN=   6381.865     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9732        4.4626        .83652E-04   -1.5427    
   2  alpha         3.5932        1.3875        .15544E-01    .45257    
   3  Normalizat    .98482        .18358        .22075E-03   -.93541    
   4  Prefactor     .82502        .22419        .29531E-03   -.98812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21258e-10
Minuit parameter uncertainties:
  1  4.46335
  2  1.49534
  3  0.183699
  4  0.224436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259860': 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) = 6381.86538969
delta logL = 0.881920947969

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.973e+00  4.463e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  3.593e+00  1.495e+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:  8.250e-01  2.244e-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:  9.848e-01  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 197.129 35.792
Photon Index (Free Index): 3.59 +/- 1.50
Photon Flux (Free Index): 5.49e-08 +/- 4.39e-08
Energy Flux (Free Index): 1.01e-05 +/- 8.45e-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/259860/cmap_HighResolution_252547201_252806401_4FGL_J1308.5+3547_daily_bin51.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.76e-05', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='8.82e-01', photon_flux2='5.49e-08', job_status='DONE', time_completed='2021-09-07 00:11:06.259924', photon_index_error2='1.50', photon_index2='3.59', ts='0.36', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='6.69e-08', energy_flux_error2='8.45e-06', EG='1.03', time_epoch_completed='1630998666.26', return_code='0', job_id='259860', GAL2='0.83', EG2='0.98', return_code2='0', photon_flux_error2='4.39e-08', ts2='2.17', photon_index='2.18' WHERE bin_id='51' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:11:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 259860: <4FGL_J1308.5+3547_daily_bin51> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin51 197.129 35.7918 252547201 252806401 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 :                                   809.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            935 sec.

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

