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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin487
RA = 192.244, Dec = 48.67
tmin = 365558401, tmax = 365817601
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='919152', job_status='RUN', time_executed='2021-09-06 05:42:08.290940', time_epoch_executed='1630932128.29' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919152

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919152/ft1_4FGL_J1248.9+4840_daily_bin487.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919152/ft2_4FGL_J1248.9+4840_daily_bin487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919152/ft1_4FGL_J1248.9+4840_daily_bin487.fits outfile=/scratch/kocevski/919152/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin487.fits ra=192.244 dec=48.67 rad=12.0 tmin=365558401.0 tmax=365817601.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.55
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919152/ft1_filtered_4FGL_J1248.9+4840_daily_bin487.fits" evtable="EVENTS" scfile=/scratch/kocevski/919152/ft2_4FGL_J1248.9+4840_daily_bin487.fits sctable="SC_DATA" outfile=/scratch/kocevski/919152/ltcube_365558401_365817601_4FGL_J1248.9+4840_daily_bin487.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/919152/ft2_4FGL_J1248.9+4840_daily_bin487.fits
.....................!
real 12.04
user 11.70
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919152/ft1_filtered_4FGL_J1248.9+4840_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/919152/ft2_4FGL_J1248.9+4840_daily_bin487.fits sctable="SC_DATA" expcube=/scratch/kocevski/919152/ltcube_365558401_365817601_4FGL_J1248.9+4840_daily_bin487.fits outfile=/scratch/kocevski/919152/expmap_365558401_365817601_4FGL_J1248.9+4840_daily_bin487.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/919152/ltcube_365558401_365817601_4FGL_J1248.9+4840_daily_bin487.fits
.....................!
real 190.74
user 185.40
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/919152/ft1_filtered_4FGL_J1248.9+4840_daily_bin487.fits scfile=/scratch/kocevski/919152/ft2_4FGL_J1248.9+4840_daily_bin487.fits outfile=/scratch/kocevski/919152/cmap_365558401_365817601_4FGL_J1248.9+4840_daily_bin487.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66946       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .53785       1.0000         .10000E-03   10000.    
     4 'norm      '    .45088E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.142       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.0151       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.3686       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0937       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.754       1.0000         .10000E-03   10000.    
    15 'norm      '    8.9642       1.0000         .10000E-03   10000.    
    16 'norm      '    .12304E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.240       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2292       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10880E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.6944       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.994       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77035       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1112       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=   6553.435     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2919 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67078        2.0432        .11027E-05    .45766E-03
   2  Prefactor     .10000E-03    11.304       -.23967E-06** at limit **
   3  norm          .53833        1.6767        .98721E-06    .46034E-03
   4  norm          .10000E-03    3.1659        .48456E-07** at limit **
   5  Prefactor     16.118        19.924       -.65233E-06   -.54254E-04
   6  Prefactor     .10000E-03    1.7640        .46993E-07** at limit **
   7  norm          6.0156        2.2973       -.34098E-07   -.73117E-04
   8  Prefactor     .10000E-03    6.5441        .12571E-07** at limit **
   9  Prefactor     .10000E-03    7.0621        .59977E-07** at limit **
  10  norm          5.3687        2.1293       -.36508E-09    .89878E-04
  11  Prefactor     4.0931        8.7744        .41377E-06    .58251E-04
  12  Prefactor     .10000E-03    17.141       -.56589E-06** at limit **
  13  Prefactor     .10000E-03    3.1045        .73947E-07** at limit **
  14  Prefactor     11.755        20.986       -.26816E-06   -.53985E-05
  15  norm          8.9644        10.078        .64177E-07    .35040E-04
  16  norm          .10001E-03    3.2393       -.20836E-05** at limit **
  17  Prefactor     27.159        30.949       -.18809E-05   -.49963E-04
  18  Prefactor     9.2312        16.769        .33211E-06    .11469E-03
  19  Prefactor     .10000E-03    80.226       -.68562E-05** at limit **
  20  norm          4.6932        4.2750        .26778E-06    .39373E-03
  21  Prefactor     .10000E-03    16.636        .73475E-06** at limit **
  22  norm          12.993        2.4761        .94814E-07    .76512E-03
  23  norm          .10000E-03    37.835       -.77581E-06** at limit **
  24  Normalizat    .77022        .15614        .80190E-06    .30636E-03
  25  Prefactor     1.1112        .18843       -.64896E-06    .30637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.670778
  Prefactor  = 0.0001
  norm       = 0.538333
  norm       = 0.0001
  Prefactor  = 16.1177
  Prefactor  = 0.0001
  norm       = 6.01556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.36871
  Prefactor  = 4.09315
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7546
  norm       = 8.96436
  norm       = 0.000100006
  Prefactor  = 27.1595
  Prefactor  = 9.23117
  Prefactor  = 0.000100003
  norm       = 4.69322
  Prefactor  = 0.0001
  norm       = 12.993
  norm       = 0.0001
  Normalizat = 0.770224
  Prefactor  = 1.11124
 **********
 **   18 **HESSE 
 **********

 FCN=   6553.435     FROM HESSE     STATUS=OK           429 CALLS     3348 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67078        2.0535        .19545E-03   -1.5544    
   2  Prefactor     .10000E-03    11.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .53833        1.7003        .17268E-03   -1.5561    
   4  norm          .10000E-03    23.055        .25886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.118        18.710        .99687E-04   -1.4905    
   6  Prefactor     .10000E-03    1.7704        .10495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.0156        2.2974        .73489E-04   -1.5217    
   8  Prefactor     .10000E-03    6.5539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.3687        2.1295        .72114E-04   -1.5245    
  11  Prefactor     4.0931        8.7339        .19926E-03   -1.5303    
  12  Prefactor     .10000E-03    17.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1203        .13927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.755        20.903        .11685E-03   -1.5022    
  15  norm          8.9644        10.078        .13387E-03   -1.5109    
  16  norm          .10001E-03    4.5942        .22903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.159        31.316        .76758E-04   -1.4665    
  18  Prefactor     9.2312        16.691        .13192E-03   -1.5100    
  19  Prefactor     .10000E-03    83.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.6932        4.2578        .13884E-03   -1.5275    
  21  Prefactor     .10000E-03    16.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.993        2.4831        .53358E-04   -1.4987    
  23  norm          .10000E-03    37.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .77022        .18445        .24047E-03   -1.0118    
  25  Prefactor     1.1112        .22439        .25963E-03   -.89108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64706e-09
Minuit parameter uncertainties:
  1  2.05373
  2  6.12407e-05
  3  1.70045
  4  6.1265e-05
  5  18.7165
  6  6.14236e-07
  7  2.29742
  8  2.24887e-06
  9  3.42678e-06
  10  2.12958
  11  8.73659
  12  7.57639e-05
  13  2.34653e-06
  14  20.9158
  15  10.0797
  16  0.000319545
  17  31.3349
  18  16.6998
  19  0.00104937
  20  4.25812
  21  9.72992e-05
  22  2.48308
  23  0.000164498
  24  0.184603
  25  0.224584
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  2.249e-06  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.111e+00  2.246e-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.702e-01  1.846e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919152/likelihoodResults_365558401_365817601_4FGL_J1248.9+4840_daily_bin487.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) = 6553.43604017
delta logL = -0.000726354872313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6553.43531385
delta logL = -3.51155904355e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4290       1.0000          .0000       10.000    
     3 'Normalizat'    .77024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1112       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=   6553.435     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10207E-03    76.025        .18142E-02** at limit **
   2  Index         2.3518        8.4625        .50000        .22156E-04
   3  Normalizat    .77022        .11923E-01    .24047E-03   -.46899E-04
   4  Prefactor     1.1112        .15271E-01    .25963E-03    .90555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102066
  Index      = 2.35184
  Normalizat = 0.770223
  Prefactor  = 1.11125
 **********
 **   18 **HESSE 
 **********

 FCN=   6553.435     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10207E-03    313.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3518        5.1965        .50000       -.55817    
   3  Normalizat    .77022        .25281E-01    .96188E-05   -1.0118    
   4  Prefactor     1.1112        .32380E-01    .10385E-04   -.89108    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.87449e-08
Minuit parameter uncertainties:
  1  0.051163
  2  692.461
  3  0.0252818
  4  0.0323802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919152': 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) = 6553.43531338
delta logL = 4.32780325355e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.021e-04  5.116e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.352e+00  6.925e+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.111e+00  3.238e-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:  7.702e-01  2.528e-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/919152/cmap_HighResolution_365558401_365817601_4FGL_J1248.9+4840_daily_bin487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', job_status='DONE', photon_flux_upper_limit='4.55e-08', time_completed='2021-09-06 05:55:35.013615', job_id='919152', GAL2='1.11', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630932935.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='4.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='487' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:55:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 919152: <4FGL_J1248.9+4840_daily_bin487> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin487 192.244 48.67 365558401 365817601 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 :                                   801.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            905 sec.

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

