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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin974
RA = 192.244, Dec = 48.67
tmin = 491788801, tmax = 492048001
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='922648', job_status='RUN', time_executed='2021-09-06 05:52:14.386740', time_epoch_executed='1630932734.39' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922648

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922648/ft1_4FGL_J1248.9+4840_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922648/ft2_4FGL_J1248.9+4840_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922648/ft1_4FGL_J1248.9+4840_daily_bin974.fits outfile=/scratch/kocevski/922648/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin974.fits ra=192.244 dec=48.67 rad=12.0 tmin=491788801.0 tmax=492048001.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.33
user 4.08
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922648/ft1_filtered_4FGL_J1248.9+4840_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/922648/ft2_4FGL_J1248.9+4840_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/922648/ltcube_491788801_492048001_4FGL_J1248.9+4840_daily_bin974.fits outfile=/scratch/kocevski/922648/expmap_491788801_492048001_4FGL_J1248.9+4840_daily_bin974.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/922648/ltcube_491788801_492048001_4FGL_J1248.9+4840_daily_bin974.fits
.....................!
real 191.93
user 187.19
sys 4.34

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/922648/ft1_filtered_4FGL_J1248.9+4840_daily_bin974.fits scfile=/scratch/kocevski/922648/ft2_4FGL_J1248.9+4840_daily_bin974.fits outfile=/scratch/kocevski/922648/cmap_491788801_492048001_4FGL_J1248.9+4840_daily_bin974.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.61
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/922648/ft1_filtered_4FGL_J1248.9+4840_daily_bin974.fits scfile=/scratch/kocevski/922648/ft2_4FGL_J1248.9+4840_daily_bin974.fits outfile=/scratch/kocevski/922648/cmap_HighResolution_491788801_492048001_4FGL_J1248.9+4840_daily_bin974.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.62
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.763       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13355E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.5459       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.874       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.173       1.0000         .10000E-03   10000.    
    10 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.247       1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.206       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    41.052       1.0000         .10000E-03   10000.    
    16 'norm      '    12.549       1.0000         .10000E-03   10000.    
    17 'Prefactor '    84.923       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9209       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13227E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.2400       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10784E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1543       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .50449       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   907.2434     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     2405 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4345        .14482E-05** at limit **
   2  Prefactor     .10000E-03    40.341       -.57085E-05** at limit **
   3  norm          10.761        6.8483        .11804E-05   -.50184E-04
   4  norm          .10000E-03    10.308        .99247E-06** at limit **
   5  Prefactor     .20093E-03    69.204       -.12451E-03** at limit **
   6  Prefactor     .10000E-03    7.8278        .22344E-06** at limit **
   7  norm          5.5452        5.2359        .41319E-06    .15474E-04
   8  Prefactor     42.946        17.296        .25457E-04    .27628E-03
   9  Prefactor     15.064        28.813       -.77178E-04    .37420E-02
  10  norm          .10000E-03    2.9929       -.22669E-06** at limit **
  11  Prefactor     35.255        6.4816        .13487E-04   -.57509E-02
  12  Prefactor     50.213        1.4641        .34894E-06    .16423E-02
  13  Prefactor     .10000E-03    15.016       -.23805E-05** at limit **
  14  Prefactor     .14785E-03    94.198        .11290E-03** at limit **
  15  norm          41.223        38.258        .54602E-04    .51989E-02
  16  norm          12.551        11.277       -.26650E-04   -.10728E-02
  17  Prefactor     85.073        40.111        .45126E-04   -.10329E-01
  18  Prefactor     5.9211        1.7238        .36731E-05   -.56882E-04
  19  Prefactor     .10580E-03    94.319       -.12129E-03** at limit **
  20  norm          7.2460        9.8762        .12476E-04    .21501E-03
  21  Prefactor     .10028E-03    69.988        .53873E-04** at limit **
  22  norm          .10000E-03    2.2177        .33296E-06** at limit **
  23  norm          .13475E-03    127.75        .67709E-04** at limit **
  24  Normalizat    1.1540        .48591       -.23599E-06    .24237E-04
  25  Prefactor     .50487        .57242       -.19895E-04    .20560E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7614
  norm       = 0.0001
  Prefactor  = 0.000200932
  Prefactor  = 0.0001
  norm       = 5.54516
  Prefactor  = 42.9462
  Prefactor  = 15.0644
  norm       = 0.0001
  Prefactor  = 35.2546
  Prefactor  = 50.2125
  Prefactor  = 0.0001
  Prefactor  = 0.000147855
  norm       = 41.2226
  norm       = 12.5509
  Prefactor  = 85.0728
  Prefactor  = 5.9211
  Prefactor  = 0.000105802
  norm       = 7.24595
  Prefactor  = 0.000100283
  norm       = 0.0001
  norm       = 0.000134751
  Normalizat = 1.15402
  Prefactor  = 0.504873
 **********
 **   18 **HESSE 
 **********

 FCN=   907.2434     FROM HESSE     STATUS=OK           473 CALLS     2878 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3282        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.281        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.761        6.8572        .30531E-02   -1.5052    
   4  norm          .10000E-03    10.298        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .20093E-03    110.31        .10280       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.8159        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.5452        5.2302        .42651E-02   -1.5237    
   8  Prefactor     42.946        67.126        .15306E-02   -1.4396    
   9  Prefactor     15.064        732.52        .25706E-02   -1.4932    
  10  norm          .10000E-03    2.9702        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.255        109.55        .16875E-02   -1.4520    
  12  Prefactor     50.213        167.44        .14149E-02   -1.4290    
  13  Prefactor     .10000E-03    14.994        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .14785E-03    154.18        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          41.223        58.531        .15641E-02   -1.4423    
  16  norm          12.551        11.367        .28270E-02   -1.4999    
  17  Prefactor     85.073        102.26        .10898E-02   -1.3861    
  18  Prefactor     5.9211        51.864        .41257E-02   -1.5221    
  19  Prefactor     .10580E-03    99.650        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.2460        11.014        .37268E-02   -1.5170    
  21  Prefactor     .10028E-03    70.214        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.2021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .13475E-03    214.10        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1540        .45690        .36124E-01   -.88036    
  25  Prefactor     .50487        .51865        .80934E-01   -1.1175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17304e-05
Minuit parameter uncertainties:
  1  1.53571e-05
  2  4.52883e-05
  3  6.85767
  4  5.92562e-05
  5  0.211427
  6  5.15887e-05
  7  5.23065
  8  67.2443
  9  212.917
  10  6.30023e-06
  11  110.185
  12  169.048
  13  3.27306e-05
  14  0.172238
  15  58.6129
  16  11.369
  17  102.474
  18  35.0885
  19  0.0481714
  20  11.0171
  21  0.00893102
  22  2.61549e-06
  23  0.173133
  24  0.458488
  25  0.52363
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.295e+01  6.724e+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:  5.049e-01  5.236e-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:  1.154e+00  4.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.61
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 3.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/922648/likelihoodResults_491788801_492048001_4FGL_J1248.9+4840_daily_bin974.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) = 907.039634271
delta logL = 0.203797736567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 907.032296322
delta logL = 0.211135685187

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.996       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4053       1.0000          .0000       10.000    
     3 'Normalizat'    1.0785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56577       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=   907.0323     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      290 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.984        55.279        .10014E-03   -.37847E-04
   2  Index         3.4060        2.0010        .35838E-02   -.14241E-04
   3  Normalizat    1.0783        .50616        .21051E-03   -.13075E-03
   4  Prefactor     .56621        .58768        .33949E-03   -.89810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9844
  Index      = 3.40603
  Normalizat = 1.07833
  Prefactor  = 0.566213
 **********
 **   18 **HESSE 
 **********

 FCN=   907.0323     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.984        43.147        .40056E-05   -1.4908    
   2  Index         3.4060        1.5778        .14335E-03   -.32446    
   3  Normalizat    1.0783        .50518        .42103E-04   -.90451    
   4  Prefactor     .56621        .58657        .67898E-04   -1.0903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11942e-10
Minuit parameter uncertainties:
  1  43.231
  2  1.60856
  3  0.507467
  4  0.593057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922648': 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) = 907.032295695
delta logL = 0.211136312327

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.598e+01  4.323e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  3.406e+00  1.609e+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:  5.662e-01  5.931e-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:  1.078e+00  5.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 192.244 48.670
Photon Index (Free Index): 3.41 +/- 1.61
Photon Flux (Free Index): 1.22e-07 +/- 1.48e-07
Energy Flux (Free Index): 2.08e-05 +/- 2.37e-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/922648/cmap_HighResolution_491788801_492048001_4FGL_J1248.9+4840_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-02', comment='SUCCESS', energy_flux2='2.08e-05', dlogl='2.11e-01', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-06 05:59:07.667756', photon_index_error2='1.61', photon_index2='3.41', ts='0.61', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', photon_flux_upper_limit='3.20e-07', energy_flux_error2='2.37e-05', EG='1.15', time_epoch_completed='1630933147.67', return_code='0', job_id='922648', GAL2='0.57', EG2='1.08', return_code2='0', photon_flux_error2='1.48e-07', ts2='1.07', photon_index='2.45' WHERE bin_id='974' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:59:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 922648: <4FGL_J1248.9+4840_daily_bin974> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin974> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 05:50:31 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:50:32 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:50:32 2021
Terminated at Mon Sep  6 05:59:08 2021
Results reported at Mon Sep  6 05:59:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin974 192.244 48.67 491788801 492048001 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 :                                   396.34 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             243.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   515 sec.
    Turnaround time :                            517 sec.

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

