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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin685
RA = 192.244, Dec = 48.67
tmin = 416880001, tmax = 417139201
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='920646', job_status='RUN', time_executed='2021-09-06 05:46:21.223560', time_epoch_executed='1630932381.22' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920646

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920646/ft1_4FGL_J1248.9+4840_daily_bin685.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920646/ft2_4FGL_J1248.9+4840_daily_bin685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920646/ft1_4FGL_J1248.9+4840_daily_bin685.fits outfile=/scratch/kocevski/920646/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin685.fits ra=192.244 dec=48.67 rad=12.0 tmin=416880001.0 tmax=417139201.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.34
user 5.06
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920646/ft1_filtered_4FGL_J1248.9+4840_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/920646/ft2_4FGL_J1248.9+4840_daily_bin685.fits sctable="SC_DATA" expcube=/scratch/kocevski/920646/ltcube_416880001_417139201_4FGL_J1248.9+4840_daily_bin685.fits outfile=/scratch/kocevski/920646/expmap_416880001_417139201_4FGL_J1248.9+4840_daily_bin685.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/920646/ltcube_416880001_417139201_4FGL_J1248.9+4840_daily_bin685.fits
.....................!
real 192.34
user 185.32
sys 5.29

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/920646/ft1_filtered_4FGL_J1248.9+4840_daily_bin685.fits scfile=/scratch/kocevski/920646/ft2_4FGL_J1248.9+4840_daily_bin685.fits outfile=/scratch/kocevski/920646/cmap_416880001_417139201_4FGL_J1248.9+4840_daily_bin685.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920646/ft1_filtered_4FGL_J1248.9+4840_daily_bin685.fits scfile=/scratch/kocevski/920646/ft2_4FGL_J1248.9+4840_daily_bin685.fits outfile=/scratch/kocevski/920646/cmap_HighResolution_416880001_417139201_4FGL_J1248.9+4840_daily_bin685.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70821E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .16003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .76061E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    69.793       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.363       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5438       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.277       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.4230       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1870       1.0000         .10000E-03   10000.    
    15 'norm      '    19.862       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0906       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.897       1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.053       1.0000         .10000E-03   10000.    
    20 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26658E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    3.4664       1.0000         .10000E-03   10000.    
    23 'norm      '    35.469       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94394       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85398       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=   4194.356     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     2988 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23805E-03    2.2520       -.92717E-06** at limit **
   2  Prefactor     .10000E-03    10.627       -.26609E-06** at limit **
   3  norm          .10001E-03    1.4807       -.16166E-05** at limit **
   4  norm          .10000E-03    3.6001       -.16388E-06** at limit **
   5  Prefactor     .10000E-03    51.880        .19293E-05** at limit **
   6  Prefactor     .10000E-03    5.8608       -.30484E-06** at limit **
   7  norm          .74622E-01    1.3543       -.12631E-05    .54096E-03
   8  Prefactor     69.804        32.540       -.84846E-06    .96260E-04
   9  Prefactor     19.364        19.722        .89674E-07    .25637E-04
  10  norm          2.5437        2.3995       -.53931E-06   -.89800E-05
  11  Prefactor     12.279        16.114       -.64228E-05    .63346E-04
  12  Prefactor     9.3719        176.49       -.86254E-04    .82930E-05
  13  Prefactor     .10000E-03    3.7520       -.78538E-07** at limit **
  14  Prefactor     4.1971        96.100       -.13612E-04    .86660E-05
  15  norm          19.862        16.663       -.15890E-05    .83547E-04
  16  norm          2.0906        4.1014        .24840E-07   -.24751E-03
  17  Prefactor     .10000E-03    33.617       -.19353E-06** at limit **
  18  Prefactor     44.869        21.182       -.26012E-04   -.65440E-03
  19  Prefactor     34.058        35.191       -.57106E-05   -.20664E-05
  20  norm          .10000E-03    1.2421        .50015E-06** at limit **
  21  Prefactor     .10005E-03    306.86        .23710E-03** at limit **
  22  norm          3.4664        1.5119       -.14818E-06    .29386E-03
  23  norm          35.136        84.490       -.28288E-03   -.20394E-04
  24  Normalizat    .94339        .19339        .66324E-05    .14054E-03
  25  Prefactor     .85446        .22461        .10240E-04    .18486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000238055
  Prefactor  = 0.0001
  norm       = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0746221
  Prefactor  = 69.8042
  Prefactor  = 19.3643
  norm       = 2.54371
  Prefactor  = 12.2794
  Prefactor  = 9.37192
  Prefactor  = 0.0001
  Prefactor  = 4.19711
  norm       = 19.8622
  norm       = 2.09062
  Prefactor  = 0.000100001
  Prefactor  = 44.8695
  Prefactor  = 34.0584
  norm       = 0.000100001
  Prefactor  = 0.000100054
  norm       = 3.46643
  norm       = 35.1357
  Normalizat = 0.943386
  Prefactor  = 0.854457
 **********
 **   18 **HESSE 
 **********

 FCN=   4194.356     FROM HESSE     STATUS=OK           437 CALLS     3425 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23805E-03    5.2805        .32946E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    11.429        .14975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.6080        .11999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    52.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9472        .15288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .74622E-01    8.9946        .14553E-02   -1.5653    
   8  Prefactor     69.804        32.630        .48049E-04   -1.4035    
   9  Prefactor     19.364        19.721        .91020E-04   -1.4828    
  10  norm          2.5437        2.3924        .93938E-04   -1.5389    
  11  Prefactor     12.279        15.866        .11432E-03   -1.5007    
  12  Prefactor     9.3719        176.88        .13055E-03   -1.5096    
  13  Prefactor     .10000E-03    3.7562        .12250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1971        93.469        .19696E-03   -1.5298    
  15  norm          19.862        16.651        .89872E-04   -1.4816    
  16  norm          2.0906        4.0766        .17552E-03   -1.5419    
  17  Prefactor     .10000E-03    33.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.869        21.272        .29918E-03   -1.4367    
  19  Prefactor     34.058        35.150        .68671E-04   -1.4540    
  20  norm          .10000E-03    1.2439        .70465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10005E-03    314.87        .19953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.4664        1.5111        .50873E-04   -1.5336    
  23  norm          35.136        84.582        .33645E-03   -1.4522    
  24  Normalizat    .94339        .22455        .22191E-03   -.94952    
  25  Prefactor     .85446        .26333        .27939E-03   -.97751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7475e-09
Minuit parameter uncertainties:
  1  0.0540048
  2  6.67468e-05
  3  0.000581583
  4  2.85939e-05
  5  0.000661489
  6  7.24913e-05
  7  1.63768
  8  32.6385
  9  19.7272
  10  2.3925
  11  15.8717
  12  81.7097
  13  1.10965e-05
  14  39.6829
  15  16.655
  16  4.07718
  17  0.00038827
  18  21.2753
  19  35.1718
  20  5.76333e-05
  21  0.00831382
  22  1.51117
  23  84.8729
  24  0.224775
  25  0.26372
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  6.980e+01  3.264e+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:  8.545e-01  2.637e-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:  9.434e-01  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.41
Ra Dec: 192.244 48.670
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 4.99e-08
Energy Flux (Fixed Index): 3.29e-05 +/- 1.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) = 4194.1433902
delta logL = 0.212212004725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4194.1299621
delta logL = 0.225640111835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.530       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8115       1.0000          .0000       10.000    
     3 'Normalizat'    .90822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88316       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=   4194.130     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      278 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.525        41.274        .56417E-04    .61522E-03
   2  Index         2.8115        .60610        .39741E-02    .28009E-03
   3  Normalizat    .90794        .22388        .22555E-03   -.20676E-03
   4  Prefactor     .88337        .26326        .27530E-03   -.29775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.5252
  Index      = 2.81153
  Normalizat = 0.907944
  Prefactor  = 0.883367
 **********
 **   18 **HESSE 
 **********

 FCN=   4194.130     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.525        38.394        .11283E-04   -1.4285    
   2  Index         2.8115        .56330        .15896E-03   -.45303    
   3  Normalizat    .90794        .22332        .45110E-04   -.96182    
   4  Prefactor     .88337        .26292        .55061E-04   -.96725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6142e-10
Minuit parameter uncertainties:
  1  38.4132
  2  0.564782
  3  0.223548
  4  0.263299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920646': 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) = 4194.12996092
delta logL = 0.225641293096

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  5.053e+01  3.841e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.812e+00  5.648e-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:  8.834e-01  2.633e-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:  9.079e-01  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.88
Ra Dec: 192.244 48.670
Photon Index (Free Index): 2.81 +/- 0.56
Photon Flux (Free Index): 1.37e-07 +/- 7.43e-08
Energy Flux (Free Index): 3.05e-05 +/- 1.36e-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/920646/cmap_HighResolution_416880001_417139201_4FGL_J1248.9+4840_daily_bin685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='3.05e-05', photon_flux_error='4.99e-08', dlogl='2.26e-01', energy_flux='3.29e-05', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-06 05:56:12.125053', photon_index_error2='0.56', photon_index2='2.81', ts='10.41', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='0.94', time_epoch_completed='1630932972.13', return_code='0', job_id='920646', GAL2='0.88', EG2='0.91', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='7.43e-08', ts2='10.88', photon_index='2.45' WHERE bin_id='685' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:56:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 920646: <4FGL_J1248.9+4840_daily_bin685> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin685> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:45:18 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:45:20 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:45:20 2021
Terminated at Mon Sep  6 05:56:13 2021
Results reported at Mon Sep  6 05:56:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin685 192.244 48.67 416880001 417139201 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 :                                   584.43 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             324.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            655 sec.

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

