/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 3 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin716
RA = 197.129, Dec = 35.7918
tmin = 424915201, tmax = 425174401
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='266543', job_status='RUN', time_executed='2021-09-07 00:20:50.215287', time_epoch_executed='1630999250.22' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266543

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266543/ft1_4FGL_J1308.5+3547_daily_bin716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266543/ft2_4FGL_J1308.5+3547_daily_bin716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266543/ft1_4FGL_J1308.5+3547_daily_bin716.fits outfile=/scratch/kocevski/266543/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin716.fits ra=197.129 dec=35.7918 rad=12.0 tmin=424915201.0 tmax=425174401.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.43
user 3.18
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266543/ft1_filtered_4FGL_J1308.5+3547_daily_bin716.fits" evtable="EVENTS" scfile=/scratch/kocevski/266543/ft2_4FGL_J1308.5+3547_daily_bin716.fits sctable="SC_DATA" outfile=/scratch/kocevski/266543/ltcube_424915201_425174401_4FGL_J1308.5+3547_daily_bin716.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/266543/ft2_4FGL_J1308.5+3547_daily_bin716.fits
.....................!
real 16.87
user 16.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266543/ft1_filtered_4FGL_J1308.5+3547_daily_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/266543/ft2_4FGL_J1308.5+3547_daily_bin716.fits sctable="SC_DATA" expcube=/scratch/kocevski/266543/ltcube_424915201_425174401_4FGL_J1308.5+3547_daily_bin716.fits outfile=/scratch/kocevski/266543/expmap_424915201_425174401_4FGL_J1308.5+3547_daily_bin716.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/266543/ltcube_424915201_425174401_4FGL_J1308.5+3547_daily_bin716.fits
.....................!
real 192.62
user 187.36
sys 4.66

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/266543/ft1_filtered_4FGL_J1308.5+3547_daily_bin716.fits scfile=/scratch/kocevski/266543/ft2_4FGL_J1308.5+3547_daily_bin716.fits outfile=/scratch/kocevski/266543/cmap_424915201_425174401_4FGL_J1308.5+3547_daily_bin716.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266543/ft1_filtered_4FGL_J1308.5+3547_daily_bin716.fits scfile=/scratch/kocevski/266543/ft2_4FGL_J1308.5+3547_daily_bin716.fits outfile=/scratch/kocevski/266543/cmap_HighResolution_424915201_425174401_4FGL_J1308.5+3547_daily_bin716.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1773       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0157       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.347       1.0000         .10000E-03   10000.    
     8 'Prefactor '    77.457       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4751       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6268       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5725       1.0000         .10000E-03   10000.    
    12 'norm      '    .33797E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.2959       1.0000         .10000E-03   10000.    
    14 'norm      '    12.876       1.0000         .10000E-03   10000.    
    15 'norm      '    10.167       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0490       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6211       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9261       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.500       1.0000         .10000E-03   10000.    
    22 'norm      '    4.4202       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6909       1.0000         .10000E-03   10000.    
    24 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81875       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0690       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=   6138.587     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3207 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1766        6.6024        .42336E-05   -.52510E-05
   2  Prefactor     1.0152        1.8897        .15116E-06    .23865E-03
   3  Prefactor     .10000E-03    10.173        .26977E-06** at limit **
   4  Prefactor     .10000E-03    17.215        .21611E-06** at limit **
   5  Prefactor     .10000E-03    53.126        .63357E-07** at limit **
   6  Prefactor     .10000E-03    4.4250        .19625E-06** at limit **
   7  norm          11.346        6.4518        .18891E-06   -.10534E-03
   8  Prefactor     77.465        58.455       -.34533E-06   -.18481E-04
   9  Prefactor     7.4662        26.375        .10393E-06   -.28085E-04
  10  norm          2.6266        3.3926        .18175E-06   -.49657E-05
  11  Prefactor     4.5725        15.426        .25104E-05   -.12431E-03
  12  norm          .10000E-03    2.5820        .38619E-06** at limit **
  13  norm          8.2950        12.365        .70982E-06   -.39856E-05
  14  norm          12.882        8.0186       -.28078E-06   -.15563E-03
  15  norm          10.158        12.570        .25459E-06   -.57774E-04
  16  Prefactor     2.0490        2.2619       -.13956E-06   -.18445E-03
  17  Prefactor     4.6210        10.514        .21648E-05   -.28743E-04
  18  Prefactor     .10000E-03    89.409       -.52660E-06** at limit **
  19  Prefactor     2.9262        13.607        .52391E-05   -.68169E-05
  20  Prefactor     .10000E-03    33.411        .52590E-06** at limit **
  21  Prefactor     34.456        65.011        .60527E-05   -.44024E-05
  22  norm          4.4205        1.7692        .17362E-07   -.17884E-03
  23  Prefactor     3.6917        4.0323        .44808E-07   -.44919E-04
  24  norm          .10000E-03    5.6780       -.26010E-06** at limit **
  25  Normalizat    .81843        .16551        .47171E-06   -.27074E-04
  26  Prefactor     1.0694        .20270       -.29561E-05   -.15062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.17655
  Prefactor  = 1.01522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3456
  Prefactor  = 77.4651
  Prefactor  = 7.46615
  norm       = 2.62655
  Prefactor  = 4.57249
  norm       = 0.000100004
  norm       = 8.29496
  norm       = 12.8815
  norm       = 10.1577
  Prefactor  = 2.04902
  Prefactor  = 4.62101
  Prefactor  = 0.0001
  Prefactor  = 2.92625
  Prefactor  = 0.0001
  Prefactor  = 34.4559
  norm       = 4.42054
  Prefactor  = 3.69169
  norm       = 0.0001
  Normalizat = 0.818428
  Prefactor  = 1.06942
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.587     FROM HESSE     STATUS=OK           468 CALLS     3675 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1766        6.6015        .11367E-02   -1.5351    
   2  Prefactor     1.0152        1.5474        .14299E-02   -1.5506    
   3  Prefactor     .10000E-03    10.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    53.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.4840        .16068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.346        6.4214        .11893E-03   -1.5034    
   8  Prefactor     77.465        58.552        .45628E-04   -1.3945    
   9  Prefactor     7.4662        26.164        .14669E-03   -1.5161    
  10  norm          2.6266        3.3823        .15876E-03   -1.5384    
  11  Prefactor     4.5725        14.672        .94124E-03   -1.5280    
  12  norm          .10000E-03    13.500        .22838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.2950        12.360        .69594E-03   -1.5132    
  14  norm          12.882        8.2209        .10472E-03   -1.4990    
  15  norm          10.158        12.910        .12566E-03   -1.5070    
  16  Prefactor     2.0490        2.2345        .11602E-03   -1.5422    
  17  Prefactor     4.6210        10.477        .93615E-03   -1.5278    
  18  Prefactor     .10000E-03    90.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9262        13.592        .11874E-02   -1.5366    
  20  Prefactor     .10000E-03    33.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     34.456        65.157        .68225E-04   -1.4533    
  22  norm          4.4205        1.7701        .63563E-04   -1.5287    
  23  Prefactor     3.6917        4.0374        .15602E-03   -1.5324    
  24  norm          .10000E-03    5.6911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .81843        .19956        .23991E-03   -.99389    
  26  Prefactor     1.0694        .24075        .27179E-03   -.90450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21376e-10
Minuit parameter uncertainties:
  1  6.60296
  2  1.54746
  3  4.56244e-05
  4  4.93574e-05
  5  3.42602e-05
  6  1.97717e-05
  7  6.42183
  8  58.5954
  9  26.2042
  10  3.38258
  11  14.6836
  12  0.00043991
  13  12.3637
  14  8.22159
  15  12.9136
  16  2.23456
  17  10.4808
  18  8.32056e-05
  19  12.618
  20  0.000140593
  21  65.2919
  22  1.77007
  23  4.03766
  24  3.46802e-05
  25  0.199742
  26  0.240999
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  4.399e-04  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.069e+00  2.410e-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.184e-01  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/266543/likelihoodResults_424915201_425174401_4FGL_J1308.5+3547_daily_bin716.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): 102
logL (Free Index) = 6138.58784182
delta logL = -0.000352770260179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6138.58748947
delta logL = -4.17749106418e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11361E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1465       1.0000          .0000       5.0000    
     3 'Normalizat'    .81838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0695       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6138.587     FROM MIGRAD    STATUS=FAILED        86 CALLS      244 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10136E-03    6482.8        .27530E-02** at limit **
   2  alpha         1.9888        3.9553        .16673E-01    .18805E-05
   3  Normalizat    .81843        .91509E-01    .23990E-03   -.37658E-03
   4  Prefactor     1.0694        .11902        .27180E-03   -.46704E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6138.587     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      405 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10136E-03    6482.8        .59646E-03** at limit **
   2  alpha         1.9888        3.9553        .34611E-05    .18805E-05
   3  Normalizat    .81843        .91509E-01    .13012E-06   -.37658E-03
   4  Prefactor     1.0694        .11902        .13061E-06   -.46704E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6138.587     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      439 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.438        .55061E-03** at limit **
   2  alpha         1.9599        3.9203        .33347E-02   -.68184E-08
   3  Normalizat    .81843        .18395        .47981E-04    .18102E-04
   4  Prefactor     1.0694        .23626        .54359E-04   -.17359E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.95986
  Normalizat = 0.818427
  Prefactor  = 1.06942
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.587     FROM HESSE     STATUS=OK            23 CALLS      462 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.443        .11012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9599        3.7190        .66694E-03   -.21777    
   3  Normalizat    .81843        .18398        .95962E-05   -.99389    
   4  Prefactor     1.0694        .23629        .10872E-04   -.90450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46987e-12
Minuit parameter uncertainties:
  1  8.67941e-06
  2  193.285
  3  0.184116
  4  0.236523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266543': 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) = 6138.58748843
delta logL = 6.26240762358e-07

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  8.679e-06  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.960e+00  1.933e+02  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.069e+00  2.365e-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.184e-01  1.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.129 35.792

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/266543/cmap_HighResolution_424915201_425174401_4FGL_J1308.5+3547_daily_bin716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-05', job_status='DONE', photon_flux_upper_limit='4.52e-08', time_completed='2021-09-07 00:33:59.072417', job_id='266543', GAL2='1.07', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1631000039.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='6.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='716' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:33:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 266543: <4FGL_J1308.5+3547_daily_bin716> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin716> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 00:20:29 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:20:35 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:20:35 2021
Terminated at Tue Sep  7 00:33:59 2021
Results reported at Tue Sep  7 00:33:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin716 197.129 35.7918 424915201 425174401 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 :                                   786.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            810 sec.

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

