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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1103
RA = 192.084, Dec = 58.3432
tmin = 525225601, tmax = 525484801
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='913184', job_status='RUN', time_executed='2021-09-06 05:20:54.382534', time_epoch_executed='1630930854.38' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913184

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913184/ft1_4FGL_J1248.3+5820_daily_bin1103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913184/ft2_4FGL_J1248.3+5820_daily_bin1103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913184/ft1_4FGL_J1248.3+5820_daily_bin1103.fits outfile=/scratch/kocevski/913184/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1103.fits ra=192.084 dec=58.3432 rad=12.0 tmin=525225601.0 tmax=525484801.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 4.06
user 3.85
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913184/ft2_4FGL_J1248.3+5820_daily_bin1103.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/913184/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1103.fits evtable="EVENTS" outfile="/scratch/kocevski/913184/ft1_filtered_4FGL_J1248.3+5820_daily_bin1103.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.31
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913184/ft1_filtered_4FGL_J1248.3+5820_daily_bin1103.fits evtable="EVENTS" scfile=/scratch/kocevski/913184/ft2_4FGL_J1248.3+5820_daily_bin1103.fits sctable="SC_DATA" expcube=/scratch/kocevski/913184/ltcube_525225601_525484801_4FGL_J1248.3+5820_daily_bin1103.fits outfile=/scratch/kocevski/913184/expmap_525225601_525484801_4FGL_J1248.3+5820_daily_bin1103.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/913184/ltcube_525225601_525484801_4FGL_J1248.3+5820_daily_bin1103.fits
.....................!
real 190.62
user 184.86
sys 5.02

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/913184/ft1_filtered_4FGL_J1248.3+5820_daily_bin1103.fits scfile=/scratch/kocevski/913184/ft2_4FGL_J1248.3+5820_daily_bin1103.fits outfile=/scratch/kocevski/913184/cmap_525225601_525484801_4FGL_J1248.3+5820_daily_bin1103.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913184/ft1_filtered_4FGL_J1248.3+5820_daily_bin1103.fits scfile=/scratch/kocevski/913184/ft2_4FGL_J1248.3+5820_daily_bin1103.fits outfile=/scratch/kocevski/913184/cmap_HighResolution_525225601_525484801_4FGL_J1248.3+5820_daily_bin1103.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/913184/ft1_filtered_4FGL_J1248.3+5820_daily_bin1103.fits evtable="EVENTS" scfile=/scratch/kocevski/913184/ft2_4FGL_J1248.3+5820_daily_bin1103.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913184/Model_4FGL_J1248.3+5820_daily_bin1103.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/913184/ft1_filtered_4FGL_J1248.3+5820_daily_bin1103.fits.....................!
real 56.39
user 55.05
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/913184/ft1_filtered_4FGL_J1248.3+5820_daily_bin1103.fits', '/scratch/kocevski/913184/ft2_4FGL_J1248.3+5820_daily_bin1103.fits', expMap='/scratch/kocevski/913184/expmap_525225601_525484801_4FGL_J1248.3+5820_daily_bin1103.fits', expCube='/scratch/kocevski/913184/ltcube_525225601_525484801_4FGL_J1248.3+5820_daily_bin1103.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/913184/Model_4FGL_J1248.3+5820_daily_bin1103.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/913184/ft1_filtered_4FGL_J1248.3+5820_daily_bin1103.fits
Spacecraft file(s): /scratch/kocevski/913184/ft2_4FGL_J1248.3+5820_daily_bin1103.fits
Exposure map: /scratch/kocevski/913184/expmap_525225601_525484801_4FGL_J1248.3+5820_daily_bin1103.fits
Exposure cube: /scratch/kocevski/913184/ltcube_525225601_525484801_4FGL_J1248.3+5820_daily_bin1103.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/913184/Model_4FGL_J1248.3+5820_daily_bin1103.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) = 6418.1456203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0044       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.604       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4621       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4376       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .64863E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7123       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.546       1.0000         .10000E-03   10000.    
    11 'norm      '    6.3033       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61344E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.6954       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2804       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9797       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4529       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.935       1.0000         .10000E-03   10000.    
    21 'Prefactor '    80.930       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.5161       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8004       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .52390       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.718       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.3764       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .12000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .89892       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1183       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=   6418.134     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     4671 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0040        6.9611        .19740E-06   -.20293E-04
   2  Prefactor     .10000E-03    10.114        .37537E-07** at limit **
   3  norm          10.604        10.824        .47313E-07   -.16032E-05
   4  Prefactor     9.4623        5.3510        .12166E-06    .49371E-04
   5  norm          .10000E-03    1.7105        .14394E-07** at limit **
   6  Prefactor     5.4375        5.8982        .10056E-06   -.24898E-04
   7  Prefactor     .10000E-03    7.4738        .11287E-07** at limit **
   8  norm          .63132E-01    .77672       -.51575E-07    .10801E-03
   9  Prefactor     1.7090        53.412        .29166E-05    .89178E-05
  10  Prefactor     14.544        47.967        .28653E-06   -.53416E-06
  11  norm          6.3214        7.2542        .23673E-05   -.19877E-04
  12  Prefactor     .11711E-03    20.362       -.13643E-05** at limit **
  13  Prefactor     .10000E-03    1.2613        .36525E-08** at limit **
  14  norm          4.6953        2.0307       -.46141E-08    .64321E-04
  15  Prefactor     9.2889        23.650        .20896E-05   -.72558E-05
  16  norm          1.9797        1.7296        .42812E-07   -.24518E-04
  17  Prefactor     .10549E-03    35.156       -.18232E-05** at limit **
  18  Prefactor     6.4530        8.1836        .21024E-06    .19734E-05
  19  norm          .10000E-03    2.0571       -.66061E-07** at limit **
  20  Prefactor     31.936        51.719       -.29125E-06   -.13767E-04
  21  Prefactor     80.932        56.800        .81703E-07   -.77405E-05
  22  Prefactor     .10000E-03    9.6858       -.54832E-06** at limit **
  23  norm          5.5161        4.7459        .10667E-06   -.15795E-03
  24  Prefactor     1.7619        366.74        .23806E-06   -.76654E-05
  25  Prefactor     .52392        2.6189        .15954E-05   -.13558E-03
  26  Prefactor     15.716        36.598       -.70382E-06    .11721E-04
  27  Prefactor     .10000E-03    3.6579       -.15530E-06** at limit **
  28  norm          .10000E-03    27.363       -.20197E-07** at limit **
  29  norm          1.3756        4.1632        .12698E-05   -.10963E-03
  30  Prefactor     .10000E-03    12.032       -.48071E-08** at limit **
  31  Prefactor     .10008E-03    546.55       -.57565E-05** at limit **
  32  Normalizat    .89908        .16342       -.65969E-06    .52858E-04
  33  Prefactor     1.1181        .18901       -.38612E-06    .32942E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.00403
  Prefactor  = 0.0001
  norm       = 10.6042
  Prefactor  = 9.46231
  norm       = 0.0001
  Prefactor  = 5.43753
  Prefactor  = 0.0001
  norm       = 0.063132
  Prefactor  = 1.70897
  Prefactor  = 14.5441
  norm       = 6.32143
  Prefactor  = 0.000117112
  Prefactor  = 0.0001
  norm       = 4.69527
  Prefactor  = 9.28892
  norm       = 1.97968
  Prefactor  = 0.000105491
  Prefactor  = 6.45305
  norm       = 0.0001
  Prefactor  = 31.9365
  Prefactor  = 80.9323
  Prefactor  = 0.0001
  norm       = 5.51613
  Prefactor  = 1.76195
  Prefactor  = 0.523923
  Prefactor  = 15.7163
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.37562
  Prefactor  = 0.0001
  Prefactor  = 0.000100078
  Normalizat = 0.899081
  Prefactor  = 1.11809
 **********
 **   18 **HESSE 
 **********

 FCN=   6418.134     FROM HESSE     STATUS=OK           723 CALLS     5394 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0040        6.9586        .15158E-03   -1.5179    
   2  Prefactor     .10000E-03    10.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.604        10.828        .12304E-03   -1.5057    
   4  Prefactor     9.4623        5.3486        .13028E-03   -1.5093    
   5  norm          .10000E-03    1.7205        .10220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4375        5.8822        .17232E-03   -1.5242    
   7  Prefactor     .10000E-03    7.4753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .63132E-01    4.7892        .13532E-02   -1.5658    
   9  Prefactor     1.7090        52.789        .32121E-03   -1.5447    
  10  Prefactor     14.544        47.887        .10502E-03   -1.4945    
  11  norm          6.3214        8.6605        .15988E-03   -1.5205    
  12  Prefactor     .11711E-03    35.301        .93531E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2629        .87857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.6953        2.0310        .72507E-04   -1.5275    
  15  Prefactor     9.2889        23.979        .13156E-03   -1.5098    
  16  norm          1.9797        1.7221        .95286E-04   -1.5427    
  17  Prefactor     .10549E-03    37.427        .13891       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.4530        8.1719        .15799E-03   -1.5200    
  19  norm          .10000E-03    2.0887        .11210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.936        51.684        .70905E-04   -1.4577    
  21  Prefactor     80.932        56.779        .44646E-04   -1.3906    
  22  Prefactor     .10000E-03    9.6930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.5161        4.7299        .15102E-03   -1.5238    
  24  Prefactor     1.7619        358.29        .31155E-03   -1.5442    
  25  Prefactor     .52392        2.4464        .24147E-03   -1.5563    
  26  Prefactor     15.716        36.306        .10102E-03   -1.4915    
  27  Prefactor     .10000E-03    3.6784        .14952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    27.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.3756        4.0568        .25572E-03   -1.5473    
  30  Prefactor     .10000E-03    12.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10008E-03    546.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .89908        .19058        .23148E-03   -.96492    
  33  Prefactor     1.1181        .22289        .26588E-03   -.88890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58492e-09
Minuit parameter uncertainties:
  1  6.95944
  2  7.22226e-06
  3  10.8304
  4  5.34885
  5  7.2871e-08
  6  5.88282
  7  2.80183e-07
  8  1.09895
  9  19.0141
  10  48.0143
  11  8.66224
  12  0.0491844
  13  3.14606e-07
  14  2.03101
  15  24.0037
  16  1.72216
  17  0.0286887
  18  8.17332
  19  8.89569e-07
  20  51.7571
  21  56.8168
  22  1.06523e-05
  23  4.73017
  24  50.559
  25  2.26419
  26  36.3573
  27  1.23855e-05
  28  6.46182e-06
  29  4.05758
  30  7.63664e-07
  31  0.0131721
  32  0.190721
  33  0.223078
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  4.695e+00  2.031e+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.118e+00  2.231e-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:  8.991e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.07
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 4.14e-08 +/- 1.79e-08
Energy Flux (Fixed Index): 4.15e-05 +/- 1.79e-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) = 6417.92041108
delta logL = 0.213139287916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6417.90585611
delta logL = 0.227694257391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7648       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5915       1.0000          .0000       5.0000    
     3 'Normalizat'    .90678       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1140       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=   6417.906     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7649        2.2456        .46081E-02   -.16018E-03
   2  alpha         1.5914        .32008        .23866       -.12933E-04
   3  Normalizat    .90679        .14753        .44988E-01    .15167E-04
   4  Prefactor     1.1140        .18718        .60222E-01    .10465E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.76491
  alpha      = 1.59142
  Normalizat = 0.906786
  Prefactor  = 1.11398
 **********
 **   18 **HESSE 
 **********

 FCN=   6417.906     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7649        2.0864        .74268E-04   -1.5271    
   2  alpha         1.5914        .31597        .99075E-02   -.37195    
   3  Normalizat    .90679        .17349        .23060E-03   -.96222    
   4  Prefactor     1.1140        .22033        .26633E-03   -.89021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46186e-13
Minuit parameter uncertainties:
  1  2.08638
  2  0.316944
  3  0.173601
  4  0.220509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913184': 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) = 6417.90585606
delta logL = 0.227694307347

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  4.765e+00  2.086e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.591e+00  3.169e-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.114e+00  2.205e-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:  9.068e-01  1.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.52
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.59 +/- 0.32
Photon Flux (Free Index): 3.36e-08 +/- 1.80e-08
Energy Flux (Free Index): 6.12e-05 +/- 4.57e-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/913184/cmap_HighResolution_525225601_525484801_4FGL_J1248.3+5820_daily_bin1103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.14e-08', energy_flux2='6.12e-05', photon_flux_error='1.79e-08', dlogl='2.28e-01', energy_flux='4.15e-05', photon_flux2='3.36e-08', job_status='DONE', time_completed='2021-09-06 05:36:49.953619', photon_index_error2='0.32', photon_index2='1.59', ts='28.07', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='4.57e-05', EG='0.90', time_epoch_completed='1630931809.95', return_code='0', job_id='913184', GAL2='1.11', EG2='0.91', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='1.80e-08', ts2='28.52', photon_index='1.81' WHERE bin_id='1103' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:36:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 913184: <4FGL_J1248.3+5820_daily_bin1103> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin1103> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 05:20:33 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:20:35 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:20:35 2021
Terminated at Mon Sep  6 05:36:50 2021
Results reported at Mon Sep  6 05:36:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin1103 192.084 58.3432 525225601 525484801 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 :                                   943.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

