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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin21
RA = 197.129, Dec = 35.7918
tmin = 244771201, tmax = 245030401
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='258618', job_status='RUN', time_executed='2021-09-06 23:53:21.114606', time_epoch_executed='1630997601.11' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258618

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258618/ft1_4FGL_J1308.5+3547_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258618/ft2_4FGL_J1308.5+3547_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258618/ft1_4FGL_J1308.5+3547_daily_bin21.fits outfile=/scratch/kocevski/258618/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin21.fits ra=197.129 dec=35.7918 rad=12.0 tmin=244771201.0 tmax=245030401.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.45
user 1.27
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258618/ft1_filtered_4FGL_J1308.5+3547_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/258618/ft2_4FGL_J1308.5+3547_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/258618/ltcube_244771201_245030401_4FGL_J1308.5+3547_daily_bin21.fits outfile=/scratch/kocevski/258618/expmap_244771201_245030401_4FGL_J1308.5+3547_daily_bin21.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/258618/ltcube_244771201_245030401_4FGL_J1308.5+3547_daily_bin21.fits
.....................!
real 190.50
user 185.38
sys 4.72

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258618/ft1_filtered_4FGL_J1308.5+3547_daily_bin21.fits scfile=/scratch/kocevski/258618/ft2_4FGL_J1308.5+3547_daily_bin21.fits outfile=/scratch/kocevski/258618/cmap_HighResolution_244771201_245030401_4FGL_J1308.5+3547_daily_bin21.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63166E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6725       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.431       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0816       1.0000         .10000E-03   10000.    
     7 'norm      '    4.0913       1.0000         .10000E-03   10000.    
     8 'Prefactor '    63.085       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.405       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.919       1.0000         .10000E-03   10000.    
    15 'norm      '    .11449E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75459       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8919       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3122       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    68.007       1.0000         .10000E-03   10000.    
    22 'norm      '    .27914       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .91834       1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .61002       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2507       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=   4501.419     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3155 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    11.320        .16741E-05** at limit **
   2  Prefactor     2.6728        2.3303        .11719E-07   -.10122E-04
   3  Prefactor     .10000E-03    4.3138        .16785E-07** at limit **
   4  Prefactor     14.429        14.648        .10784E-07   -.10895E-04
   5  Prefactor     .10000E-03    31.256        .63646E-06** at limit **
   6  Prefactor     3.0816        3.8656        .22949E-07   -.21821E-04
   7  norm          4.0909        4.6102        .39402E-07   -.12015E-03
   8  Prefactor     63.077        67.739        .74862E-06    .18786E-04
   9  Prefactor     25.404        33.378       -.13751E-05   -.12735E-03
  10  norm          .10000E-03    1.0775        .76224E-08** at limit **
  11  Prefactor     .10000E-03    5.0983       -.15137E-07** at limit **
  12  norm          .10000E-03    1.6448       -.52426E-07** at limit **
  13  norm          .10000E-03    8.3873       -.41150E-07** at limit **
  14  norm          10.923        5.2774        .36087E-06    .17567E-03
  15  norm          .10000E-03    12.878        .11328E-05** at limit **
  16  Prefactor     .74393        6.9261        .22377E-05   -.46467E-03
  17  Prefactor     6.9294        20.852       -.37498E-05   -.24602E-03
  18  Prefactor     .10000E-03    123.87        .58981E-06** at limit **
  19  Prefactor     1.3090        20.219        .29778E-05   -.12657E-03
  20  Prefactor     .10000E-03    13.190        .11585E-06** at limit **
  21  Prefactor     68.029        55.308       -.14208E-05   -.10744E-03
  22  norm          .27874        1.4335        .80451E-07   -.16777E-04
  23  Prefactor     .91821        1.9464        .26568E-07    .62132E-05
  24  norm          .10000E-03    7.0928        .28349E-07** at limit **
  25  Normalizat    .61030        .18301       -.50872E-06   -.19103E-03
  26  Prefactor     1.2505        .22640       -.15855E-07   -.11917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 2.67278
  Prefactor  = 0.0001
  Prefactor  = 14.4293
  Prefactor  = 0.0001
  Prefactor  = 3.08158
  norm       = 4.09089
  Prefactor  = 63.0771
  Prefactor  = 25.4042
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.9229
  norm       = 0.000100004
  Prefactor  = 0.743926
  Prefactor  = 6.92944
  Prefactor  = 0.0001
  Prefactor  = 1.30899
  Prefactor  = 0.0001
  Prefactor  = 68.0287
  norm       = 0.278742
  Prefactor  = 0.918208
  norm       = 0.0001
  Normalizat = 0.610297
  Prefactor  = 1.25051
 **********
 **   18 **HESSE 
 **********

 FCN=   4501.419     FROM HESSE     STATUS=OK           464 CALLS     3619 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    48.287        .35741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6728        2.3360        .93142E-04   -1.5381    
   3  Prefactor     .10000E-03    4.3229        .13609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.429        14.648        .10544E-03   -1.4948    
   5  Prefactor     .10000E-03    31.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0816        3.8589        .14347E-03   -1.5357    
   7  norm          4.0909        4.5896        .13707E-03   -1.5303    
   8  Prefactor     63.077        67.900        .50522E-04   -1.4118    
   9  Prefactor     25.404        33.564        .79477E-04   -1.4699    
  10  norm          .10000E-03    1.0795        .68014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1030        .14794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6481        .84021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.4135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.923        5.5640        .95463E-04   -1.5047    
  15  norm          .10000E-03    22.359        .33222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .74393        9.0301        .20759E-02   -1.5535    
  17  Prefactor     6.9294        21.724        .15283E-03   -1.5181    
  18  Prefactor     .10000E-03    124.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3090        31.013        .19240E-02   -1.5479    
  20  Prefactor     .10000E-03    13.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     68.029        55.920        .24336E-03   -1.4056    
  22  norm          .27874        1.4071        .15420E-03   -1.5602    
  23  Prefactor     .91821        1.5675        .13270E-02   -1.5516    
  24  norm          .10000E-03    7.1120        .17453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .61030        .21743        .25780E-03   -1.0755    
  26  Prefactor     1.2505        .27231        .24005E-03   -.84791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30762e-10
Minuit parameter uncertainties:
  1  0.00101497
  2  2.33611
  3  7.89073e-07
  4  14.6519
  5  0.000103104
  6  3.85923
  7  4.59003
  8  67.9837
  9  33.5893
  10  2.25069e-07
  11  4.36257e-06
  12  3.83331e-06
  13  1.60059e-05
  14  5.56424
  15  0.000577555
  16  5.18435
  17  21.7484
  18  0.000335362
  19  12.75
  20  1.5705e-07
  21  55.963
  22  1.25238
  23  1.56755
  24  9.21611e-06
  25  0.217735
  26  0.272617
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  3.833e-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.251e+00  2.726e-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:  6.103e-01  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/258618/likelihoodResults_244771201_245030401_4FGL_J1308.5+3547_daily_bin21.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) = 4501.42120479
delta logL = -0.0026609066972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4501.41854389
delta logL = -2.11912265513e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1831       1.0000          .0000       5.0000    
     3 'Normalizat'    .61030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2505       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=   4501.419     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      223 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7801        .84025E-03** at limit **
   2  alpha         2.3258        3.6147        .16631       -.44707E-07
   3  Normalizat    .61030        .20696        .25780E-03   -.52742E-04
   4  Prefactor     1.2505        .26859        .24005E-03   -.57570E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.32575
  Normalizat = 0.610299
  Prefactor  = 1.25051
 **********
 **   18 **HESSE 
 **********

 FCN=   4501.419     FROM HESSE     STATUS=OK            23 CALLS      246 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6538        .16805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3258        2.9236        .66523E-02   -.69755E-01
   3  Normalizat    .61030        .20717        .10312E-04   -1.0755    
   4  Prefactor     1.2505        .26885        .48010E-04   -.84791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80052e-11
Minuit parameter uncertainties:
  1  2.15584e-06
  2  329.941
  3  0.20743
  4  0.269147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258618': 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) = 4501.41854378
delta logL = 1.04762875708e-07

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  2.156e-06  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.326e+00  3.299e+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.251e+00  2.691e-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:  6.103e-01  2.074e-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/258618/cmap_HighResolution_244771201_245030401_4FGL_J1308.5+3547_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-05', job_status='DONE', photon_flux_upper_limit='3.82e-08', time_completed='2021-09-07 00:03:46.081157', job_id='258618', GAL2='1.25', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1630998226.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='1.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='21' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:03:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 258618: <4FGL_J1308.5+3547_daily_bin21> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin21> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 23:50:27 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:51:11 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:11 2021
Terminated at Tue Sep  7 00:03:46 2021
Results reported at Tue Sep  7 00:03:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin21 197.129 35.7918 244771201 245030401 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 :                                   625.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            799 sec.

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

