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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1415
RA = 197.129, Dec = 35.7918
tmin = 606096001, tmax = 606355201
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='272680', job_status='RUN', time_executed='2021-09-07 00:38:41.758840', time_epoch_executed='1631000321.76' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272680

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272680/ft1_4FGL_J1308.5+3547_daily_bin1415.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272680/ft2_4FGL_J1308.5+3547_daily_bin1415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272680/ft1_4FGL_J1308.5+3547_daily_bin1415.fits outfile=/scratch/kocevski/272680/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1415.fits ra=197.129 dec=35.7918 rad=12.0 tmin=606096001.0 tmax=606355201.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.00
user 2.80
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/272680/ft2_4FGL_J1308.5+3547_daily_bin1415.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/272680/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1415.fits evtable="EVENTS" outfile="/scratch/kocevski/272680/ft1_filtered_4FGL_J1308.5+3547_daily_bin1415.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.44
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272680/ft1_filtered_4FGL_J1308.5+3547_daily_bin1415.fits" evtable="EVENTS" scfile=/scratch/kocevski/272680/ft2_4FGL_J1308.5+3547_daily_bin1415.fits sctable="SC_DATA" outfile=/scratch/kocevski/272680/ltcube_606096001_606355201_4FGL_J1308.5+3547_daily_bin1415.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/272680/ft2_4FGL_J1308.5+3547_daily_bin1415.fits
.....................!
real 11.07
user 10.74
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272680/ft1_filtered_4FGL_J1308.5+3547_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/272680/ft2_4FGL_J1308.5+3547_daily_bin1415.fits sctable="SC_DATA" expcube=/scratch/kocevski/272680/ltcube_606096001_606355201_4FGL_J1308.5+3547_daily_bin1415.fits outfile=/scratch/kocevski/272680/expmap_606096001_606355201_4FGL_J1308.5+3547_daily_bin1415.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/272680/ltcube_606096001_606355201_4FGL_J1308.5+3547_daily_bin1415.fits
.....................!
real 157.96
user 152.79
sys 4.64

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/272680/ft1_filtered_4FGL_J1308.5+3547_daily_bin1415.fits scfile=/scratch/kocevski/272680/ft2_4FGL_J1308.5+3547_daily_bin1415.fits outfile=/scratch/kocevski/272680/cmap_606096001_606355201_4FGL_J1308.5+3547_daily_bin1415.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.50
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272680/ft1_filtered_4FGL_J1308.5+3547_daily_bin1415.fits scfile=/scratch/kocevski/272680/ft2_4FGL_J1308.5+3547_daily_bin1415.fits outfile=/scratch/kocevski/272680/cmap_HighResolution_606096001_606355201_4FGL_J1308.5+3547_daily_bin1415.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.48
user 0.31
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2916       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3300       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .94898       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5952       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.749       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6253       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5297       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6227       1.0000         .10000E-03   10000.    
    13 'norm      '    34.698       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0479       1.0000         .10000E-03   10000.    
    15 'norm      '    43.841       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7604       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.740       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.948       1.0000         .10000E-03   10000.    
    21 'Prefactor '    78.954       1.0000         .10000E-03   10000.    
    22 'norm      '    3.0831       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .55683       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1690       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .66451       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=   5926.732     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3110 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1616        .41734E-07** at limit **
   2  Prefactor     6.2917        2.8250        .60105E-07    .77284E-04
   3  Prefactor     9.3307        9.5116        .10046E-06    .90046E-04
   4  Prefactor     .10000E-03    5.9098        .10332E-07** at limit **
   5  Prefactor     .10000E-03    81.805        .13581E-05** at limit **
   6  Prefactor     .94567        3.3735        .77153E-06    .10054E-02
   7  norm          2.5943        2.6336        .13618E-06    .13769E-03
   8  Prefactor     19.723        48.752        .39364E-05    .81493E-04
   9  Prefactor     .10000E-03    11.737        .16812E-06** at limit **
  10  norm          1.6254        1.8919       -.14921E-07   -.13444E-03
  11  Prefactor     8.5351        14.395        .34874E-06    .14665E-03
  12  norm          2.6217        4.3410       -.24696E-07    .39694E-03
  13  norm          34.699        17.445       -.38912E-06   -.98645E-04
  14  norm          2.0668        8.3465       -.46222E-05    .56497E-03
  15  norm          43.796        18.654        .24722E-05    .10895E-02
  16  Prefactor     3.7562        3.8686        .34853E-06    .81288E-03
  17  Prefactor     .10000E-03    9.9952        .12130E-06** at limit **
  18  Prefactor     38.738        40.772       -.81356E-07    .10336E-04
  19  Prefactor     .10000E-03    24.563        .11859E-05** at limit **
  20  Prefactor     13.952        19.361       -.33524E-06   -.78991E-04
  21  Prefactor     78.919        59.001        .36767E-05    .20391E-03
  22  norm          3.0828        1.7232       -.45155E-07   -.14663E-03
  23  Prefactor     .10000E-03    1.6221        .94779E-07** at limit **
  24  norm          .60187        56.550       -.33527E-04    .13430E-03
  25  Normalizat    1.1694        .17524        .27398E-05    .43284E-03
  26  Prefactor     .66394        .20969       -.34470E-05   -.21020E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.29169
  Prefactor  = 9.33072
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.945671
  norm       = 2.59431
  Prefactor  = 19.7231
  Prefactor  = 0.0001
  norm       = 1.62538
  Prefactor  = 8.53509
  norm       = 2.62169
  norm       = 34.6991
  norm       = 2.06678
  norm       = 43.7964
  Prefactor  = 3.75615
  Prefactor  = 0.0001
  Prefactor  = 38.7375
  Prefactor  = 0.000100001
  Prefactor  = 13.9521
  Prefactor  = 78.919
  norm       = 3.08276
  Prefactor  = 0.0001
  norm       = 0.601874
  Normalizat = 1.1694
  Prefactor  = 0.663945
 **********
 **   18 **HESSE 
 **********

 FCN=   5926.732     FROM HESSE     STATUS=OK           460 CALLS     3570 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1657        .11054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2917        2.8253        .84316E-04   -1.5206    
   3  Prefactor     9.3307        9.5120        .13120E-03   -1.5097    
   4  Prefactor     .10000E-03    5.9124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    82.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .94567        3.3919        .24145E-02   -1.5513    
   7  norm          2.5943        2.6336        .12212E-03   -1.5386    
   8  Prefactor     19.723        49.052        .90126E-04   -1.4819    
   9  Prefactor     .10000E-03    11.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6254        1.8904        .11148E-03   -1.5453    
  11  Prefactor     8.5351        13.856        .13726E-03   -1.5124    
  12  norm          2.6217        4.2979        .19152E-03   -1.5384    
  13  norm          34.699        17.447        .68031E-04   -1.4529    
  14  norm          2.0668        8.5039        .25403E-03   -1.5420    
  15  norm          43.796        18.742        .60548E-04   -1.4383    
  16  Prefactor     3.7562        3.8497        .13820E-03   -1.5320    
  17  Prefactor     .10000E-03    10.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     38.738        40.740        .64396E-04   -1.4462    
  19  Prefactor     .10000E-03    24.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.952        19.375        .10725E-03   -1.4961    
  21  Prefactor     78.919        59.521        .22598E-03   -1.3929    
  22  norm          3.0828        1.7236        .72739E-04   -1.5357    
  23  Prefactor     .10000E-03    1.6352        .95745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .60187        57.517        .42269E-02   -1.5553    
  25  Normalizat    1.1694        .20208        .21135E-03   -.87554    
  26  Prefactor     .66394        .24258        .33932E-03   -1.0496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10211e-09
Minuit parameter uncertainties:
  1  1.10999e-05
  2  2.82535
  3  9.51349
  4  7.26305e-06
  5  0.000623032
  6  3.39261
  7  2.63368
  8  49.1525
  9  4.44758e-05
  10  1.89042
  11  13.8612
  12  4.29843
  13  17.45
  14  8.38655
  15  18.7448
  16  3.84999
  17  7.33098e-06
  18  40.7691
  19  0.000347405
  20  19.3839
  21  59.566
  22  1.7236
  23  1.61605e-05
  24  11.7781
  25  0.202216
  26  0.242968
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  2.622e+00  4.298e+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:  6.639e-01  2.430e-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.169e+00  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/272680/likelihoodResults_606096001_606355201_4FGL_J1308.5+3547_daily_bin1415.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) = 5926.42316768
delta logL = 0.309055480727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5926.4027038
delta logL = 0.329519360957

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9734       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1703       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1492       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67787       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=   5926.403     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9742        3.6673        .11441E-03   -.17091E-04
   2  alpha         3.1727        1.3013        .20482E-01    .15830E-03
   3  Normalizat    1.1492        .19431        .21277E-03    .16888E-03
   4  Prefactor     .67784        .23953        .33590E-03    .79266E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.97424
  alpha      = 3.17266
  Normalizat = 1.14923
  Prefactor  = 0.677844
 **********
 **   18 **HESSE 
 **********

 FCN=   5926.403     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9742        3.2597        .45765E-05   -1.5427    
   2  alpha         3.1727        1.1696        .40963E-02    .27242    
   3  Normalizat    1.1492        .19431        .42554E-04   -.88187    
   4  Prefactor     .67784        .23953        .13436E-04   -1.0440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1436e-11
Minuit parameter uncertainties:
  1  3.26001
  2  1.2213
  3  0.194427
  4  0.239895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272680': 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) = 5926.40269836
delta logL = 0.329524797998

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.974e+00  3.260e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  3.173e+00  1.221e+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:  6.778e-01  2.399e-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.149e+00  1.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 197.129 35.792
Photon Index (Free Index): 3.17 +/- 1.22
Photon Flux (Free Index): 2.95e-08 +/- 3.57e-08
Energy Flux (Free Index): 6.29e-06 +/- 6.92e-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/272680/cmap_HighResolution_606096001_606355201_4FGL_J1308.5+3547_daily_bin1415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-05', comment='SUCCESS', energy_flux2='6.29e-06', dlogl='3.30e-01', photon_flux2='2.95e-08', job_status='DONE', time_completed='2021-09-07 00:51:28.075920', photon_index_error2='1.22', photon_index2='3.17', ts='0.62', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='6.28e-08', energy_flux_error2='6.92e-06', EG='1.17', time_epoch_completed='1631001088.08', return_code='0', job_id='272680', GAL2='0.68', EG2='1.15', return_code2='0', photon_flux_error2='3.57e-08', ts2='1.29', photon_index='2.18' WHERE bin_id='1415' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:51:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 272680: <4FGL_J1308.5+3547_daily_bin1415> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1415> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:51 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:36:24 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:36:24 2021
Terminated at Tue Sep  7 00:51:28 2021
Results reported at Tue Sep  7 00:51:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1415 197.129 35.7918 606096001 606355201 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 :                                   616.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            937 sec.

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

