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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin46
RA = 192.084, Dec = 58.3432
tmin = 251251201, tmax = 251510401
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='907036', job_status='RUN', time_executed='2021-09-06 05:01:07.195841', time_epoch_executed='1630929667.2' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907036

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907036/ft1_4FGL_J1248.3+5820_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907036/ft2_4FGL_J1248.3+5820_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907036/ft1_4FGL_J1248.3+5820_daily_bin46.fits outfile=/scratch/kocevski/907036/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin46.fits ra=192.084 dec=58.3432 rad=12.0 tmin=251251201.0 tmax=251510401.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.59
user 1.32
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907036/ft1_filtered_4FGL_J1248.3+5820_daily_bin46.fits" evtable="EVENTS" scfile=/scratch/kocevski/907036/ft2_4FGL_J1248.3+5820_daily_bin46.fits sctable="SC_DATA" outfile=/scratch/kocevski/907036/ltcube_251251201_251510401_4FGL_J1248.3+5820_daily_bin46.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/907036/ft2_4FGL_J1248.3+5820_daily_bin46.fits
.....................!
real 12.58
user 12.25
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907036/ft1_filtered_4FGL_J1248.3+5820_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/907036/ft2_4FGL_J1248.3+5820_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/907036/ltcube_251251201_251510401_4FGL_J1248.3+5820_daily_bin46.fits outfile=/scratch/kocevski/907036/expmap_251251201_251510401_4FGL_J1248.3+5820_daily_bin46.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/907036/ltcube_251251201_251510401_4FGL_J1248.3+5820_daily_bin46.fits
.....................!
real 190.75
user 185.35
sys 5.03

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/907036/ft1_filtered_4FGL_J1248.3+5820_daily_bin46.fits scfile=/scratch/kocevski/907036/ft2_4FGL_J1248.3+5820_daily_bin46.fits outfile=/scratch/kocevski/907036/cmap_251251201_251510401_4FGL_J1248.3+5820_daily_bin46.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907036/ft1_filtered_4FGL_J1248.3+5820_daily_bin46.fits scfile=/scratch/kocevski/907036/ft2_4FGL_J1248.3+5820_daily_bin46.fits outfile=/scratch/kocevski/907036/cmap_HighResolution_251251201_251510401_4FGL_J1248.3+5820_daily_bin46.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.54
user 0.35
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59289E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.2702       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.3782       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1845       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.709       1.0000         .10000E-03   10000.    
    11 'norm      '    6.9918       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.702       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9075       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4180       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.521       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.6565       1.0000         .10000E-03   10000.    
    20 'Prefactor '    91.758       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.703       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.011       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.4856       1.0000         .10000E-03   10000.    
    26 'Prefactor '    47.514       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .57372E-02   1.0000         .10000E-03   10000.    
    28 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    6.4571       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.3396       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .39928E-02   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .91315       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .99151       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=   6695.867     FROM MIGRAD    STATUS=CONVERGED    918 CALLS     4724 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10352E-03    21.731        .15751E-04** at limit **
   2  Prefactor     .10000E-03    8.9642        .40516E-06** at limit **
   3  norm          8.2705        10.596       -.29523E-06   -.16031E-04
   4  Prefactor     .10000E-03    2.4068       -.49311E-06** at limit **
   5  norm          7.3770        4.9545       -.90628E-06   -.62125E-03
   6  Prefactor     .10000E-03    5.6984        .25043E-05** at limit **
   7  Prefactor     5.1833        11.030       -.82980E-06   -.82250E-04
   8  norm          .10000E-03    .73567       -.21908E-06** at limit **
   9  Prefactor     .10000E-03    7.6465        .34001E-06** at limit **
  10  Prefactor     14.706        28.066       -.37489E-06   -.18572E-04
  11  norm          6.9890        11.261       -.21698E-05   -.51884E-04
  12  Prefactor     15.704        36.292        .21248E-05    .46520E-04
  13  Prefactor     .10000E-03    1.9053        .43741E-07** at limit **
  14  norm          1.9074        1.3246        .18737E-07   -.64876E-05
  15  Prefactor     .10000E-03    7.1195       -.18130E-07** at limit **
  16  norm          1.4179        1.5921       -.53573E-06   -.12443E-03
  17  Prefactor     18.515        18.804       -.62356E-07    .21255E-05
  18  Prefactor     .10000E-03    3.0726       -.20578E-06** at limit **
  19  norm          3.6559        3.4737       -.37300E-06    .11541E-03
  20  Prefactor     91.756        62.482       -.20171E-06    .20179E-04
  21  Prefactor     .10000E-03    21.505        .78201E-07** at limit **
  22  Prefactor     .10000E-03    13.486       -.50620E-05** at limit **
  23  norm          10.701        5.0468       -.21904E-06    .65446E-03
  24  Prefactor     16.094        55.922        .12819E-05    .23338E-04
  25  Prefactor     7.4952        4.6734        .10851E-06    .40787E-03
  26  Prefactor     47.500        45.259       -.38872E-06    .50342E-04
  27  Prefactor     .10017E-03    41.483       -.23539E-04** at limit **
  28  norm          .10000E-03    29.792       -.87305E-06** at limit **
  29  norm          6.4561        4.5386       -.72313E-06    .12706E-03
  30  Prefactor     1.3611        142.98       -.12139E-04    .13528E-04
  31  Prefactor     .10002E-03    1089.7        .31973E-04** at limit **
  32  Normalizat    .91324        .16211        .77560E-06   -.14995E-03
  33  Prefactor     .99150        .19093        .72238E-06    .83751E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103518
  Prefactor  = 0.0001
  norm       = 8.27049
  Prefactor  = 0.000100002
  norm       = 7.37702
  Prefactor  = 0.0001
  Prefactor  = 5.18329
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 14.7058
  norm       = 6.98898
  Prefactor  = 15.7037
  Prefactor  = 0.0001
  norm       = 1.90735
  Prefactor  = 0.0001
  norm       = 1.41788
  Prefactor  = 18.5145
  Prefactor  = 0.0001
  norm       = 3.65592
  Prefactor  = 91.7558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7008
  Prefactor  = 16.0944
  Prefactor  = 7.49518
  Prefactor  = 47.5001
  Prefactor  = 0.000100166
  norm       = 0.0001
  norm       = 6.4561
  Prefactor  = 1.36114
  Prefactor  = 0.000100018
  Normalizat = 0.913235
  Prefactor  = 0.991498
 **********
 **   18 **HESSE 
 **********

 FCN=   6695.867     FROM HESSE     STATUS=OK           711 CALLS     5435 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10352E-03    3.6409        .50225E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.2705        10.606        .13941E-03   -1.5133    
   4  Prefactor     .10000E-03    5.1379        .24536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.3770        4.9829        .14055E-03   -1.5165    
   6  Prefactor     .10000E-03    5.8073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1833        11.018        .17655E-03   -1.5253    
   8  norm          .10000E-03    1.2835        .13553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.6666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.706        28.059        .10443E-03   -1.4941    
  11  norm          6.9890        11.064        .15172E-03   -1.5179    
  12  Prefactor     15.704        35.791        .10108E-03   -1.4915    
  13  Prefactor     .10000E-03    1.9140        .11026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9074        1.3288        .76388E-04   -1.5432    
  15  Prefactor     .10000E-03    7.1252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4179        1.5735        .10587E-03   -1.5470    
  17  Prefactor     18.515        18.806        .93066E-04   -1.4847    
  18  Prefactor     .10000E-03    3.0872        .14008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6559        3.4671        .14332E-03   -1.5326    
  20  Prefactor     91.756        62.448        .41951E-04   -1.3789    
  21  Prefactor     .10000E-03    21.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.701        5.0270        .11966E-03   -1.5054    
  24  Prefactor     16.094        55.802        .10010E-03   -1.4905    
  25  Prefactor     7.4952        4.1488        .11788E-03   -1.5160    
  26  Prefactor     47.500        45.356        .58171E-04   -1.4328    
  27  Prefactor     .10017E-03    47.096        .32961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    29.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          6.4561        4.5275        .13673E-03   -1.5200    
  30  Prefactor     1.3611        143.91        .37877E-03   -1.5475    
  31  Prefactor     .10002E-03    1093.2        .19497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .91324        .19054        .23054E-03   -.95997    
  33  Prefactor     .99150        .22455        .27519E-03   -.93013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96794e-09
Minuit parameter uncertainties:
  1  0.00715798
  2  7.21855e-06
  3  10.6086
  4  0.000202159
  5  4.98322
  6  8.32404e-05
  7  11.0218
  8  6.95375e-05
  9  1.8563e-05
  10  28.0838
  11  11.0673
  12  35.8397
  13  5.63188e-06
  14  1.32878
  15  4.57786e-06
  16  1.57355
  17  18.8122
  18  7.57675e-06
  19  3.46724
  20  62.4925
  21  3.70284e-05
  22  8.15013e-05
  23  5.02716
  24  55.9838
  25  4.14893
  26  45.3887
  27  0.00559752
  28  3.37737e-05
  29  4.52771
  30  28.0605
  31  0.00914024
  32  0.190682
  33  0.224764
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.907e+00  1.329e+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:  9.915e-01  2.248e-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.132e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.04
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 1.68e-08 +/- 1.17e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.17e-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) = 6694.48888583
delta logL = 1.37845951964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6694.19140364
delta logL = 1.67594170719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73037       1.0000         .10000E-03   10000.    
     2 'alpha     '    .81931       1.0000          .0000       5.0000    
     3 'Normalizat'    .92276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99006       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=   6694.191     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      203 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72953        .64293        .11798E-01   -.41819E-03
   2  alpha         .81864        .36104        .29844       -.35358E-04
   3  Normalizat    .92302        .15116        .45192E-01    .10536E-04
   4  Prefactor     .98965        .18823        .46143E-01    .13944E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.729533
  alpha      = 0.818635
  Normalizat = 0.92302
  Prefactor  = 0.989649
 **********
 **   18 **HESSE 
 **********

 FCN=   6694.191     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .61E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72953        1.0349        .50052E-03   -1.5537    
   2  alpha         .81864        .55857        .13059E-02   -.73764    
   3  Normalizat    .92302        .17702        .22941E-03   -.95656    
   4  Prefactor     .98965        .22044        .27544E-03   -.93075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05857e-13
Minuit parameter uncertainties:
  1  1.03497
  2  0.567423
  3  0.177131
  4  0.220643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907036': 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) = 6694.19140098
delta logL = 1.675944368

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  7.295e-01  1.035e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  8.186e-01  5.674e-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:  9.896e-01  2.206e-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.230e-01  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.39
Ra Dec: 192.084 58.343
Photon Index (Free Index): 0.82 +/- 0.57
Photon Flux (Free Index): 5.61e-09 +/- 4.96e-09
Energy Flux (Free Index): 8.57e-05 +/- 9.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/907036/cmap_HighResolution_251251201_251510401_4FGL_J1248.3+5820_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.68e-08', energy_flux2='8.57e-05', photon_flux_error='1.17e-08', dlogl='1.68e+00', energy_flux='1.68e-05', photon_flux2='5.61e-09', job_status='DONE', time_completed='2021-09-06 05:17:28.387660', photon_index_error2='0.57', photon_index2='0.82', ts='13.04', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='9.18e-05', EG='0.91', time_epoch_completed='1630930648.39', return_code='0', job_id='907036', GAL2='0.99', EG2='0.92', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='4.96e-09', ts2='16.39', photon_index='1.81' WHERE bin_id='46' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:17:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 907036: <4FGL_J1248.3+5820_daily_bin46> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin46> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:00:57 2021
Job was executed on host(s) <bullet0162>, 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:17:29 2021
Results reported at Mon Sep  6 05:17:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin46 192.084 58.3432 251251201 251510401 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 :                                   978.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             360.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

