/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 6 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1248.3+5820_daily_bin368
RA = 192.084, Dec = 58.3432
tmin = 334713601, tmax = 334972801
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='909962', job_status='RUN', time_executed='2021-09-06 05:10:51.127782', time_epoch_executed='1630930251.13' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/909962

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/909962/ft1_4FGL_J1248.3+5820_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/909962/ft2_4FGL_J1248.3+5820_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/909962/ft1_4FGL_J1248.3+5820_daily_bin368.fits outfile=/scratch/kocevski/909962/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin368.fits ra=192.084 dec=58.3432 rad=12.0 tmin=334713601.0 tmax=334972801.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 3.50
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/909962/ft1_filtered_4FGL_J1248.3+5820_daily_bin368.fits" evtable="EVENTS" scfile=/scratch/kocevski/909962/ft2_4FGL_J1248.3+5820_daily_bin368.fits sctable="SC_DATA" outfile=/scratch/kocevski/909962/ltcube_334713601_334972801_4FGL_J1248.3+5820_daily_bin368.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/909962/ft2_4FGL_J1248.3+5820_daily_bin368.fits
.....................!
real 11.88
user 11.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/909962/ft1_filtered_4FGL_J1248.3+5820_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/909962/ft2_4FGL_J1248.3+5820_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/909962/ltcube_334713601_334972801_4FGL_J1248.3+5820_daily_bin368.fits outfile=/scratch/kocevski/909962/expmap_334713601_334972801_4FGL_J1248.3+5820_daily_bin368.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/909962/ltcube_334713601_334972801_4FGL_J1248.3+5820_daily_bin368.fits
.....................!
real 191.16
user 185.96
sys 4.77

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/909962/ft1_filtered_4FGL_J1248.3+5820_daily_bin368.fits scfile=/scratch/kocevski/909962/ft2_4FGL_J1248.3+5820_daily_bin368.fits outfile=/scratch/kocevski/909962/cmap_334713601_334972801_4FGL_J1248.3+5820_daily_bin368.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/909962/ft1_filtered_4FGL_J1248.3+5820_daily_bin368.fits scfile=/scratch/kocevski/909962/ft2_4FGL_J1248.3+5820_daily_bin368.fits outfile=/scratch/kocevski/909962/cmap_HighResolution_334713601_334972801_4FGL_J1248.3+5820_daily_bin368.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5966       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.886       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0254       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.3832       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23900E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .23032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1262       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.243       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3716       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0809       1.0000         .10000E-03   10000.    
    19 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.562       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3230       1.0000         .10000E-03   10000.    
    23 'norm      '    .56215       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12629E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.2338       1.0000         .10000E-03   10000.    
    30 'Prefactor '    40.638       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .93372       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0346       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6279.697     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     3834 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5966        1.0170        .10165E-06    .14974E-03
   2  Prefactor     38.886        1.0014       -.25903E-07    .13533E-03
   3  norm          .10000E-03    4.2976        .33874E-06** at limit **
   4  Prefactor     2.0244        1.1463       -.12137E-05   -.77988E-03
   5  norm          .10000E-03    1.9612       -.46943E-06** at limit **
   6  Prefactor     .10000E-03    7.5410        .12659E-05** at limit **
   7  Prefactor     .10009E-03    6.7722        .90597E-05** at limit **
   8  norm          5.3827        2.6380        .27842E-06    .84022E-04
   9  Prefactor     .11185E-03    13.957        .12870E-04** at limit **
  10  Prefactor     .11543E-03    48.106        .10919E-04** at limit **
  11  norm          .10009E-03    10.956        .19475E-04** at limit **
  12  Prefactor     .10000E-03    7.0097       -.22179E-05** at limit **
  13  Prefactor     .10000E-03    2.4445       -.12305E-05** at limit **
  14  norm          2.1261        1.6452       -.46814E-06   -.30193E-04
  15  Prefactor     29.238        1.0533        .12985E-06   -.34718E-03
  16  norm          2.3714        2.1261       -.12989E-07    .78298E-06
  17  Prefactor     .10009E-03    15.041       -.18049E-04** at limit **
  18  Prefactor     5.0806        1.0081       -.11554E-06   -.30389E-04
  19  norm          .10000E-03    1.3690        .63184E-06** at limit **
  20  Prefactor     .10008E-03    8.9523       -.13606E-05** at limit **
  21  Prefactor     38.555        1.2904       -.37009E-06    .13790E-02
  22  Prefactor     6.3221        1.0900        .31090E-06   -.12192E-03
  23  norm          .56130        4.6978        .49226E-07   -.10711E-03
  24  Prefactor     .10585E-03    47.395       -.10157E-04** at limit **
  25  Prefactor     .10000E-03    .95971        .12272E-05** at limit **
  26  Prefactor     .10009E-03    12.839       -.14209E-04** at limit **
  27  Prefactor     .10000E-03    1.6683        .10044E-05** at limit **
  28  norm          .10024E-03    32.465        .73681E-05** at limit **
  29  norm          4.2345        3.6942        .43110E-05    .65499E-03
  30  Prefactor     40.631        1.3266       -.41248E-06    .16560E-02
  31  Prefactor     .11834E-03    48.892       -.14787E-04** at limit **
  32  Normalizat    .93368        .18219       -.19153E-05    .37418E-04
  33  Prefactor     1.0346        .22523       -.21182E-05    .28045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.59659
  Prefactor  = 38.886
  norm       = 0.0001
  Prefactor  = 2.02438
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100088
  norm       = 5.38275
  Prefactor  = 0.000111849
  Prefactor  = 0.000115432
  norm       = 0.000100092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12606
  Prefactor  = 29.2383
  norm       = 2.37137
  Prefactor  = 0.000100094
  Prefactor  = 5.08063
  norm       = 0.0001
  Prefactor  = 0.000100078
  Prefactor  = 38.5554
  Prefactor  = 6.32213
  norm       = 0.5613
  Prefactor  = 0.000105851
  Prefactor  = 0.0001
  Prefactor  = 0.000100087
  Prefactor  = 0.0001
  norm       = 0.000100244
  norm       = 4.2345
  Prefactor  = 40.6314
  Prefactor  = 0.000118343
  Normalizat = 0.933681
  Prefactor  = 1.03465
 **********
 **   18 **HESSE 
 **********

 FCN=   6279.697     FROM HESSE     STATUS=OK           771 CALLS     4605 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5966        7.5856        .46936E-02   -1.5279    
   2  Prefactor     38.886        25.587        .16069E-02   -1.4460    
   3  norm          .10000E-03    4.2945        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0244        5.9010        .72685E-02   -1.5423    
   5  norm          .10000E-03    1.9325        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2959        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10009E-03    15.943        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.3827        2.6603        .43301E-02   -1.5244    
   9  Prefactor     .11185E-03    18.429        .11405       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11543E-03    128.24        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10009E-03    4.3970        .58480E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.0092        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1261        1.6548        .70697E-02   -1.5416    
  15  Prefactor     29.238        22.078        .18522E-02   -1.4626    
  16  norm          2.3714        2.1389        .66514E-02   -1.5400    
  17  Prefactor     .10009E-03    23.243        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0806        7.2299        .44594E-02   -1.5257    
  19  norm          .10000E-03    1.3629        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10008E-03    20.815        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     38.555        38.045        .16136E-02   -1.4465    
  22  Prefactor     6.3221        17.990        .39907E-02   -1.5205    
  23  norm          .56130        6.1421        .11522E-01   -1.5558    
  24  Prefactor     .10585E-03    152.89        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .95470        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10009E-03    14.985        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.6674        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10024E-03    33.424        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.2345        3.7068        .48958E-02   -1.5296    
  30  Prefactor     40.631        41.372        .15720E-02   -1.4432    
  31  Prefactor     .11834E-03    162.06        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .93368        .16049        .45331E-01   -.95287    
  33  Prefactor     1.0346        .18841        .60374E-01   -.91583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36689e-07
Minuit parameter uncertainties:
  1  7.58719
  2  25.5938
  3  3.06071e-06
  4  5.90273
  5  3.80404e-07
  6  3.24077e-05
  7  0.00236611
  8  2.66032
  9  0.0295629
  10  0.0891637
  11  0.00127497
  12  1.80531e-05
  13  2.91416e-07
  14  1.6548
  15  22.0844
  16  2.139
  17  0.00295899
  18  7.23115
  19  5.75562e-08
  20  0.00255642
  21  38.0692
  22  18.0051
  23  3.71367
  24  0.0599744
  25  1.21735e-06
  26  0.00227987
  27  6.12222e-08
  28  0.00572022
  29  3.70698
  30  41.4014
  31  0.109341
  32  0.160574
  33  0.188534
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  2.126e+00  1.655e+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.035e+00  1.885e-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.337e-01  1.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.42
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 1.88e-08 +/- 1.46e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.46e-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) = 6279.67144355
delta logL = 0.0254838356141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6279.66807144
delta logL = 0.0288559525015

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9806       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6439       1.0000          .0000       5.0000    
     3 'Normalizat'    .93806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0328       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=   6279.668     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9798        3.4989        .73627E-02   -.64166E-04
   2  alpha         1.6438        1.0384        .44715       -.23438E-04
   3  Normalizat    .93809        .15481        .45386E-01    .83551E-05
   4  Prefactor     1.0327        .18930        .60432E-01    .88227E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.97978
  alpha      = 1.6438
  Normalizat = 0.938089
  Prefactor  = 1.03269
 **********
 **   18 **HESSE 
 **********

 FCN=   6279.668     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9798        1.7526        .86746E-04   -1.5427    
   2  alpha         1.6438        .67099        .15724E-01   -.34956    
   3  Normalizat    .93809        .18018        .22375E-03   -.95134    
   4  Prefactor     1.0327        .22489        .26725E-03   -.91648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48288e-10
Minuit parameter uncertainties:
  1  1.75265
  2  0.680464
  3  0.180293
  4  0.225098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/909962': 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) = 6279.66807106
delta logL = 0.0288563296199

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.980e+00  1.753e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.644e+00  6.805e-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.033e+00  2.251e-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.381e-01  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.48
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.64 +/- 0.68
Photon Flux (Free Index): 1.46e-08 +/- 1.89e-08
Energy Flux (Free Index): 2.29e-05 +/- 2.78e-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/909962/cmap_HighResolution_334713601_334972801_4FGL_J1248.3+5820_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.88e-08', energy_flux2='2.29e-05', photon_flux_error='1.46e-08', dlogl='2.89e-02', energy_flux='1.88e-05', photon_flux2='1.46e-08', job_status='DONE', time_completed='2021-09-06 05:25:16.250752', photon_index_error2='0.68', photon_index2='1.64', ts='7.42', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.78e-05', EG='0.93', time_epoch_completed='1630931116.25', return_code='0', job_id='909962', GAL2='1.03', EG2='0.94', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='1.89e-08', ts2='7.48', photon_index='1.81' WHERE bin_id='368' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:25:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 909962: <4FGL_J1248.3+5820_daily_bin368> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin368> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 05:10:33 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:10:34 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:10:34 2021
Terminated at Mon Sep  6 05:25:19 2021
Results reported at Mon Sep  6 05:25:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin368 192.084 58.3432 334713601 334972801 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 :                                   860.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            886 sec.

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

