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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin43
RA = 192.084, Dec = 58.3432
tmin = 250473601, tmax = 250732801
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='907033', job_status='RUN', time_executed='2021-09-06 05:01:10.906332', time_epoch_executed='1630929670.91' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907033

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907033/ft1_4FGL_J1248.3+5820_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907033/ft2_4FGL_J1248.3+5820_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907033/ft1_4FGL_J1248.3+5820_daily_bin43.fits outfile=/scratch/kocevski/907033/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin43.fits ra=192.084 dec=58.3432 rad=12.0 tmin=250473601.0 tmax=250732801.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.33
user 1.14
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/907033/ft2_4FGL_J1248.3+5820_daily_bin43.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907033/ft2_4FGL_J1248.3+5820_daily_bin43.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/907033/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin43.fits evtable="EVENTS" outfile="/scratch/kocevski/907033/ft1_filtered_4FGL_J1248.3+5820_daily_bin43.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907033/ft1_filtered_4FGL_J1248.3+5820_daily_bin43.fits" evtable="EVENTS" scfile=/scratch/kocevski/907033/ft2_4FGL_J1248.3+5820_daily_bin43.fits sctable="SC_DATA" outfile=/scratch/kocevski/907033/ltcube_250473601_250732801_4FGL_J1248.3+5820_daily_bin43.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/907033/ft2_4FGL_J1248.3+5820_daily_bin43.fits
.....................!
real 12.01
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907033/ft1_filtered_4FGL_J1248.3+5820_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/907033/ft2_4FGL_J1248.3+5820_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/907033/ltcube_250473601_250732801_4FGL_J1248.3+5820_daily_bin43.fits outfile=/scratch/kocevski/907033/expmap_250473601_250732801_4FGL_J1248.3+5820_daily_bin43.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/907033/ltcube_250473601_250732801_4FGL_J1248.3+5820_daily_bin43.fits
.....................!
real 192.15
user 186.93
sys 4.64

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 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1248.3+5820 @ 192.084 58.3432

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/907033/ft1_filtered_4FGL_J1248.3+5820_daily_bin43.fits scfile=/scratch/kocevski/907033/ft2_4FGL_J1248.3+5820_daily_bin43.fits outfile=/scratch/kocevski/907033/cmap_250473601_250732801_4FGL_J1248.3+5820_daily_bin43.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=192.084 yref=58.3432 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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907033/ft1_filtered_4FGL_J1248.3+5820_daily_bin43.fits scfile=/scratch/kocevski/907033/ft2_4FGL_J1248.3+5820_daily_bin43.fits outfile=/scratch/kocevski/907033/cmap_HighResolution_250473601_250732801_4FGL_J1248.3+5820_daily_bin43.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=192.084 yref=58.3432 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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907033/ft1_filtered_4FGL_J1248.3+5820_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/907033/ft2_4FGL_J1248.3+5820_daily_bin43.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907033/Model_4FGL_J1248.3+5820_daily_bin43.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/907033/ft1_filtered_4FGL_J1248.3+5820_daily_bin43.fits.....................!
real 52.32
user 50.94
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/907033/ft1_filtered_4FGL_J1248.3+5820_daily_bin43.fits', '/scratch/kocevski/907033/ft2_4FGL_J1248.3+5820_daily_bin43.fits', expMap='/scratch/kocevski/907033/expmap_250473601_250732801_4FGL_J1248.3+5820_daily_bin43.fits', expCube='/scratch/kocevski/907033/ltcube_250473601_250732801_4FGL_J1248.3+5820_daily_bin43.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/907033/Model_4FGL_J1248.3+5820_daily_bin43.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.3+5820'

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.611e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/907033/ft1_filtered_4FGL_J1248.3+5820_daily_bin43.fits
Spacecraft file(s): /scratch/kocevski/907033/ft2_4FGL_J1248.3+5820_daily_bin43.fits
Exposure map: /scratch/kocevski/907033/expmap_250473601_250732801_4FGL_J1248.3+5820_daily_bin43.fits
Exposure cube: /scratch/kocevski/907033/ltcube_250473601_250732801_4FGL_J1248.3+5820_daily_bin43.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/907033/Model_4FGL_J1248.3+5820_daily_bin43.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) = 5570.99777484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5227       1.0000         .10000E-03   10000.    
     3 'norm      '    6.8069       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9302       1.0000         .10000E-03   10000.    
     5 'norm      '    .11016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.525       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8717       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6823       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.645       1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.297       1.0000         .10000E-03   10000.    
    11 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.147       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1206       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2746       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2798       1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.664       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .18285E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16695E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.259       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.134       1.0000         .10000E-03   10000.    
    23 'norm      '    8.3848       1.0000         .10000E-03   10000.    
    24 'Prefactor '    77.902       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.7640       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.0676       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.5042       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.5170       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .71869       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0205       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5570.990     FROM MIGRAD    STATUS=CONVERGED    905 CALLS     4705 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2543       -.46598E-07** at limit **
   2  Prefactor     8.5219        14.834        .66223E-06    .16526E-04
   3  norm          6.8063        7.6596        .28347E-08    .61289E-04
   4  Prefactor     1.9312        4.5851        .56834E-05   -.13085E-03
   5  norm          .10000E-03    4.7411       -.31082E-06** at limit **
   6  Prefactor     10.523        8.3664        .35914E-06    .98421E-04
   7  Prefactor     5.8918        35.376       -.64779E-05   -.95544E-04
   8  norm          2.6829        2.0865        .23415E-06   -.15528E-03
   9  Prefactor     24.649        24.151        .95235E-07    .49057E-04
  10  Prefactor     59.203        106.08        .94861E-05   -.53022E-04
  11  norm          .10000E-03    5.3099        .52142E-06** at limit **
  12  Prefactor     12.149        18.304       -.77172E-06   -.78732E-04
  13  Prefactor     .10000E-03    4.5626       -.28424E-06** at limit **
  14  norm          2.1210        1.8325       -.27384E-07   -.12678E-03
  15  Prefactor     2.2741        17.387        .81466E-06   -.31153E-04
  16  norm          1.2796        1.5594        .84976E-07   -.64949E-04
  17  Prefactor     32.669        31.037        .15157E-07    .13121E-05
  18  Prefactor     .10000E-03    3.5971       -.52200E-07** at limit **
  19  norm          .10001E-03    2.4309        .66273E-06** at limit **
  20  Prefactor     .10000E-03    257.63        .34162E-07** at limit **
  21  Prefactor     46.282        56.290       -.21545E-05   -.19194E-03
  22  Prefactor     10.130        17.468        .43498E-06   -.93500E-04
  23  norm          8.3853        5.1343        .22976E-06   -.39932E-03
  24  Prefactor     77.925        57.292       -.31995E-06    .38799E-04
  25  Prefactor     4.7641        5.3759        .85509E-06   -.56980E-04
  26  Prefactor     6.0240        27.329        .11157E-05    .74168E-06
  27  Prefactor     2.5037        11.788       -.80845E-06    .11928E-04
  28  norm          .10000E-03    26.593        .19903E-07** at limit **
  29  norm          4.5184        4.5250        .81012E-07    .11015E-03
  30  Prefactor     .10000E-03    17.538        .22774E-07** at limit **
  31  Prefactor     .10000E-03    141.48       -.23518E-06** at limit **
  32  Normalizat    .71842        .17239       -.53224E-06   -.17962E-04
  33  Prefactor     1.0208        .19580       -.16224E-05   -.20752E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.52188
  norm       = 6.80626
  Prefactor  = 1.93118
  norm       = 0.0001
  Prefactor  = 10.523
  Prefactor  = 5.89183
  norm       = 2.68288
  Prefactor  = 24.649
  Prefactor  = 59.2033
  norm       = 0.0001
  Prefactor  = 12.1487
  Prefactor  = 0.0001
  norm       = 2.12098
  Prefactor  = 2.27409
  norm       = 1.27965
  Prefactor  = 32.6689
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 46.282
  Prefactor  = 10.1303
  norm       = 8.38533
  Prefactor  = 77.9248
  Prefactor  = 4.76406
  Prefactor  = 6.02404
  Prefactor  = 2.50371
  norm       = 0.0001
  norm       = 4.51835
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.718424
  Prefactor  = 1.02081
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.990     FROM HESSE     STATUS=OK           705 CALLS     5410 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3636        .16698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.5219        14.827        .68656E-03   -1.5124    
   3  norm          6.8063        7.6595        .15379E-03   -1.5186    
   4  Prefactor     1.9312        4.5963        .11746E-02   -1.5430    
   5  norm          .10000E-03    4.9161        .31608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.523        8.3332        .12350E-03   -1.5059    
   7  Prefactor     5.8918        35.058        .16573E-03   -1.5222    
   8  norm          2.6829        2.0827        .44839E-03   -1.5380    
   9  Prefactor     24.649        24.166        .80691E-04   -1.4715    
  10  Prefactor     59.203        106.20        .52101E-04   -1.4168    
  11  norm          .10000E-03    5.3680        .16735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.149        18.280        .11494E-03   -1.5011    
  13  Prefactor     .10000E-03    4.7252        .31087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1210        1.8337        .90609E-04   -1.5417    
  15  Prefactor     2.2741        17.334        .27228E-03   -1.5406    
  16  norm          1.2796        1.5294        .99589E-04   -1.5482    
  17  Prefactor     32.669        31.044        .70111E-04   -1.4564    
  18  Prefactor     .10000E-03    3.6083        .13822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    49.751        .20919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    261.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.282        53.503        .58952E-04   -1.4346    
  22  Prefactor     10.130        17.441        .12587E-03   -1.5071    
  23  norm          8.3853        5.1243        .11534E-03   -1.5129    
  24  Prefactor     77.925        57.243        .45498E-04   -1.3940    
  25  Prefactor     4.7641        5.2486        .65168E-03   -1.5271    
  26  Prefactor     6.0240        27.293        .16300E-03   -1.5217    
  27  Prefactor     2.5037        11.120        .25824E-03   -1.5391    
  28  norm          .10000E-03    26.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.5184        4.5121        .14831E-03   -1.5283    
  30  Prefactor     .10000E-03    17.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    141.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .71842        .20202        .23758E-03   -1.0317    
  33  Prefactor     1.0208        .22783        .25313E-03   -.92039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37294e-10
Minuit parameter uncertainties:
  1  2.20654e-05
  2  14.8329
  3  7.6606
  4  4.59714
  5  3.25836e-05
  6  8.33413
  7  28.7694
  8  2.08277
  9  24.176
  10  106.542
  11  3.11609e-05
  12  18.288
  13  3.3385e-05
  14  1.83372
  15  12.5617
  16  1.52947
  17  31.059
  18  4.93832e-06
  19  0.00114669
  20  0.000671871
  21  53.5589
  22  17.4497
  23  5.12458
  24  57.283
  25  5.24909
  26  25.6641
  27  10.5559
  28  1.23147e-05
  29  4.51247
  30  9.92539e-07
  31  0.000141434
  32  0.202234
  33  0.228049
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  2.121e+00  1.834e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  1.021e+00  2.280e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  7.184e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.92
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 1.87e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.62e-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) = 5570.92712339
delta logL = 0.0628119042085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5570.87139092
delta logL = 0.118544374884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2614       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3040       1.0000          .0000       5.0000    
     3 'Normalizat'    .72897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0188       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5570.871     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      200 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2608        1.2732        .99262E-02   -.21274E-03
   2  alpha         1.3039        .50035        .40702       -.39172E-04
   3  Normalizat    .72895        .15460        .42676E-01    .17522E-04
   4  Prefactor     1.0189        .19422        .42259E-01    .77391E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2608
  alpha      = 1.30391
  Normalizat = 0.728952
  Prefactor  = 1.01888
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.871     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2608        2.0899        .79079E-04   -1.5483    
   2  alpha         1.3039        .88758        .16013E-01   -.49887    
   3  Normalizat    .72895        .17802        .23594E-03   -1.0276    
   4  Prefactor     1.0189        .22402        .25337E-03   -.92103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70453e-12
Minuit parameter uncertainties:
  1  2.09003
  2  0.913731
  3  0.178162
  4  0.224223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907033': 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) = 5570.87139083
delta logL = 0.118544465434

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.261e+00  2.090e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.304e+00  9.137e-01  0.000e+00  5.000e+00 ( 1.000e+00)
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  1.019e+00  2.242e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  7.290e-01  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.15
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.30 +/- 0.91
Photon Flux (Free Index): 7.55e-09 +/- 1.38e-08
Energy Flux (Free Index): 3.24e-05 +/- 4.98e-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/907033/cmap_HighResolution_250473601_250732801_4FGL_J1248.3+5820_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.87e-08', energy_flux2='3.24e-05', photon_flux_error='1.62e-08', dlogl='1.19e-01', energy_flux='1.87e-05', photon_flux2='7.55e-09', job_status='DONE', time_completed='2021-09-06 05:15:31.597552', photon_index_error2='0.91', photon_index2='1.30', ts='4.92', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='4.98e-05', EG='0.72', time_epoch_completed='1630930531.6', return_code='0', job_id='907033', GAL2='1.02', EG2='0.73', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='1.38e-08', ts2='5.15', photon_index='1.81' WHERE bin_id='43' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:15:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 907033: <4FGL_J1248.3+5820_daily_bin43> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin43> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:00:56 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:00:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 05:00:58 2021
Terminated at Mon Sep  6 05:15:32 2021
Results reported at Mon Sep  6 05:15:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin43 192.084 58.3432 250473601 250732801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1248.3+5820 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   855.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            876 sec.

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

