/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 0 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 = 7603
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin142
RA = 197.129, Dec = 35.7918
tmin = 276134401, tmax = 276393601
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='261090', job_status='RUN', time_executed='2021-09-07 00:00:37.088835', time_epoch_executed='1630998037.09' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261090

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261090/ft1_4FGL_J1308.5+3547_daily_bin142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261090/ft2_4FGL_J1308.5+3547_daily_bin142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261090/ft1_4FGL_J1308.5+3547_daily_bin142.fits outfile=/scratch/kocevski/261090/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin142.fits ra=197.129 dec=35.7918 rad=12.0 tmin=276134401.0 tmax=276393601.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 5.13
user 4.65
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261090/ft1_filtered_4FGL_J1308.5+3547_daily_bin142.fits evtable="EVENTS" scfile=/scratch/kocevski/261090/ft2_4FGL_J1308.5+3547_daily_bin142.fits sctable="SC_DATA" expcube=/scratch/kocevski/261090/ltcube_276134401_276393601_4FGL_J1308.5+3547_daily_bin142.fits outfile=/scratch/kocevski/261090/expmap_276134401_276393601_4FGL_J1308.5+3547_daily_bin142.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/261090/ltcube_276134401_276393601_4FGL_J1308.5+3547_daily_bin142.fits
.....................!
real 192.52
user 186.55
sys 5.40

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/261090/ft1_filtered_4FGL_J1308.5+3547_daily_bin142.fits scfile=/scratch/kocevski/261090/ft2_4FGL_J1308.5+3547_daily_bin142.fits outfile=/scratch/kocevski/261090/cmap_276134401_276393601_4FGL_J1308.5+3547_daily_bin142.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261090/ft1_filtered_4FGL_J1308.5+3547_daily_bin142.fits scfile=/scratch/kocevski/261090/ft2_4FGL_J1308.5+3547_daily_bin142.fits outfile=/scratch/kocevski/261090/cmap_HighResolution_276134401_276393601_4FGL_J1308.5+3547_daily_bin142.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=197.129 yref=35.7918 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.752       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9381       1.0000         .10000E-03   10000.    
     7 'norm      '    .62630       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.968       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9913       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.4225       1.0000         .10000E-03   10000.    
    14 'norm      '    .10856E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4029       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11477E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9397       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.872       1.0000         .10000E-03   10000.    
    22 'norm      '    11.967       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99433       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0648       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=   6508.651     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3105 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0909        .41352E-06** at limit **
   2  Prefactor     .10000E-03    .71690        .20397E-07** at limit **
   3  Prefactor     17.750        9.5545        .23497E-08    .93115E-05
   4  Prefactor     .10000E-03    6.2153       -.78055E-07** at limit **
   5  Prefactor     .10000E-03    25.656       -.14094E-06** at limit **
   6  Prefactor     2.9381        3.0418       -.71181E-07    .15769E-04
   7  norm          .62494        3.2382        .39419E-06    .10343E-03
   8  Prefactor     .10000E-03    12.425        .40797E-07** at limit **
   9  Prefactor     24.982        22.496        .51242E-06    .11365E-03
  10  norm          2.9909        4.3970        .39832E-06    .81877E-04
  11  Prefactor     .10000E-03    4.0492       -.12222E-06** at limit **
  12  norm          .10000E-03    2.3641       -.30876E-06** at limit **
  13  norm          5.4230        8.5409        .12337E-06    .47938E-05
  14  norm          .10000E-03    2.0035       -.12365E-05** at limit **
  15  norm          .10000E-03    2.4077       -.98069E-07** at limit **
  16  Prefactor     1.4063        3.0686        .71325E-06    .51833E-03
  17  Prefactor     .10000E-03    4.7963       -.93819E-07** at limit **
  18  Prefactor     .10000E-03    337.14       -.80068E-06** at limit **
  19  Prefactor     .10000E-03    21.521       -.46576E-06** at limit **
  20  Prefactor     1.9412        68.779        .16489E-05    .97116E-05
  21  Prefactor     26.845        58.807       -.10355E-05   -.14241E-04
  22  norm          11.966        2.5721       -.14702E-07    .83196E-05
  23  Prefactor     .10000E-03    3.3996        .12460E-06** at limit **
  24  norm          .10000E-03    14.190        .34586E-07** at limit **
  25  Normalizat    .99430        .17426        .18366E-05    .15183E-03
  26  Prefactor     1.0649        .21133       -.22028E-05    .21811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.93807
  norm       = 0.624943
  Prefactor  = 0.0001
  Prefactor  = 24.9822
  norm       = 2.99086
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.42304
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.40632
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 1.94119
  Prefactor  = 26.8447
  norm       = 11.9662
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.994302
  Prefactor  = 1.06488
 **********
 **   18 **HESSE 
 **********

 FCN=   6508.651     FROM HESSE     STATUS=OK           452 CALLS     3557 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2696        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .72228        .66703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.750        9.5535        .95061E-04   -1.4865    
   4  Prefactor     .10000E-03    6.2215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9381        3.0440        .13932E-03   -1.5365    
   7  norm          .62494        2.9804        .26209E-03   -1.5550    
   8  Prefactor     .10000E-03    12.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.982        21.942        .80168E-04   -1.4708    
  10  norm          2.9909        4.3939        .19736E-03   -1.5362    
  11  Prefactor     .10000E-03    4.0589        .15859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4121        .12150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.4230        8.5321        .17256E-03   -1.5242    
  14  norm          .10000E-03    3.0015        .19799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4236        .12209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4063        3.1439        .19737E-03   -1.5471    
  17  Prefactor     .10000E-03    4.8067        .17254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    345.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.9412        69.716        .29811E-03   -1.5429    
  21  Prefactor     26.845        59.003        .77281E-04   -1.4671    
  22  norm          11.966        2.5728        .57804E-04   -1.5016    
  23  Prefactor     .10000E-03    3.5251        .29010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    14.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .99430        .19642        .22689E-03   -.93222    
  26  Prefactor     1.0649        .23642        .27993E-03   -.90597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05726e-10
Minuit parameter uncertainties:
  1  2.06233e-05
  2  1.50718e-07
  3  9.55435
  4  1.68854e-05
  5  3.7939e-05
  6  3.04413
  7  2.72951
  8  4.24443e-07
  9  21.9491
  10  4.39434
  11  6.30599e-06
  12  1.07155e-05
  13  8.53399
  14  6.46538e-05
  15  3.29047e-06
  16  3.14422
  17  9.62188e-06
  18  0.00230568
  19  4.98763e-05
  20  23.2953
  21  59.1315
  22  2.57287
  23  2.09852e-06
  24  9.31556e-08
  25  0.19656
  26  0.236651
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  1.072e-05  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.065e+00  2.367e-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.943e-01  1.966e-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.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261090/likelihoodResults_276134401_276393601_4FGL_J1308.5+3547_daily_bin142.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) = 6508.65276832
delta logL = -0.0019722149591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 6508.63152533
delta logL = 0.0192707801252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74274E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3616       1.0000          .0000       5.0000    
     3 'Normalizat'    .98805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0677       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6508.631     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      477 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73571E-01    80.082        .76544E-03    .46108E-03
   2  alpha         4.3724        4.5806        .14072        .83385E-05
   3  Normalizat    .98497        .82502E-01    .22784E-03    .85324E-05
   4  Prefactor     1.0717        .10192        .27915E-03    .87561E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0735712
  alpha      = 4.37237
  Normalizat = 0.984971
  Prefactor  = 1.07166
 **********
 **   18 **HESSE 
 **********

 FCN=   6508.631     FROM HESSE     STATUS=OK            27 CALLS      504 TOTAL
                     EDM=   .51E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73571E-01    1.3719        .30617E-04   -1.5654    
   2  alpha         4.3724        4.6442        .56287E-02    .84648    
   3  Normalizat    .98497        .18886        .91137E-05   -.93536    
   4  Prefactor     1.0717        .23610        .11166E-04   -.90378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12303e-13
Minuit parameter uncertainties:
  1  0.634972
  2  4.43472
  3  0.188992
  4  0.236332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261090': 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) = 6508.63137677
delta logL = 0.0194193308052

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  7.357e-02  6.350e-01  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  4.372e+00  4.435e+00  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.072e+00  2.363e-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.850e-01  1.890e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/261090/cmap_HighResolution_276134401_276393601_4FGL_J1308.5+3547_daily_bin142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-05', job_status='DONE', photon_flux_upper_limit='3.85e-08', time_completed='2021-09-07 00:14:22.064033', job_id='261090', GAL2='1.07', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1630998862.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.94e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='142' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:14:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 261090: <4FGL_J1308.5+3547_daily_bin142> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin142> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:00:25 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:00:28 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:00:28 2021
Terminated at Tue Sep  7 00:14:22 2021
Results reported at Tue Sep  7 00:14:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin142 197.129 35.7918 276134401 276393601 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 :                                   820.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            837 sec.

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

