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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1313
RA = 197.129, Dec = 35.7918
tmin = 579657601, tmax = 579916801
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='272535', job_status='RUN', time_executed='2021-09-07 00:36:22.636873', time_epoch_executed='1631000182.64' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272535

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272535/ft1_4FGL_J1308.5+3547_daily_bin1313.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272535/ft2_4FGL_J1308.5+3547_daily_bin1313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272535/ft1_4FGL_J1308.5+3547_daily_bin1313.fits outfile=/scratch/kocevski/272535/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1313.fits ra=197.129 dec=35.7918 rad=12.0 tmin=579657601.0 tmax=579916801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.43
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272535/ft1_filtered_4FGL_J1308.5+3547_daily_bin1313.fits" evtable="EVENTS" scfile=/scratch/kocevski/272535/ft2_4FGL_J1308.5+3547_daily_bin1313.fits sctable="SC_DATA" outfile=/scratch/kocevski/272535/ltcube_579657601_579916801_4FGL_J1308.5+3547_daily_bin1313.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/272535/ft2_4FGL_J1308.5+3547_daily_bin1313.fits
.....................!
real 13.06
user 12.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272535/ft1_filtered_4FGL_J1308.5+3547_daily_bin1313.fits evtable="EVENTS" scfile=/scratch/kocevski/272535/ft2_4FGL_J1308.5+3547_daily_bin1313.fits sctable="SC_DATA" expcube=/scratch/kocevski/272535/ltcube_579657601_579916801_4FGL_J1308.5+3547_daily_bin1313.fits outfile=/scratch/kocevski/272535/expmap_579657601_579916801_4FGL_J1308.5+3547_daily_bin1313.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/272535/ltcube_579657601_579916801_4FGL_J1308.5+3547_daily_bin1313.fits
.....................!
real 192.08
user 186.38
sys 5.27

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/272535/ft1_filtered_4FGL_J1308.5+3547_daily_bin1313.fits scfile=/scratch/kocevski/272535/ft2_4FGL_J1308.5+3547_daily_bin1313.fits outfile=/scratch/kocevski/272535/cmap_579657601_579916801_4FGL_J1308.5+3547_daily_bin1313.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3231       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9215       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9517       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11299E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.776       1.0000         .10000E-03   10000.    
    13 'norm      '    5.5441       1.0000         .10000E-03   10000.    
    14 'norm      '    15.243       1.0000         .10000E-03   10000.    
    15 'norm      '    5.7526       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7657       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.940       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4203       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7018       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.992       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2004       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .52236       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=   5550.909     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3050 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6846       -.12096E-06** at limit **
   2  Prefactor     5.3233        2.7756       -.15069E-07    .82274E-06
   3  Prefactor     9.9216        8.1282       -.13082E-06    .52011E-04
   4  Prefactor     .10001E-03    21.001        .47632E-05** at limit **
   5  Prefactor     .10001E-03    21.984       -.54168E-05** at limit **
   6  Prefactor     .10000E-03    4.1343        .62522E-08** at limit **
   7  norm          3.9498        3.5091        .71955E-07   -.35015E-04
   8  Prefactor     .10001E-03    75.029        .59596E-05** at limit **
   9  Prefactor     .10000E-03    51.360        .20260E-05** at limit **
  10  norm          .10000E-03    1.4941       -.86148E-08** at limit **
  11  Prefactor     .10000E-03    6.1288        .68967E-06** at limit **
  12  norm          11.775        5.7394       -.88418E-07   -.10094E-03
  13  norm          5.5436        7.3418        .49063E-07    .20128E-04
  14  norm          15.236        6.5928       -.11132E-05   -.80601E-04
  15  norm          5.7551        9.2205        .40583E-05   -.94847E-03
  16  Prefactor     1.7652        4.4776        .11036E-05   -.69636E-04
  17  Prefactor     .10000E-03    5.9765       -.73767E-06** at limit **
  18  Prefactor     31.927        74.533       -.55221E-05   -.11713E-03
  19  Prefactor     1.4195        21.790        .13165E-05   -.79011E-04
  20  Prefactor     5.7035        16.953       -.33140E-06   -.23025E-04
  21  Prefactor     .10003E-03    87.799       -.89413E-05** at limit **
  22  norm          17.992        3.1188       -.12688E-07    .39352E-04
  23  Prefactor     .10000E-03    1.0879        .21750E-08** at limit **
  24  norm          .10000E-03    4.9836        .83227E-07** at limit **
  25  Normalizat    1.2005        .18012       -.97885E-06   -.29744E-04
  26  Prefactor     .52213        .21757        .26842E-05   -.23911E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.32328
  Prefactor  = 9.92157
  Prefactor  = 0.000100008
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 3.94977
  Prefactor  = 0.000100013
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7751
  norm       = 5.54357
  norm       = 15.2362
  norm       = 5.75507
  Prefactor  = 1.76521
  Prefactor  = 0.0001
  Prefactor  = 31.9275
  Prefactor  = 1.4195
  Prefactor  = 5.70347
  Prefactor  = 0.000100031
  norm       = 17.9917
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.20051
  Prefactor  = 0.52213
 **********
 **   18 **HESSE 
 **********

 FCN=   5550.909     FROM HESSE     STATUS=OK           454 CALLS     3504 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9238        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3233        2.7756        .87141E-04   -1.5246    
   3  Prefactor     9.9216        8.1297        .63608E-03   -1.5078    
   4  Prefactor     .10001E-03    21.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    23.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2014        .14789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9498        3.5069        .12645E-03   -1.5310    
   8  Prefactor     .10001E-03    76.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    52.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5282        .88927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1794        .18035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.775        5.7180        .11674E-03   -1.5022    
  13  norm          5.5436        7.3387        .17063E-03   -1.5237    
  14  norm          15.236        6.8242        .93501E-04   -1.4927    
  15  norm          5.7551        9.9928        .83731E-03   -1.5228    
  16  Prefactor     1.7652        4.3025        .18469E-03   -1.5442    
  17  Prefactor     .10000E-03    6.0011        .17797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.927        73.072        .70900E-04   -1.4577    
  19  Prefactor     1.4195        21.795        .36301E-03   -1.5470    
  20  Prefactor     5.7035        16.846        .16822E-03   -1.5230    
  21  Prefactor     .10003E-03    91.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.992        3.1210        .53117E-04   -1.4859    
  23  Prefactor     .10000E-03    1.0923        .75879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.9884        .16245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2005        .20763        .20387E-03   -.86587    
  26  Prefactor     .52213        .24858        .18317E-02   -1.1097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67592e-09
Minuit parameter uncertainties:
  1  1.68564e-05
  2  2.77562
  3  8.1306
  4  0.000850634
  5  0.00105145
  6  7.93203e-06
  7  3.5071
  8  0.00199348
  9  0.000467041
  10  6.8326e-07
  11  6.39533e-05
  12  5.71822
  13  7.33992
  14  6.82459
  15  9.99567
  16  4.30325
  17  6.55561e-05
  18  73.2774
  19  11.1289
  20  16.8601
  21  0.00335202
  22  3.12105
  23  3.55539e-08
  24  7.57655e-06
  25  0.207773
  26  0.249104
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.178e+01  5.718e+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:  5.221e-01  2.491e-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.201e+00  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.26
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.13e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.03e-05

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) = 5550.10067122
delta logL = 0.808618268016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5550.08194695
delta logL = 0.827342545218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.874       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5591       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50394       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=   5550.082     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.874        6.7445        .27910E-02   -.56484E-02
   2  alpha         1.5593        .45150        .32631       -.67084E-05
   3  Normalizat    1.2220        .17881        .34373E-01   -.26011E-05
   4  Prefactor     .50394        .22040        .84107E-01    .37427E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.8738
  alpha      = 1.5593
  Normalizat = 1.22198
  Prefactor  = 0.503943
 **********
 **   18 **HESSE 
 **********

 FCN=   5550.082     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.874        6.6100        .11164E-03   -1.4990    
   2  alpha         1.5593        .46982        .13563E-01   -.38578    
   3  Normalizat    1.2220        .20077        .20245E-03   -.85926    
   4  Prefactor     .50394        .24671        .37263E-03   -1.1180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11622e-08
Minuit parameter uncertainties:
  1  6.6104
  2  0.4731
  3  0.200894
  4  0.247235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272535': 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) = 5550.08194677
delta logL = 0.827342722441

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.287e+01  6.610e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.559e+00  4.731e-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:  5.039e-01  2.472e-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.222e+00  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.94
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.56 +/- 0.47
Photon Flux (Free Index): 3.47e-08 +/- 2.11e-08
Energy Flux (Free Index): 3.12e-05 +/- 1.94e-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/272535/cmap_HighResolution_579657601_579916801_4FGL_J1308.5+3547_daily_bin1313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.13e-08', energy_flux2='3.12e-05', photon_flux_error='2.49e-08', dlogl='8.27e-01', energy_flux='2.12e-05', photon_flux2='3.47e-08', job_status='DONE', time_completed='2021-09-07 00:47:07.519731', photon_index_error2='0.47', photon_index2='1.56', ts='15.26', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', energy_flux_error2='1.94e-05', EG='1.20', time_epoch_completed='1631000827.52', return_code='0', job_id='272535', GAL2='0.50', EG2='1.22', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='2.11e-08', ts2='16.94', photon_index='2.18' WHERE bin_id='1313' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:47:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 272535: <4FGL_J1308.5+3547_daily_bin1313> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1313> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:40 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:36:07 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:36:07 2021
Terminated at Tue Sep  7 00:47:08 2021
Results reported at Tue Sep  7 00:47:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1313 197.129 35.7918 579657601 579916801 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 :                                   638.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            688 sec.

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

