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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin421
RA = 192.244, Dec = 48.67
tmin = 348451201, tmax = 348710401
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='917976', job_status='RUN', time_executed='2021-09-06 05:36:10.133146', time_epoch_executed='1630931770.13' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917976

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917976/ft1_4FGL_J1248.9+4840_daily_bin421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917976/ft2_4FGL_J1248.9+4840_daily_bin421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917976/ft1_4FGL_J1248.9+4840_daily_bin421.fits outfile=/scratch/kocevski/917976/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin421.fits ra=192.244 dec=48.67 rad=12.0 tmin=348451201.0 tmax=348710401.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.43
user 3.19
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917976/ft1_filtered_4FGL_J1248.9+4840_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/917976/ft2_4FGL_J1248.9+4840_daily_bin421.fits sctable="SC_DATA" expcube=/scratch/kocevski/917976/ltcube_348451201_348710401_4FGL_J1248.9+4840_daily_bin421.fits outfile=/scratch/kocevski/917976/expmap_348451201_348710401_4FGL_J1248.9+4840_daily_bin421.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/917976/ltcube_348451201_348710401_4FGL_J1248.9+4840_daily_bin421.fits
.....................!
real 190.59
user 185.66
sys 4.55

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/917976/ft1_filtered_4FGL_J1248.9+4840_daily_bin421.fits scfile=/scratch/kocevski/917976/ft2_4FGL_J1248.9+4840_daily_bin421.fits outfile=/scratch/kocevski/917976/cmap_348451201_348710401_4FGL_J1248.9+4840_daily_bin421.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917976/ft1_filtered_4FGL_J1248.9+4840_daily_bin421.fits scfile=/scratch/kocevski/917976/ft2_4FGL_J1248.9+4840_daily_bin421.fits outfile=/scratch/kocevski/917976/cmap_HighResolution_348451201_348710401_4FGL_J1248.9+4840_daily_bin421.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9713       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.143       1.0000         .10000E-03   10000.    
     3 'norm      '    .71660       1.0000         .10000E-03   10000.    
     4 'norm      '    .93838E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.630       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12164E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.8863       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.444       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5621       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2082       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4121       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.412       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13788E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20712E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    11.782       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.654       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.752       1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.905       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.237       1.0000         .10000E-03   10000.    
    22 'norm      '    10.209       1.0000         .10000E-03   10000.    
    23 'norm      '    .12264E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95655       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1275       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=   7281.975     FROM MIGRAD    STATUS=CONVERGED   1069 CALLS     3502 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9709        4.2369        .14176E-03   -.40580E-04
   2  Prefactor     45.140        28.044        .59673E-04   -.99069E-05
   3  norm          .71573        2.1887        .20250E-03   -.14075E-03
   4  norm          .10008E-03    32.719        .34564E-02** at limit **
   5  Prefactor     15.620        15.698        .10131E-03   -.74064E-05
   6  Prefactor     .10003E-03    13.493        .30651E-02** at limit **
   7  norm          4.8870        2.1418        .79329E-04    .19046E-03
   8  Prefactor     17.433        22.723        .95894E-04    .35211E-04
   9  Prefactor     8.5577        10.680        .13699E-03    .48464E-04
  10  norm          1.2083        1.4072        .10849E-03    .38458E-04
  11  Prefactor     4.4130        7.1104        .19173E-03    .16484E-03
  12  Prefactor     19.386        40.418        .90907E-04   -.19384E-04
  13  Prefactor     .10060E-03    8.1740        .61360E-01** at limit **
  14  Prefactor     .10020E-03    20.229        .10339    ** at limit **
  15  norm          11.781        11.272        .11671E-03    .16268E-04
  16  norm          .10000E-03    2.2309        .12346E-02** at limit **
  17  Prefactor     38.655        36.543        .64468E-04    .21867E-04
  18  Prefactor     11.748        12.335        .11686E-03    .12647E-04
  19  Prefactor     34.905        37.625        .67830E-04    .97212E-05
  20  norm          .10000E-03    1.2260        .91945E-03** at limit **
  21  Prefactor     15.293        68.299        .10261E-03    .60142E-04
  22  norm          10.209        2.2555        .57347E-04    .75928E-04
  23  norm          .10000E-03    62.565        .18142E-02** at limit **
  24  Normalizat    .95688        .20274        .25115E-03    .22619E-03
  25  Prefactor     1.1271        .22869        .28772E-03    .11723E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.97089
  Prefactor  = 45.1399
  norm       = 0.715735
  norm       = 0.00010008
  Prefactor  = 15.6197
  Prefactor  = 0.000100027
  norm       = 4.88698
  Prefactor  = 17.4325
  Prefactor  = 8.55767
  norm       = 1.20827
  Prefactor  = 4.41298
  Prefactor  = 19.3861
  Prefactor  = 0.000100601
  Prefactor  = 0.000100197
  norm       = 11.7809
  norm       = 0.0001
  Prefactor  = 38.655
  Prefactor  = 11.7479
  Prefactor  = 34.9048
  norm       = 0.0001
  Prefactor  = 15.2925
  norm       = 10.2086
  norm       = 0.0001
  Normalizat = 0.956881
  Prefactor  = 1.12713
 **********
 **   18 **HESSE 
 **********

 FCN=   7281.975     FROM HESSE     STATUS=OK           421 CALLS     3923 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9709        4.2364        .56704E-05   -1.5262    
   2  Prefactor     45.140        28.043        .23869E-05   -1.4363    
   3  norm          .71573        2.1878        .81000E-05   -1.5539    
   4  norm          .10008E-03    33.889        .13826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.620        15.685        .40523E-05   -1.4917    
   6  Prefactor     .10003E-03    13.682        .61303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.8870        2.1406        .31731E-05   -1.5266    
   8  Prefactor     17.433        22.719        .38358E-05   -1.4873    
   9  Prefactor     8.5577        10.680        .54798E-05   -1.5123    
  10  norm          1.2083        1.4072        .43396E-05   -1.5488    
  11  Prefactor     4.4130        7.1073        .76690E-05   -1.5288    
  12  Prefactor     19.386        40.417        .36363E-05   -1.4827    
  13  Prefactor     .10060E-03    7.1987        .67245E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10020E-03    19.195        .10737       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.781        11.273        .46684E-05   -1.5021    
  16  norm          .10000E-03    2.2315        .24693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.655        36.552        .25787E-05   -1.4464    
  18  Prefactor     11.748        12.335        .46742E-05   -1.5022    
  19  Prefactor     34.905        37.636        .27132E-05   -1.4526    
  20  norm          .10000E-03    1.2261        .18389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.293        68.292        .20521E-04   -1.4926    
  22  norm          10.209        2.2555        .22939E-05   -1.5069    
  23  norm          .10000E-03    62.565        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95688        .20294        .10046E-04   -.94489    
  25  Prefactor     1.1271        .22894        .11509E-04   -.88604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61747e-09
Minuit parameter uncertainties:
  1  4.23662
  2  28.0514
  3  2.18802
  4  0.00329947
  5  15.6894
  6  0.00121713
  7  2.14067
  8  22.7307
  9  10.6824
  10  1.40722
  11  7.1087
  12  40.4745
  13  0.00416211
  14  0.00388629
  15  11.2746
  16  8.66873e-06
  17  36.5732
  18  12.3374
  19  37.6618
  20  3.44337e-06
  21  64.7567
  22  2.25554
  23  2.11984e-05
  24  0.203104
  25  0.229137
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.743e+01  2.273e+01  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.127e+00  2.291e-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.569e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.74
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917976/likelihoodResults_348451201_348710401_4FGL_J1248.9+4840_daily_bin421.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): 0
logL (Free Index) = 7281.22359303
delta logL = 0.751627439658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7281.16801878
delta logL = 0.807201684969

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39030E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.2063       1.0000          .0000       10.000    
     3 'Normalizat'    .91338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1765       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=   7281.168     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      442 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36824E-02    .45436E-01    .97624E-03   -.37439E-02
   2  Index         7.2341        2.4699        .15543        .48050E-04
   3  Normalizat    .91401        .35900E-01    .45072E-01   -.98987E-04
   4  Prefactor     1.1759        .44507E-01    .63897E-01   -.93802E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00368245
  Index      = 7.23411
  Normalizat = 0.914011
  Prefactor  = 1.1759
 **********
 **   18 **HESSE 
 **********

 FCN=   7281.168     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      477 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36824E-02    .12449        .42476E-04   -1.5696    
   2  Index         7.2341        7.8292        .58283E-02    .46321    
   3  Normalizat    .91401        .13734        .25612E-03   -.95970    
   4  Prefactor     1.1759        .16798        .28262E-03   -.87076    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.1524e-10
Minuit parameter uncertainties:
  1  0.0422372
  2  5.4465
  3  0.13739
  4  0.168056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917976': 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) = 7281.16800664
delta logL = 0.807213827366

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.682e-03  4.224e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  7.234e+00  5.447e+00  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.176e+00  1.681e-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.140e-01  1.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.45
Ra Dec: 192.244 48.670
Photon Index (Free Index): 7.23 +/- 5.45
Photon Flux (Free Index): 5.07e-08 +/- 4.06e-08
Energy Flux (Free Index): 6.01e-06 +/- 5.29e-06

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/917976/cmap_HighResolution_348451201_348710401_4FGL_J1248.9+4840_daily_bin421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.75e-03', comment='SUCCESS', energy_flux2='6.01e-06', dlogl='8.07e-01', photon_flux2='5.07e-08', job_status='DONE', time_completed='2021-09-06 05:52:02.957154', photon_index_error2='5.45', photon_index2='7.23', ts='0.74', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='5.29e-06', EG='0.96', time_epoch_completed='1630932722.96', return_code='0', job_id='917976', GAL2='1.18', EG2='0.91', return_code2='102', photon_flux_error2='4.06e-08', ts2='2.45', photon_index='2.45' WHERE bin_id='421' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 917976: <4FGL_J1248.9+4840_daily_bin421> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin421 192.244 48.67 348451201 348710401 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 :                                   947.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            973 sec.

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

