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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin531
RA = 192.244, Dec = 48.67
tmin = 376963201, tmax = 377222401
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='919229', job_status='RUN', time_executed='2021-09-06 05:41:06.164017', time_epoch_executed='1630932066.16' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919229

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919229/ft1_4FGL_J1248.9+4840_daily_bin531.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919229/ft2_4FGL_J1248.9+4840_daily_bin531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919229/ft1_4FGL_J1248.9+4840_daily_bin531.fits outfile=/scratch/kocevski/919229/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin531.fits ra=192.244 dec=48.67 rad=12.0 tmin=376963201.0 tmax=377222401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.63
user 4.28
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919229/ft2_4FGL_J1248.9+4840_daily_bin531.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/919229/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin531.fits evtable="EVENTS" outfile="/scratch/kocevski/919229/ft1_filtered_4FGL_J1248.9+4840_daily_bin531.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.56
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919229/ft1_filtered_4FGL_J1248.9+4840_daily_bin531.fits" evtable="EVENTS" scfile=/scratch/kocevski/919229/ft2_4FGL_J1248.9+4840_daily_bin531.fits sctable="SC_DATA" outfile=/scratch/kocevski/919229/ltcube_376963201_377222401_4FGL_J1248.9+4840_daily_bin531.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/919229/ft2_4FGL_J1248.9+4840_daily_bin531.fits
.....................!
real 11.93
user 11.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919229/ft1_filtered_4FGL_J1248.9+4840_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/919229/ft2_4FGL_J1248.9+4840_daily_bin531.fits sctable="SC_DATA" expcube=/scratch/kocevski/919229/ltcube_376963201_377222401_4FGL_J1248.9+4840_daily_bin531.fits outfile=/scratch/kocevski/919229/expmap_376963201_377222401_4FGL_J1248.9+4840_daily_bin531.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/919229/ltcube_376963201_377222401_4FGL_J1248.9+4840_daily_bin531.fits
.....................!
real 191.86
user 186.51
sys 4.97

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/919229/ft1_filtered_4FGL_J1248.9+4840_daily_bin531.fits scfile=/scratch/kocevski/919229/ft2_4FGL_J1248.9+4840_daily_bin531.fits outfile=/scratch/kocevski/919229/cmap_376963201_377222401_4FGL_J1248.9+4840_daily_bin531.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919229/ft1_filtered_4FGL_J1248.9+4840_daily_bin531.fits scfile=/scratch/kocevski/919229/ft2_4FGL_J1248.9+4840_daily_bin531.fits outfile=/scratch/kocevski/919229/cmap_HighResolution_376963201_377222401_4FGL_J1248.9+4840_daily_bin531.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.54
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/919229/ft1_filtered_4FGL_J1248.9+4840_daily_bin531.fits', '/scratch/kocevski/919229/ft2_4FGL_J1248.9+4840_daily_bin531.fits', expMap='/scratch/kocevski/919229/expmap_376963201_377222401_4FGL_J1248.9+4840_daily_bin531.fits', expCube='/scratch/kocevski/919229/ltcube_376963201_377222401_4FGL_J1248.9+4840_daily_bin531.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/919229/Model_4FGL_J1248.9+4840_daily_bin531.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/919229/ft1_filtered_4FGL_J1248.9+4840_daily_bin531.fits
Spacecraft file(s): /scratch/kocevski/919229/ft2_4FGL_J1248.9+4840_daily_bin531.fits
Exposure map: /scratch/kocevski/919229/expmap_376963201_377222401_4FGL_J1248.9+4840_daily_bin531.fits
Exposure cube: /scratch/kocevski/919229/ltcube_376963201_377222401_4FGL_J1248.9+4840_daily_bin531.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/919229/Model_4FGL_J1248.9+4840_daily_bin531.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) = 6826.57168115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95946E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.552       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1811       1.0000         .10000E-03   10000.    
     4 'norm      '    .90135E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .54074       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2653       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.217       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3838       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.783       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3029       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10569E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28150E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6187       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.902       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2210       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.7945       1.0000         .10000E-03   10000.    
    23 'norm      '    66.217       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85521       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3149       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=   6826.544     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2995 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10406E-03    1.9811       -.12849E-05** at limit **
   2  Prefactor     27.632        21.271        .30143E-05    .50254E-03
   3  norm          1.1812        2.2118        .54749E-06    .27704E-03
   4  norm          .10001E-03    4.8292       -.11454E-06** at limit **
   5  Prefactor     .10000E-03    9.0405       -.27960E-07** at limit **
   6  Prefactor     .54692        3.7559       -.13506E-05    .81653E-03
   7  norm          3.2649        2.0994       -.53034E-07    .56230E-03
   8  Prefactor     17.228        23.340       -.26460E-06    .33270E-04
   9  Prefactor     .10000E-03    10.597        .92805E-07** at limit **
  10  norm          3.3836        2.3440       -.25644E-07    .17733E-03
  11  Prefactor     .10000E-03    3.9343        .49423E-07** at limit **
  12  Prefactor     18.722        45.302       -.10843E-05   -.71199E-04
  13  Prefactor     6.3019        6.9168       -.94530E-07    .11548E-03
  14  Prefactor     .10000E-03    6.4223        .28414E-07** at limit **
  15  norm          .10000E-03    12.767       -.11905E-05** at limit **
  16  norm          .10000E-03    1.0700       -.24055E-07** at limit **
  17  Prefactor     .10000E-03    46.432       -.10631E-05** at limit **
  18  Prefactor     6.6158        12.322        .61606E-07    .37242E-05
  19  Prefactor     35.881        34.684       -.10749E-05   -.45919E-06
  20  norm          2.2212        2.1947       -.75073E-07    .27576E-04
  21  Prefactor     .10000E-03    22.251        .13959E-06** at limit **
  22  norm          6.7942        1.9393       -.98745E-08    .14487E-04
  23  norm          66.216        67.426       -.15634E-07   -.11405E-05
  24  Normalizat    .85527        .16873        .52906E-06    .48308E-03
  25  Prefactor     1.3151        .20126       -.19100E-06    .41460E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104058
  Prefactor  = 27.632
  norm       = 1.18122
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.546917
  norm       = 3.26492
  Prefactor  = 17.228
  Prefactor  = 0.0001
  norm       = 3.38361
  Prefactor  = 0.0001
  Prefactor  = 18.7224
  Prefactor  = 6.30194
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.61577
  Prefactor  = 35.8808
  norm       = 2.22116
  Prefactor  = 0.0001
  norm       = 6.7942
  norm       = 66.2159
  Normalizat = 0.855268
  Prefactor  = 1.31506
 **********
 **   18 **HESSE 
 **********

 FCN=   6826.544     FROM HESSE     STATUS=OK           435 CALLS     3430 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10406E-03    5.6530        .32834E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.632        24.454        .76322E-04   -1.4656    
   3  norm          1.1812        2.1851        .15537E-03   -1.5491    
   4  norm          .10001E-03    54.346        .34870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.0558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .54692        12.710        .27093E-02   -1.5560    
   7  norm          3.2649        2.1037        .89466E-04   -1.5347    
   8  Prefactor     17.228        23.416        .96526E-04   -1.4878    
   9  Prefactor     .10000E-03    10.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3836        2.3429        .10123E-03   -1.5340    
  11  Prefactor     .10000E-03    3.9571        .16004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.722        45.033        .92414E-04   -1.4842    
  13  Prefactor     6.3019        6.8981        .15989E-03   -1.5206    
  14  Prefactor     .10000E-03    6.4279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0724        .83444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    46.327        .21416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.6158        12.279        .15598E-03   -1.5193    
  19  Prefactor     35.881        34.553        .66884E-04   -1.4509    
  20  norm          2.2212        2.1995        .11591E-03   -1.5410    
  21  Prefactor     .10000E-03    22.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.7942        1.9388        .58605E-04   -1.5187    
  23  norm          66.216        67.426        .49321E-04   -1.4079    
  24  Normalizat    .85527        .19950        .25247E-03   -.98050    
  25  Prefactor     1.3151        .23962        .26649E-03   -.82860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61519e-09
Minuit parameter uncertainties:
  1  0.00958027
  2  24.4632
  3  2.18523
  4  0.00115816
  5  8.66577e-06
  6  5.27385
  7  2.10379
  8  23.4281
  9  5.38734e-06
  10  2.34295
  11  1.22152e-06
  12  45.115
  13  6.89896
  14  5.40357e-07
  15  2.34215e-07
  16  9.44908e-07
  17  0.000133878
  18  12.2835
  19  34.5727
  20  2.19954
  21  1.40283e-05
  22  1.93879
  23  67.5042
  24  0.199673
  25  0.239818
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.723e+01  2.343e+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.315e+00  2.398e-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:  8.553e-01  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919229/likelihoodResults_376963201_377222401_4FGL_J1248.9+4840_daily_bin531.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) = 6825.61386651
delta logL = 0.930206735996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6825.58076821
delta logL = 0.963305028083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5868       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9060       1.0000          .0000       10.000    
     3 'Normalizat'    .79373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3669       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6825.581     FROM MIGRAD    STATUS=FAILED        80 CALLS      325 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5857        85.682        .10466E-03   -.44075E-02
   2  Index         3.9062        6.8465        .48076E-02   -.98838E-03
   3  Normalizat    .79380        .17948        .26096E-03   -.12009E-02
   4  Prefactor     1.3669        .22907        .26211E-03   -.94216E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6825.581     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      416 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5857        85.682        .16910E-03   -.44075E-02
   2  Index         3.9062        6.8465        .85036E-03   -.98838E-03
   3  Normalizat    .79380        .17948        .15315E-03   -.12009E-02
   4  Prefactor     1.3669        .22907        .90840E-04   -.94216E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6825.581     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      447 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5852        9.3791        .41865E-05   -.14501E-03
   2  Index         3.9063        1.3589        .19231E-03   -.25007E-04
   3  Normalizat    .79380        .19336        .52191E-04   -.98458E-05
   4  Prefactor     1.3669        .24176        .52422E-04   -.65060E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.58518
  Index      = 3.90632
  Normalizat = 0.793801
  Prefactor  = 1.36688
 **********
 **   18 **HESSE 
 **********

 FCN=   6825.581     FROM HESSE     STATUS=OK            23 CALLS      470 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5852        9.1289        .83729E-06   -1.5329    
   2  Index         3.9063        1.3236        .76922E-05   -.22052    
   3  Normalizat    .79380        .19339        .10438E-04   -1.0030    
   4  Prefactor     1.3669        .24178        .10484E-04   -.81340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71282e-12
Minuit parameter uncertainties:
  1  9.1324
  2  1.34036
  3  0.193561
  4  0.24198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919229': 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) = 6825.58076801
delta logL = 0.963305229682

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.585e+00  9.132e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  3.906e+00  1.340e+00  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.367e+00  2.420e-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:  7.938e-01  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 192.244 48.670
Photon Index (Free Index): 3.91 +/- 1.34
Photon Flux (Free Index): 6.81e-08 +/- 4.95e-08
Energy Flux (Free Index): 1.04e-05 +/- 7.77e-06

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/919229/cmap_HighResolution_376963201_377222401_4FGL_J1248.9+4840_daily_bin531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.78e-03', comment='SUCCESS', energy_flux2='1.04e-05', dlogl='9.63e-01', photon_flux2='6.81e-08', job_status='DONE', time_completed='2021-09-06 05:55:33.585695', photon_index_error2='1.34', photon_index2='3.91', ts='0.65', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='7.77e-06', EG='0.86', time_epoch_completed='1630932933.59', return_code='0', job_id='919229', GAL2='1.37', EG2='0.79', return_code2='0', photon_flux_error2='4.95e-08', ts2='2.73', photon_index='2.45' WHERE bin_id='531' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:55:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 919229: <4FGL_J1248.9+4840_daily_bin531> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin531> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 05:40:33 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:40:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 05:40:35 2021
Terminated at Mon Sep  6 05:55:34 2021
Results reported at Mon Sep  6 05:55:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin531 192.244 48.67 376963201 377222401 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 :                                   862.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

