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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin218
RA = 192.244, Dec = 48.67
tmin = 295833601, tmax = 296092801
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='917654', job_status='RUN', time_executed='2021-09-06 05:36:47.434789', time_epoch_executed='1630931807.43' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='218'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917654

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917654/ft1_4FGL_J1248.9+4840_daily_bin218.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917654/ft2_4FGL_J1248.9+4840_daily_bin218.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917654/ft1_4FGL_J1248.9+4840_daily_bin218.fits outfile=/scratch/kocevski/917654/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin218.fits ra=192.244 dec=48.67 rad=12.0 tmin=295833601.0 tmax=296092801.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 2.44
user 2.21
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/917654/ft2_4FGL_J1248.9+4840_daily_bin218.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917654/ft2_4FGL_J1248.9+4840_daily_bin218.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/917654/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin218.fits evtable="EVENTS" outfile="/scratch/kocevski/917654/ft1_filtered_4FGL_J1248.9+4840_daily_bin218.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917654/ft1_filtered_4FGL_J1248.9+4840_daily_bin218.fits" evtable="EVENTS" scfile=/scratch/kocevski/917654/ft2_4FGL_J1248.9+4840_daily_bin218.fits sctable="SC_DATA" outfile=/scratch/kocevski/917654/ltcube_295833601_296092801_4FGL_J1248.9+4840_daily_bin218.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/917654/ft2_4FGL_J1248.9+4840_daily_bin218.fits
.....................!
real 12.07
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917654/ft1_filtered_4FGL_J1248.9+4840_daily_bin218.fits evtable="EVENTS" scfile=/scratch/kocevski/917654/ft2_4FGL_J1248.9+4840_daily_bin218.fits sctable="SC_DATA" expcube=/scratch/kocevski/917654/ltcube_295833601_296092801_4FGL_J1248.9+4840_daily_bin218.fits outfile=/scratch/kocevski/917654/expmap_295833601_296092801_4FGL_J1248.9+4840_daily_bin218.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/917654/ltcube_295833601_296092801_4FGL_J1248.9+4840_daily_bin218.fits
.....................!
real 190.19
user 185.43
sys 3.98

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

Setting source of interest to:
4FGL J1248.9+4840 @ 192.244 48.67

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/917654/ft1_filtered_4FGL_J1248.9+4840_daily_bin218.fits scfile=/scratch/kocevski/917654/ft2_4FGL_J1248.9+4840_daily_bin218.fits outfile=/scratch/kocevski/917654/cmap_295833601_296092801_4FGL_J1248.9+4840_daily_bin218.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.244 yref=48.67 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.71
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917654/ft1_filtered_4FGL_J1248.9+4840_daily_bin218.fits scfile=/scratch/kocevski/917654/ft2_4FGL_J1248.9+4840_daily_bin218.fits outfile=/scratch/kocevski/917654/cmap_HighResolution_295833601_296092801_4FGL_J1248.9+4840_daily_bin218.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.244 yref=48.67 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.79
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917654/ft1_filtered_4FGL_J1248.9+4840_daily_bin218.fits evtable="EVENTS" scfile=/scratch/kocevski/917654/ft2_4FGL_J1248.9+4840_daily_bin218.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917654/Model_4FGL_J1248.9+4840_daily_bin218.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/917654/ft1_filtered_4FGL_J1248.9+4840_daily_bin218.fits.....................!
real 55.83
user 53.70
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/917654/ft1_filtered_4FGL_J1248.9+4840_daily_bin218.fits', '/scratch/kocevski/917654/ft2_4FGL_J1248.9+4840_daily_bin218.fits', expMap='/scratch/kocevski/917654/expmap_295833601_296092801_4FGL_J1248.9+4840_daily_bin218.fits', expCube='/scratch/kocevski/917654/ltcube_295833601_296092801_4FGL_J1248.9+4840_daily_bin218.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/917654/Model_4FGL_J1248.9+4840_daily_bin218.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/917654/ft1_filtered_4FGL_J1248.9+4840_daily_bin218.fits
Spacecraft file(s): /scratch/kocevski/917654/ft2_4FGL_J1248.9+4840_daily_bin218.fits
Exposure map: /scratch/kocevski/917654/expmap_295833601_296092801_4FGL_J1248.9+4840_daily_bin218.fits
Exposure cube: /scratch/kocevski/917654/ltcube_295833601_296092801_4FGL_J1248.9+4840_daily_bin218.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/917654/Model_4FGL_J1248.9+4840_daily_bin218.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) = 6344.72603728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8584       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.969       1.0000         .10000E-03   10000.    
     3 'norm      '    7.4136       1.0000         .10000E-03   10000.    
     4 'norm      '    2.6109       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11680E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26747E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    5.0593       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.135       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7989       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    20.317       1.0000         .10000E-03   10000.    
    16 'norm      '    55.033       1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.951       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2434       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11771E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11185E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.6885       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .63537       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6344.720     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     2920 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8585        2.9674       -.69546E-07   -.50358E-04
   2  Prefactor     18.968        16.319       -.10423E-06    .43735E-05
   3  norm          7.4131        2.5876       -.93304E-07   -.30015E-05
   4  norm          2.6111        4.8017       -.55492E-06   -.47648E-03
   5  Prefactor     .10000E-03    14.413       -.34362E-06** at limit **
   6  Prefactor     .10005E-03    6.2233       -.34060E-06** at limit **
   7  norm          5.0587        2.4829       -.36408E-07    .27181E-03
   8  Prefactor     11.134        14.773       -.11186E-05   -.49831E-03
   9  Prefactor     .10000E-03    11.490       -.85344E-08** at limit **
  10  norm          3.7987        2.2030       -.59737E-07   -.22100E-04
  11  Prefactor     .10000E-03    3.0769       -.22929E-07** at limit **
  12  Prefactor     .10000E-03    16.661        .21714E-06** at limit **
  13  Prefactor     .10000E-03    6.1356       -.63887E-07** at limit **
  14  Prefactor     .10000E-03    6.5678       -.13237E-07** at limit **
  15  norm          20.318        13.865        .81298E-07    .29449E-05
  16  norm          55.036        9.1820        .10930E-05    .56403E-05
  17  Prefactor     42.918        46.549       -.20232E-04   -.63904E-05
  18  Prefactor     2.2479        20.109        .15300E-06   -.13402E-03
  19  Prefactor     .10000E-03    22.269        .48358E-06** at limit **
  20  norm          .10000E-03    4.4303        .27866E-06** at limit **
  21  Prefactor     .10000E-03    13.549       -.12416E-06** at limit **
  22  norm          1.6880        1.6554        .21060E-06   -.46558E-03
  23  norm          .10000E-03    34.577        .43596E-06** at limit **
  24  Normalizat    .63573        .16745        .32751E-05   -.28775E-04
  25  Prefactor     1.3544        .20701       -.81321E-06    .16644E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.85847
  Prefactor  = 18.9677
  norm       = 7.41311
  norm       = 2.61105
  Prefactor  = 0.000100005
  Prefactor  = 0.00010005
  norm       = 5.05869
  Prefactor  = 11.1336
  Prefactor  = 0.0001
  norm       = 3.79872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.3176
  norm       = 55.0357
  Prefactor  = 42.9183
  Prefactor  = 2.24786
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.68799
  norm       = 0.0001
  Normalizat = 0.635727
  Prefactor  = 1.3544
 **********
 **   18 **HESSE 
 **********

 FCN=   6344.720     FROM HESSE     STATUS=OK           437 CALLS     3357 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8585        2.9662        .10171E-03   -1.5267    
   2  Prefactor     18.968        16.316        .91961E-04   -1.4837    
   3  norm          7.4131        2.5878        .72709E-04   -1.5163    
   4  norm          2.6111        4.6861        .22399E-03   -1.5385    
   5  Prefactor     .10000E-03    68.842        .56709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10005E-03    8.5453        .50991E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.0587        2.4967        .81241E-04   -1.5258    
   8  Prefactor     11.134        14.891        .60030E-03   -1.5040    
   9  Prefactor     .10000E-03    11.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7987        2.2029        .87173E-04   -1.5318    
  11  Prefactor     .10000E-03    3.0803        .13645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          20.318        13.867        .88860E-04   -1.4806    
  16  norm          55.036        9.1849        .54071E-04   -1.4223    
  17  Prefactor     42.918        45.992        .61170E-04   -1.4397    
  18  Prefactor     2.2479        19.823        .27438E-03   -1.5408    
  19  Prefactor     .10000E-03    22.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.5539        .32511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6880        1.6377        .95440E-04   -1.5448    
  23  norm          .10000E-03    34.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .63573        .19650        .28628E-03   -1.0649    
  25  Prefactor     1.3544        .24510        .26216E-03   -.81703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31729e-09
Minuit parameter uncertainties:
  1  2.96627
  2  16.3197
  3  2.58785
  4  4.68678
  5  0.00113075
  6  0.00130986
  7  2.49671
  8  14.8958
  9  9.54145e-06
  10  2.20294
  11  2.97485e-06
  12  2.62967e-06
  13  1.37039e-05
  14  4.45465e-06
  15  13.8688
  16  9.1851
  17  46.03
  18  13.3563
  19  0.000371968
  20  6.03917e-05
  21  2.56903e-06
  22  1.63777
  23  6.27925e-07
  24  0.196714
  25  0.245309
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.113e+01  1.490e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.354e+00  2.453e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  6.357e-01  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.89
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 7.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917654/likelihoodResults_295833601_296092801_4FGL_J1248.9+4840_daily_bin218.txt

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) = 6344.66298855
delta logL = 0.0568553921739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6344.66106247
delta logL = 0.0587814749697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.983       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1346       1.0000          .0000       10.000    
     3 'Normalizat'    .63985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6344.661     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      300 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.995        21.305        .10347E-03    .10042E-03
   2  Index         2.1346        .86961        .11146E-01   -.10977E-04
   3  Normalizat    .63984        .18813        .28542E-03   -.42340E-04
   4  Prefactor     1.3500        .24357        .26251E-03   -.89647E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9945
  Index      = 2.13456
  Normalizat = 0.63984
  Prefactor  = 1.34999
 **********
 **   18 **HESSE 
 **********

 FCN=   6344.661     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.995        20.832        .41389E-05   -1.4933    
   2  Index         2.1346        .85077        .44585E-03   -.61027    
   3  Normalizat    .63984        .18828        .11417E-04   -1.0632    
   4  Prefactor     1.3500        .24377        .10500E-04   -.81833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07118e-11
Minuit parameter uncertainties:
  1  20.8423
  2  0.85701
  3  0.188473
  4  0.243979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917654': 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) = 6344.66106189
delta logL = 0.0587820556993

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.499e+01  2.084e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.135e+00  8.570e-01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.350e+00  2.440e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  6.398e-01  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.00
Ra Dec: 192.244 48.670
Photon Index (Free Index): 2.13 +/- 0.86
Photon Flux (Free Index): 1.46e-08 +/- 2.11e-08
Energy Flux (Free Index): 7.46e-06 +/- 1.28e-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/917654/cmap_HighResolution_295833601_296092801_4FGL_J1248.9+4840_daily_bin218.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', comment='SUCCESS', energy_flux2='7.46e-06', dlogl='5.88e-02', photon_flux2='1.46e-08', job_status='DONE', time_completed='2021-09-06 05:50:17.833528', photon_index_error2='0.86', photon_index2='2.13', ts='0.89', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='7.83e-08', energy_flux_error2='1.28e-05', EG='0.64', time_epoch_completed='1630932617.83', return_code='0', job_id='917654', GAL2='1.35', EG2='0.64', return_code2='0', photon_flux_error2='2.11e-08', ts2='1.00', photon_index='2.45' WHERE bin_id='218' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:50:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 917654: <4FGL_J1248.9+4840_daily_bin218> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin218> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 05:35:25 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:35:27 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:35:27 2021
Terminated at Mon Sep  6 05:50:18 2021
Results reported at Mon Sep  6 05:50:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin218 192.244 48.67 295833601 296092801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1248.9+4840 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   800.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

