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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin34
RA = 197.129, Dec = 35.7918
tmin = 248140801, tmax = 248400001
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='258636', job_status='RUN', time_executed='2021-09-06 23:55:00.471838', time_epoch_executed='1630997700.47' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='34'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258636/ft1_4FGL_J1308.5+3547_daily_bin34.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258636/ft2_4FGL_J1308.5+3547_daily_bin34.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258636/ft1_4FGL_J1308.5+3547_daily_bin34.fits outfile=/scratch/kocevski/258636/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin34.fits ra=197.129 dec=35.7918 rad=12.0 tmin=248140801.0 tmax=248400001.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 1.41
user 1.22
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258636/ft1_filtered_4FGL_J1308.5+3547_daily_bin34.fits" evtable="EVENTS" scfile=/scratch/kocevski/258636/ft2_4FGL_J1308.5+3547_daily_bin34.fits sctable="SC_DATA" outfile=/scratch/kocevski/258636/ltcube_248140801_248400001_4FGL_J1308.5+3547_daily_bin34.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/258636/ft2_4FGL_J1308.5+3547_daily_bin34.fits
.....................!
real 13.41
user 13.01
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258636/ft1_filtered_4FGL_J1308.5+3547_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/258636/ft2_4FGL_J1308.5+3547_daily_bin34.fits sctable="SC_DATA" expcube=/scratch/kocevski/258636/ltcube_248140801_248400001_4FGL_J1308.5+3547_daily_bin34.fits outfile=/scratch/kocevski/258636/expmap_248140801_248400001_4FGL_J1308.5+3547_daily_bin34.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/258636/ltcube_248140801_248400001_4FGL_J1308.5+3547_daily_bin34.fits
.....................!
real 192.65
user 186.85
sys 4.88

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/258636/ft1_filtered_4FGL_J1308.5+3547_daily_bin34.fits scfile=/scratch/kocevski/258636/ft2_4FGL_J1308.5+3547_daily_bin34.fits outfile=/scratch/kocevski/258636/cmap_248140801_248400001_4FGL_J1308.5+3547_daily_bin34.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258636/ft1_filtered_4FGL_J1308.5+3547_daily_bin34.fits scfile=/scratch/kocevski/258636/ft2_4FGL_J1308.5+3547_daily_bin34.fits outfile=/scratch/kocevski/258636/cmap_HighResolution_248140801_248400001_4FGL_J1308.5+3547_daily_bin34.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2405       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4530       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .77797       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .94840       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.469       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6235       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    18.343       1.0000         .10000E-03   10000.    
    14 'norm      '    6.5395       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8261       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19737E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.110       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.766       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1838       1.0000         .10000E-03   10000.    
    24 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .77664       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1083       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5713.472     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     2616 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2399        3.7903        .16035E-05    .50312E-03
   2  Prefactor     .10000E-03    .78187        .32764E-06** at limit **
   3  Prefactor     2.4469        1.2703        .27454E-05    .43905E-03
   4  Prefactor     .10018E-03    3.9028       -.93566E-05** at limit **
   5  Prefactor     .52614        1217.1       -.17500E-03    .96695E-03
   6  Prefactor     .10000E-03    2.4847        .10191E-06** at limit **
   7  norm          .94590        6.7250        .43364E-05   -.84848E-04
   8  Prefactor     .10003E-03    21.795        .20062E-04** at limit **
   9  Prefactor     37.470        2.6568       -.28444E-05    .11075E-02
  10  norm          4.6229        3.6336       -.25275E-05   -.49562E-03
  11  Prefactor     .10000E-03    14.200        .52478E-05** at limit **
  12  norm          .10000E-03    3.7923        .40394E-06** at limit **
  13  norm          18.341        1.1411        .78640E-06    .65482E-03
  14  norm          6.5487        3.1773        .58257E-07   -.47584E-03
  15  norm          2.8216        2.5491        .45249E-05    .88646E-03
  16  Prefactor     .10000E-03    5.0109       -.81075E-06** at limit **
  17  Prefactor     .10000E-03    5.8589        .11819E-05** at limit **
  18  Prefactor     13.236        30.046       -.15703E-04    .86219E-02
  19  Prefactor     17.759        13.303        .21434E-04    .10919E-01
  20  Prefactor     .10017E-03    3.9436        .73135E-05** at limit **
  21  Prefactor     .10005E-03    26.167       -.17878E-04** at limit **
  22  norm          .10000E-03    .65912       -.23068E-06** at limit **
  23  Prefactor     3.1831        3.4478       -.12680E-05   -.93429E-05
  24  norm          .10000E-03    15.533       -.67329E-05** at limit **
  25  Normalizat    .77652        .18544       -.17172E-05   -.21974E-03
  26  Prefactor     1.1086        .23689        .15391E-05   -.19620E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.2399
  Prefactor  = 0.0001
  Prefactor  = 2.44688
  Prefactor  = 0.00010018
  Prefactor  = 0.526137
  Prefactor  = 0.0001
  norm       = 0.945903
  Prefactor  = 0.000100034
  Prefactor  = 37.4701
  norm       = 4.62289
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.3415
  norm       = 6.54871
  norm       = 2.82161
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2359
  Prefactor  = 17.7594
  Prefactor  = 0.000100166
  Prefactor  = 0.000100048
  norm       = 0.0001
  Prefactor  = 3.18308
  norm       = 0.0001
  Normalizat = 0.776515
  Prefactor  = 1.10863
 **********
 **   18 **HESSE 
 **********

 FCN=   5713.472     FROM HESSE     STATUS=OK           526 CALLS     3142 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2399        3.7953        .56251E-02   -1.5348    
   2  Prefactor     .10000E-03    .77428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4469        9.3838        .65291E-02   -1.5395    
   4  Prefactor     .10018E-03    6.9996        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .52614        97.474        .17347       -1.5563    
   6  Prefactor     .10000E-03    2.4736        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .94590        10.600        .12982E-01   -1.5513    
   8  Prefactor     .10003E-03    22.055        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.470        30.517        .16369E-02   -1.4483    
  10  norm          4.6229        3.6389        .46796E-02   -1.5278    
  11  Prefactor     .10000E-03    14.125        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.6661        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          18.341        12.098        .23379E-02   -1.4851    
  14  norm          6.5487        6.4935        .39233E-02   -1.5196    
  15  norm          2.8216        8.1577        .60480E-02   -1.5372    
  16  Prefactor     .10000E-03    2.3204        .33814E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8432        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.236        45.000        .27656E-02   -1.4980    
  19  Prefactor     17.759        14.678        .23755E-02   -1.4865    
  20  Prefactor     .10017E-03    7.0105        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10005E-03    26.347        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .48933        .26341E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1831        3.4601        .56777E-02   -1.5351    
  24  norm          .10000E-03    15.505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .77652        .15836        .43305E-01   -1.0095    
  26  Prefactor     1.1086        .19830        .57483E-01   -.89191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41132e-06
Minuit parameter uncertainties:
  1  3.79563
  2  3.90444e-06
  3  9.3894
  4  0.00224643
  5  14.3451
  6  2.99756e-06
  7  6.33395
  8  0.00172398
  9  30.5295
  10  3.63904
  11  6.52218e-05
  12  1.69609e-06
  13  12.1
  14  6.49416
  15  8.16092
  16  1.8073e-05
  17  3.00846e-05
  18  45.1153
  19  14.6807
  20  0.00215597
  21  0.00225068
  22  2.35446e-07
  23  3.46028
  24  0.000168656
  25  0.158453
  26  0.198428
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.109e+00  1.984e-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.765e-01  1.585e-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: 4.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258636/likelihoodResults_248140801_248400001_4FGL_J1308.5+3547_daily_bin34.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) = 5713.47372973
delta logL = -0.00125814359853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5713.27895338
delta logL = 0.19351820356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96276E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .74002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1381       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=   5713.279     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      467 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96256E-01    .17601        .37179E-04    .12671E-03
   2  alpha         5.0000        3.8610        .50000    ** at limit **
   3  Normalizat    .73995        .19386        .11911E-02   -.19128E-04
   4  Prefactor     1.1381        .24172        .25129E-03   -.14070E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0962564
  alpha      = 5
  Normalizat = 0.739949
  Prefactor  = 1.13811
 **********
 **   18 **HESSE 
 **********

 FCN=   5713.279     FROM HESSE     STATUS=OK            31 CALLS      498 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96256E-01    .17557        .74359E-05   -1.5646    
   2  alpha         5.0000        3.8560        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .73995        .19458        .47644E-04   -1.0234    
   4  Prefactor     1.1381        .24258        .10052E-04   -.88258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42045e-11
Minuit parameter uncertainties:
  1  0.175568
  2  9.29089e-05
  3  0.194759
  4  0.242815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258636': 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) = 5713.2789529
delta logL = 0.193518686381

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  9.626e-02  1.756e-01  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  5.000e+00  9.291e-05  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.138e+00  2.428e-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.399e-01  1.948e-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/258636/cmap_HighResolution_248140801_248400001_4FGL_J1308.5+3547_daily_bin34.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-05', job_status='DONE', photon_flux_upper_limit='4.20e-08', time_completed='2021-09-07 00:06:42.921884', job_id='258636', GAL2='1.14', fit_tolerance='1e-08', EG2='0.74', EG='0.78', time_epoch_completed='1630998402.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.94e-01', ts2='0.42', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='34' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:06:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 258636: <4FGL_J1308.5+3547_daily_bin34> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin34> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 23:50:28 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:51:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 23:51:16 2021
Terminated at Tue Sep  7 00:06:43 2021
Results reported at Tue Sep  7 00:06:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin34 197.129 35.7918 248140801 248400001 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 :                                   700.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            975 sec.

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

