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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin39
RA = 197.129, Dec = 35.7918
tmin = 249436801, tmax = 249696001
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='259837', job_status='RUN', time_executed='2021-09-06 23:57:43.879897', time_epoch_executed='1630997863.88' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259837

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259837/ft1_4FGL_J1308.5+3547_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259837/ft2_4FGL_J1308.5+3547_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259837/ft1_4FGL_J1308.5+3547_daily_bin39.fits outfile=/scratch/kocevski/259837/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin39.fits ra=197.129 dec=35.7918 rad=12.0 tmin=249436801.0 tmax=249696001.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.43
user 1.25
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259837/ft1_filtered_4FGL_J1308.5+3547_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/259837/ft2_4FGL_J1308.5+3547_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/259837/ltcube_249436801_249696001_4FGL_J1308.5+3547_daily_bin39.fits outfile=/scratch/kocevski/259837/expmap_249436801_249696001_4FGL_J1308.5+3547_daily_bin39.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/259837/ltcube_249436801_249696001_4FGL_J1308.5+3547_daily_bin39.fits
.....................!
real 190.99
user 185.77
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/259837/ft1_filtered_4FGL_J1308.5+3547_daily_bin39.fits scfile=/scratch/kocevski/259837/ft2_4FGL_J1308.5+3547_daily_bin39.fits outfile=/scratch/kocevski/259837/cmap_249436801_249696001_4FGL_J1308.5+3547_daily_bin39.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259837/ft1_filtered_4FGL_J1308.5+3547_daily_bin39.fits scfile=/scratch/kocevski/259837/ft2_4FGL_J1308.5+3547_daily_bin39.fits outfile=/scratch/kocevski/259837/cmap_HighResolution_249436801_249696001_4FGL_J1308.5+3547_daily_bin39.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1185       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.074       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10992E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.8989       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.8789       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.5895       1.0000         .10000E-03   10000.    
    15 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.094       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14679E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5809       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11505E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1889       1.0000         .10000E-03   10000.    
    24 'norm      '    12.106       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2232       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75678       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=   5041.152     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3104 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4818        7.9456        .29910E-05   -.25751E-03
   2  Prefactor     4.1188        2.2748       -.13032E-07    .89205E-05
   3  Prefactor     10.076        9.9777        .16708E-07   -.18464E-05
   4  Prefactor     .10000E-03    6.7119        .10596E-06** at limit **
   5  Prefactor     .10000E-03    25.798       -.63071E-06** at limit **
   6  Prefactor     .10000E-03    1.9231        .98735E-08** at limit **
   7  norm          2.8988        4.0511        .11633E-06   -.25744E-05
   8  Prefactor     .10000E-03    54.432        .54370E-07** at limit **
   9  Prefactor     .10000E-03    23.782        .50190E-06** at limit **
  10  norm          6.8798        4.4464        .22021E-06    .29289E-04
  11  Prefactor     .10000E-03    8.6450       -.64324E-08** at limit **
  12  norm          .10000E-03    1.8651       -.13878E-07** at limit **
  13  norm          .10000E-03    10.596        .10276E-06** at limit **
  14  norm          9.5909        4.6674       -.47062E-07    .96993E-04
  15  norm          .10000E-03    3.4840        .11886E-06** at limit **
  16  Prefactor     .10000E-03    1.0645       -.73301E-07** at limit **
  17  Prefactor     .10000E-03    6.5092       -.16789E-06** at limit **
  18  Prefactor     38.075        51.126        .23049E-05    .15611E-04
  19  Prefactor     .10000E-03    13.775       -.10957E-05** at limit **
  20  Prefactor     9.5236        26.160        .37556E-05    .20095E-03
  21  Prefactor     .10000E-03    31.976        .45564E-06** at limit **
  22  norm          .10000E-03    .98061        .20883E-06** at limit **
  23  Prefactor     1.1896        3.4627        .27530E-06    .24983E-04
  24  norm          12.105        15.195        .92490E-07   -.78389E-05
  25  Normalizat    1.2231        .18538        .81990E-07    .23936E-03
  26  Prefactor     .75674        .22581       -.99486E-06    .95233E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.48178
  Prefactor  = 4.11883
  Prefactor  = 10.0764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.89884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.8798
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.59093
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.0745
  Prefactor  = 0.000100001
  Prefactor  = 9.52359
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.18964
  norm       = 12.1046
  Normalizat = 1.22307
  Prefactor  = 0.756743
 **********
 **   18 **HESSE 
 **********

 FCN=   5041.152     FROM HESSE     STATUS=OK           458 CALLS     3562 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4818        8.0443        .10838E-02   -1.5335    
   2  Prefactor     4.1188        2.2769        .77567E-04   -1.5302    
   3  Prefactor     10.076        9.9741        .12625E-03   -1.5073    
   4  Prefactor     .10000E-03    6.7143        .17966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9257        .96152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8988        4.0293        .16064E-03   -1.5367    
   8  Prefactor     .10000E-03    54.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.8798        4.4313        .11644E-03   -1.5183    
  11  Prefactor     .10000E-03    8.6769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8726        .94686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.5909        4.6546        .10035E-03   -1.5088    
  15  norm          .10000E-03    3.4957        .12926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0720        .71530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.5336        .17692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     38.075        50.545        .64938E-04   -1.4473    
  19  Prefactor     .10000E-03    101.85        .48329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.5236        26.294        .12947E-03   -1.5091    
  21  Prefactor     .10000E-03    31.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.6399        .13586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1896        3.4214        .21580E-03   -1.5490    
  24  norm          12.105        15.195        .11513E-03   -1.5012    
  25  Normalizat    1.2231        .21595        .20780E-03   -.85893    
  26  Prefactor     .75674        .26132        .31885E-03   -1.0134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55593e-10
Minuit parameter uncertainties:
  1  8.04679
  2  2.27697
  3  9.97578
  4  2.6762e-06
  5  4.04564e-06
  6  1.07815e-06
  7  4.02966
  8  6.04535e-05
  9  1.92657e-05
  10  4.43152
  11  3.5093e-06
  12  5.72743e-07
  13  1.07595e-05
  14  4.65478
  15  1.13088e-05
  16  4.21454e-06
  17  1.20298e-05
  18  50.6018
  19  0.000707432
  20  26.3264
  21  3.72479e-06
  22  6.82585e-06
  23  3.42193
  24  15.1999
  25  0.216111
  26  0.26175
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  7.567e-01  2.618e-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.223e+00  2.161e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259837/likelihoodResults_249436801_249696001_4FGL_J1308.5+3547_daily_bin39.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) = 5041.15491093
delta logL = -0.00247683946873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5041.14356319
delta logL = 0.0088708953881

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18651E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2160       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76218       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5041.144     FROM MIGRAD    STATUS=FAILED        85 CALLS      320 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18725E-01    .32967        .46005E-03    .20180E-01
   2  alpha         5.0000        2.5172        .50000       -.22500E-04
   3  Normalizat    1.2160        .21723        .20833E-03    .12777E-02
   4  Prefactor     .76225        .26354        .31781E-03    .42390E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5041.144     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      397 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18725E-01    .32967        .59004E-04   -1.5681    
   2  alpha         5.0000        2.5172        .35014E-01    1.5694    
   3  Normalizat    1.2160        .21723        .76785E-04   -.86110    
   4  Prefactor     .76225        .26354        .58056E-04   -1.0114    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5041.144     FROM MIGRAD    STATUS=CONVERGED      9 CALLS      406 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18697E-01    .27802        .30179E-06    .76269E-04
   2  alpha         5.0000        3.6277        .91506E-03** at limit **
   3  Normalizat    1.2160        .21732       -.69497E-07    .29379E-03
   4  Prefactor     .76225        .26358        .45003E-07    .12412E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0186966
  alpha      = 5
  Normalizat = 1.21598
  Prefactor  = 0.762253
 **********
 **   18 **HESSE 
 **********

 FCN=   5041.144     FROM HESSE     STATUS=OK            31 CALLS      437 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18697E-01    .28681        .18402E-04   -1.5681    
   2  alpha         5.0000        2.5401        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2160        .21751        .41665E-04   -.86110    
   4  Prefactor     .76225        .26384        .63561E-04   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09297e-10
Minuit parameter uncertainties:
  1  0.146064
  2  0.000163362
  3  0.21767
  4  0.264277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259837': 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) = 5041.14356303
delta logL = 0.00887106277514

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.870e-02  1.461e-01  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  5.000e+00  1.634e-04  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:  7.623e-01  2.643e-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.216e+00  2.177e-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/259837/cmap_HighResolution_249436801_249696001_4FGL_J1308.5+3547_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-05', job_status='DONE', photon_flux_upper_limit='3.97e-08', time_completed='2021-09-07 00:09:04.082763', job_id='259837', GAL2='0.76', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630998544.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='8.87e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='39' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:09:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 259837: <4FGL_J1308.5+3547_daily_bin39> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin39> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep  6 23:55:30 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:55:37 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:55:37 2021
Terminated at Tue Sep  7 00:09:04 2021
Results reported at Tue Sep  7 00:09:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin39 197.129 35.7918 249436801 249696001 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 :                                   679.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            814 sec.

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

