/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 8 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7475
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin729
RA = 197.129, Dec = 35.7918
tmin = 428284801, tmax = 428544001
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='266565', job_status='RUN', time_executed='2021-09-07 00:20:56.459372', time_epoch_executed='1630999256.46' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266565

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266565/ft1_4FGL_J1308.5+3547_daily_bin729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266565/ft2_4FGL_J1308.5+3547_daily_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266565/ft1_4FGL_J1308.5+3547_daily_bin729.fits outfile=/scratch/kocevski/266565/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin729.fits ra=197.129 dec=35.7918 rad=12.0 tmin=428284801.0 tmax=428544001.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 6.11
user 5.80
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266565/ft1_filtered_4FGL_J1308.5+3547_daily_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/266565/ft2_4FGL_J1308.5+3547_daily_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/266565/ltcube_428284801_428544001_4FGL_J1308.5+3547_daily_bin729.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/266565/ft2_4FGL_J1308.5+3547_daily_bin729.fits
.....................!
real 15.56
user 15.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266565/ft1_filtered_4FGL_J1308.5+3547_daily_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/266565/ft2_4FGL_J1308.5+3547_daily_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/266565/ltcube_428284801_428544001_4FGL_J1308.5+3547_daily_bin729.fits outfile=/scratch/kocevski/266565/expmap_428284801_428544001_4FGL_J1308.5+3547_daily_bin729.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/266565/ltcube_428284801_428544001_4FGL_J1308.5+3547_daily_bin729.fits
.....................!
real 192.86
user 186.77
sys 5.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/266565/ft1_filtered_4FGL_J1308.5+3547_daily_bin729.fits scfile=/scratch/kocevski/266565/ft2_4FGL_J1308.5+3547_daily_bin729.fits outfile=/scratch/kocevski/266565/cmap_428284801_428544001_4FGL_J1308.5+3547_daily_bin729.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.55
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0946       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0545       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6115       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10235E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.574       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.815       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4625       1.0000         .10000E-03   10000.    
    15 'norm      '    47.249       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3988       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5830       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6157       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .73621E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.5924       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3557       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76879       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0307       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=   3770.420     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3096 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0954        7.3081        .71878E-05   -.25493E-03
   2  Prefactor     .10000E-03    .94320        .69427E-08** at limit **
   3  Prefactor     20.415        13.614        .12305E-06   -.26581E-05
   4  Prefactor     .10000E-03    8.6358        .13815E-07** at limit **
   5  Prefactor     .10000E-03    26.227       -.23343E-07** at limit **
   6  Prefactor     2.0544        5.6837        .45540E-06   -.21055E-04
   7  norm          2.6122        3.7791       -.20446E-06   -.59467E-05
   8  Prefactor     .10000E-03    16.445        .79338E-06** at limit **
   9  Prefactor     .10000E-03    15.385       -.79303E-06** at limit **
  10  norm          .10000E-03    3.0252       -.30436E-07** at limit **
  11  Prefactor     27.576        21.172       -.67258E-07   -.38065E-04
  12  norm          .10000E-03    2.6866       -.16440E-07** at limit **
  13  norm          11.816        11.760        .45405E-07   -.80261E-05
  14  norm          1.4588        8.9345        .22077E-05    .11617E-04
  15  norm          47.257        18.683       -.41822E-06   -.28515E-03
  16  Prefactor     4.3986        3.4805        .32774E-07   -.62225E-04
  17  Prefactor     .10000E-03    5.0994        .19950E-07** at limit **
  18  Prefactor     .10000E-03    73.143       -.13724E-05** at limit **
  19  Prefactor     3.6264        59.781       -.13891E-04   -.83078E-04
  20  Prefactor     5.6100        64.168        .14364E-04    .71828E-04
  21  Prefactor     .10005E-03    308.25        .20861E-04** at limit **
  22  norm          3.5922        2.4516        .20183E-07   -.18108E-03
  23  Prefactor     4.3554        6.0511        .68799E-06    .55161E-04
  24  norm          .10000E-03    9.9173       -.77294E-07** at limit **
  25  Normalizat    .76862        .20017       -.11921E-05   -.14807E-03
  26  Prefactor     1.0308        .24717       -.64927E-06   -.11136E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.09541
  Prefactor  = 0.0001
  Prefactor  = 20.4148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.05443
  norm       = 2.61222
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.5762
  norm       = 0.0001
  norm       = 11.8157
  norm       = 1.45875
  norm       = 47.2571
  Prefactor  = 4.39857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.6264
  Prefactor  = 5.61003
  Prefactor  = 0.000100045
  norm       = 3.5922
  Prefactor  = 4.35543
  norm       = 0.0001
  Normalizat = 0.768621
  Prefactor  = 1.03075
 **********
 **   18 **HESSE 
 **********

 FCN=   3770.420     FROM HESSE     STATUS=OK           460 CALLS     3556 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0954        7.3057        .14260E-02   -1.5418    
   2  Prefactor     .10000E-03    .95178        .58237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.415        13.614        .88653E-04   -1.4804    
   4  Prefactor     .10000E-03    8.6408        .17625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0544        5.6047        .22065E-03   -1.5421    
   7  norm          2.6122        3.7527        .13787E-03   -1.5385    
   8  Prefactor     .10000E-03    16.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.1731        .20856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.576        20.977        .76292E-04   -1.4657    
  12  norm          .10000E-03    2.6976        .98254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.816        11.762        .11655E-03   -1.5020    
  14  norm          1.4588        7.7446        .24899E-03   -1.5466    
  15  norm          47.257        17.384        .58333E-04   -1.4332    
  16  Prefactor     4.3986        3.4726        .97337E-04   -1.5288    
  17  Prefactor     .10000E-03    5.1023        .13541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    73.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6264        59.007        .21349E-03   -1.5327    
  20  Prefactor     5.6100        63.840        .16952E-03   -1.5234    
  21  Prefactor     .10005E-03    300.03        .20951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.5922        2.4546        .76209E-04   -1.5329    
  23  Prefactor     4.3554        6.0378        .16708E-03   -1.5291    
  24  norm          .10000E-03    9.9327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .76862        .24208        .23492E-03   -1.0124    
  26  Prefactor     1.0308        .29933        .26289E-03   -.91711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38475e-10
Minuit parameter uncertainties:
  1  7.30883
  2  1.01251e-07
  3  13.6157
  4  2.66346e-06
  5  3.62311e-06
  6  5.60611
  7  3.75304
  8  5.08908e-05
  9  3.60576e-05
  10  9.17939e-07
  11  20.9827
  12  2.19816e-07
  13  11.7647
  14  6.72346
  15  17.3863
  16  3.47273
  17  4.1203e-06
  18  0.000215012
  19  29.2901
  20  37.9001
  21  0.00742335
  22  2.45462
  23  6.03863
  24  3.93105e-06
  25  0.242421
  26  0.299811
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  2.198e-07  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.031e+00  2.998e-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:  7.686e-01  2.424e-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: 5.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266565/likelihoodResults_428284801_428544001_4FGL_J1308.5+3547_daily_bin729.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) = 3770.42166351
delta logL = -0.00173568702849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3770.41992791
delta logL = -8.55802682054e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10199E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1624       1.0000          .0000       5.0000    
     3 'Normalizat'    .76866       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0307       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=   3770.420     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      242 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    191.76        .99831E-02** at limit **
   2  alpha         1.5069        3.9148        .16654       -.22868E-08
   3  Normalizat    .76862        .35573E-01    .23492E-03   -.57927E-04
   4  Prefactor     1.0308        .45744E-01    .26289E-03   -.72154E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.50694
  Normalizat = 0.768622
  Prefactor  = 1.03075
 **********
 **   18 **HESSE 
 **********

 FCN=   3770.420     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7400        .11519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5069        4.2329        .66617E-02   -.40849    
   3  Normalizat    .76862        .22933        .93968E-05   -1.0124    
   4  Prefactor     1.0308        .29469        .10516E-04   -.91711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15847e-11
Minuit parameter uncertainties:
  1  1.8754e-06
  2  197.616
  3  0.22962
  4  0.295153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266565': 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) = 3770.41992268
delta logL = 5.14278690389e-06

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  1.875e-06  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.507e+00  1.976e+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.031e+00  2.952e-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:  7.686e-01  2.296e-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/266565/cmap_HighResolution_428284801_428544001_4FGL_J1308.5+3547_daily_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-05', job_status='DONE', photon_flux_upper_limit='5.39e-08', time_completed='2021-09-07 00:31:05.096151', job_id='266565', GAL2='1.03', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630999865.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='5.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='729' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:31:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 266565: <4FGL_J1308.5+3547_daily_bin729> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin729 197.129 35.7918 428284801 428544001 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 :                                   606.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             380.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            634 sec.

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

