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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin322
RA = 197.129, Dec = 35.7918
tmin = 322790401, tmax = 323049601
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='262440', job_status='RUN', time_executed='2021-09-07 00:06:22.246432', time_epoch_executed='1630998382.25' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262440

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262440/ft1_4FGL_J1308.5+3547_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262440/ft2_4FGL_J1308.5+3547_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262440/ft1_4FGL_J1308.5+3547_daily_bin322.fits outfile=/scratch/kocevski/262440/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin322.fits ra=197.129 dec=35.7918 rad=12.0 tmin=322790401.0 tmax=323049601.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 12.15
user 11.71
sys 0.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262440/ft1_filtered_4FGL_J1308.5+3547_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/262440/ft2_4FGL_J1308.5+3547_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/262440/ltcube_322790401_323049601_4FGL_J1308.5+3547_daily_bin322.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/262440/ft2_4FGL_J1308.5+3547_daily_bin322.fits
.....................!
real 14.52
user 13.90
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262440/ft1_filtered_4FGL_J1308.5+3547_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/262440/ft2_4FGL_J1308.5+3547_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/262440/ltcube_322790401_323049601_4FGL_J1308.5+3547_daily_bin322.fits outfile=/scratch/kocevski/262440/expmap_322790401_323049601_4FGL_J1308.5+3547_daily_bin322.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/262440/ltcube_322790401_323049601_4FGL_J1308.5+3547_daily_bin322.fits
.....................!
real 192.72
user 186.47
sys 5.04

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/262440/ft1_filtered_4FGL_J1308.5+3547_daily_bin322.fits scfile=/scratch/kocevski/262440/ft2_4FGL_J1308.5+3547_daily_bin322.fits outfile=/scratch/kocevski/262440/cmap_322790401_323049601_4FGL_J1308.5+3547_daily_bin322.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.59
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262440/ft1_filtered_4FGL_J1308.5+3547_daily_bin322.fits scfile=/scratch/kocevski/262440/ft2_4FGL_J1308.5+3547_daily_bin322.fits outfile=/scratch/kocevski/262440/cmap_HighResolution_322790401_323049601_4FGL_J1308.5+3547_daily_bin322.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/262440/ft1_filtered_4FGL_J1308.5+3547_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/262440/ft2_4FGL_J1308.5+3547_daily_bin322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262440/Model_4FGL_J1308.5+3547_daily_bin322.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/262440/ft1_filtered_4FGL_J1308.5+3547_daily_bin322.fits.....................!
real 43.25
user 41.72
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89615       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1829       1.0000         .10000E-03   10000.    
     7 'norm      '    3.9034       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.870       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4914       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.3484       1.0000         .10000E-03   10000.    
    13 'norm      '    6.8480       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4963       1.0000         .10000E-03   10000.    
    15 'norm      '    .28742E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22817E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.454       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .33425E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.4742       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    44.307       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0494       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84569       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=   4949.063     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3227 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89434        7.3689        .73620E-06   -.21097E-03
   2  Prefactor     .10000E-03    1.1810       -.73872E-07** at limit **
   3  Prefactor     .10000E-03    4.8597       -.17152E-06** at limit **
   4  Prefactor     .10000E-03    8.0293       -.71982E-07** at limit **
   5  Prefactor     .10000E-03    41.546       -.20964E-05** at limit **
   6  Prefactor     2.1824        3.3908       -.17873E-06    .20261E-04
   7  norm          3.9032        3.8219       -.13354E-06    .13975E-04
   8  Prefactor     .10000E-03    22.980       -.92614E-06** at limit **
   9  Prefactor     24.880        21.391        .12463E-05    .42483E-04
  10  norm          4.4903        5.5537        .88304E-07    .11711E-03
  11  Prefactor     .10000E-03    5.9487       -.39023E-07** at limit **
  12  norm          6.3529        5.2297        .28371E-06    .65179E-04
  13  norm          6.8484        12.054       -.40205E-06    .20066E-04
  14  norm          1.4950        1.9062        .27722E-06    .36180E-03
  15  norm          .10000E-03    4.2692       -.54163E-06** at limit **
  16  Prefactor     .10001E-03    1.6937       -.15865E-06** at limit **
  17  Prefactor     .10000E-03    4.4984       -.21912E-06** at limit **
  18  Prefactor     52.632        59.594       -.12671E-07   -.84908E-07
  19  Prefactor     .10000E-03    73.891       -.36834E-05** at limit **
  20  Prefactor     .10000E-03    24.900        .49933E-06** at limit **
  21  Prefactor     .10000E-03    25.285       -.12800E-07** at limit **
  22  norm          6.4739        2.2742       -.22589E-07    .12150E-04
  23  Prefactor     .10000E-03    4.6429       -.64882E-06** at limit **
  24  norm          44.305        21.038       -.19160E-06   -.31946E-05
  25  Normalizat    1.0497        .17682        .23287E-06    .35079E-04
  26  Prefactor     .84550        .21881        .13497E-05   -.20647E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.894341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.18241
  norm       = 3.90322
  Prefactor  = 0.0001
  Prefactor  = 24.8796
  norm       = 4.49033
  Prefactor  = 0.0001
  norm       = 6.35293
  norm       = 6.84844
  norm       = 1.49503
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 52.6315
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.47386
  Prefactor  = 0.0001
  norm       = 44.3047
  Normalizat = 1.04969
  Prefactor  = 0.8455
 **********
 **   18 **HESSE 
 **********

 FCN=   4949.063     FROM HESSE     STATUS=OK           472 CALLS     3699 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89434        14.617        .35587E-02   -1.5519    
   2  Prefactor     .10000E-03    1.1969        .74683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8837        .15150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    41.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1824        3.3707        .15691E-03   -1.5412    
   7  norm          3.9032        3.8153        .12913E-03   -1.5313    
   8  Prefactor     .10000E-03    23.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.880        21.343        .80324E-04   -1.4710    
  10  norm          4.4903        5.6208        .17906E-03   -1.5284    
  11  Prefactor     .10000E-03    5.9594        .16757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.3529        5.2355        .13973E-03   -1.5204    
  13  norm          6.8484        12.053        .15332E-03   -1.5185    
  14  norm          1.4950        1.7882        .98544E-04   -1.5463    
  15  norm          .10000E-03    19.719        .25804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    4.4653        .29634E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5048        .14572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     52.632        60.987        .55377E-04   -1.4256    
  19  Prefactor     .10000E-03    73.494        .47284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.4739        2.2750        .60814E-04   -1.5199    
  23  Prefactor     .10000E-03    4.7990        .29612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          44.305        21.049        .60230E-04   -1.4376    
  25  Normalizat    1.0497        .20975        .21421E-03   -.91384    
  26  Prefactor     .84550        .25679        .29570E-03   -.98072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59911e-10
Minuit parameter uncertainties:
  1  7.2328
  2  1.36379e-06
  3  3.31295e-06
  4  4.14194e-06
  5  7.39149e-05
  6  3.371
  7  3.81553
  8  1.70364e-05
  9  21.3491
  10  5.62141
  11  9.40672e-06
  12  5.23589
  13  12.0572
  14  1.78831
  15  6.88269e-05
  16  0.000422201
  17  3.76944e-07
  18  61.0599
  19  0.000137101
  20  2.22841e-06
  21  3.20229e-06
  22  2.27502
  23  1.20447e-06
  24  21.0522
  25  0.209911
  26  0.257154
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  8.455e-01  2.572e-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.050e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.37
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.77e-08 +/- 2.28e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 9.42e-06

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

Saving results to:
/scratch/kocevski/262440/likelihoodResults_322790401_323049601_4FGL_J1308.5+3547_daily_bin322.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) = 4948.98271515
delta logL = 0.0798512186275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4948.98209417
delta logL = 0.0804721982804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4621       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8584       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84087       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=   4948.982     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      226 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4595        16.776        .39470E-02    .13872E-02
   2  alpha         1.8590        1.8743        .43011        .20132E-06
   3  Normalizat    1.0571        .17994        .40113E-01   -.12202E-03
   4  Prefactor     .84094        .22263        .67015E-01   -.74849E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.45945
  alpha      = 1.85901
  Normalizat = 1.05707
  Prefactor  = 0.840943
 **********
 **   18 **HESSE 
 **********

 FCN=   4948.982     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4595        5.5423        .73607E-03   -1.5200    
   2  alpha         1.8590        .80178        .19629E-01   -.25929    
   3  Normalizat    1.0571        .20345        .21358E-03   -.91142    
   4  Prefactor     .84094        .25507        .29646E-03   -.98236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61063e-11
Minuit parameter uncertainties:
  1  5.54274
  2  0.817274
  3  0.203595
  4  0.255426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262440': 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) = 4948.98209197
delta logL = 0.080474392631

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  6.459e+00  5.543e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.859e+00  8.173e-01  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:  8.409e-01  2.554e-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.057e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.53
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.86 +/- 0.82
Photon Flux (Free Index): 2.11e-08 +/- 2.40e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.11e-05

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/262440/cmap_HighResolution_322790401_323049601_4FGL_J1308.5+3547_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-05', comment='SUCCESS', photon_flux='2.77e-08', energy_flux2='1.25e-05', photon_flux_error='2.28e-08', dlogl='8.05e-02', energy_flux='1.14e-05', photon_flux2='2.11e-08', job_status='DONE', time_completed='2021-09-07 00:18:41.918666', photon_index_error2='0.82', photon_index2='1.86', ts='3.37', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='8.26e-08', energy_flux_error2='1.11e-05', EG='1.05', time_epoch_completed='1630999121.92', return_code='0', job_id='262440', GAL2='0.84', EG2='1.06', return_code2='0', energy_flux_error='9.42e-06', photon_flux_error2='2.40e-08', ts2='3.53', photon_index='2.18' WHERE bin_id='322' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:18:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 262440: <4FGL_J1308.5+3547_daily_bin322> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin322> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:05:39 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:06:06 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:06:06 2021
Terminated at Tue Sep  7 00:18:42 2021
Results reported at Tue Sep  7 00:18:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin322 197.129 35.7918 322790401 323049601 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 :                                   729.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            783 sec.

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

