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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin506
RA = 192.244, Dec = 48.67
tmin = 370483201, tmax = 370742401
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='919187', job_status='RUN', time_executed='2021-09-06 05:42:53.144576', time_epoch_executed='1630932173.14' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919187

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919187/ft1_4FGL_J1248.9+4840_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919187/ft2_4FGL_J1248.9+4840_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919187/ft1_4FGL_J1248.9+4840_daily_bin506.fits outfile=/scratch/kocevski/919187/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin506.fits ra=192.244 dec=48.67 rad=12.0 tmin=370483201.0 tmax=370742401.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 19.58
user 18.93
sys 0.58

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919187/ft1_filtered_4FGL_J1248.9+4840_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/919187/ft2_4FGL_J1248.9+4840_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/919187/ltcube_370483201_370742401_4FGL_J1248.9+4840_daily_bin506.fits outfile=/scratch/kocevski/919187/expmap_370483201_370742401_4FGL_J1248.9+4840_daily_bin506.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/919187/ltcube_370483201_370742401_4FGL_J1248.9+4840_daily_bin506.fits
.....................!
real 191.67
user 187.56
sys 3.73

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/919187/ft1_filtered_4FGL_J1248.9+4840_daily_bin506.fits scfile=/scratch/kocevski/919187/ft2_4FGL_J1248.9+4840_daily_bin506.fits outfile=/scratch/kocevski/919187/cmap_370483201_370742401_4FGL_J1248.9+4840_daily_bin506.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919187/ft1_filtered_4FGL_J1248.9+4840_daily_bin506.fits scfile=/scratch/kocevski/919187/ft2_4FGL_J1248.9+4840_daily_bin506.fits outfile=/scratch/kocevski/919187/cmap_HighResolution_370483201_370742401_4FGL_J1248.9+4840_daily_bin506.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1692       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3440       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.3164       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2305       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7373       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.777       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.7293       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .54879E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1512       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.988       1.0000         .10000E-03   10000.    
    23 'norm      '    61.203       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6277       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .28862       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=   3958.297     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2942 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1691        2.9053        .10056E-05    .12303E-03
   2  Prefactor     .10000E-03    60.531        .17492E-05** at limit **
   3  norm          3.3439        2.7125        .15316E-06    .25930E-03
   4  norm          .10000E-03    7.5519        .48026E-06** at limit **
   5  Prefactor     .10000E-03    13.270        .19347E-06** at limit **
   6  Prefactor     .10000E-03    8.7553        .53831E-06** at limit **
   7  norm          4.3165        2.7648        .12396E-06    .14406E-03
   8  Prefactor     .10000E-03    14.370        .23147E-07** at limit **
   9  Prefactor     .10000E-03    11.577        .23153E-08** at limit **
  10  norm          2.2305        2.1827        .11434E-06    .12771E-03
  11  Prefactor     .10000E-03    7.1662        .25792E-07** at limit **
  12  Prefactor     9.6002        129.48       -.12725E-05   -.12100E-04
  13  Prefactor     16.776        12.435        .14657E-06    .10090E-03
  14  Prefactor     .10000E-03    38.745        .23877E-06** at limit **
  15  norm          .10000E-03    9.9594       -.10965E-05** at limit **
  16  norm          4.7307        5.2874       -.20160E-06    .12343E-03
  17  Prefactor     .10001E-03    254.98       -.49522E-05** at limit **
  18  Prefactor     .10000E-03    10.992        .16973E-06** at limit **
  19  Prefactor     9.1445        61.576       -.64482E-05    .31196E-04
  20  norm          .10000E-03    1.6795        .52499E-07** at limit **
  21  Prefactor     .10000E-03    67.971        .72610E-06** at limit **
  22  norm          13.989        4.1694        .50863E-07    .31823E-03
  23  norm          61.245        121.75        .10430E-05    .14606E-04
  24  Normalizat    1.6276        .25073        .49408E-05   -.18433E-04
  25  Prefactor     .28870        .27858       -.14279E-04   -.32789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16913
  Prefactor  = 0.0001
  norm       = 3.34394
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.31653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.23049
  Prefactor  = 0.0001
  Prefactor  = 9.60018
  Prefactor  = 16.7764
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.73065
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 9.14453
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.9888
  norm       = 61.2452
  Normalizat = 1.62765
  Prefactor  = 0.288698
 **********
 **   18 **HESSE 
 **********

 FCN=   3958.297     FROM HESSE     STATUS=OK           423 CALLS     3365 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1691        2.8692        .16350E-03   -1.5492    
   2  Prefactor     .10000E-03    61.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3439        2.7273        .88480E-04   -1.5342    
   4  norm          .10000E-03    7.6414        .16876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.8912        .18126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.3165        2.7618        .79712E-04   -1.5292    
   8  Prefactor     .10000E-03    14.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2305        2.1750        .89301E-04   -1.5409    
  11  Prefactor     .10000E-03    7.1771        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.6002        131.15        .12842E-03   -1.5088    
  13  Prefactor     16.776        12.468        .97783E-04   -1.4889    
  14  Prefactor     .10000E-03    39.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.9475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7307        5.2662        .14666E-03   -1.5273    
  17  Prefactor     .10001E-03    254.20        .42221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.1445        58.583        .13249E-03   -1.5103    
  20  norm          .10000E-03    1.6821        .79629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    68.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.989        4.1787        .67098E-04   -1.4960    
  23  norm          61.245        121.81        .25644E-03   -1.4141    
  24  Normalizat    1.6276        .25195        .19769E-03   -.74252    
  25  Prefactor     .28870        .27849        .49534E-03   -1.2293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59609e-10
Minuit parameter uncertainties:
  1  2.86954
  2  8.64965e-05
  3  2.72738
  4  1.84389e-06
  5  2.09127e-06
  6  6.31691e-06
  7  2.76189
  8  8.9817e-06
  9  1.14239e-06
  10  2.17503
  11  2.35967e-06
  12  71.1557
  13  12.4704
  14  3.3393e-05
  15  3.49279e-06
  16  5.26675
  17  0.00296933
  18  2.34535e-06
  19  46.3574
  20  1.98627e-06
  21  2.70412e-05
  22  4.17875
  23  122.315
  24  0.252151
  25  0.279789
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  8.982e-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:  2.887e-01  2.798e-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.628e+00  2.522e-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: 6.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919187/likelihoodResults_370483201_370742401_4FGL_J1248.9+4840_daily_bin506.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) = 3958.29750718
delta logL = -0.000328749428263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3958.29717852
delta logL = -9.92299646896e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4191       1.0000          .0000       10.000    
     3 'Normalizat'    1.6276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .28873       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=   3958.297     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      250 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10379E-03    14.342        .18142E-01** at limit **
   2  Index         2.3208        5.9216        .50000        .13998E-04
   3  Normalizat    1.6276        .49360E-02    .19768E-03   -.21365E-04
   4  Prefactor     .28870        .56126E-02    .49531E-03   -.22264E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103792
  Index      = 2.32079
  Normalizat = 1.62765
  Prefactor  = 0.288699
 **********
 **   18 **HESSE 
 **********

 FCN=   3958.297     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10379E-03    120.40        .24966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3208        6.1539        .50000       -.56550    
   3  Normalizat    1.6276        .14260E-01    .79074E-05   -.74252    
   4  Prefactor     .28870        .16215E-01    .19812E-04   -1.2293    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.66376e-09
Minuit parameter uncertainties:
  1  0.042821
  2  375.899
  3  0.0142605
  4  0.0162152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919187': 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) = 3958.29717804
delta logL = 3.8464077079e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.038e-04  4.282e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.321e+00  3.759e+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:  2.887e-01  1.622e-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:  1.628e+00  1.426e-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/919187/cmap_HighResolution_370483201_370742401_4FGL_J1248.9+4840_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2021-09-06 05:54:28.768637', job_id='919187', GAL2='0.29', fit_tolerance='1e-08', EG2='1.63', EG='1.63', time_epoch_completed='1630932868.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.29', dlogl='3.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='506' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:54:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 919187: <4FGL_J1248.9+4840_daily_bin506> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin506 192.244 48.67 370483201 370742401 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 :                                   687.41 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             271.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

