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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin621
RA = 192.244, Dec = 48.67
tmin = 400291201, tmax = 400550401
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='919387', job_status='RUN', time_executed='2021-09-06 05:40:56.694351', time_epoch_executed='1630932056.69' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919387

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919387/ft1_4FGL_J1248.9+4840_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919387/ft2_4FGL_J1248.9+4840_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919387/ft1_4FGL_J1248.9+4840_daily_bin621.fits outfile=/scratch/kocevski/919387/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin621.fits ra=192.244 dec=48.67 rad=12.0 tmin=400291201.0 tmax=400550401.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 3.46
user 3.08
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919387/ft1_filtered_4FGL_J1248.9+4840_daily_bin621.fits" evtable="EVENTS" scfile=/scratch/kocevski/919387/ft2_4FGL_J1248.9+4840_daily_bin621.fits sctable="SC_DATA" outfile=/scratch/kocevski/919387/ltcube_400291201_400550401_4FGL_J1248.9+4840_daily_bin621.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/919387/ft2_4FGL_J1248.9+4840_daily_bin621.fits
.....................!
real 12.05
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919387/ft1_filtered_4FGL_J1248.9+4840_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/919387/ft2_4FGL_J1248.9+4840_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/919387/ltcube_400291201_400550401_4FGL_J1248.9+4840_daily_bin621.fits outfile=/scratch/kocevski/919387/expmap_400291201_400550401_4FGL_J1248.9+4840_daily_bin621.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/919387/ltcube_400291201_400550401_4FGL_J1248.9+4840_daily_bin621.fits
.....................!
real 194.61
user 186.24
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/919387/ft1_filtered_4FGL_J1248.9+4840_daily_bin621.fits scfile=/scratch/kocevski/919387/ft2_4FGL_J1248.9+4840_daily_bin621.fits outfile=/scratch/kocevski/919387/cmap_400291201_400550401_4FGL_J1248.9+4840_daily_bin621.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919387/ft1_filtered_4FGL_J1248.9+4840_daily_bin621.fits scfile=/scratch/kocevski/919387/ft2_4FGL_J1248.9+4840_daily_bin621.fits outfile=/scratch/kocevski/919387/cmap_HighResolution_400291201_400550401_4FGL_J1248.9+4840_daily_bin621.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1280       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .28318       1.0000         .10000E-03   10000.    
     4 'norm      '    3.6927       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25688       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.1808       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4627       1.0000         .10000E-03   10000.    
    10 'norm      '    6.2202       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5383       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    31.330       1.0000         .10000E-03   10000.    
    16 'norm      '    .68965       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27783E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.414       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.943       1.0000         .10000E-03   10000.    
    22 'norm      '    4.9935       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86306       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0593       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=   6027.970     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     2681 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1306        3.5817        .11777E-05   -.14078E-03
   2  Prefactor     .10000E-03    27.548       -.59344E-06** at limit **
   3  norm          .28348        1.2503        .30753E-06   -.40295E-03
   4  norm          3.7363        7.4147        .56745E-06   -.31667E-04
   5  Prefactor     .10419        12.973       -.33719E-06    .11806E-04
   6  Prefactor     .10000E-03    1.4367        .10195E-07** at limit **
   7  norm          3.1808        1.7810        .82640E-08   -.91177E-05
   8  Prefactor     .10000E-03    5.0333        .10971E-08** at limit **
   9  Prefactor     5.4594        14.902        .21294E-06   -.17914E-04
  10  norm          6.2206        2.5025        .15004E-07   -.42455E-04
  11  Prefactor     .10000E-03    19.990        .10292E-06** at limit **
  12  Prefactor     .10000E-03    44.685        .13881E-06** at limit **
  13  Prefactor     7.5392        7.3105        .80072E-07   -.12657E-04
  14  Prefactor     .10000E-03    34.719        .64908E-06** at limit **
  15  norm          31.326        16.907       -.59740E-06   -.32547E-03
  16  norm          .68588        2.5564        .11415E-05   -.10446E-03
  17  Prefactor     .30910        21.804       -.31075E-06   -.17781E-04
  18  Prefactor     .10000E-03    12.267       -.43981E-07** at limit **
  19  Prefactor     .10000E-03    38.887       -.12411E-05** at limit **
  20  norm          14.408        5.5433        .33054E-06   -.21778E-03
  21  Prefactor     30.945        48.166        .20820E-05    .10346E-03
  22  norm          4.9930        1.6575        .17287E-07    .56694E-05
  23  norm          .10000E-03    44.266        .42794E-06** at limit **
  24  Normalizat    .86304        .16291       -.11305E-05   -.59279E-04
  25  Prefactor     1.0592        .19484        .82751E-07   -.10293E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.1306
  Prefactor  = 0.0001
  norm       = 0.283476
  norm       = 3.73628
  Prefactor  = 0.104186
  Prefactor  = 0.0001
  norm       = 3.1808
  Prefactor  = 0.0001
  Prefactor  = 5.45938
  norm       = 6.22056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.53925
  Prefactor  = 0.0001
  norm       = 31.3263
  norm       = 0.685877
  Prefactor  = 0.309098
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 14.4079
  Prefactor  = 30.9449
  norm       = 4.99296
  norm       = 0.0001
  Normalizat = 0.863044
  Prefactor  = 1.05923
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.970     FROM HESSE     STATUS=OK           447 CALLS     3128 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1306        3.6028        .24048E-03   -1.5495    
   2  Prefactor     .10000E-03    27.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .28348        2.1091        .16126E-02   -1.5601    
   4  norm          3.7363        7.3813        .21017E-03   -1.5321    
   5  Prefactor     .10419        16.170        .84738E-01   -1.5772    
   6  Prefactor     .10000E-03    1.4407        .90876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1808        1.7824        .75116E-04   -1.5351    
   8  Prefactor     .10000E-03    5.0371        .17011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.4594        14.885        .17192E-03   -1.5241    
  10  norm          6.2206        2.5021        .75337E-04   -1.5209    
  11  Prefactor     .10000E-03    20.819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.5392        7.3109        .14607E-03   -1.5159    
  14  Prefactor     .10000E-03    35.706        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          31.326        17.418        .71584E-04   -1.4588    
  16  norm          .68588        2.5652        .23143E-03   -1.5542    
  17  Prefactor     .30910        24.926        .10693       -1.5597    
  18  Prefactor     .10000E-03    12.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.408        5.5669        .52748E-03   -1.4949    
  21  Prefactor     30.945        49.253        .72029E-04   -1.4595    
  22  norm          4.9930        1.6573        .55662E-04   -1.5261    
  23  norm          .10000E-03    44.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86304        .19105        .22996E-03   -.97771    
  25  Prefactor     1.0592        .23247        .26640E-03   -.90780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15148e-08
Minuit parameter uncertainties:
  1  3.60346
  2  0.000137056
  3  1.54624
  4  7.38308
  5  2.59536
  6  6.2769e-07
  7  1.78238
  8  8.24768e-07
  9  14.8955
  10  2.50217
  11  3.05269e-05
  12  0.000144912
  13  7.31178
  14  0.000175699
  15  17.4212
  16  2.56557
  17  5.55289
  18  2.43937e-05
  19  0.000305045
  20  5.56709
  21  49.3183
  22  1.65728
  23  0.000119198
  24  0.191195
  25  0.232689
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  8.248e-07  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.059e+00  2.327e-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.630e-01  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/919387/likelihoodResults_400291201_400550401_4FGL_J1248.9+4840_daily_bin621.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): 102
logL (Free Index) = 6027.97069285
delta logL = -0.000941591099945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6027.96975124
delta logL = 1.19480318972e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4240       1.0000          .0000       10.000    
     3 'Normalizat'    .86310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0592       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=   6027.970     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      258 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.678        .17474E-01** at limit **
   2  Index         1.7137        9.1245        .50000       -.52978E-07
   3  Normalizat    .86304        .69184E-02    .22996E-03    .53438E-03
   4  Prefactor     1.0592        .88316E-02    .26640E-03    .46582E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.7137
  Normalizat = 0.863045
  Prefactor  = 1.05923
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.970     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    216.98        .21482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7137        7.5645        .50000       -.71718    
   3  Normalizat    .86304        .20285E-01    .45991E-04   -.97771    
   4  Prefactor     1.0592        .25894E-01    .53280E-04   -.90780    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.69683e-10
Minuit parameter uncertainties:
  1  0.000211366
  2  720.869
  3  0.0202851
  4  0.0258946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919387': 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): 102
logL (Free Index) = 6027.96974754
delta logL = 3.71148962586e-06

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  2.114e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  1.714e+00  7.209e+02  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.059e+00  2.589e-02  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.630e-01  2.029e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

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/919387/cmap_HighResolution_400291201_400550401_4FGL_J1248.9+4840_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-03', job_status='DONE', photon_flux_upper_limit='4.01e-08', time_completed='2021-09-06 05:53:37.029426', job_id='919387', GAL2='1.06', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630932817.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='621' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:53:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 919387: <4FGL_J1248.9+4840_daily_bin621> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin621> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 05:40:41 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:40:42 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:42 2021
Terminated at Mon Sep  6 05:53:37 2021
Results reported at Mon Sep  6 05:53:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin621 192.244 48.67 400291201 400550401 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 :                                   754.37 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             340.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            776 sec.

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

