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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin698
RA = 192.244, Dec = 48.67
tmin = 420249601, tmax = 420508801
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='920665', job_status='RUN', time_executed='2021-09-06 05:46:19.525856', time_epoch_executed='1630932379.53' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920665/ft1_4FGL_J1248.9+4840_daily_bin698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920665/ft2_4FGL_J1248.9+4840_daily_bin698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920665/ft1_4FGL_J1248.9+4840_daily_bin698.fits outfile=/scratch/kocevski/920665/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin698.fits ra=192.244 dec=48.67 rad=12.0 tmin=420249601.0 tmax=420508801.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.37
user 3.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/920665/ft2_4FGL_J1248.9+4840_daily_bin698.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/920665/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin698.fits evtable="EVENTS" outfile="/scratch/kocevski/920665/ft1_filtered_4FGL_J1248.9+4840_daily_bin698.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.45
user 0.33
sys 0.10

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/920665/ft1_filtered_4FGL_J1248.9+4840_daily_bin698.fits" evtable="EVENTS" scfile=/scratch/kocevski/920665/ft2_4FGL_J1248.9+4840_daily_bin698.fits sctable="SC_DATA" outfile=/scratch/kocevski/920665/ltcube_420249601_420508801_4FGL_J1248.9+4840_daily_bin698.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/920665/ft2_4FGL_J1248.9+4840_daily_bin698.fits
.....................!
real 11.96
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920665/ft1_filtered_4FGL_J1248.9+4840_daily_bin698.fits evtable="EVENTS" scfile=/scratch/kocevski/920665/ft2_4FGL_J1248.9+4840_daily_bin698.fits sctable="SC_DATA" expcube=/scratch/kocevski/920665/ltcube_420249601_420508801_4FGL_J1248.9+4840_daily_bin698.fits outfile=/scratch/kocevski/920665/expmap_420249601_420508801_4FGL_J1248.9+4840_daily_bin698.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/920665/ltcube_420249601_420508801_4FGL_J1248.9+4840_daily_bin698.fits
.....................!
real 194.80
user 189.64
sys 4.81

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/920665/ft1_filtered_4FGL_J1248.9+4840_daily_bin698.fits scfile=/scratch/kocevski/920665/ft2_4FGL_J1248.9+4840_daily_bin698.fits outfile=/scratch/kocevski/920665/cmap_420249601_420508801_4FGL_J1248.9+4840_daily_bin698.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920665/ft1_filtered_4FGL_J1248.9+4840_daily_bin698.fits scfile=/scratch/kocevski/920665/ft2_4FGL_J1248.9+4840_daily_bin698.fits outfile=/scratch/kocevski/920665/cmap_HighResolution_420249601_420508801_4FGL_J1248.9+4840_daily_bin698.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20650E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .91108       1.0000         .10000E-03   10000.    
     4 'norm      '    .29131E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .57954       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.3470       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7426       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.024       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7572       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.7560       1.0000         .10000E-03   10000.    
    16 'norm      '    .13660E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.060       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.586       1.0000         .10000E-03   10000.    
    20 'norm      '    .10700E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.689       1.0000         .10000E-03   10000.    
    22 'norm      '    6.3352       1.0000         .10000E-03   10000.    
    23 'norm      '    .10555E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76067       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2204       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=   5883.911     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2965 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3866       -.39443E-06** at limit **
   2  Prefactor     .10000E-03    5.5396       -.10456E-06** at limit **
   3  norm          .91112        1.8568       -.16403E-08   -.76429E-04
   4  norm          .10000E-03    4.3260        .11708E-06** at limit **
   5  Prefactor     .10000E-03    25.260       -.97815E-06** at limit **
   6  Prefactor     .10000E-03    7.5115       -.43877E-06** at limit **
   7  norm          .58030        1.6743       -.10589E-06   -.29755E-03
   8  Prefactor     .10000E-03    14.625       -.67514E-06** at limit **
   9  Prefactor     .10000E-03    9.8307        .47701E-06** at limit **
  10  norm          5.3475        2.2878        .30036E-07    .35677E-03
  11  Prefactor     1.7456        7.5863        .11846E-04    .90785E-04
  12  Prefactor     25.048        37.503       -.33310E-05    .50492E-04
  13  Prefactor     1.7621        12.827        .10594E-05    .84879E-04
  14  Prefactor     .10000E-03    10.200       -.69594E-07** at limit **
  15  norm          8.7556        9.5921        .15655E-06    .47707E-04
  16  norm          .10010E-03    1.6714       -.15938E-05** at limit **
  17  Prefactor     10.061        26.739        .82324E-06    .84471E-04
  18  Prefactor     .10000E-03    10.631        .17568E-06** at limit **
  19  Prefactor     19.609        25.034       -.20728E-05    .52693E-04
  20  norm          .10000E-03    1.7072       -.19079E-06** at limit **
  21  Prefactor     13.711        47.582       -.42967E-05    .30172E-04
  22  norm          6.3358        1.9422        .30634E-07    .22851E-03
  23  norm          .10000E-03    35.786       -.25959E-06** at limit **
  24  Normalizat    .76059        .15897        .93228E-07    .65181E-03
  25  Prefactor     1.2203        .19709        .50345E-06    .66594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.91112
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.580295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.3475
  Prefactor  = 1.74556
  Prefactor  = 25.0484
  Prefactor  = 1.76208
  Prefactor  = 0.0001
  norm       = 8.7556
  norm       = 0.000100098
  Prefactor  = 10.0612
  Prefactor  = 0.000100001
  Prefactor  = 19.6092
  norm       = 0.000100002
  Prefactor  = 13.7105
  norm       = 6.33575
  norm       = 0.0001
  Normalizat = 0.760589
  Prefactor  = 1.22031
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.911     FROM HESSE     STATUS=OK           437 CALLS     3402 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0116        .17377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5475        .17629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .91112        1.8284        .14040E-03   -1.5517    
   4  norm          .10000E-03    28.730        .30727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .58030        1.5082        .15391E-02   -1.5556    
   8  Prefactor     .10000E-03    14.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.8388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.3475        2.2877        .73549E-04   -1.5245    
  11  Prefactor     1.7456        7.6235        .15889E-02   -1.5444    
  12  Prefactor     25.048        37.475        .80078E-04   -1.4707    
  13  Prefactor     1.7621        12.037        .31616E-03   -1.5442    
  14  Prefactor     .10000E-03    10.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.7556        9.5897        .13546E-03   -1.5116    
  16  norm          .10010E-03    18.470        .18227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.061        26.486        .12633E-03   -1.5073    
  18  Prefactor     .10000E-03    10.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.609        24.996        .90501E-04   -1.4822    
  20  norm          .10000E-03    15.787        .19298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.711        47.503        .10826E-03   -1.4967    
  22  norm          6.3358        1.9411        .56510E-04   -1.5204    
  23  norm          .10000E-03    35.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .76059        .18797        .23658E-03   -1.0155    
  25  Prefactor     1.2203        .23693        .24737E-03   -.85708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3069e-08
Minuit parameter uncertainties:
  1  2.51842e-05
  2  1.50667e-05
  3  1.82854
  4  0.000141545
  5  0.000156297
  6  5.95068e-05
  7  1.50831
  8  3.76024e-05
  9  4.07723e-05
  10  2.28774
  11  7.29719
  12  37.5104
  13  9.21324
  14  4.06365e-05
  15  9.59142
  16  0.0026893
  17  26.5173
  18  0.000153128
  19  25.0096
  20  0.000310624
  21  47.6341
  22  1.94111
  23  3.72317e-05
  24  0.188129
  25  0.237133
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  3.760e-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.220e+00  2.371e-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.606e-01  1.881e-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: 5.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/920665/likelihoodResults_420249601_420508801_4FGL_J1248.9+4840_daily_bin698.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) = 5883.91162134
delta logL = -0.000323772458614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5883.91129752
delta logL = 5.43095666217e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4301       1.0000          .0000       10.000    
     3 'Normalizat'    .76059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2203       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=   5883.911     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      251 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10479E-03    11.953        .18142E-01** at limit **
   2  Index         2.2598        5.2535        .50000        .76937E-05
   3  Normalizat    .76059        .31602E-02    .23658E-03   -.56031E-04
   4  Prefactor     1.2203        .41071E-02    .24737E-03    .50094E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104791
  Index      = 2.25977
  Normalizat = 0.760588
  Prefactor  = 1.22031
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.911     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10479E-03    276.81        .30461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2598        6.1986        .50000       -.58003    
   3  Normalizat    .76059        .15382E-01    .94633E-05   -1.0155    
   4  Prefactor     1.2203        .19991E-01    .98948E-05   -.85708    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06473e-07
Minuit parameter uncertainties:
  1  0.0731722
  2  1008.98
  3  0.0153822
  4  0.0199914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920665': 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) = 5883.91129728
delta logL = 2.88196133624e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.048e-04  7.317e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.260e+00  1.009e+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:  1.220e+00  1.999e-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.606e-01  1.538e-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/920665/cmap_HighResolution_420249601_420508801_4FGL_J1248.9+4840_daily_bin698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2021-09-06 05:59:10.845698', job_id='920665', GAL2='1.22', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630933150.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='2.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='698' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:59:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 920665: <4FGL_J1248.9+4840_daily_bin698> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin698> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:45:19 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:45:21 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:45:21 2021
Terminated at Mon Sep  6 05:59:11 2021
Results reported at Mon Sep  6 05:59:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin698 192.244 48.67 420249601 420508801 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 :                                   769.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

