/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 41 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 = 7480
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1248.9+4840_daily_bin238
RA = 192.244, Dec = 48.67
tmin = 301017601, tmax = 301276801
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='917686', job_status='RUN', time_executed='2021-09-06 05:36:20.917969', time_epoch_executed='1630931780.92' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917686

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917686/ft1_4FGL_J1248.9+4840_daily_bin238.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917686/ft2_4FGL_J1248.9+4840_daily_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917686/ft1_4FGL_J1248.9+4840_daily_bin238.fits outfile=/scratch/kocevski/917686/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin238.fits ra=192.244 dec=48.67 rad=12.0 tmin=301017601.0 tmax=301276801.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.57
user 3.36
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917686/ft1_filtered_4FGL_J1248.9+4840_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/917686/ft2_4FGL_J1248.9+4840_daily_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/917686/ltcube_301017601_301276801_4FGL_J1248.9+4840_daily_bin238.fits outfile=/scratch/kocevski/917686/expmap_301017601_301276801_4FGL_J1248.9+4840_daily_bin238.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/917686/ltcube_301017601_301276801_4FGL_J1248.9+4840_daily_bin238.fits
.....................!
real 190.03
user 184.92
sys 4.60

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/917686/ft1_filtered_4FGL_J1248.9+4840_daily_bin238.fits scfile=/scratch/kocevski/917686/ft2_4FGL_J1248.9+4840_daily_bin238.fits outfile=/scratch/kocevski/917686/cmap_301017601_301276801_4FGL_J1248.9+4840_daily_bin238.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.53
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.544       1.0000         .10000E-03   10000.    
     3 'norm      '    5.7929       1.0000         .10000E-03   10000.    
     4 'norm      '    .28500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9318       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5838       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7189       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2317       1.0000         .10000E-03   10000.    
    15 'norm      '    9.9288       1.0000         .10000E-03   10000.    
    16 'norm      '    14.201       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.083       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.033       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10864E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10869E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.9332       1.0000         .10000E-03   10000.    
    22 'norm      '    2.5117       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0415       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89984       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=   6711.850     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2898 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3344       -.62954E-07** at limit **
   2  Prefactor     30.551        21.498        .28300E-05    .13130E-03
   3  norm          5.7932        2.4134        .16697E-07    .35613E-04
   4  norm          .27358        2.9405       -.94265E-06    .27826E-03
   5  Prefactor     .10000E-03    3.6261       -.11519E-06** at limit **
   6  Prefactor     .10000E-03    1.6436       -.91505E-07** at limit **
   7  norm          2.9318        1.8056        .32851E-07    .74338E-05
   8  Prefactor     .10000E-03    5.6921        .57760E-06** at limit **
   9  Prefactor     .10000E-03    7.9324        .42340E-06** at limit **
  10  norm          2.5839        1.9419       -.15351E-07   -.15620E-04
  11  Prefactor     .10000E-03    3.7592       -.56149E-07** at limit **
  12  Prefactor     .10000E-03    50.796        .89221E-06** at limit **
  13  Prefactor     3.7188        3.5272        .38693E-06   -.12716E-02
  14  Prefactor     5.2326        14.471        .62823E-06   -.25382E-03
  15  norm          9.9254        14.569        .59334E-06    .21341E-05
  16  norm          14.202        5.4468        .38454E-07    .20496E-04
  17  Prefactor     15.086        27.181        .24307E-05    .31947E-04
  18  Prefactor     12.037        15.359        .15893E-06   -.70213E-05
  19  Prefactor     .10000E-03    28.497       -.19152E-05** at limit **
  20  norm          .10000E-03    2.3237        .89753E-08** at limit **
  21  Prefactor     7.9324        52.708       -.18766E-05   -.87474E-05
  22  norm          2.5122        1.5260        .19072E-07   -.47027E-04
  23  norm          .10000E-03    29.009        .33490E-05** at limit **
  24  Normalizat    1.0414        .15550       -.53127E-06    .75047E-04
  25  Prefactor     .90008        .18297       -.40525E-06    .28486E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.551
  norm       = 5.79318
  norm       = 0.273578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.93181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.58387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.71877
  Prefactor  = 5.23262
  norm       = 9.92543
  norm       = 14.2019
  Prefactor  = 15.0858
  Prefactor  = 12.0368
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.93243
  norm       = 2.51219
  norm       = 0.0001
  Normalizat = 1.04136
  Prefactor  = 0.900077
 **********
 **   18 **HESSE 
 **********

 FCN=   6711.850     FROM HESSE     STATUS=OK           433 CALLS     3331 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3540        .92410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.551        21.702        .72497E-04   -1.4602    
   3  norm          5.7932        2.4227        .77968E-04   -1.5227    
   4  norm          .27358        7.1059        .26466E-02   -1.5603    
   5  Prefactor     .10000E-03    3.6274        .15235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6490        .10253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9318        1.8108        .83658E-04   -1.5366    
   8  Prefactor     .10000E-03    5.7046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5839        1.9431        .95576E-04   -1.5386    
  11  Prefactor     .10000E-03    3.7676        .15511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7188        5.8438        .10470E-02   -1.5322    
  14  Prefactor     5.2326        15.522        .87869E-03   -1.5250    
  15  norm          9.9254        14.570        .12717E-03   -1.5078    
  16  norm          14.202        5.4528        .10629E-03   -1.4954    
  17  Prefactor     15.086        27.234        .10313E-03   -1.4931    
  18  Prefactor     12.037        15.270        .11548E-03   -1.5014    
  19  Prefactor     .10000E-03    28.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3368        .12116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.9324        52.942        .14236E-03   -1.5145    
  22  norm          2.5122        1.5251        .75384E-04   -1.5391    
  23  norm          .10000E-03    29.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0414        .18260        .21992E-03   -.91657    
  25  Prefactor     .90008        .21355        .28933E-03   -.96138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39505e-09
Minuit parameter uncertainties:
  1  1.72254e-05
  2  21.7075
  3  2.42271
  4  2.78842
  5  5.79881e-07
  6  1.65159e-07
  7  1.81084
  8  9.4467e-06
  9  8.25327e-06
  10  1.94312
  11  5.46651e-07
  12  4.48182e-05
  13  5.84465
  14  15.5342
  15  14.5756
  16  5.45296
  17  27.2562
  18  15.2754
  19  8.66689e-05
  20  5.81237e-07
  21  41.0382
  22  1.52512
  23  0.000101858
  24  0.182705
  25  0.213752
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  9.447e-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:  9.001e-01  2.138e-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.041e+00  1.827e-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.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917686/likelihoodResults_301017601_301276801_4FGL_J1248.9+4840_daily_bin238.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) = 6711.85037383
delta logL = -0.00083376330258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6711.84954005
delta logL = 2.01571310754e-08

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10111E-03    142.39        .18142E-02** at limit **
   2  Index         2.3575        5.7945        .50000        .10293E-04
   3  Normalizat    1.0414        .18899E-01    .21992E-03   -.75989E-05
   4  Prefactor     .90008        .23385E-01    .28933E-03    .43223E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101107
  Index      = 2.35754
  Normalizat = 1.04136
  Prefactor  = 0.900078
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10111E-03    555.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3575        8.3326        .50000       -.55682    
   3  Normalizat    1.0414        .41659E-01    .87970E-05   -.91657    
   4  Prefactor     .90008        .51539E-01    .11573E-04   -.96138    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.48803e-08
Minuit parameter uncertainties:
  1  0.0500623
  2  1753.9
  3  0.0416603
  4  0.0515416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917686': 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) = 6711.84953991
delta logL = 1.57815520652e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.011e-04  5.006e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.358e+00  1.754e+03  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:  9.001e-01  5.154e-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.041e+00  4.166e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/917686/cmap_HighResolution_301017601_301276801_4FGL_J1248.9+4840_daily_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-03', job_status='DONE', photon_flux_upper_limit='4.17e-08', time_completed='2021-09-06 05:50:05.760449', job_id='917686', GAL2='0.90', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630932605.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='238' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:50:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 917686: <4FGL_J1248.9+4840_daily_bin238> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin238> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 05:35:28 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:35:29 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:35:29 2021
Terminated at Mon Sep  6 05:50:06 2021
Results reported at Mon Sep  6 05:50:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin238 192.244 48.67 301017601 301276801 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 :                                   818.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            878 sec.

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

