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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin855
RA = 197.129, Dec = 35.7918
tmin = 460944001, tmax = 461203201
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='266769', job_status='RUN', time_executed='2021-09-07 00:21:24.959975', time_epoch_executed='1630999284.96' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266769

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266769/ft1_4FGL_J1308.5+3547_daily_bin855.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266769/ft2_4FGL_J1308.5+3547_daily_bin855.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266769/ft1_4FGL_J1308.5+3547_daily_bin855.fits outfile=/scratch/kocevski/266769/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin855.fits ra=197.129 dec=35.7918 rad=12.0 tmin=460944001.0 tmax=461203201.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.44
user 3.21
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266769/ft1_filtered_4FGL_J1308.5+3547_daily_bin855.fits evtable="EVENTS" scfile=/scratch/kocevski/266769/ft2_4FGL_J1308.5+3547_daily_bin855.fits sctable="SC_DATA" expcube=/scratch/kocevski/266769/ltcube_460944001_461203201_4FGL_J1308.5+3547_daily_bin855.fits outfile=/scratch/kocevski/266769/expmap_460944001_461203201_4FGL_J1308.5+3547_daily_bin855.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/266769/ltcube_460944001_461203201_4FGL_J1308.5+3547_daily_bin855.fits
.....................!
real 192.74
user 187.64
sys 4.56

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/266769/ft1_filtered_4FGL_J1308.5+3547_daily_bin855.fits scfile=/scratch/kocevski/266769/ft2_4FGL_J1308.5+3547_daily_bin855.fits outfile=/scratch/kocevski/266769/cmap_460944001_461203201_4FGL_J1308.5+3547_daily_bin855.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266769/ft1_filtered_4FGL_J1308.5+3547_daily_bin855.fits scfile=/scratch/kocevski/266769/ft2_4FGL_J1308.5+3547_daily_bin855.fits outfile=/scratch/kocevski/266769/cmap_HighResolution_460944001_461203201_4FGL_J1308.5+3547_daily_bin855.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3913       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.942       1.0000         .10000E-03   10000.    
     5 'Prefactor '    133.92       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    105.38       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22449E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    8.6072       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.417       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .42544E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    26.798       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2816       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3777       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3515       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.1222       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3923       1.0000         .10000E-03   10000.    
    24 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1820       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64404       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=   5660.644     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     2702 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.798        11.190        .21448E-02   -.22915E-03
   2  Prefactor     .10000E-03    1.2763        .90712E-02** at limit **
   3  Prefactor     3.3914        8.9729        .54926E-02   -.52358E-03
   4  Prefactor     21.940        17.753        .21377E-02   -.28420E-04
   5  Prefactor     133.92        75.426        .86998E-03    .82897E-03
   6  Prefactor     .10000E-03    7.0170        .90712E-02** at limit **
   7  norm          .10000E-03    1.9457        .90712E-02** at limit **
   8  Prefactor     105.38        55.207        .97933E-03   -.69769E-03
   9  Prefactor     .10017E-03    15.057        .10061    ** at limit **
  10  norm          8.6075        4.5176        .34158E-02    .75035E-04
  11  Prefactor     14.413        13.475        .26372E-02   -.31191E-03
  12  norm          .10000E-03    1.3560        .90712E-02** at limit **
  13  norm          .10000E-03    5.4264        .90712E-02** at limit **
  14  norm          .10004E-03    2.5178        .74150E-01** at limit **
  15  norm          26.806        10.401        .19347E-02   -.32433E-02
  16  Prefactor     1.2811        2.6784        .97997E-02    .89889E-03
  17  Prefactor     3.3785        9.9328        .55042E-02   -.10069E-02
  18  Prefactor     .10001E-03    59.752        .90712E-02** at limit **
  19  Prefactor     9.3597        13.417        .32763E-02    .43353E-03
  20  Prefactor     .10000E-03    41.418        .90712E-02** at limit **
  21  Prefactor     .10000E-03    23.637        .90712E-02** at limit **
  22  norm          4.1222        1.8270        .49636E-02    .59367E-04
  23  Prefactor     1.3926        3.3018        .92048E-02    .75322E-03
  24  norm          .10000E-03    11.678        .90712E-02** at limit **
  25  Normalizat    1.1820        .17707        .35348E-01   -.17495E-04
  26  Prefactor     .64405        .21691        .77207E-01    .10685E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7975
  Prefactor  = 0.0001
  Prefactor  = 3.39143
  Prefactor  = 21.9402
  Prefactor  = 133.918
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 105.382
  Prefactor  = 0.000100167
  norm       = 8.60747
  Prefactor  = 14.4133
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.00010004
  norm       = 26.8063
  Prefactor  = 1.28111
  Prefactor  = 3.37851
  Prefactor  = 0.000100014
  Prefactor  = 9.35967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.12216
  Prefactor  = 1.39256
  norm       = 0.0001
  Normalizat = 1.182
  Prefactor  = 0.644046
 **********
 **   18 **HESSE 
 **********

 FCN=   5660.644     FROM HESSE     STATUS=OK           466 CALLS     3168 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.798        11.186        .85792E-04   -1.4774    
   2  Prefactor     .10000E-03    1.3166        .16598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3914        8.9582        .21970E-03   -1.5340    
   4  Prefactor     21.940        17.736        .85509E-04   -1.4771    
   5  Prefactor     133.92        75.284        .34799E-04   -1.3388    
   6  Prefactor     .10000E-03    7.2563        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9589        .10237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     105.38        55.262        .39173E-04   -1.3651    
   9  Prefactor     .10017E-03    76.645        .55126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.6075        4.5191        .11234E-03   -1.5121    
  11  Prefactor     14.413        13.422        .10549E-03   -1.4948    
  12  norm          .10000E-03    1.3575        .85531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.4303        .17117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10004E-03    12.781        .31737E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          26.806        12.196        .77387E-04   -1.4672    
  16  Prefactor     1.2811        2.6082        .16091E-03   -1.5482    
  17  Prefactor     3.3785        9.8019        .22017E-03   -1.5340    
  18  Prefactor     .10001E-03    59.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3597        13.406        .13105E-03   -1.5096    
  20  Prefactor     .10000E-03    41.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.1222        1.8269        .65316E-04   -1.5302    
  23  Prefactor     1.3926        3.2684        .20088E-03   -1.5472    
  24  norm          .10000E-03    11.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1820        .20316        .20802E-03   -.87161    
  26  Prefactor     .64405        .24647        .34183E-03   -1.0576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84518e-08
Minuit parameter uncertainties:
  1  11.1868
  2  1.04368e-06
  3  8.96173
  4  17.7401
  5  75.3378
  6  3.98509e-06
  7  3.06679e-06
  8  55.2886
  9  0.0071613
  10  4.51931
  11  13.425
  12  1.60886e-06
  13  4.50116e-06
  14  0.00143425
  15  12.1973
  16  2.60839
  17  9.80658
  18  0.00185749
  19  13.4103
  20  4.06504e-05
  21  1.14634e-05
  22  1.82692
  23  3.2688
  24  4.60731e-06
  25  0.2033
  26  0.246883
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  1.609e-06  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.440e-01  2.469e-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.182e+00  2.033e-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: 3.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266769/likelihoodResults_460944001_461203201_4FGL_J1308.5+3547_daily_bin855.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) = 5660.64756433
delta logL = -0.00323174164896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5660.64433255
delta logL = 3.46863089362e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1758       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64400       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=   5660.644     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      231 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    106.85        .85687E-02** at limit **
   2  alpha         1.8287        4.0299        .16639       -.72425E-08
   3  Normalizat    1.1820        .38709E-01    .20802E-03    .12030E-03
   4  Prefactor     .64405        .48459E-01    .34183E-03    .78755E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.82871
  Normalizat = 1.182
  Prefactor  = 0.644046
 **********
 **   18 **HESSE 
 **********

 FCN=   5660.644     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4291        .87776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8287        2.5746        .66556E-02   -.27185    
   3  Normalizat    1.1820        .19522        .41604E-04   -.87161    
   4  Prefactor     .64405        .24416        .13673E-04   -1.0576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38961e-11
Minuit parameter uncertainties:
  1  9.8704e-07
  2  181.425
  3  0.195344
  4  0.244564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266769': 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) = 5660.64433076
delta logL = 1.82763778867e-06

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  9.870e-07  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.829e+00  1.814e+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:  6.440e-01  2.446e-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.182e+00  1.953e-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/266769/cmap_HighResolution_460944001_461203201_4FGL_J1308.5+3547_daily_bin855.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-05', job_status='DONE', photon_flux_upper_limit='3.23e-08', time_completed='2021-09-07 00:33:14.614687', job_id='266769', GAL2='0.64', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630999994.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='1.83e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='855' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:33:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 266769: <4FGL_J1308.5+3547_daily_bin855> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin855 197.129 35.7918 460944001 461203201 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 :                                   704.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            746 sec.

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

