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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin224
RA = 192.244, Dec = 48.67
tmin = 297388801, tmax = 297648001
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='917665', job_status='RUN', time_executed='2021-09-06 05:35:39.067105', time_epoch_executed='1630931739.07' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917665

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917665/ft1_4FGL_J1248.9+4840_daily_bin224.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917665/ft2_4FGL_J1248.9+4840_daily_bin224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917665/ft1_4FGL_J1248.9+4840_daily_bin224.fits outfile=/scratch/kocevski/917665/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin224.fits ra=192.244 dec=48.67 rad=12.0 tmin=297388801.0 tmax=297648001.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 4.10
user 3.40
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917665/ft2_4FGL_J1248.9+4840_daily_bin224.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/917665/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin224.fits evtable="EVENTS" outfile="/scratch/kocevski/917665/ft1_filtered_4FGL_J1248.9+4840_daily_bin224.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/917665/ft1_filtered_4FGL_J1248.9+4840_daily_bin224.fits" evtable="EVENTS" scfile=/scratch/kocevski/917665/ft2_4FGL_J1248.9+4840_daily_bin224.fits sctable="SC_DATA" outfile=/scratch/kocevski/917665/ltcube_297388801_297648001_4FGL_J1248.9+4840_daily_bin224.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/917665/ft2_4FGL_J1248.9+4840_daily_bin224.fits
.....................!
real 11.87
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917665/ft1_filtered_4FGL_J1248.9+4840_daily_bin224.fits evtable="EVENTS" scfile=/scratch/kocevski/917665/ft2_4FGL_J1248.9+4840_daily_bin224.fits sctable="SC_DATA" expcube=/scratch/kocevski/917665/ltcube_297388801_297648001_4FGL_J1248.9+4840_daily_bin224.fits outfile=/scratch/kocevski/917665/expmap_297388801_297648001_4FGL_J1248.9+4840_daily_bin224.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/917665/ltcube_297388801_297648001_4FGL_J1248.9+4840_daily_bin224.fits
.....................!
real 190.99
user 185.29
sys 5.34

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/917665/ft1_filtered_4FGL_J1248.9+4840_daily_bin224.fits scfile=/scratch/kocevski/917665/ft2_4FGL_J1248.9+4840_daily_bin224.fits outfile=/scratch/kocevski/917665/cmap_297388801_297648001_4FGL_J1248.9+4840_daily_bin224.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917665/ft1_filtered_4FGL_J1248.9+4840_daily_bin224.fits scfile=/scratch/kocevski/917665/ft2_4FGL_J1248.9+4840_daily_bin224.fits outfile=/scratch/kocevski/917665/cmap_HighResolution_297388801_297648001_4FGL_J1248.9+4840_daily_bin224.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/917665/ft1_filtered_4FGL_J1248.9+4840_daily_bin224.fits evtable="EVENTS" scfile=/scratch/kocevski/917665/ft2_4FGL_J1248.9+4840_daily_bin224.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917665/Model_4FGL_J1248.9+4840_daily_bin224.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/917665/ft1_filtered_4FGL_J1248.9+4840_daily_bin224.fits.....................!
real 59.05
user 57.50
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53641       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3619       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.490       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4677       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.050       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4867       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12798E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1019       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    54.158       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10864E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2082       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.921       1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4166       1.0000         .10000E-03   10000.    
    22 'norm      '    .60291       1.0000         .10000E-03   10000.    
    23 'norm      '    70.501       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96247       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0702       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=   7037.577     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2507 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53771        2.2004        .49360E-06   -.27711E-03
   2  Prefactor     .10000E-03    14.686       -.31607E-06** at limit **
   3  norm          1.3618        1.6087        .11037E-06   -.10019E-03
   4  norm          .10000E-03    3.6687        .80780E-07** at limit **
   5  Prefactor     .10000E-03    16.613        .94443E-07** at limit **
   6  Prefactor     10.490        5.3066        .32509E-07    .24884E-05
   7  norm          2.4676        1.7177        .98378E-08    .11307E-04
   8  Prefactor     .10000E-03    15.225        .39517E-06** at limit **
   9  Prefactor     22.041        20.205       -.70438E-08   -.15960E-04
  10  norm          2.4866        2.0249        .61078E-07   -.41048E-04
  11  Prefactor     .10000E-03    9.0457       -.19399E-08** at limit **
  12  Prefactor     .10000E-03    67.325        .43221E-06** at limit **
  13  Prefactor     .10000E-03    2.9893        .73784E-08** at limit **
  14  Prefactor     4.0959        13.361        .38041E-06   -.12866E-04
  15  norm          .10000E-03    5.2327        .39165E-07** at limit **
  16  norm          54.162        8.8046       -.73017E-08   -.43439E-04
  17  Prefactor     .10000E-03    39.914       -.24390E-06** at limit **
  18  Prefactor     6.2086        13.436        .40539E-05   -.17119E-03
  19  Prefactor     26.916        34.937       -.10010E-05   -.54506E-04
  20  norm          .10000E-03    1.3279       -.12769E-06** at limit **
  21  Prefactor     5.3955        133.29       -.80947E-05   -.45104E-04
  22  norm          .60438        1.4793        .60922E-06   -.15499E-03
  23  norm          70.531        70.130        .32334E-05    .13849E-03
  24  Normalizat    .96249        .16449       -.11473E-06   -.13179E-03
  25  Prefactor     1.0702        .19159       -.90081E-06   -.44694E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.537707
  Prefactor  = 0.0001
  norm       = 1.36185
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.49
  norm       = 2.4676
  Prefactor  = 0.0001
  Prefactor  = 22.0413
  norm       = 2.48659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.09588
  norm       = 0.0001
  norm       = 54.1625
  Prefactor  = 0.0001
  Prefactor  = 6.20861
  Prefactor  = 26.9163
  norm       = 0.0001
  Prefactor  = 5.39552
  norm       = 0.604382
  norm       = 70.531
  Normalizat = 0.962488
  Prefactor  = 1.07019
 **********
 **   18 **HESSE 
 **********

 FCN=   7037.577     FROM HESSE     STATUS=OK           427 CALLS     2934 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53771        3.8705        .22958E-02   -1.5561    
   2  Prefactor     .10000E-03    14.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3618        1.5850        .11047E-03   -1.5475    
   4  norm          .10000E-03    3.7120        .15688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.490        5.3059        .12371E-03   -1.5060    
   7  norm          2.4676        1.7204        .88220E-04   -1.5394    
   8  Prefactor     .10000E-03    15.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.041        20.189        .85301E-04   -1.4769    
  10  norm          2.4866        2.0187        .10395E-03   -1.5393    
  11  Prefactor     .10000E-03    9.2089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    67.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9964        .14163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0959        13.334        .19905E-03   -1.5303    
  15  norm          .10000E-03    5.2397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          54.162        8.8078        .54504E-04   -1.4235    
  17  Prefactor     .10000E-03    39.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2086        13.656        .80558E-03   -1.5210    
  19  Prefactor     26.916        34.823        .77210E-04   -1.4670    
  20  norm          .10000E-03    1.3356        .94447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.3955        139.36        .17266E-03   -1.5243    
  22  norm          .60438        1.4787        .14937E-03   -1.5552    
  23  norm          70.531        72.639        .23905E-03   -1.4026    
  24  Normalizat    .96249        .19471        .24308E-03   -.94298    
  25  Prefactor     1.0702        .22727        .28533E-03   -.90425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71062e-08
Minuit parameter uncertainties:
  1  2.88527
  2  3.40206e-05
  3  1.58505
  4  9.04558e-07
  5  4.19138e-06
  6  5.30615
  7  1.72046
  8  3.62332e-05
  9  20.1954
  10  2.0188
  11  3.63494e-06
  12  7.8124e-05
  13  1.92206e-06
  14  13.3433
  15  1.53106e-06
  16  8.80796
  17  1.23688e-05
  18  13.6629
  19  34.849
  20  4.27912e-06
  21  54.9856
  22  1.47878
  23  72.7308
  24  0.194854
  25  0.227472
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  3.623e-05  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.070e+00  2.275e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  9.625e-01  1.949e-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.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917665/likelihoodResults_297388801_297648001_4FGL_J1248.9+4840_daily_bin224.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) = 7037.57693037
delta logL = -0.000311163238621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7037.57661932
delta logL = -1.08975655166e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4612       1.0000          .0000       10.000    
     3 'Normalizat'    .96242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0703       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.

 FCN=   7037.577     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6663.1        .90712E-02** at limit **
   2  Index         2.4721        7.5529        .50000       -.63206E-05
   3  Normalizat    .96249        .14690        .45694E-01    .26509E-04
   4  Prefactor     1.0702        .17866        .64507E-01    .20891E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47207
  Normalizat = 0.962489
  Prefactor  = 1.07019
 **********
 **   18 **HESSE 
 **********

 FCN=   7037.577     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6660.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4721        7.4221        .50000       -.53006    
   3  Normalizat    .96249        .15832        .24308E-03   -.94298    
   4  Prefactor     1.0702        .19548        .28533E-03   -.90425    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.17709e-09
Minuit parameter uncertainties:
  1  0.000266049
  2  67.5536
  3  0.1584
  4  0.19561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917665': 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) = 7037.57661918
delta logL = 3.20815161103e-08

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  2.660e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.472e+00  6.755e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.070e+00  1.956e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  9.625e-01  1.584e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/917665/cmap_HighResolution_297388801_297648001_4FGL_J1248.9+4840_daily_bin224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.27e-08', time_completed='2021-09-06 05:49:02.606331', job_id='917665', GAL2='1.07', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630932542.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='3.21e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='224' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:49:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 917665: <4FGL_J1248.9+4840_daily_bin224> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin224 192.244 48.67 297388801 297648001 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 :                                   798.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             357.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            817 sec.

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

