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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin838
RA = 192.084, Dec = 58.3432
tmin = 456537601, tmax = 456796801
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='911627', job_status='RUN', time_executed='2021-09-06 05:15:55.146941', time_epoch_executed='1630930555.15' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='838'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/911627

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/911627/ft1_4FGL_J1248.3+5820_daily_bin838.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/911627/ft2_4FGL_J1248.3+5820_daily_bin838.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/911627/ft1_4FGL_J1248.3+5820_daily_bin838.fits outfile=/scratch/kocevski/911627/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin838.fits ra=192.084 dec=58.3432 rad=12.0 tmin=456537601.0 tmax=456796801.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 5.49
user 5.01
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/911627/ft1_filtered_4FGL_J1248.3+5820_daily_bin838.fits evtable="EVENTS" scfile=/scratch/kocevski/911627/ft2_4FGL_J1248.3+5820_daily_bin838.fits sctable="SC_DATA" expcube=/scratch/kocevski/911627/ltcube_456537601_456796801_4FGL_J1248.3+5820_daily_bin838.fits outfile=/scratch/kocevski/911627/expmap_456537601_456796801_4FGL_J1248.3+5820_daily_bin838.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/911627/ltcube_456537601_456796801_4FGL_J1248.3+5820_daily_bin838.fits
.....................!
real 190.06
user 184.75
sys 4.89

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/911627/ft1_filtered_4FGL_J1248.3+5820_daily_bin838.fits scfile=/scratch/kocevski/911627/ft2_4FGL_J1248.3+5820_daily_bin838.fits outfile=/scratch/kocevski/911627/cmap_456537601_456796801_4FGL_J1248.3+5820_daily_bin838.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/911627/ft1_filtered_4FGL_J1248.3+5820_daily_bin838.fits scfile=/scratch/kocevski/911627/ft2_4FGL_J1248.3+5820_daily_bin838.fits outfile=/scratch/kocevski/911627/cmap_HighResolution_456537601_456796801_4FGL_J1248.3+5820_daily_bin838.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6634       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.368       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.963       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3793       1.0000         .10000E-03   10000.    
     9 'Prefactor '    77.946       1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.245       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.812       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9707       1.0000         .10000E-03   10000.    
    14 'norm      '    9.1391       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.320       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.676       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    210.39       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.7062       1.0000         .10000E-03   10000.    
    24 'Prefactor '    85.916       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.0602       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.1145       1.0000         .10000E-03   10000.    
    28 'norm      '    .32342E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.8912       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .55935       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2749       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=   3431.679     FROM MIGRAD    STATUS=CONVERGED    898 CALLS     5376 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.070        .29256E-06** at limit **
   2  Prefactor     .10000E-03    34.040       -.40696E-07** at limit **
   3  norm          .10000E-03    60.836        .15179E-05** at limit **
   4  Prefactor     2.6633        6.1465        .36565E-07   -.36400E-05
   5  norm          .10000E-03    28.475        .51701E-05** at limit **
   6  Prefactor     10.357        32.654       -.47258E-05   -.27953E-03
   7  Prefactor     13.014        152.44        .10747E-04   -.90854E-04
   8  norm          2.3796        3.3529        .30018E-06   -.84049E-04
   9  Prefactor     77.944        43.425       -.22550E-06   -.90392E-04
  10  Prefactor     44.240        153.92       -.43382E-05   -.46693E-04
  11  norm          .10000E-03    2.2537        .35471E-07** at limit **
  12  Prefactor     10.812        17.614        .10481E-07    .15207E-05
  13  Prefactor     3.9709        7.7328        .72788E-07   -.16152E-04
  14  norm          9.1390        5.1349        .45186E-08   -.53294E-04
  15  Prefactor     .10000E-03    12.968        .12941E-06** at limit **
  16  norm          .10000E-03    .99329        .34545E-07** at limit **
  17  Prefactor     35.321        62.564        .23884E-06   -.33621E-05
  18  Prefactor     16.676        14.676        .13575E-06   -.19628E-04
  19  norm          .10000E-03    3.2294        .87999E-07** at limit **
  20  Prefactor     .10000E-03    53.529        .24484E-07** at limit **
  21  Prefactor     210.39        85.439       -.47487E-07   -.50077E-05
  22  Prefactor     .10000E-03    9.1204       -.13964E-06** at limit **
  23  norm          3.7065        4.2307       -.54656E-07   -.14191E-04
  24  Prefactor     85.919        77.789        .27494E-06   -.41324E-04
  25  Prefactor     6.0600        7.8583       -.25089E-05    .80478E-05
  26  Prefactor     .10000E-03    294.22       -.54062E-05** at limit **
  27  Prefactor     1.1104        59.096        .18041E-04   -.12972E-04
  28  norm          .10000E-03    689.13       -.15134E-04** at limit **
  29  norm          2.8854        7.6695        .18793E-05   -.11899E-03
  30  Prefactor     .10000E-03    98.697        .15517E-06** at limit **
  31  Prefactor     .10000E-03    194.26       -.17643E-05** at limit **
  32  Normalizat    .55906        .23891        .30412E-06   -.12625E-03
  33  Prefactor     1.2753        .27575       -.31084E-06   -.92383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.66329
  norm       = 0.0001
  Prefactor  = 10.3569
  Prefactor  = 13.0136
  norm       = 2.37958
  Prefactor  = 77.9444
  Prefactor  = 44.2404
  norm       = 0.0001
  Prefactor  = 10.8123
  Prefactor  = 3.97094
  norm       = 9.13905
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.3208
  Prefactor  = 16.6762
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 210.392
  Prefactor  = 0.0001
  norm       = 3.70648
  Prefactor  = 85.9186
  Prefactor  = 6.06002
  Prefactor  = 0.0001
  Prefactor  = 1.11036
  norm       = 0.0001
  norm       = 2.8854
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.559059
  Prefactor  = 1.27525
 **********
 **   18 **HESSE 
 **********

 FCN=   3431.679     FROM HESSE     STATUS=OK           687 CALLS     6063 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    61.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6633        6.1239        .21134E-03   -1.5382    
   5  norm          .10000E-03    28.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.357        32.820        .12443E-03   -1.5064    
   7  Prefactor     13.014        148.30        .11125E-03   -1.4986    
   8  norm          2.3796        3.3324        .60377E-03   -1.5399    
   9  Prefactor     77.944        43.448        .45485E-04   -1.3940    
  10  Prefactor     44.240        152.86        .60273E-04   -1.4377    
  11  norm          .10000E-03    2.2549        .85881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.812        17.609        .12184E-03   -1.5050    
  13  Prefactor     3.9709        7.7245        .20242E-03   -1.5309    
  14  norm          9.1390        5.1416        .89281E-04   -1.5103    
  15  Prefactor     .10000E-03    12.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0003        .56995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.321        62.561        .67431E-04   -1.4519    
  18  Prefactor     16.676        14.678        .98080E-04   -1.4891    
  19  norm          .10000E-03    3.2617        .10269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    53.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     210.39        85.405        .27872E-04   -1.2797    
  22  Prefactor     .10000E-03    9.1310        .17277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.7065        4.2217        .12358E-03   -1.5323    
  24  Prefactor     85.919        77.626        .43341E-04   -1.3851    
  25  Prefactor     6.0600        8.2002        .12922E-03   -1.5216    
  26  Prefactor     .10000E-03    298.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.1104        64.483        .22318E-02   -1.5497    
  28  norm          .10000E-03    700.32        .21358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.8854        7.6194        .23711E-03   -1.5368    
  30  Prefactor     .10000E-03    99.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    193.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .55906        .28262        .29499E-03   -1.0975    
  33  Prefactor     1.2753        .33026        .25104E-03   -.84046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56853e-09
Minuit parameter uncertainties:
  1  3.61345e-05
  2  8.95312e-05
  3  3.21125e-08
  4  6.12534
  5  3.24915e-05
  6  32.8768
  7  88.1373
  8  3.33268
  9  43.4655
  10  154.241
  11  2.10026e-06
  12  17.6178
  13  7.72648
  14  5.14188
  15  1.05936e-05
  16  2.66875e-06
  17  62.6777
  18  14.6814
  19  7.62265e-06
  20  0.000110939
  21  85.4555
  22  1.0123e-05
  23  4.22205
  24  77.7175
  25  8.2017
  26  9.95927e-05
  27  16.9417
  28  0.00074423
  29  7.62196
  30  0.000250628
  31  0.00125644
  32  0.283351
  33  0.330799
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  9.139e+00  5.142e+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.275e+00  3.308e-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:  5.591e-01  2.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.30
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 8.06e-08 +/- 4.54e-08
Energy Flux (Fixed Index): 8.07e-05 +/- 4.54e-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) = 3431.51708643
delta logL = 0.162338384357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3431.51237912
delta logL = 0.167045699963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2248       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5909       1.0000          .0000       5.0000    
     3 'Normalizat'    .57351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2652       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=   3431.512     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      214 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2261        5.1237        .32989E-02    .20667E-04
   2  alpha         1.5904        .36605        .20289       -.15495E-04
   3  Normalizat    .57321        .21997        .65892E-01    .17953E-04
   4  Prefactor     1.2656        .27344        .56966E-01   -.86025E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 9.22605
  alpha      = 1.59035
  Normalizat = 0.573207
  Prefactor  = 1.26564
 **********
 **   18 **HESSE 
 **********

 FCN=   3431.512     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2261        4.9320        .91478E-04   -1.5100    
   2  alpha         1.5904        .36980        .85288E-02   -.37241    
   3  Normalizat    .57321        .26179        .29160E-03   -1.0913    
   4  Prefactor     1.2656        .32643        .25189E-03   -.84335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73392e-12
Minuit parameter uncertainties:
  1  4.9322
  2  0.371369
  3  0.262355
  4  0.326954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/911627': 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) = 3431.512377
delta logL = 0.167047810593

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  9.226e+00  4.932e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.590e+00  3.714e-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.266e+00  3.270e-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:  5.732e-01  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.69
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.59 +/- 0.37
Photon Flux (Free Index): 6.49e-08 +/- 4.28e-08
Energy Flux (Free Index): 1.19e-04 +/- 1.03e-04

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/911627/cmap_HighResolution_456537601_456796801_4FGL_J1248.3+5820_daily_bin838.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.06e-08', energy_flux2='1.19e-04', photon_flux_error='4.54e-08', dlogl='1.67e-01', energy_flux='8.07e-05', photon_flux2='6.49e-08', job_status='DONE', time_completed='2021-09-06 05:27:40.916200', photon_index_error2='0.37', photon_index2='1.59', ts='8.30', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='1.03e-04', EG='0.56', time_epoch_completed='1630931260.92', return_code='0', job_id='911627', GAL2='1.27', EG2='0.57', return_code2='0', energy_flux_error='4.54e-05', photon_flux_error2='4.28e-08', ts2='8.69', photon_index='1.81' WHERE bin_id='838' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:27:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 911627: <4FGL_J1248.3+5820_daily_bin838> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin838> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 05:15:38 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:15:40 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:15:40 2021
Terminated at Mon Sep  6 05:27:41 2021
Results reported at Mon Sep  6 05:27:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin838 192.084 58.3432 456537601 456796801 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 :                                   697.40 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             307.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            723 sec.

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

